/**
 * Teslim öncesi görsel iyileştirmeler — kanban okunabilirliği + müşteri sipariş takibi
 */

/* --- Operasyon kanban: masa numarası --- */
body.cafe-admin-app.pos-touch-admin .ops-pro-kanban .ops-pro-ticket-table.pos-table-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.55rem;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    background: var(--mc-brand-dark, #0b4058);
    line-height: 1.1;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-kanban-col--new .ops-pro-ticket-table.pos-table-num {
    background: #dc2626;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-kanban-col--prep .ops-pro-ticket-table.pos-table-num {
    background: #ea580c;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-kanban-col--ready .ops-pro-ticket-table.pos-table-num {
    background: #16a34a;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-ticket-head {
    align-items: center;
    gap: 0.5rem;
}

body.cafe-admin-app.pos-touch-admin .pos-status-new,
body.cafe-admin-app.pos-touch-admin .pos-status-prep,
body.cafe-admin-app.pos-touch-admin .pos-status-ready {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
}

/* --- Müşteri menü: sipariş durumu --- */
body.cafe-menu-app .mc-order-status {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(11, 64, 88, 0.08), rgba(15, 140, 168, 0.12));
    border: 1px solid rgba(15, 140, 168, 0.22);
}

body.cafe-menu-app .mc-order-status.is-idle {
    opacity: 0.92;
}

body.cafe-menu-app .mc-order-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

body.cafe-menu-app .mc-order-status-head #statusTrackerTitle {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0b4058;
    line-height: 1.35;
}

body.cafe-menu-app .mc-order-status .status-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

body.cafe-menu-app .mc-order-status .status-badge.new {
    background: #fee2e2;
    color: #b91c1c;
}

body.cafe-menu-app .mc-order-status .status-badge.preparing {
    background: #ffedd5;
    color: #c2410c;
}

body.cafe-menu-app .mc-order-status .status-badge.ready {
    background: #dcfce7;
    color: #15803d;
}

body.cafe-menu-app .mc-order-status .status-badge.delivered {
    background: #dbeafe;
    color: #1d4ed8;
}

body.cafe-menu-app .mc-order-status-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

body.cafe-menu-app .mc-order-step {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0.25rem 0.15rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.55);
}

body.cafe-menu-app .mc-order-step.is-active {
    color: #0b4058;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(15, 140, 168, 0.35);
}

body.cafe-menu-app .mc-order-step.is-done {
    color: #0f8ca8;
    background: rgba(15, 140, 168, 0.12);
}

body.cafe-menu-app .mc-order-status-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    margin-bottom: 0.55rem;
}

body.cafe-menu-app .mc-order-status-bar #statusProgressBar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b4058, #0f8ca8);
    transition: width 0.45s ease;
}

body.cafe-menu-app .mc-order-status #statusTrackerText {
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 0.45rem;
}

body.cafe-menu-app .mc-order-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.cafe-menu-app .mc-order-status-meta span {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #475569;
}

/* Rapor dışa aktarma */
.ops-pro-export-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 140, 168, 0.15);
}

.ops-pro-export-links .btn {
    font-size: 0.8125rem;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-audio-hint {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(15, 140, 168, 0.12);
    border: 1px solid rgba(15, 140, 168, 0.25);
    color: #0b4058;
    font-size: 0.8125rem;
    font-weight: 600;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-audio-hint[hidden] {
    display: none !important;
}

body.cafe-admin-app.pos-touch-admin .ops-pro-audio-hint-dismiss {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}
