.order-detail-shell {
    border: 1px solid #dbe2ed;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(35, 52, 84, 0.06);
    font-size: 13px;
}

.order-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e7edf5;
    background: #ffffff;
}

.order-detail-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.order-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f49b3;
    background: #edf2ff;
    flex-shrink: 0;
    font-size: 18px;
}

.order-detail-title {
    color: #2a3852;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.order-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    color: #7c8aa2;
    font-size: 12px;
}

.order-detail-meta .badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.order-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.order-action-btn {
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
}

/* Timeline */
.order-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px 20px;
    overflow-x: auto;
}

.order-tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 80px;
}

.order-tl-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 2px solid #dce4ef;
    background: #f5f7fb;
    color: #b0baca;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.order-tl-step.done .order-tl-dot {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.order-tl-step.active .order-tl-dot {
    background: #fff;
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.order-tl-line {
    position: absolute;
    top: 17px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #dce4ef;
    z-index: 0;
}

.order-tl-step.done .order-tl-line {
    background: #10b981;
}

.order-tl-info {
    margin-top: 8px;
    text-align: center;
}

.order-tl-label {
    font-size: 12px;
    font-weight: 700;
    color: #b0baca;
    line-height: 1.3;
}

.order-tl-step.done .order-tl-label,
.order-tl-step.active .order-tl-label {
    color: #2e3e58;
}

.order-tl-time {
    font-size: 11px;
    color: #9aabb8;
    margin-top: 2px;
}

.order-tl-step.done .order-tl-time,
.order-tl-step.active .order-tl-time {
    color: #6f809a;
}

.order-detail-body {
    padding: 16px;
    background: #ffffff;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: start;
}

.order-section {
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
}

.order-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    color: #33445f;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #eef2f7;
}

.order-section-header i {
    color: #2f49b3;
    margin-right: 8px;
}

.order-info-list {
    padding: 12px 14px 14px;
    color: #4a5c78;
    font-size: 14px;
    line-height: 1.45;
}

.order-info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.order-info-row:last-child {
    margin-bottom: 0;
}

.order-info-row i {
    color: #8a98ad;
    margin-top: 3px;
    width: 15px;
    text-align: center;
}

.order-client-name {
    color: #2e3e58;
    font-weight: 700;
}

.order-delivery-alert {
    margin: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid #d7e3f8;
    background: #edf4ff;
    color: #40577c;
    font-size: 13px;
}

.order-items-table {
    margin-bottom: 0;
}

.order-items-table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid #e9eef6 !important;
    color: #8a98ad;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    background: #ffffff;
    white-space: nowrap;
}

.order-items-table tbody td {
    border-top: 1px solid #eef2f7 !important;
    color: #3c4b64;
    font-size: 13px;
    padding: 12px 14px;
    vertical-align: top;
}

.order-item-title {
    color: #2e3e58;
    font-weight: 700;
}

.order-item-note {
    color: #7f8ea4;
    font-size: 12px;
    margin-top: 3px;
}

.order-total-lines {
    padding: 12px 14px 14px;
    color: #60718a;
    font-size: 14px;
}

.order-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.order-total-line:last-child {
    margin-bottom: 0;
}

.order-total-line strong {
    color: #2e3e58;
    font-weight: 700;
    white-space: nowrap;
}

.order-total-line.is-grand {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #e9eef6;
    color: #2e3e58;
    font-size: 16px;
    font-weight: 700;
}

.order-total-line.is-grand strong {
    color: #2f49b3;
    font-size: 20px;
}

.order-payment-card {
    position: relative;
    padding: 14px;
}

.order-payment-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f1f5f9;
}

.order-payment-edit:hover,
.order-payment-edit:focus {
    color: #2f49b3;
    background: #e8eefb;
    text-decoration: none;
    box-shadow: none;
}

.order-payment-media {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding-right: 38px;
}

.order-payment-media img {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.order-payment-title {
    color: #2e3e58;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.order-payment-sub {
    color: #7f8ea4;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.3;
}

.order-footer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    padding: 14px 16px 16px;
    border-top: 1px solid #e7edf5;
    background: #ffffff;
}

.order-footer-actions-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.order-primary-btn {
    min-height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
}

.order-primary-btn .ladda-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.order-main-cta {
    width: 100%;
}

/* Modal compartilhado de bloqueio de estabelecimento */
.est-block-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(31, 41, 64, 0.18);
}

.est-block-modal .modal-header {
    align-items: center;
    background: #6E81DC;
    border-bottom: 1px solid #6E81DC;
    padding: 18px 22px;
}

.est-block-modal .modal-header .close {
    color: #ffffff;
    margin: 0;
    opacity: 0.85;
    padding: 8px;
}

.est-block-modal .modal-header .close:hover {
    opacity: 1;
}

.est-block-modal-heading {
    align-items: center;
    display: flex;
    gap: 12px;
}

.est-block-modal-heading small {
    color: rgba(255, 255, 255, 0.76);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.est-block-modal .modal-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.est-block-modal-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.est-block-modal .modal-body {
    padding: 22px;
}

.fatura-modal.est-block-modal .modal-body {
    padding: 22px;
}

.est-block-modal-alert {
    align-items: flex-start;
    background: #fffbea;
    border-left: 4px solid #d4a017;
    border-radius: 10px;
    color: #5a4200;
    display: flex;
    font-size: 13px;
    gap: 12px;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 14px 16px;
}

.est-block-modal-alert > i {
    color: #b07d00;
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

.est-block-modal-alert strong {
    color: #3d2d00;
}

.est-block-modal-label {
    color: #536179;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.est-block-modal-control {
    background-color: #f6f8fb;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    box-shadow: none;
    color: #2d374d;
    font-size: 13px;
}

.est-block-modal select.est-block-modal-control {
    height: 42px;
}

.est-block-modal textarea.est-block-modal-control {
    min-height: 96px;
    padding: 11px 13px;
    resize: vertical;
}

.est-block-modal-control:focus {
    background-color: #ffffff;
    border-color: #aeb9eb;
    box-shadow: 0 0 0 3px rgba(110, 129, 220, 0.12);
}

.est-block-modal-help {
    color: #8290a5;
    display: block;
    font-size: 11px;
    margin-top: 6px;
}

.est-block-modal .modal-footer {
    background: #fbfcfe;
    border-top: 1px solid #e7ecf3;
    gap: 8px;
    padding: 14px 22px;
}

@media (max-width: 991px) {
    .order-detail-top,
    .order-footer-actions {
        grid-template-columns: 1fr;
    }

    .order-detail-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-detail-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-footer-actions {
        display: block;
    }

    .order-footer-actions-left {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .order-action-btn,
    .order-primary-btn {
        width: 100%;
    }

    .order-footer-actions-left {
        align-items: stretch;
    }
}
