.pedidos-body {
    background:
        radial-gradient(circle at top left, rgba(196, 144, 106, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(92, 48, 32, 0.12), transparent 38%),
        linear-gradient(135deg, var(--creme) 0%, var(--creme-escuro) 100%);
    color: var(--texto-escuro);
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    padding-top: 126px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.page-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1100;
    background: rgba(245, 234, 224, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 48, 32, 0.10);
    box-shadow: 0 4px 20px rgba(92, 48, 32, 0.08);
    padding: 8px 16px;
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr 42px;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.6s ease;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.header-center h1 {
    margin: 0;
    color: var(--marrom);
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: clamp(18px, 4vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.logo-link,
.header-logo-texto,
.footer-logo-texto,
.drawer-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    text-decoration: none;
    min-width: 0;
}

.logo-tua {
    font-family: var(--fonte-script);
    color: var(--marrom);
    font-weight: 300;
    line-height: 1;
}

.logo-pele {
    font-family: var(--fonte-titulo);
    color: var(--marrom);
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.03em var(--marrom);
    letter-spacing: -0.04em;
}

.header-logo-texto .logo-tua {
    font-size: 2.1rem;
}

.header-logo-texto .logo-pele {
    font-size: 1.5rem;
}

.hamburger-btn {
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.06);
    color: var(--marrom);
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(92, 48, 32, 0.10);
}

.hamburger-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-2px);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    backdrop-filter: blur(5px);
    z-index: 1450;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transicao-lenta);
}

.drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: calc(100vw - 32px);
    height: 100vh;
    z-index: 1500;
    background: var(--creme-claro);
    box-shadow: var(--sombra-xl);
    padding: var(--space-12) var(--space-6);
    transition: left var(--transicao-lenta);
    border-right: 1px solid rgba(92, 48, 32, 0.12);
    overflow-y: auto;
}

.nav-drawer.aberto {
    left: 0;
}

.drawer-brand {
    margin-bottom: var(--space-10);
}

.drawer-brand .logo-tua {
    font-size: 2.5rem;
}

.drawer-brand .logo-pele {
    font-size: 1.8rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-full);
    color: var(--marrom);
    font-family: var(--fonte-corpo);
    font-size: var(--texto-md);
    font-weight: 700;
    transition: all var(--transicao-normal);
    text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--marrom);
    color: var(--creme);
    transform: translateX(4px);
}

.tab-nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 1050;
    display: flex;
    justify-content: center;
    padding: 9px 16px;
    background: rgba(245, 234, 224, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 48, 32, 0.10);
    box-shadow: 0 4px 12px rgba(92, 48, 32, 0.06);
    overflow: hidden;
    gap: 0;
}

.tab-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2px;
}

.tab-nav-inner::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    border: 1px solid rgba(92, 48, 32, 0.12);
    background: var(--branco);
    color: var(--marrom);
    border-radius: 999px;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: max-content;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(92, 48, 32, 0.04);
}

.tab-btn:hover {
    transform: translateY(-1px);
    background: var(--creme-claro);
}

.tab-btn.active {
    color: var(--creme);
    border-color: transparent;
    background: linear-gradient(135deg, var(--marrom), var(--marrom-medio));
    box-shadow: 0 8px 18px rgba(92, 48, 32, 0.18);
}

