:root {
    --bg: #0b1118;
    --card: #15202a;
    --line: rgba(142, 196, 220, 0.22);
    --text: #f2f5f8;
    --muted: rgba(242, 245, 248, 0.48);
    --accent: #c9d36a;
    --accent-cyan: #8ec4dc;
    --gold: #c9d36a;
    --danger: #f87171;
    --btn-text: #0b1118;
    /* iOS notch / Dynamic Island / home indicator */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    /* Cadangan tetap agar tetap aman meski safe-area = 0 (beberapa WebView iOS) */
    --ios-top-extra: 28px;
    --topbar-inner-h: 64px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.hide { display: none !important; }

.screen {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Saat refresh dengan session: jangan flash layar login */
html.has-session #loginScreen { display: none !important; }
html.has-session #appScreen { display: block !important; }
html.has-session #bootOverlay { display: flex !important; }

.boot-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}
.boot-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(142, 196, 220, 0.22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: boot-spin .7s linear infinite;
}
.boot-text {
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .04em;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }

/* LOGIN */
#loginScreen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(24px + var(--safe-top) + var(--ios-top-extra)) 16px calc(24px + var(--safe-bottom));
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 380px;
    margin: auto 0;
    background: linear-gradient(160deg, #15202a, #0f1822);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.login-brand { text-align: center; margin-bottom: 22px; }
.login-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; }
.login-brand h1 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #f4f7e8 0%, #c9d36a 52%, #8ec4dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 12px 0 6px;
}

input[type="text"],
input[type="password"],
input[type="month"] {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    padding: 0 12px;
    font-size: 0.95rem;
    outline: none;
    color-scheme: dark;
}

/* Custom calendar icon — native indicator often invisible on dark Android Chrome */
.month-field {
    position: relative;
    width: min(100%, 200px);
    max-width: 100%;
    min-width: 0;
}

.month-field input[type="month"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 36px 0 10px;
    font-size: 0.86rem;
    position: relative;
    z-index: 1;
    /* Native month input sering overflow di Android Chrome */
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-field-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1;
    color: #c9d36a;
    text-shadow: 0 0 10px rgba(201, 211, 106, 0.45);
}

