/* Pedidos: fidelidade do cliente e filtros liquid glass */
.orders-page-title {
    gap: 18px;
}

.orders-view-switch {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    margin-bottom: 8px;
    border: 1px solid rgba(125, 61, 73, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .58);
    box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(70, 43, 34, .06);
}

.orders-view-switch a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 11px;
    color: #715f56;
    font-size: 13px;
    font-weight: 800;
}

.orders-view-switch a[aria-current="page"] {
    background: linear-gradient(145deg, #8e4b58, #66303a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(125, 61, 73, .2);
}

.orders-view-switch span {
    display: inline-grid;
    min-width: 24px;
    min-height: 24px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(125, 61, 73, .1);
    font-size: 11px;
}

.orders-view-switch a[aria-current="page"] span {
    background: rgba(255, 255, 255, .18);
}

.orders-archive-note {
    margin: 0 0 16px 3px;
    color: var(--muted);
    font-size: 12px;
}

.attendance-launch {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 9px 15px;
    border: 1px solid rgba(125, 61, 73, .28);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(245, 229, 219, .58));
    color: var(--wine);
    box-shadow: 0 12px 28px rgba(75, 46, 38, .1), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.attendance-launch:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 61, 73, .5);
    box-shadow: 0 16px 32px rgba(75, 46, 38, .14), inset 0 1px 0 #fff;
}

.attendance-launch > span:last-child {
    display: grid;
    gap: 1px;
}

.attendance-launch small {
    color: #87746b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.attendance-launch strong {
    font-size: 11px;
    letter-spacing: .035em;
}

.attendance-launch-dot {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--wine);
    box-shadow: 0 0 0 6px rgba(125, 61, 73, .1);
}

.attendance-launch.is-active .attendance-launch-dot {
    background: #3d8b6c;
    box-shadow: 0 0 0 6px rgba(61, 139, 108, .12);
}

.customer-name {
    display: block;
    font-weight: 700;
}

.customer-name + small {
    display: block;
    color: var(--muted);
}

.customer-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 7px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .075em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(47, 41, 38, .08);
}

.customer-tag--first {
    color: #80551f;
    background: linear-gradient(135deg, #fff9dc, #f3e1ad);
    border-color: #e8cb80;
}

.customer-tag--customer {
    color: #285948;
    background: linear-gradient(135deg, #edf9f3, #d8eee4);
    border-color: #b9dcca;
}

.customer-tag--fan {
    color: #fff8e9;
    background: linear-gradient(135deg, #8e4a58, #602b36);
    border-color: #a96b77;
    box-shadow: 0 5px 14px rgba(125, 61, 73, .24);
}

.filters.orders-filter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(170px, .72fr) minmax(190px, .78fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(198, 153, 97, .3);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(247, 237, 228, .52));
    box-shadow: 0 18px 45px rgba(70, 43, 34, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.filters.orders-filter::before {
    content: "";
    position: absolute;
    inset: -70% 42% 34% -12%;
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(198, 153, 97, .1) 42%, transparent 68%);
    pointer-events: none;
}

.orders-filter > * {
    position: relative;
    z-index: 1;
}

.orders-filter .filter-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.orders-filter .filter-field > span {
    padding-left: 3px;
    color: #715f56;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.orders-filter input,
.orders-filter select {
    min-width: 0;
    height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(125, 61, 73, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(87, 57, 46, .04);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.orders-filter input:focus,
.orders-filter select:focus {
    border-color: rgba(125, 61, 73, .62);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 4px rgba(125, 61, 73, .1), inset 0 1px 0 #fff;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-submit,
.filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 17px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s, box-shadow .18s, background .18s;
}

.filter-submit {
    border: 1px solid rgba(94, 41, 51, .85);
    background: linear-gradient(145deg, #8e4b58, #66303a);
    color: #fff;
    box-shadow: 0 10px 22px rgba(125, 61, 73, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
    cursor: pointer;
}

.filter-clear {
    border: 1px solid rgba(125, 61, 73, .22);
    background: rgba(255, 255, 255, .58);
    color: var(--wine);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.filter-submit:hover,
.filter-clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(125, 61, 73, .18);
}

@media (max-width: 900px) {
    .filters.orders-filter {
        grid-template-columns: 1fr 1fr;
    }

    .orders-filter .filter-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        align-self: end;
    }

    .filter-submit,
    .filter-clear {
        flex: 1;
    }
}

@media (max-width: 699px) {
    .orders-page-title {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-launch {
        justify-content: center;
        width: 100%;
    }

    .orders-view-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .orders-view-switch a {
        justify-content: center;
        padding-inline: 9px;
    }

    .filters.orders-filter {
        grid-template-columns: 1fr;
        padding: 13px;
        border-radius: 18px;
    }

    .orders-filter .filter-search {
        grid-column: auto;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .customer-tag {
        grid-column: 2;
        justify-self: start;
        font-size: 8px;
    }

    td:nth-child(2) > .customer-name,
    td:nth-child(2) > small {
        grid-column: 2;
    }
}