.tab-counter {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(92, 48, 32, 0.08);
    color: var(--marrom);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.tab-btn.active .tab-counter {
    background: rgba(255, 255, 255, 0.18);
    color: var(--creme);
}

.content-wrapper {
    width: 100%;
    min-height: calc(100vh - 260px);
    flex: 1;
    padding: 22px 0 36px;
}

.container-center {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 18px;
    width: 100%;
}

.section-date-header {
    grid-column: 1 / -1;
    font-family: var(--fonte-titulo);
    font-size: 18px;
    font-weight: 700;
    color: var(--marrom);
    margin: 10px 0 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(92, 48, 32, 0.12);
}

.order-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(92, 48, 32, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(92, 48, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 158px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.45s ease forwards;
    min-width: 0;
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(92, 48, 32, 0.13);
}

.card-table {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.cell {
    padding: 6px 10px;
    text-align: center;
    font-size: 11px;
    border-radius: 999px;
    overflow-wrap: break-word;
    font-weight: 800;
    text-transform: uppercase;
}

.status.request {
    background: rgba(196, 124, 62, 0.14);
    color: #9f5c24;
    border: 1px solid rgba(196, 124, 62, 0.26);
}

.status.order {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.22);
}

.status.sold {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.20);
}

.cell.name {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 800;
    color: var(--marrom);
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.cell.date {
    font-size: 11px;
    color: var(--texto-suave);
    font-weight: 600;
    text-align: right;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    text-transform: none;
}

.cell.date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.product-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(92, 48, 32, 0.09);
    gap: 12px;
    min-width: 0;
}

.product {
    font-size: 14px;
    color: var(--texto-medio);
    font-weight: 700;
    text-align: left;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quantity {
    font-size: 13px;
    font-weight: 900;
    color: var(--marrom);
    background: var(--creme-escuro);
    padding: 5px 10px;
    border-radius: 12px;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.card-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--texto-suave);
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
}

.card-summary-line span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-total {
    color: var(--sucesso);
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    justify-content: space-between;
}

.card-btn,
.sheet-btn {
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}

.card-btn {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}

.card-btn:hover,
.sheet-btn:hover {
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
}

.btn-cancel {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: white;
}

.btn-receipt {
    background: linear-gradient(135deg, #c47c3e, #a6622f);
    color: white;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 34px 22px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px dashed rgba(92, 48, 32, 0.16);
    color: var(--texto-medio);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(92, 48, 32, 0.05);
}

.empty-state i {
    color: var(--marrom);
    margin-right: 8px;
}

.loading-state {
    display: none;
    margin-bottom: 18px;
}

.loading-state.show {
    display: block;
}

.bottom-sheet {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.55);
    z-index: 1600;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.bottom-sheet.active {
    display: flex;
}

.sheet-content {
    background: var(--creme-claro);
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 26px 20px 22px;
    box-shadow: 0 -14px 46px rgba(92, 48, 32, 0.25);
    transform: translateY(100%);
    animation: slideUp 0.35s ease forwards;
    overflow-y: auto;
    border-top: 1px solid rgba(92, 48, 32, 0.12);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(92, 48, 32, 0.10);
}

.sheet-header h3 {
    font-size: 20px;
    color: var(--marrom);
    font-family: var(--fonte-titulo);
    font-weight: 800;
}

.close-sheet-btn {
    background: var(--creme-escuro);
    border: none;
    color: var(--marrom);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.sheet-details {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.sheet-block {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(92, 48, 32, 0.08);
    border-radius: 18px;
    padding: 15px;
}

.sheet-block h4 {
    color: var(--marrom);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--texto-medio);
    padding: 6px 0;
    border-bottom: 1px solid rgba(92, 48, 32, 0.06);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong,
.detail-row a {
    color: var(--marrom);
    text-align: right;
    word-break: break-word;
}

.sheet-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sheet-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.sheet-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--creme-escuro);
}

.sheet-item-name {
    font-weight: 800;
    color: var(--marrom);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-item-meta {
    color: var(--texto-suave);
    font-size: 12px;
    margin-top: 2px;
}

.sheet-item-total {
    color: var(--sucesso);
    font-weight: 900;
    white-space: nowrap;
}

.sheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(92, 48, 32, 0.10);
}

.sheet-btn {
    padding: 12px 16px;
    font-size: 13px;
    flex: 1 1 150px;
}

.selection-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    padding: 18px;
}

.selection-modal.show {
    display: flex;
}

.selection-modal-content {
    background: var(--creme-claro);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(92, 48, 32, 0.25);
    border: 1px solid rgba(92, 48, 32, 0.10);
}

.selection-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.selection-modal-header h3 {
    font-size: 18px;
    color: var(--marrom);
    font-weight: 800;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--marrom);
    opacity: 0.65;
}

.confirm-message {
    color: var(--texto-medio);
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 20px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions .btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
}

.confirm-actions .btn-secundario {
    background: var(--branco);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.10);
}

.confirm-actions .btn-primario {
    background: var(--marrom);
    color: var(--creme);
}

#toast-container {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    width: min(92vw, 420px);
    pointer-events: none;
}

.toast {
    background: var(--marrom);
    color: var(--creme);
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: 0 12px 30px rgba(92, 48, 32, 0.22);
    font-weight: 800;
    text-align: center;
    animation: fadeInUp 0.25s ease forwards;
}

.toast.erro {
    background: #b91c1c;
    color: white;
}

.toast.sucesso {
    background: #166534;
    color: white;
}

.pedidos-footer {
    text-align: center;
    padding: 22px 18px 28px;
    color: var(--texto-medio);
    background: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(92, 48, 32, 0.08);
    margin-top: 24px;
}

.footer-logo-texto {
    justify-content: center;
    margin-bottom: 8px;
}

.footer-logo-texto .logo-tua {
    font-size: 2.2rem;
}

.footer-logo-texto .logo-pele {
    font-size: 1.6rem;
}

.footer-dev {
    margin-top: 8px;
    font-size: 13px;
}

.dev-link {
    color: var(--marrom);
    text-decoration: none;
}

