:root {
    --navy: #0d315e;
    --navy-dark: #08264c;
    --blue: #1677ef;
    --blue-soft: #e8f3ff;
    --green: #0e9652;
    --green-soft: #e8f9ef;
    --red: #d92d49;
    --red-soft: #fff0f2;
    --orange: #ec8b00;
    --ink: #101828;
    --muted: #63708a;
    --line: #e4eaf2;
    --surface: #ffffff;
    --page: #f2f5f9;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(circle at 8% 8%, #fbe8ed 0, transparent 30%), radial-gradient(circle at 92% 90%, #e4fae8 0, transparent 28%), #f8f9fc;
}
.login-card {
    width: min(1020px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 46% 54%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(16, 35, 75, .12);
}
.login-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 58px 48px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #1822ba, #293ae3);
}
.login-brand-panel:after { content: ""; position: absolute; right: -150px; bottom: -180px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.decor { position: absolute; border-radius: 50%; }
.decor-one { width: 220px; height: 220px; left: -95px; top: -70px; background: #bd285c; }
.decor-two { width: 165px; height: 165px; right: -75px; bottom: 62px; background: rgba(20, 165, 145, .64); }
.login-logo-wrap { position: relative; z-index: 1; width: 190px; height: 190px; display: flex; align-items: center; padding: 24px; margin-bottom: 32px; background: #fff; border-radius: 50%; }
.login-logo-wrap img { width: 100%; height: auto; }
.eyebrow { position: relative; z-index: 1; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.eyebrow.blue { color: #253bcb; margin-bottom: 5px; }
.login-brand-panel h1 { position: relative; z-index: 1; margin: 0; font-size: 29px; line-height: 1.2; font-weight: 800; }
.brand-subtitle { position: relative; z-index: 1; max-width: 340px; margin: 18px 0 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.secure-copy { position: absolute; z-index: 1; left: 46px; right: 46px; bottom: 24px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); text-align: left; font-size: 13px; color: rgba(255,255,255,.78); }
.secure-copy i { margin-right: 8px; color: #6ef7a0; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 68px 70px 30px; }
.login-heading { display: flex; align-items: center; gap: 16px; }
.login-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: #ef233c; border-radius: 15px; box-shadow: 0 10px 24px rgba(239, 35, 60, .24); }
.login-heading h2 { margin: 0; color: #07194d; font-size: 26px; font-weight: 800; }
.login-help { margin: 24px 0 30px; color: #7d86a1; line-height: 1.6; }
.login-form-panel label { color: #111c40; font-size: 13px; font-weight: 700; }
.login-input-wrap { position: relative; }
.login-input-wrap i { position: absolute; z-index: 2; left: 18px; top: 50%; transform: translateY(-50%); color: #263bd5; }
.login-input-wrap .form-control { height: 54px; padding-left: 48px; border: 1px solid #ced6e5; border-radius: 13px; color: #0f1c42; box-shadow: none; }
.login-input-wrap .form-control:focus { border: 2px solid #2d42e5; box-shadow: 0 0 0 5px rgba(45, 66, 229, .08); }
.login-submit { width: 100%; height: 54px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 20px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(100deg, #1724c7, #3044ed); font-size: 13px; font-weight: 800; box-shadow: 0 15px 28px rgba(37, 56, 210, .23); }
.login-submit:hover, .login-submit:focus { color: #fff; transform: translateY(-1px); }
.login-submit i { color: #5bffa0; }
.login-alert { margin: -12px 0 20px; border-radius: 12px; font-size: 13px; }
.login-footer { margin: auto 0 0; padding-top: 38px; text-align: center; color: #a5adc0; font-size: 11px; }

/* User mobile app */
.packaging-user-body { min-height: 100vh; background: #dfe6ee; }
.mobile-app-shell { width: 100%; max-width: 540px; min-height: 100vh; margin: 0 auto; padding-bottom: 88px; overflow: hidden; background: var(--page); box-shadow: 0 0 42px rgba(8, 31, 64, .13); }
.user-hero { position: relative; padding: max(22px, env(safe-area-inset-top)) 26px 92px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(40, 106, 178, .35), transparent 48%), linear-gradient(145deg, var(--navy-dark), #103b70); }
.hero-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #9dc6ee; }
.hero-logout { width: 36px; height: 36px; display: grid; place-items: center; color: #d8e8f8; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.07); }
.hero-logout:hover { color: #fff; text-decoration: none; }
.user-hero h1 { max-width: 390px; margin: 0 0 12px; font-size: clamp(30px, 8vw, 40px); line-height: .98; font-weight: 800; letter-spacing: -.03em; }
.hero-date { margin: 0 0 22px; color: #cfdef0; font-size: 16px; }
.hero-date i { margin-right: 9px; }
.user-hero h2 { margin: 0 0 4px; font-size: 21px; font-weight: 750; }
.hero-message { margin: 0; color: #c6d7eb; }
.user-content { position: relative; z-index: 2; margin-top: -66px; padding: 0 16px 24px; }
.progress-card { padding: 17px 18px; margin-bottom: 12px; border: 1px solid rgba(15, 44, 78, .08); border-radius: 19px; background: #fff; box-shadow: 0 9px 23px rgba(11, 35, 68, .09); }
.progress-card > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 17px; }
.progress-value { color: #086bd5; }
.modern-progress { height: 12px; overflow: hidden; border-radius: 99px; background: #e5eaf1; }
.modern-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2787f4, #3c94f5); transition: width .35s ease; }
.task-list { display: grid; gap: 10px; }
.task-card { display: grid; grid-template-columns: 54px minmax(105px, 1fr) minmax(142px, auto); column-gap: 10px; align-items: center; min-height: 106px; padding: 14px; border: 1px solid #e6ebf2; border-radius: 17px; background: #fff; box-shadow: 0 5px 16px rgba(18, 42, 75, .055); transition: .2s ease; }
.task-card.status-ontime { border-color: #43ba7a; background: linear-gradient(100deg, #f3fff8, #fff); }
.task-card.status-late { border-color: #f3a8b3; background: linear-gradient(100deg, #fff4f5, #fff); }
.task-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #52627d; background: #f0f4f8; border-radius: 15px; font-size: 22px; }
.status-ontime .task-icon { color: var(--green); background: #dcf7e8; }
.status-late .task-icon { color: #e69a00; background: #fff0da; }
.task-info h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.18; font-weight: 750; }
.task-info p { margin: 0; color: var(--muted); font-size: 14px; }
.task-result { display: flex; flex-direction: column; align-items: flex-start; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 5px 10px; border-radius: 99px; white-space: nowrap; font-size: 12px; }
.status-pill i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; }
.status-pill.pending { color: #46536c; background: #edf1f5; }
.status-pill.pending i { color: #52627a; background: transparent; font-size: 14px; }
.status-pill.ontime { color: #087c3e; background: #d9f6e5; }
.status-pill.ontime i { background: var(--green); }
.status-pill.late { color: #c41f3b; background: #ffdbe1; }
.status-pill.late i { background: var(--red); }
.finish-time { color: var(--green); font-size: 26px; line-height: 1.05; }
.status-late .finish-time { color: #cd2d49; }
.task-result small { color: var(--green); font-size: 11px; }
.status-late .task-result small { color: #c7243f; }
.task-action { grid-column: 3; }
.btn-complete { width: 100%; min-height: 43px; padding: 8px 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #1671e5, #1688f5); font-size: 13px; font-weight: 750; box-shadow: 0 8px 16px rgba(22, 119, 239, .2); }
.btn-complete:disabled { opacity: .65; }
.btn-reason { grid-column: 2 / 4; width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #f0d2d7; border-radius: 11px; color: #29354b; background: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.task-card.status-late .task-action { grid-column: 2 / 4; margin-top: 8px; }
.task-card.status-late { grid-template-rows: auto auto; }
.empty-state { padding: 42px 24px; border-radius: 19px; background: #fff; text-align: center; box-shadow: 0 8px 20px rgba(10, 34, 64, .08); }
.empty-state > i { margin-bottom: 15px; color: #8fa2ba; font-size: 34px; }
.empty-state h3 { margin: 0 0 8px; font-size: 19px; }
.empty-state p { margin: 0; color: var(--muted); }
.bottom-navigation { position: fixed; z-index: 30; left: 50%; bottom: 0; width: 100%; max-width: 540px; min-height: 74px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 16px max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid #e2e7ee; background: rgba(255,255,255,.97); box-shadow: 0 -8px 20px rgba(20, 43, 74, .05); }
.bottom-navigation__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #53627b; font-size: 12px; }
.bottom-navigation__item i { font-size: 22px; }
.bottom-navigation__item:hover { color: var(--blue); text-decoration: none; }
.bottom-navigation__item.is-active { color: var(--blue); font-weight: 700; }
.history-hero { padding-bottom: 88px; }
.history-hero h1 { margin-bottom: 8px; }
.history-content { margin-top: -54px; }
.history-report-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 11px; padding: 14px; border: 1px solid #e2e9f1; border-radius: 17px; background: #fff; box-shadow: 0 7px 19px rgba(15,39,72,.07); }
.history-report-controls form label { display: block; margin: 0 0 6px; color: #344054; font-size: 11px; font-weight: 750; }
.history-report-controls form > div { display: flex; gap: 7px; }
.history-report-controls input { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #d8e1ec; border-radius: 10px; color: #24324a; background: #fff; }
.history-report-controls form button { height: 42px; padding: 0 12px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 750; white-space: nowrap; }
.history-export-actions { display: flex; align-items: flex-end; gap: 7px; }
.history-export-button { min-width: 66px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 750; }
.history-export-button:hover { color: #fff; text-decoration: none; }
.history-export-button.excel { background: #12844c; }.history-export-button.pdf { background: #d93c4f; }
.history-matrix-panel { overflow: hidden; margin-bottom: 15px; border: 1px solid #e2e9f1; border-radius: 17px; background: #fff; box-shadow: 0 7px 19px rgba(15,39,72,.07); }
.history-matrix-heading { padding: 15px; border-bottom: 1px solid #edf1f5; }
.history-matrix-heading h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.history-matrix-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.history-matrix-scroll { overflow-x: auto; padding: 12px; scrollbar-width: thin; }
.user-daily-section-table { min-width: 740px; }
.history-list-heading { padding: 4px 3px 9px; }
.history-list-heading h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.history-list-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.history-card { overflow: hidden; margin-bottom: 11px; border: 1px solid #e6ebf2; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(15, 39, 72, .06); }
.history-summary { min-height: 106px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 17px; }
.history-summary h2 { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.history-summary p, .history-result span { margin: 0; color: var(--muted); font-size: 13px; }
.history-result { display: flex; flex-direction: column; }
.history-result strong { font-size: 23px; color: #667085; }
.history-result strong.good { color: var(--green); }
.history-result strong.warn { color: #d17a00; }
.history-toggle { min-height: 45px; padding: 0 14px; border: 0; border-radius: 11px; color: #096bcd; background: var(--blue-soft); font-weight: 700; }
.history-toggle i { margin-left: 5px; font-size: 12px; transition: transform .2s; }
.history-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.history-detail { padding: 0 14px 15px; }
.lock-notice { display: flex; gap: 12px; margin: 0 0 10px; padding: 13px; color: #193a65; border-radius: 12px; background: #e8f3ff; }
.lock-notice > i { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #cfe2f7; }
.lock-notice p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; }
.history-detail-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 13px 5px; border-bottom: 1px solid #edf0f4; }
.history-detail-row:last-child { border-bottom: 0; }
.history-detail-row > div:first-child, .detail-status { display: flex; flex-direction: column; }
.history-detail-row small { color: var(--muted); }
.detail-status { text-align: right; }
.detail-status.ontime strong { color: var(--green); }
.detail-status.late strong { color: #d36a00; }
.detail-status.pending strong { color: #6f7c91; }
.detail-note { grid-column: 1 / 3; margin: 0; padding: 9px 11px; border-radius: 9px; color: #6f3c00; background: #fff5e5; font-size: 12px; }
.portal-hero { padding-bottom: 78px; }
.portal-brand-row { display: flex; align-items: center; gap: 16px; }
.portal-brand-row img { width: 74px; height: 74px; flex: 0 0 74px; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: 0 9px 22px rgba(0,0,0,.13); }
.portal-brand-row h1 { margin: 0 0 5px; font-size: 31px; line-height: 1; }
.portal-brand-row p { margin: 0; color: #c7d9eb; }
.portal-content { margin-top: -46px; }
.portal-intro { margin: 0 5px 12px; color: #52627a; font-size: 14px; }
.report-menu-list { display: grid; gap: 11px; }
.report-menu-card { min-height: 110px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid #e1e8f0; border-radius: 18px; color: #14233d; background: #fff; box-shadow: 0 7px 20px rgba(13,49,94,.065); }
.report-menu-card:hover { color: #14233d; text-decoration: none; }
.report-menu-card.is-active { border-color: #70aef0; box-shadow: 0 10px 24px rgba(22,119,239,.13); }
.report-menu-card.is-coming { opacity: .72; }
.report-menu-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; font-size: 20px; }
.report-menu-icon.blue { color: #1677ef; background: #e7f2ff; }.report-menu-icon.green { color: #0d9452; background: #e4f7ed; }.report-menu-icon.orange { color: #d27b00; background: #fff1dc; }
.report-menu-card > span:nth-child(2) { display: flex; flex-direction: column; }
.report-menu-card small { margin-bottom: 4px; color: #1677ef; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.report-menu-card.is-coming small { color: #7b8798; }
.report-menu-card strong { font-size: 15px; line-height: 1.28; }
.report-menu-card em { margin-top: 5px; color: #6f7c91; font-size: 12px; font-style: normal; }
.report-menu-card > i { color: #7f91a9; }
.install-app-button { width: 100%; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(120deg, #08794b, #0aa766); text-align: left; box-shadow: 0 10px 23px rgba(8,121,75,.2); }
.install-app-button[hidden] { display: none; }
.install-app-button > i { font-size: 20px; text-align: center; }.install-app-button span { display: flex; flex-direction: column; }.install-app-button small { color: rgba(255,255,255,.78); }

/* Admin */
.packaging-admin-body { min-height: 100vh; background: #f3f6fa; }
.admin-sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; padding: 25px 16px; color: #fff; background: linear-gradient(180deg, #0a2c57, #071f40); }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; font-size: 20px; font-weight: 800; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #fff; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.admin-menu { display: grid; gap: 6px; }
.admin-menu a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 13px; border-radius: 11px; color: #bed0e6; font-size: 14px; }
.admin-menu a i { width: 18px; text-align: center; }
.admin-menu a:hover, .admin-menu a.is-active { color: #fff; text-decoration: none; background: rgba(39, 133, 236, .24); }
.admin-menu a.is-active { box-shadow: inset 3px 0 #5badff; }
.admin-logout { margin-top: auto; padding: 12px 13px; color: #c8d7e9; }
.admin-logout:hover { color: #fff; text-decoration: none; }
.admin-logout i { margin-right: 10px; }
.admin-main { min-height: 100vh; margin-left: 250px; }
.admin-topbar { height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid #e3e9f1; background: #fff; }
.admin-topbar div { display: flex; flex-direction: column; }
.admin-topbar small { color: #77849a; }
.admin-menu-toggle { display: none; border: 0; background: none; color: var(--navy); font-size: 21px; }
.admin-content { padding: 28px; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-page-heading h1 { margin: 0 0 4px; font-size: 27px; font-weight: 800; }
.admin-page-heading p { margin: 0; color: #6a778d; }
.section-kicker { margin-bottom: 5px !important; color: #247bd8 !important; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.admin-primary-btn { padding: 10px 17px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 700; }
.admin-primary-btn:hover { color: #fff; background: #0968ce; }
.export-btn { padding: 10px 17px; border-radius: 9px; color: #fff; background: #15854d; font-weight: 700; }
.export-btn:hover { color: #fff; background: #0f6e3f; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 19px; border: 1px solid #e4eaf2; border-radius: 15px; background: #fff; box-shadow: 0 5px 15px rgba(14, 37, 68, .04); }
.stat-card > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 14px; font-size: 20px; }
.stat-card div { display: flex; flex-direction: column; }
.stat-card small { color: #69778c; }
.stat-card strong { font-size: 25px; }
.stat-card.blue > span { color: #176ed0; background: #e5f1ff; }.stat-card.green > span { color: #0b8c4a; background: #e3f8ed; }.stat-card.gray > span { color: #667085; background: #edf0f4; }.stat-card.teal > span { color: #008a8c; background: #e0f8f6; }.stat-card.red > span { color: #cf304a; background: #ffeaed; }.stat-card.purple > span { color: #7257d8; background: #eeeaff; }
.admin-panel { overflow: hidden; border: 1px solid #e3e9f1; border-radius: 15px; background: #fff; box-shadow: 0 5px 16px rgba(14, 37, 68, .035); }
.admin-panel-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 19px; border-bottom: 1px solid #edf1f5; }
.admin-panel-header h2 { margin: 0 0 2px; font-size: 17px; font-weight: 750; }
.admin-panel-header p { margin: 0; color: #7b8799; font-size: 13px; }
.admin-panel-header a { color: var(--blue); font-size: 13px; font-weight: 700; }
.admin-table { margin: 0; }
.admin-table thead th { padding: 12px 16px; border: 0; background: #f7f9fc; color: #63708a; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tbody td { padding: 13px 16px; vertical-align: middle; border-color: #edf1f5; color: #263248; font-size: 13px; }
.admin-table td > small { display: block; color: #8993a4; }
.admin-status { display: inline-block; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-status.complete { color: #087c43; background: #dcf6e7; }
.admin-status.incomplete { color: #b26700; background: #fff1d8; }
.admin-status.not_started { color: #657085; background: #edf0f4; }
.admin-status.unassigned { color: #b42318; background: #fee4e2; }
.empty-table { padding: 34px !important; text-align: center; color: #8490a3 !important; }
.filter-panel { margin-bottom: 16px; padding: 17px; }
.admin-filter-grid { display: grid; grid-template-columns: 180px minmax(210px, 1fr) 180px auto; align-items: end; gap: 12px; }
.admin-filter-grid.report-filter { grid-template-columns: minmax(250px, 1.35fr) 170px minmax(230px, 1fr) auto; }
.admin-filter-grid.monitor-filter { grid-template-columns: minmax(240px, 1.4fr) 160px minmax(180px, 1fr) 170px auto; }
.admin-filter-grid .form-group { margin: 0; }
.admin-filter-grid label, .form-panel label { color: #344054; font-size: 12px; font-weight: 700; }
.admin-filter-grid .form-control, .form-panel .form-control { height: 42px; border-color: #dbe2ec; border-radius: 9px; box-shadow: none; }
.admin-filter-grid .form-control:focus, .form-panel .form-control:focus { border-color: #5599e8; box-shadow: 0 0 0 3px rgba(22, 119, 239, .09); }
.monitor-detail-row > td { padding: 0 !important; background: #f8faff; }
.monitor-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.monitor-detail-item { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px; border: 1px solid #e4eaf2; border-radius: 10px; background: #fff; }
.monitor-detail-item > div { display: flex; flex-direction: column; }
.monitor-detail-item > div:nth-child(2) { text-align: right; }
.monitor-detail-item small { color: #7b8798; }
.monitor-detail-item p { grid-column: 1 / 3; margin: 0; padding: 7px; border-radius: 7px; background: #fff5e4; font-size: 12px; }
.admin-two-column { display: grid; grid-template-columns: minmax(290px, 380px) minmax(0, 1fr); align-items: start; gap: 16px; }
.form-panel { padding-bottom: 18px; }
.form-panel form { padding: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.input-icon { position: relative; }.input-icon i { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); color: #718096; }.input-icon .form-control { padding-left: 38px; }
.required { color: var(--red); }
.table-actions { white-space: nowrap; }.inline-form { display: inline-block; margin-left: 4px; }
.admin-backdrop { display: none; }
.module-coming-notice { display: flex; align-items: center; gap: 14px; margin: 18px; padding: 18px; border: 1px solid #f1d29f; border-radius: 12px; color: #754600; background: #fff7e8; }
.module-coming-notice > i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 12px; background: #ffe8bd; }
.module-coming-notice p { margin: 3px 0 0; color: #8b641f; font-size: 13px; }
.report-section { margin-bottom: 16px; }
.result-percentage { color: #c26c00; font-size: 16px; }.result-percentage.is-perfect { color: #0a8a49; }
.daily-result-wrap { padding: 14px; }
.daily-section-table { min-width: 760px; margin: 0; border-collapse: collapse; }
.daily-section-table th, .daily-section-table td { padding: 9px 11px; border: 1px solid #9aa8bb !important; vertical-align: middle; }
.daily-section-table thead th { color: #102a4c; background: #eef4fb; text-align: center; font-size: 12px; white-space: nowrap; }
.daily-section-table thead th span, .daily-section-table thead th small { display: block; }
.daily-section-table thead th small { margin-top: 3px; color: #0d5d9f; font-size: 12px; font-weight: 800; }
.daily-section-table tbody td { color: #263248; background: #fff; font-size: 13px; }
.daily-section-table tbody td:first-child, .daily-section-table .section-score, .daily-section-table tbody td:nth-last-child(2) { text-align: center; white-space: nowrap; }
.section-score.is-one { color: #087c43; background: #effaf4 !important; font-weight: 800; }
.section-score.is-zero { color: #bd2c3e; background: #fff1f2 !important; font-weight: 800; }
.section-score.is-empty { background: #f8fafc !important; }
.daily-note { min-width: 260px; color: #52627a !important; }

@media (max-width: 980px) {
    .login-card { grid-template-columns: 42% 58%; }.login-brand-panel { padding: 45px 25px; }.login-form-panel { padding: 55px 45px 28px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-filter-grid, .admin-filter-grid.report-filter, .admin-filter-grid.monitor-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-filter-grid .admin-primary-btn { justify-self: start; }
    .admin-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .login-page { align-items: stretch; padding: 0; background: #fff; }
    .login-card { min-height: 100vh; display: block; border: 0; border-radius: 0; box-shadow: none; }
    .login-brand-panel { min-height: 230px; justify-content: flex-start; padding: 32px 24px 44px; border-radius: 0 0 28px 28px; }
    .login-logo-wrap { width: 104px; height: 104px; margin-bottom: 13px; padding: 14px; }.login-brand-panel h1 { font-size: 21px; }.brand-subtitle, .secure-copy { display: none; }.decor-one { width: 140px; height: 140px; }.decor-two { width: 105px; height: 105px; bottom: -35px; }
    .login-form-panel { padding: 34px 24px 28px; }.login-heading h2 { font-size: 22px; }.login-help { margin: 18px 0 25px; }.login-footer { padding-top: 50px; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }.admin-main { margin-left: 0; }.admin-menu-open .admin-sidebar { transform: translateX(0); }.admin-menu-toggle { display: block; }.admin-topbar { padding: 0 18px; }.admin-content { padding: 20px 14px; }.admin-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(4, 18, 39, .48); }.admin-menu-open .admin-backdrop { display: block; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { min-height: 98px; padding: 13px; gap: 11px; }.stat-card > span { width: 41px; height: 41px; flex-basis: 41px; }.stat-card small { font-size: 11px; }.stat-card strong { font-size: 21px; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }.admin-page-heading .btn { width: 100%; }.admin-filter-grid, .admin-filter-grid.report-filter { grid-template-columns: 1fr; }.admin-filter-grid .admin-primary-btn { width: 100%; }.monitor-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .history-report-controls { grid-template-columns: 1fr; }
    .history-export-actions { align-items: center; }
    .history-export-button { flex: 1; }
}

@media (max-width: 390px) {
    .user-hero { padding-left: 20px; padding-right: 20px; }.user-content { padding-left: 10px; padding-right: 10px; }
    .task-card { grid-template-columns: 46px minmax(92px, 1fr) minmax(128px, auto); column-gap: 8px; padding: 11px; }.task-icon { width: 44px; height: 44px; }.task-info h3 { font-size: 15px; }.task-info p { font-size: 12px; }.status-pill { padding: 4px 7px; font-size: 11px; }.finish-time { font-size: 23px; }.btn-complete { padding-left: 12px; padding-right: 12px; }.history-summary { gap: 10px; padding: 14px; }.history-summary h2 { font-size: 17px; }.history-toggle { padding: 0 10px; }
    .stats-grid { grid-template-columns: 1fr; }
}
