/* Dashboard Generic Styles (Cards, Filters, Grids) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem
}

/* FILTER SECTION */
.filter-section {
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem
}

.filter-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0
}

.filter-title iconify-icon {
    font-size: 1rem;
    color: var(--primary)
}

.filter-period-badge {
    display: none;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    background: var(--primary);
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    color: #000
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
    border-color: var(--primary);
    color: var(--primary)
}

.filter-toggle-btn iconify-icon {
    font-size: 1rem
}

.filter-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .75rem
}

.filter-scroll {
    flex: 1;
    overflow: hidden
}

.filter-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, #FFD700 100%);
    border-color: var(--primary);
    color: #000
}

.filter-pill iconify-icon {
    font-size: .9rem
}

.filter-sep {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0
}

.filter-dates {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0
}

.filter-dates input[type=date] {
    padding: .4rem .5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: .8rem;
    width: 130px
}

.filter-dates input[type=date]:focus {
    outline: none;
    border-color: var(--primary)
}

.filter-dates .sep {
    color: var(--text-muted);
    font-size: .75rem
}

.filter-dates .btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    cursor: pointer
}

.filter-dates .btn-apply:hover {
    transform: scale(1.05)
}

/* QUICK ACTIONS */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-darker);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: all .2s;
    text-align: center
}

.quick-action:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: #000
}

.quick-action:hover iconify-icon {
    color: #000 !important
}

.quick-action iconify-icon {
    font-size: 2rem;
    color: var(--primary);
    transition: color .2s
}

.quick-action span {
    font-weight: 600;
    font-size: .9rem
}

/* ITEMS (Appointment/Order) */
.appointment-item,
.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all .2s ease;
    cursor: pointer
}

.order-item:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.appointment-time,
.order-id {
    text-align: center;
    min-width: 60px
}

.appointment-time .time,
.order-id .id {
    font-weight: 700;
    font-size: 1rem
}

.appointment-time .date,
.order-id .date {
    font-size: .75rem;
    color: var(--text-muted)
}

.appointment-info,
.order-info {
    flex: 1;
    min-width: 0
}

.appointment-info .name,
.order-info .name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.appointment-info .service,
.order-info .total {
    font-size: .85rem;
    color: var(--text-muted)
}

.order-info .total {
    color: var(--primary)
}

/* STORE SUMMARY */
.store-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem
}

.summary-item {
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 10px
}

.summary-item .label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    color: var(--text-muted);
    font-size: .85rem
}

.summary-item .value {
    font-weight: 600;
    font-size: .75rem;
    color: var(--text-muted)
}

/* TABLET */
@media(max-width:992px) {
    .filter-body {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem
    }

    .filter-scroll {
        width: 100%
    }

    .filter-pills {
        flex-wrap: wrap;
        justify-content: flex-start
    }

    .filter-sep {
        display: none
    }

    .filter-dates {
        width: 100%;
        justify-content: space-between;
        padding-top: .5rem;
        border-top: 1px solid var(--border)
    }

    .filter-dates input[type=date] {
        flex: 1;
        width: auto
    }
}

/* MOBILE */
@media(max-width:768px) {
    .filter-period-badge {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        padding: .25rem .6rem;
        background: var(--primary);
        border-radius: 50px;
        font-size: .7rem;
        font-weight: 600;
        color: #000
    }

    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .filter-section {
        padding: .75rem
    }

    .filter-header {
        margin-bottom: 0
    }

    .filter-toggle-btn {
        display: flex
    }

    .filter-body {
        display: none;
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid var(--border)
    }

    .filter-body.show {
        display: flex
    }

    .filter-pills {
        gap: .3rem
    }

    .filter-pill {
        padding: .35rem .6rem;
        font-size: .75rem
    }

    .filter-pill iconify-icon {
        font-size: .8rem
    }

    .filter-dates {
        gap: .3rem
    }

    .filter-dates input[type=date] {
        padding: .35rem .4rem;
        font-size: .75rem
    }

    .filter-dates .btn-apply {
        width: 28px;
        height: 28px
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .quick-action {
        padding: 1rem .75rem
    }

    .quick-action iconify-icon {
        font-size: 1.75rem
    }

    .quick-action span {
        font-size: .8rem
    }
}

/* MOBILE SMALL */
@media(max-width:480px) {
    .filter-section {
        padding: .6rem
    }

    .filter-pill {
        padding: .3rem .5rem;
        font-size: .7rem
    }

    .filter-pill iconify-icon {
        display: none
    }

    .filter-period-badge {
        font-size: .65rem;
        padding: .2rem .45rem
    }

    .filter-dates input[type=date] {
        font-size: .7rem;
        padding: .3rem
    }

    .appointment-item,
    .order-item {
        flex-wrap: wrap;
        gap: .75rem
    }

    .appointment-time,
    .order-id {
        min-width: auto
    }

    .store-summary-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}