@media (max-width: 768px) {
    .pedidos-body {
        padding-top: 126px;
    }

    .admin-header {
        grid-template-columns: minmax(70px, auto) 1fr 42px;
        padding: 8px 12px;
    }

    .header-logo-texto .logo-tua {
        font-size: 1.8rem;
    }

    .header-logo-texto .logo-pele {
        font-size: 1.25rem;
    }

    .tab-nav {
        padding: 8px 10px 10px;
    }

    .tab-nav-inner {
        gap: 8px;
        padding: 0 2px;
    }

    .tab-btn {
        min-height: 41px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .container-center {
        padding: 0 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .order-card {
        border-radius: 22px;
        padding: 16px;
    }

    .sheet-actions {
        flex-direction: column;
    }

    .sheet-btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 420px) {
    .header-center h1 {
        font-size: 17px;
    }

    .product-quantity-row,
    .card-summary-line {
        align-items: flex-start;
    }

    .card-actions {
        flex-direction: column;
    }

    .sheet-item {
        grid-template-columns: 44px 1fr;
    }

    .sheet-item-total {
        grid-column: 2;
        justify-self: start;
    }
}

.status-flow-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.status-step-pill,
.delivery-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    background: rgba(92, 48, 32, .08);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, .12);
}

.status-step-pill.payment { background: rgba(146, 64, 14, .10); color: #92400e; }
.status-step-pill.preparing { background: rgba(120, 53, 15, .10); color: #78350f; }
.status-step-pill.delivery { background: rgba(30, 64, 175, .10); color: #1e40af; }
.status-step-pill.done { background: rgba(22, 101, 52, .10); color: #166534; }
.status-step-pill.cancelled { background: rgba(185, 28, 28, .10); color: #991b1b; }

.cell.status.payment { background: rgba(146, 64, 14, .12); color: #92400e; }
.cell.status.preparing { background: rgba(120, 53, 15, .12); color: #78350f; }
.cell.status.delivery { background: rgba(30, 64, 175, .12); color: #1e40af; }
.cell.status.delivered { background: rgba(22, 101, 52, .12); color: #166534; }
.cell.status.cancelled { background: rgba(185, 28, 28, .12); color: #991b1b; }

.delivery-selection-modal .selection-modal-content {
    width: min(94vw, 560px);
}

.delivery-modal-intro {
    color: var(--texto-medio);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
    font-weight: 600;
}

.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 3px;
}

.delivery-person-card {
    width: 100%;
    border: 1px solid rgba(92, 48, 32, .10);
    background: rgba(255, 255, 255, .72);
    color: var(--marrom);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.delivery-person-card:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 48, 32, .24);
    box-shadow: 0 12px 26px rgba(92, 48, 32, .12);
}

.delivery-person-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--marrom), var(--dourado));
    color: var(--creme);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.delivery-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.delivery-person-main {
    min-width: 0;
}

.delivery-person-name {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-person-meta {
    margin-top: 3px;
    color: var(--texto-medio);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delivery-person-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    background: rgba(22, 101, 52, .10);
    color: #166534;
    white-space: nowrap;
}

.delivery-person-status.busy {
    background: rgba(146, 64, 14, .10);
    color: #92400e;
}

.delivery-empty-state {
    padding: 22px;
    text-align: center;
    border-radius: 18px;
    background: rgba(92, 48, 32, .06);
    color: var(--texto-medio);
    font-weight: 800;
}

.sheet-btn.btn-delivery {
    background: #1e40af;
    color: white;
}

.sheet-btn.btn-preparing {
    background: #92400e;
    color: white;
}

.sheet-btn.btn-ready {
    background: #78350f;
    color: white;
}

@media (max-width: 520px) {
    .delivery-person-card {
        grid-template-columns: 42px 1fr;
    }

    .delivery-person-status {
        grid-column: 2;
        justify-self: start;
    }
}


.orders-section-search {
    position: fixed;
    top: 119px;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 8px 16px 10px;
    background: rgba(245, 234, 224, .74);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 48, 32, .08);
}

.orders-section-search[hidden] {
    display: none !important;
}

.orders-section-search-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(92, 48, 32, .12);
    box-shadow: 0 8px 22px rgba(92, 48, 32, .08);
    color: var(--marrom);
}

.orders-section-search-inner input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
    color: var(--texto-escuro);
    font-weight: 800;
    min-width: 0;
}

.orders-section-search-inner button {
    border: 0;
    background: rgba(92, 48, 32, .08);
    color: var(--marrom);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

body.has-orders-search .content-wrapper {
    padding-top: 76px;
}

@media (max-width: 640px) {
    .orders-section-search {
        top: 119px;
        padding-inline: 10px;
    }
    body.has-orders-search .content-wrapper {
        padding-top: 70px;
    }
}

/* Ajuste da pesquisa das seções: separada dos botões e sem container visível */
.orders-section-search {
    top: 129px !important;
    padding: 14px 16px 10px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.orders-section-search-inner {
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(92, 48, 32, .10) !important;
    box-shadow: 0 8px 22px rgba(92, 48, 32, .08) !important;
}

body.has-orders-search .content-wrapper {
    padding-top: 86px !important;
}

@media (max-width: 640px) {
    .orders-section-search {
        top: 129px !important;
        padding: 13px 10px 9px !important;
    }

    body.has-orders-search .content-wrapper {
        padding-top: 80px !important;
    }
}