.month-field input[type="month"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

input:focus { border-color: rgba(201, 211, 106, 0.55); box-shadow: 0 0 0 3px rgba(201, 211, 106, 0.12); }

.month-field input[type="month"]:focus {
    border-color: rgba(201, 211, 106, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 211, 106, 0.12);
}

.month-field input[type="month"]:focus + .month-field-icon {
    color: #e8efc4;
}

.btn-primary {
    width: 100%;
    margin-top: 18px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #d5df8a 0%, #c9d36a 55%, #8ec4dc 100%);
    color: var(--btn-text);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-primary-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
    transform: translateX(-120%);
    pointer-events: none;
}

.btn-primary:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.btn-primary.is-pressed {
    transform: scale(0.96);
    animation: login-press .45s ease;
}

.btn-primary.is-pressed::after {
    animation: login-shine .55s ease;
}

.btn-primary.is-loading {
    pointer-events: none;
    filter: saturate(0.95);
}

.btn-primary.is-loading .btn-primary-icon {
    animation: login-spin .7s linear infinite;
}

.btn-primary:disabled {
    opacity: 0.85;
    cursor: wait;
}

@keyframes login-press {
    0% { transform: scale(1); }
    35% { transform: scale(0.94); }
    70% { transform: scale(0.97); }
    100% { transform: scale(0.96); }
}

@keyframes login-shine {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

.error-text {
    margin-top: 12px;
    color: var(--danger);
    font-size: 0.82rem;
    text-align: center;
}

/* APP */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Turunkan di bawah notch / status bar iOS + ruang ekstra untuk tap */
    padding: calc(12px + var(--safe-top) + var(--ios-top-extra)) 14px 12px;
    background: rgba(11, 17, 24, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    min-height: calc(var(--safe-top) + var(--ios-top-extra) + var(--topbar-inner-h));
}

/* Judul + nama tetap di tengah layar */
.topbar-brand {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: min(62vw, 260px);
    text-align: center;
    pointer-events: none;
}

.topbar-title {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #f4f7e8 0%, #c9d36a 52%, #8ec4dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.topbar-user {
    margin-top: 3px;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Download di kiri (area kotak merah) */
.topbar-actions--left {
    left: 14px;
    justify-content: flex-start;
}

/* Logout di kanan */
.topbar-actions--right {
    right: 14px;
    justify-content: flex-end;
}

.btn-ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 10px 0;
    max-width: 720px;
    margin: 0 auto;
    position: sticky;
    /* Ikuti tinggi topbar + safe-area agar tidak ketutup notch */
    top: calc(var(--safe-top) + var(--ios-top-extra) + var(--topbar-inner-h));
    z-index: 15;
    background: linear-gradient(180deg, rgba(11,17,24,.98) 70%, rgba(11,17,24,.85));
}

.tab-btn {
    border: 1px solid rgba(142, 196, 220, 0.18);
    background: rgba(21, 32, 42, 0.95);
    color: var(--muted);
    border-radius: 12px;
    min-height: 46px;
    padding: 8px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}

.tab-btn i { font-size: 0.9rem; }

.tab-btn.is-active {
    color: var(--btn-text);
    border-color: transparent;
    background: linear-gradient(135deg, #d5df8a 0%, #c9d36a 55%, #8ec4dc 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.tab-btn[data-tab="shift"].is-active {
    color: var(--btn-text);
    background: linear-gradient(135deg, #8ec4dc 0%, #c9d36a 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.tab-btn[data-tab="break"].is-active {
    color: #0b1118;
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.tab-btn:active { transform: scale(0.98); }

.tab-panel { animation: panel-in .18s ease; }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.page {
    padding: 12px 12px calc(28px + var(--safe-bottom));
    max-width: 720px;
    margin: 0 auto;
}

.staff-card--compact {
    margin-bottom: 12px;
}

.toolbar { margin-bottom: 12px; }
.field span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.card {
    background: linear-gradient(160deg, #15202a, #101820);
    border: 1px solid rgba(142, 196, 220, 0.22);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.clock-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(142, 196, 220, 0.28);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(201, 211, 106, 0.12) 0%, transparent 48%),
        radial-gradient(ellipse at 88% 100%, rgba(142, 196, 220, 0.12) 0%, transparent 46%),
        linear-gradient(165deg, #15202a 0%, #0f1822 48%, #0b1118 100%);
    min-height: 340px;
    padding: 22px 18px 24px;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 18px 40px rgba(0, 0, 0, 0.45);
}

.clock-card-glow {
    position: absolute;
    inset: auto -20% -40% -20%;
    height: 55%;
    background: radial-gradient(circle, rgba(201, 211, 106, 0.12), transparent 70%);
    pointer-events: none;
}

.clock-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.clock-head-left { min-width: 0; flex: 1; }

.clock-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9d36a;
    margin-bottom: 10px;
}

.clock-shift-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #f2f5f8;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.clock-work-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 211, 106, 0.28);
    background: rgba(201, 211, 106, 0.10);
}

.clock-work-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 239, 196, 0.75);
}

.clock-work-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    font-weight: 800;
    color: #e8efc4;
}

.clock-date-pill {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    min-width: 84px;
}

.clock-date-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.clock-date {
    font-size: 0.78rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1.3;
}

.clock-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 0 0 20px;
    background: linear-gradient(90deg, transparent, rgba(201, 211, 106, 0.45), rgba(142, 196, 220, 0.40), transparent);
}

