/* POS Schedule Panel — Restaurant hours sidebar + analog clock */
/* Extracted from ConfigModule.php inline CSS */
/* Uses --pos-status-bg CSS variable set by PHP for dynamic status color */
#pos-schedule-panel {
    position: fixed; top: 180px; right: -300px; width: 300px;
    background: rgba(255, 255, 255, 0.98); z-index: 10001;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px 0 0 12px; border: 1px solid rgba(0,0,0,0.08);
    box-shadow: -10px 0 35px rgba(0,0,0,0.1); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: visible;
}
#pos-schedule-panel .panel-content { padding: 12px 20px; height: fit-content; overflow: visible; }
#pos-schedule-panel .panel-content::-webkit-scrollbar { display: none; }
#pos-schedule-panel.open { right: 0; box-shadow: -15px 0 50px rgba(0,0,0,0.15); }
#pos-schedule-panel .panel-tab {
    position: absolute; left: -44px; top: 40px; width: 44px; height: 120px;
    background: var(--pos-status-bg, rgba(71, 85, 105, 0.95)) !important;
    color: white !important; display: flex !important;
    align-items: center; justify-content: center;
    writing-mode: vertical-rl; text-transform: uppercase; font-size: 11px; font-weight: 800;
    letter-spacing: 1.5px; cursor: pointer; border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    visibility: visible !important; opacity: 1 !important;
    transition: all 0.3s ease;
}
#pos-schedule-panel .panel-tab:hover { width: 48px; left: -48px; }
#pos-schedule-panel h4 {
    margin: 0 0 15px; font-size: 16px; font-weight: 700;
    border-bottom: 2px solid var(--pos-status-bg, rgba(71, 85, 105, 0.95));
    padding-bottom: 10px; color: #1e293b;
}
#pos-schedule-panel .current-time {
    font-size: 11px; color: #64748b; margin-bottom: 15px;
    font-weight: 600; background: #f8fafc; padding: 12px; border-radius: 12px;
    display: flex; align-items: center; gap: 15px; border: 1px solid #f1f5f9;
}
.analog-clock {
    width: 60px; height: 60px; position: relative;
    background: #fff; border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid #fff; flex-shrink: 0;
}
.clock-face {
    width: 100%; height: 100%; position: relative; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.time-slice {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(transparent 0deg, transparent 360deg);
    opacity: 0.25; transform: rotate(-90deg);
    pointer-events: none;
}
.hand {
    position: absolute; bottom: 50%; left: 50%; transform-origin: bottom center;
    border-top-left-radius: 50%; border-top-right-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.1, 2.7, 0.58, 1);
}
.hand.hour { width: 3px; height: 15px; background: #1e293b; z-index: 3; }
.hand.minute { width: 2px; height: 22px; background: #475569; z-index: 2; }
.hand.second { width: 1px; height: 24px; background: var(--pos-status-bg, rgba(71, 85, 105, 0.95)); z-index: 4; transition: transform 0.2s linear; }
.center-dot {
    width: 6px; height: 6px; background: #1e293b; border-radius: 50%;
    z-index: 5; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#pos-schedule-panel .digital-time { flex: 1; }
#pos-schedule-panel .day-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 13px; border-bottom: 1px solid #f1f5f9; color: #334155;
}
#pos-schedule-panel .day-row.today {
    color: var(--pos-status-bg, rgba(71, 85, 105, 0.95)); font-weight: 700;
    background: color-mix(in srgb, var(--pos-status-bg, rgba(71, 85, 105, 0.95)) 8%, white);
    margin: 0 -15px; padding: 6px 15px; border-radius: 8px;
    border-bottom: none;
}
#pos-schedule-panel .day-row .times { text-align: right; font-variant-numeric: tabular-nums; }
#pos-schedule-panel .day-row .closed { color: #94a3b8; font-weight: 500; }
#pos-schedule-panel { -ms-overflow-style: none; scrollbar-width: none; }
@media (max-width: 768px) {
    #pos-schedule-panel { top: 110px !important; }
    #pos-schedule-panel .panel-tab {
        width: 35px !important; height: 96px !important; left: -35px !important;
        font-size: 9px !important; letter-spacing: 1px !important;
    }
    #pos-schedule-panel .panel-tab:hover { width: 38px !important; left: -38px !important; }
}
.pos-product-alert {
    background: #fffbeb; color: #92400e; padding: 16px;
    border-radius: 10px; margin-bottom: 25px; font-weight: 600;
    border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    font-size: 14px;
}
.pos-product-alert.closed {
    background: #fef2f2; color: #991b1b; border-color: #fecaca; border-left-color: #ef4444;
}
