/* Shared styles for profile sections (orders, billing) filters and layout */

.profile-filters{
    height: 32px;
}
.custom-dropdown {
    background: transparent;
    border: 2px solid var(--color-font);
    border-radius: 5px;
    padding: 0px 0px 0px 14px;
    font-size: 12px;
    color: var(--color-font);
}

.custom-dropdown:focus {
    border-color: var(--color-pri-active);
    outline: none;
    box-shadow: none;
}

.custom-dropdown option {
    background: var(--color-bg);
    color: var(--color-font);
}

.custom-dropdown.selected {
    color: var(--color-pri-active);
}

.date-range-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--color-font);
    border-radius: 5px;
    padding: 0 8px;
    position: relative;
    font-size: 12px;
}

.date-range-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-font);
    height: 28px;
}

.date-range-icon {
    color: var(--color-font);
    margin-right: 4px;
}

.date-range-label {
    color: var(--color-font);
}

.date-range-separator {
    color: var(--color-font);
    margin: 0 6px;
}

.date-range-clear-btn {
    background: none;
    border: none;
    color: var(--color-font);
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    display: flex;
    align-items: center;
}

.order-number-wrapper {
    border: 2px solid var(--color-font);
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.order-number-wrapper input[type="text"] {
    flex: 1;
    border: none;
    margin-left: 5px;
    padding-left: 5px;
    height: 28px;
    width: 33%;
    background: transparent;
    font-size: 12px;
}

.order-number-wrapper span i {
  color: var(--color-font);
}

.clean-filter{
  text-align: end;
}

@media (max-width: 768px) {
    .filters-container {
      display: grid !important;
    }
    .filters-container>div:last-child {
      display: grid !important;
      grid-template-areas: 
        "two three ."
        "one one one";
    }

    .date-range-input-wrapper {
      grid-area: one;
    }
    
    .custom-dropdown {
      grid-area: two;
    }
    .order-number-wrapper {
      grid-area: three;
      grid-column: span 2;
    }

    .profile-filters{
      height: auto;
    }

    .clean-filter{
      text-align: start;
    }
}

/* For desktop, force one line */
@media (min-width: 769px) {
    .filters-container {
        flex-wrap: nowrap;
    }
}