.btn-clock-mobile {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid rgba(142, 196, 220, 0.28);
    border-radius: 16px;
    padding: 18px 16px;
    min-height: 64px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #0b1118;
    background: linear-gradient(135deg, #d5df8a 0%, #c9d36a 45%, #8ec4dc 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-clock-mobile:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

.btn-clock-mobile.is-done {
    background: linear-gradient(135deg, #34d399 0%, #059669 55%, #047857 100%);
    color: #ecfdf5;
    border-color: rgba(167, 243, 208, 0.35);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
    opacity: 1;
}

.btn-clock-mobile.is-locked {
    background: linear-gradient(135deg, #243444, #182430);
    color: #e8efc4;
    border-color: rgba(201, 211, 106, 0.28);
    box-shadow: none;
    opacity: 1;
}

.clock-meta {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.28);
}

.clock-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.clock-meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.clock-meta-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    font-weight: 800;
    color: #e2e8f0;
    text-align: right;
}

.clock-meta-value.is-ok { color: #6ee7b7; }
.clock-meta-value.is-wait { color: #fcd34d; }
.clock-meta-value.is-muted { color: rgba(148, 163, 184, 0.85); }

.clock-status {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    min-height: 1.4em;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.45;
}

.clock-status.is-ok { color: #6ee7b7; }
.clock-status.is-warn { color: #fcd34d; }
.clock-status.is-info { color: #7dd3fc; }

/* legacy unused */
.clock-shift { display: none; }

.staff-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0b1118;
    background: linear-gradient(135deg, #d5df8a, #8ec4dc);
    overflow: hidden;
    border: 2px solid rgba(142, 196, 220, 0.35);
}

.avatar img,
.avatar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.25;
    word-break: break-word;
}

.role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(201, 211, 106, 0.14);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.stat-box {
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 8px;
    text-align: center;
}

.stat-periode {
    border-style: solid;
    border-color: rgba(142, 196, 220, 0.35);
    background: rgba(24, 48, 62, 0.45);
}

.stat-half {
    border-style: solid;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(66, 32, 6, 0.4);
}

.stat-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-num { font-size: 1.35rem; font-weight: 900; }
.stat-unit { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.summary-card {
    border-radius: 14px;
    border: 1.5px dashed rgba(148, 163, 184, 0.38);
    background: rgba(15, 23, 42, 0.9);
    padding: 14px;
}

.summary-half {
    border-style: solid;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(36, 24, 10, 0.9);
}

.summary-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-dates {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.3;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.legend-item {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.legend-item.pagi { color: #93c5fd; border-color: rgba(96, 165, 250, 0.5); }
.legend-item.malam { color: #fdba74; border-color: rgba(251, 146, 60, 0.5); }
.legend-item.siang { color: #d8b4fe; border-color: rgba(192, 132, 252, 0.5); }
.legend-item.sore { color: #fde68a; border-color: rgba(217, 119, 6, 0.5); }
.legend-item.half { color: #fef08a; border-color: rgba(250, 204, 21, 0.5); }
.legend-item.off { color: #cbd5e1; border-style: dashed; }
.legend-item.cuti { color: #86efac; border-color: rgba(74, 222, 128, 0.5); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

@media (min-width: 640px) {
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .calendar-grid { gap: 6px; }
}

.cal-weekday {
    text-align: center;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(242, 245, 248, 0.55);
    padding: 4px 0 2px;
}

.cal-weekday.is-weekend {
    color: #c9d36a;
}

.day-card {
    border-radius: 10px;
    padding: 6px 3px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 68px;
    box-sizing: border-box;
}

.day-card--empty {
    min-height: 68px;
    border: 1px solid transparent;
    background: transparent !important;
    pointer-events: none;
}

.day-card.is-today {
    box-shadow: 0 0 0 1.5px #c9d36a, 0 0 12px rgba(201, 211, 106, 0.25);
    gap: 2px;
}

.day-card .today-tag {
    font-size: 0.42rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #0b1118;
    background: linear-gradient(135deg, #e8efc4 0%, #c9d36a 100%);
    border-radius: 999px;
    padding: 2px 5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.day-card .tgl {
    display: none;
}

.day-card .num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-top: 2px;
}

.day-card .label {
    width: 100%;
    text-align: center;
    border-radius: 6px;
    padding: 3px 1px;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 420px) {
    .day-card {
        min-height: 78px;
        padding: 8px 4px 6px;
        gap: 5px;
    }
    .day-card.is-today { gap: 3px; }
    .day-card--empty { min-height: 78px; }
    .day-card .num { font-size: 1.1rem; }
    .day-card .label { font-size: 0.55rem; padding: 4px 2px; }
    .day-card .today-tag { font-size: 0.48rem; padding: 2px 6px; }
}

@media (min-width: 640px) {
    .day-card {
        min-height: 92px;
        padding: 10px 6px 8px;
        border-radius: 12px;
    }
    .day-card--empty { min-height: 92px; }
    .day-card .num { font-size: 1.25rem; }
    .day-card .label { font-size: 0.62rem; padding: 5px 3px; }
}

.empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(15, 24, 34, 0.96);
    border: 1px solid rgba(142, 196, 220, 0.35);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    max-width: calc(100vw - 24px);
}

/* PWA install actions */
.btn-install-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(201, 211, 106, 0.35);
    background: rgba(201, 211, 106, 0.10);
    color: #e8efc4;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-install-link.hide {
    display: none !important;
}

.install-actions {
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-actions-top {
    margin-top: 4px;
}

.install-actions.hide {
    display: none !important;
}

.install-actions-title {
    margin: 0 0 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.btn-install-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    color: #0b1118;
    background: linear-gradient(135deg, #d5df8a 0%, #c9d36a 55%, #8ec4dc 100%);
}

.install-platform-block {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-platform-block h3 {
    margin: 0 0 12px;
    color: #c9d36a;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ios-sheet.hide {
    display: none !important;
}

.ios-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.ios-sheet-panel {
    position: relative;
    width: min(480px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, #15202a 0%, #0b1118 40%);
    border: 1px solid rgba(142, 196, 220, 0.28);
    border-bottom: 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    animation: iosSheetUp 0.28s ease;
}

@keyframes iosSheetUp {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.ios-sheet-handle {
    width: 40px;
    height: 4px;
    margin: 4px auto 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
}

.ios-sheet-panel h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #c9d36a;
    font-weight: 800;
}

.ios-sheet-lead {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.45;
}

.ios-sheet-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-sheet-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ios-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0b1118;
    background: linear-gradient(135deg, #d5df8a, #8ec4dc);
}

.ios-share-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    margin: 0 2px;
    color: #5ac8fa;
}

.ios-sheet-warn {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 90, 90, 0.12);
    border: 1px solid rgba(255, 120, 120, 0.35);
    color: #ffb4b4;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ios-sheet-warn.hide {
    display: none !important;
}

.btn-copy-url,
.btn-close-sheet {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.btn-copy-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #0b1118;
    background: linear-gradient(135deg, #d5df8a 0%, #c9d36a 55%, #8ec4dc 100%);
}

.btn-close-sheet {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==================== ULTRA-LUXURIOUS VIBRANT LIVE BREAK MONITOR ==================== */
.break-live-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0b1320 0%, #152238 50%, #080f1a 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    border-radius: 22px;
    padding: 24px 22px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.break-live-card.is-active-break {
    background: linear-gradient(145deg, #062024 0%, #0d383e 50%, #04171a 100%);
    border-color: rgba(45, 212, 191, 0.75);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), 0 0 45px rgba(45, 212, 191, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.break-live-card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-25deg);
    animation: shimmer-sweep 7s infinite linear;
    pointer-events: none;
}

@keyframes shimmer-sweep {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; }
}

.break-live-card-bg {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.15) 60%, transparent 100%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(25px);
}

.is-active-break .break-live-card-bg {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, rgba(6, 182, 212, 0.15) 60%, transparent 100%);
}

.break-live-card-glow {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 75%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(22px);
}

.break-live-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.break-live-staff-wrap {
    display: flex;
    flex-direction: column;
}

.staff-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
    border: 1px solid rgba(252, 211, 77, 0.6);
    color: #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.break-live-staff-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #fde68a 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.35));
}

.break-live-staff-role {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fef08a;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.18);
}

.break-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.break-live-badge.badge-idle {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fef08a;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.break-live-badge.badge-active {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.65);
    color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.break-live-badge.badge-overtime {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(248, 113, 113, 0.65);
    color: #f87171;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.badge-active .live-pulse-dot {
    animation: live-pulse-active 1.2s infinite ease-in-out;
}

@keyframes live-pulse-active {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8); }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Futuristic Glass Frame Clock Display */
.break-live-timer-container {
    position: relative;
    z-index: 2;
    padding: 10px 0 16px;
}

.break-clock-frame {
    background: linear-gradient(180deg, rgba(11, 19, 32, 0.85) 0%, rgba(17, 28, 48, 0.95) 100%);
    border: 1.5px solid rgba(45, 212, 191, 0.45);
    border-radius: 18px;
    padding: 18px 16px 14px;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 25px rgba(45, 212, 191, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(45, 212, 191, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.is-active-break .break-clock-frame {
    border-color: rgba(45, 212, 191, 0.7);
    box-shadow: inset 0 0 28px rgba(45, 212, 191, 0.25), 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 35px rgba(45, 212, 191, 0.4);
}

.break-live-timer-digital {
    font-family: "SF Mono", "Segoe UI Mono", "Roboto Mono", Consolas, monospace;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #00f2fe;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.95), 0 0 40px rgba(45, 212, 191, 0.6), 0 0 60px rgba(0, 242, 254, 0.3);
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.break-live-timer-digital.is-overtime {
    color: #ff4b4b;
    text-shadow: 0 0 22px rgba(255, 75, 75, 0.95), 0 0 45px rgba(248, 113, 113, 0.6), 0 0 65px rgba(255, 75, 75, 0.3);
}

.break-clock-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 14px;
    background: rgba(8, 14, 26, 0.75);
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.2);
}

.break-clock-sub-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.is-active-break .break-clock-sub-pill .pill-dot {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.break-live-subtext {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #e0f2fe;
    text-transform: uppercase;
}

.meta-icon {
    color: #fbbf24;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

/* View-only hint — aksi izin hanya di dashboard */
.break-view-only-hint {
    position: relative;
    z-index: 2;
    margin: 10px 0 4px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(148, 163, 184, 0.85);
    line-height: 1.35;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.break-view-only-hint.is-warn-3min {
    color: #fde68a;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
    animation: breakHintPulse 1.4s ease-in-out infinite;
}

@keyframes breakHintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

/* Interactive Action Buttons for Break Session (unused — keep for safety) */
.break-action-container {
    position: relative;
    z-index: 2;
    margin: 14px 0 14px;
    text-align: center;
}

.btn-break-action {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-break-action.is-start {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: 1px solid #34d399;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4), 0 0 15px rgba(52, 211, 153, 0.3);
}

.btn-break-action.is-start:hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.55), 0 0 20px rgba(52, 211, 153, 0.45);
    transform: translateY(-1px);
}

.btn-break-action.is-finish {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: 1px solid #f87171;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45), 0 0 15px rgba(248, 113, 113, 0.35);
}

.btn-break-action.is-finish:hover {
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.6), 0 0 20px rgba(248, 113, 113, 0.5);
    transform: translateY(-1px);
}

.btn-break-action:active {
    transform: scale(0.96);
}

/* Footer Section */
.break-live-footer {
    position: relative;
    z-index: 2;
    padding-top: 14px;
}

.break-live-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.break-live-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
}

.meta-val {
    font-family: monospace, monospace;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.88rem;
}

.meta-tag {
    color: #fef08a;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.break-live-bar-track {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.break-live-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    transition: width 0.5s ease, background 0.3s ease;
}

.break-live-bar-fill.fill-active-cyan {
    background: linear-gradient(90deg, #00f2fe 0%, #2dd4bf 50%, #34d399 100%);
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.85);
}

.break-live-bar-fill.fill-overtime-red {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
}

/* Compact summary bar */
.break-compact-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0 18px;
    background: rgba(21, 32, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 10px 14px;
}

.break-summary-box {
    display: flex;
    flex-direction: column;
}

.sum-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.sum-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
}



.break-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.break-recent-header i { color: #fbbf24; }

.break-logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.break-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.break-log-item {
    position: relative;
    background: linear-gradient(160deg, #15202a, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.break-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.break-log-date-wrap {
    display: flex;
    flex-direction: column;
}

.break-notif-status {
    font-size: 0.68rem;
    font-weight: 650;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.35;
}

.break-toolbar-card {
    background: linear-gradient(135deg, rgba(17, 27, 39, 0.9), rgba(11, 18, 27, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 18px;
    padding: 14px 14px;
    margin: 18px 0 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 100%;
}

.break-toolbar-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    max-width: 100%;
    min-width: 0;
}

.break-month-field {
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
}

.break-month-field .month-field {
    width: min(100%, 180px);
    max-width: 100%;
}

.break-field-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fde68a;
}

.break-toolbar-row .btn-refresh-break {
    width: auto;
    flex: 0 0 auto;
    padding: 0 14px;
    height: 40px;
    white-space: nowrap;
}

.month-field input[type="month"] {
    background: rgba(8, 14, 24, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Toolbar Shift: input periode juga diperkecil */
.toolbar .month-field {
    width: min(100%, 200px);
}

@media (max-width: 420px) {
    .month-field,
    .break-month-field .month-field,
    .toolbar .month-field {
        width: min(100%, 160px);
    }

    .month-field input[type="month"] {
        height: 38px;
        font-size: 0.8rem;
        padding-right: 32px;
    }

    .month-field-icon {
        right: 8px;
        font-size: 0.88rem;
    }
}

.break-stats-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(245, 158, 11, 0.2);
}

.break-stats-summary-row--solo {
    padding-top: 0;
    border-top: 0;
}

.btn-refresh-break {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fef08a;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    transition: all 0.18s ease;
}

.btn-refresh-break:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.4));
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-refresh-break:active {
    transform: scale(0.97);
}

/* History Header & Toggle Button */
.break-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 22px 0 14px;
}

.break-history-title {
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.break-history-title i {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.btn-toggle-all {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.18);
    transition: all 0.18s ease;
}

.btn-toggle-all:active {
    transform: scale(0.94);
}

/* Grouped Date Accordion */
.break-logs-group-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.break-date-group {
    background: rgba(14, 23, 33, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.break-date-group.is-expanded {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.break-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(23, 35, 48, 0.95), rgba(15, 23, 32, 0.95));
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.break-group-header:hover {
    background: linear-gradient(135deg, rgba(32, 49, 66, 0.98), rgba(21, 32, 44, 0.98));
}

.break-group-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.break-group-chevron {
    font-size: 0.82rem;
    color: #fbbf24;
    transition: transform 0.25s ease;
}

.break-date-group.is-expanded .break-group-chevron {
    transform: rotate(180deg);
}

.break-group-date {
    font-size: 0.94rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.break-group-count-pill {
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.2);
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 2px 9px;
    border-radius: 12px;
}

.break-group-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.break-group-body {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 14px;
    background: rgba(9, 15, 22, 0.6);
    border-top: 1px dashed rgba(148, 163, 184, 0.14);
}

.break-date-group.is-expanded .break-group-body {
    display: flex;
}

/* Individual Log Item Card Matching User's Screenshot */
.break-log-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(19, 30, 42, 0.95), rgba(12, 19, 27, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.break-log-item-card:hover {
    border-color: rgba(52, 211, 153, 0.45);
    transform: translateY(-1px);
}

.break-log-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.break-log-date-title {
    font-size: 0.9rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.break-log-time-sub {
    font-family: monospace, monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.break-log-right {
    flex-shrink: 0;
}

/* Badge Pill matching Screenshot */
.break-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.break-badge-pill.badge-aman {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.break-badge-pill.badge-overtime {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid #f87171;
    color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.break-badge-pill.badge-ongoing {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* Empty State */
.break-empty-card {
    background: rgba(21, 32, 42, 0.6);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.break-empty-icon {
    font-size: 2.2rem;
    color: rgba(148, 163, 184, 0.3);
    margin-bottom: 10px;
}

.break-empty-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.break-empty-desc {
    font-size: 0.8rem;
    color: var(--muted);
}


