/* =========================================================
   LỊCH CÔNG TÁC THƯỜNG TRỰC — AdminLTE 3 / LichDonVi v2.5.0
   ========================================================= */
:root {
  --nav-bg: #dc3545;
  --table-red: #ff0018;
  --table-yellow: #ffff00;
  --subhdr-bg: #e7eaed;
  --subhdr-text: #323232;
  --am-bg: #fffddb;
  --pm-bg: #d5f2ff;
  --draft-bg: #f1f1f1;
  --day-border: #047ad9;
  --month-week-bg: rgba(205, 249, 100, 0.43);
  --modal-blue-bg: #d9ecfd;
  --sidebar-bg: #343a40;
  --sidebar-hover: #495057;
  --sidebar-active: #a3595f;
  --btn-info: #17a2b8;
  --btn-info-active: #117a8b;
  --btn-primary: #007bff;
  --btn-success: #28a745;
  --btn-warning: #ffc107;
  --btn-danger: #dc3545;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #212529;
  background: #f4f6f9;
  min-height: 100vh;
}

a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.small { font-size: 11.5px; }
.text-muted { color: #6c757d; }
.text-danger { color: #dc3545; }
.text-success { color: #28a745; }
.text-center { text-align: center; }

/* ---------------- Top Navbar ---------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--nav-bg);
  color: #efefef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  background: transparent;
  border: none;
  color: #f8f9fa;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.notif-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  background: #ffc107;
  color: #1f2d3d;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.nav-dropdown-wrap { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  width: 310px;
  background: #fff;
  color: #212529;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 1050;
}
.dropdown-panel.open { display: block; }
.dropdown-user { width: 230px; }
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6;
  font-weight: bold;
  background: #f8f9fa;
}
.dropdown-body { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.notif-item:hover { background: #f4f8ff; }
.notif-item.unread { background: #fffdf0; }
.user-panel-header {
  padding: 10px 14px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  background: none;
  border: none;
  color: #212529;
  cursor: pointer;
  font-size: 13px;
}
.dropdown-item:hover { background: #f1f3f5; text-decoration: none; }
.dropdown-divider { margin: 4px 0; border: 0; border-top: 1px solid #e9ecef; }
.btn-link-sm { background: none; border: none; color: #007bff; cursor: pointer; font-size: 11.5px; }

/* ---------------- Left Sidebar ---------------- */
.main-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 265px;
  background: var(--sidebar-bg);
  color: #c2c7d0;
  z-index: 1040;
  transform: translateX(0);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.28);
}

body.sidebar-collapsed .main-sidebar {
  transform: translateX(-270px);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1035;
}
body:not(.sidebar-collapsed) .sidebar-backdrop {
  display: block;
}

.sidebar-brand {
  height: 52px;
  background: #2c3136;
  border-bottom: 1px solid #4b545c;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  overflow: hidden;
}
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.brand-marquee-text {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.3px;
  animation: marqueeScroll 16s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(65%); }
  100% { transform: translateX(-100%); }
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #4b545c;
  color: #e9ecef;
  font-size: 14px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  color: #c2c7d0;
  font-size: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item .caret { margin-left: auto; font-size: 17px; transition: transform 0.15s; }
.nav-group.open > .nav-group-toggle .caret { transform: rotate(-90deg); }

.nav-submenu {
  display: none;
  padding-left: 24px;
  margin-bottom: 4px;
}
.nav-group.open > .nav-submenu { display: block; }
.nav-subitem {
  display: block;
  padding: 7px 10px;
  color: #b8c0c9;
  border-radius: 4px;
  font-size: 13px;
}
.nav-subitem:hover, .nav-subitem.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* ---------------- Main Wrapper & Footer ---------------- */
.content-wrapper {
  margin-top: 52px;
  padding: 8px 10px 24px 10px;
  min-height: calc(100vh - 96px);
}

.main-footer {
  background: #fff;
  border-top: 1px solid #dee2e6;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #6c757d;
}
.footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-badge {
  background: #111;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.version-txt { font-size: 13px; color: #555; }

/* ---------------- Toolbar & Filters ---------------- */
.schedule-card {
  background: #fff;
  border: 1px solid #dce1e7;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr 1.55fr 1.35fr;
  gap: 10px;
  margin-bottom: 8px;
}

.form-control, .form-select {
  width: 100%;
  height: 34px;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
.form-control:disabled, .form-select:disabled {
  background: #e9ecef;
  color: #6c757d;
}
textarea.form-control { height: auto; min-height: 70px; padding: 6px 10px; }

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.pill-btn {
  background: var(--btn-info);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.12s;
}
.pill-btn:hover { filter: brightness(0.92); }
.pill-btn.active {
  background: #0d5e6b;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}
.pill-btn.pill-month {
  background: var(--btn-warning);
  color: #212529;
}
.pill-btn.pill-month.active {
  background: #e0a800;
  outline: 2px solid #856404;
}

.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.3;
  transition: filter 0.12s;
}
.btn:hover { filter: brightness(0.93); }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-primary { background: var(--btn-primary); color: #fff; }
.btn-success { background: var(--btn-success); color: #fff; }
.btn-warning { background: var(--btn-warning); color: #212529; }
.btn-danger { background: var(--btn-danger); color: #fff; }
.btn-info { background: var(--btn-info); color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-light { background: #f8f9fa; color: #212529; border-color: #ced4da; }

.mode-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  margin-left: 4px;
}

/* ---------------- Print / Compact Header ---------------- */
.compact-print-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-bottom: 1px dashed #adb5bd;
  text-align: center;
}
.compact-print-banner h4 { margin: 4px 0 0; color: #b80012; font-size: 15px; }

/* ---------------- Weekly Matrix Table ---------------- */
.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.schedule-matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 980px;
  background: #fff;
}

table.schedule-matrix th,
table.schedule-matrix td {
  border: 1px solid #9bb0c7;
  padding: 5px 5px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 12px;
  line-height: 1.35;
}

table.schedule-matrix th.col-day {
  width: 7.5%;
  background: #f8f9fa;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}

table.schedule-matrix th.leader-hdr {
  background: var(--table-red);
  color: var(--table-yellow);
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 4px;
  white-space: pre-line;
}

table.schedule-matrix th.sub-hdr {
  background: var(--subhdr-bg);
  color: var(--subhdr-text);
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 11.5px;
}

table.schedule-matrix tr.day-border td {
  border-top: 2px solid var(--day-border);
}

table.schedule-matrix td.day-cell {
  text-align: center;
  vertical-align: middle;
  background: #fff;
  font-weight: 500;
  color: #222;
}
.day-special-tag {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 4px;
  background: #ffe5e5;
  color: #c82333;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
}

table.schedule-matrix td.td-color-am { background: var(--am-bg); }
table.schedule-matrix td.td-color-pm { background: var(--pm-bg); }
table.schedule-matrix td.td-color-unapproval { background: var(--draft-bg); }

table.schedule-matrix tr.week-banner-row td {
  background: var(--month-week-bg);
  font-weight: 700;
  font-style: italic;
  color: #1c3a00;
  text-align: left;
  padding: 6px 10px;
  font-size: 13px;
  border-top: 2px solid #5b9e00;
}

.cell-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #111;
}
.ico-clock { color: #28a745; font-size: 13px; }
.ico-list {
  color: #dc3545;
  cursor: pointer;
  font-size: 13px;
  margin-right: 3px;
}
.ico-list:hover { transform: scale(1.15); }
.cell-content {
  font-weight: 700;
  color: #151515;
  cursor: pointer;
  margin-bottom: 4px;
}
.cell-content:hover { color: #0056b3; text-decoration: underline; }
.cell-meta {
  font-size: 11.5px;
  color: #333;
  margin-bottom: 2px;
}
.cell-participants {
  font-size: 11.5px;
  color: #222;
}
.cell-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e09800;
  font-weight: 600;
  margin-top: 4px;
  font-size: 12px;
}

.empty-add-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-height: 24px;
}
.btn-cell-plus {
  background: none;
  border: none;
  color: #28a745;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.btn-cell-plus:hover { color: #19692c; transform: scale(1.15); }

.cell-edit-bar {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0,0,0,0.15);
  text-align: center;
}
.cell-status-lbl {
  display: block;
  font-size: 10.5px;
  font-style: italic;
  color: #444;
  margin-bottom: 3px;
}
.cell-action-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.icon-act {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px;
  line-height: 1;
}
.icon-act:hover { transform: scale(1.2); }

.cell-approve-bar {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0,0,0,0.18);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cell-approve-bar label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

/* ---------------- Page Header & DataTables (Admin / Catalog) ---------------- */
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 2px;
}
.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #212529;
}
.breadcrumb { font-size: 13px; color: #6c757d; }

.card-box {
  background: #fff;
  border: 1px solid #dce1e7;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.dt-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th, table.data-table td {
  border: 1px solid #dee2e6;
  padding: 8px 10px;
  vertical-align: middle;
}
table.data-table th {
  background: #f8f9fa;
  font-weight: 700;
  color: #212529;
  text-align: left;
}
table.data-table tbody tr:hover { background: #f5f9ff; }

table.personal-table th {
  background: #b7eefb;
  color: #111;
  border-color: #79d3e8;
}
table.personal-table tr.day-sep td {
  border-top: 2px solid #17a2b8;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* ---------------- Modals ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
}
.modal-dialog {
  background: #fff;
  border-radius: 5px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
}
.modal-dialog.modal-xxl { max-width: 1040px; }
.modal-dialog.modal-xl { max-width: 900px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}
.modal-title { margin: 0; font-size: 18px; font-weight: 500; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #000; }

.modal-body { padding: 16px; }
.modal-body.schedule-form-bg { background: var(--modal-blue-bg); }
.modal-footer {
  padding: 10px 16px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 13px;
}

.multi-check-box {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 5px 8px;
  max-height: 105px;
  overflow-y: auto;
  font-size: 12px;
}
.multi-check-box label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  margin: 2px 0;
  cursor: pointer;
}

.detail-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.detail-subcard {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ---------------- Standalone Views ---------------- */
.standalone-root {
  min-height: 100vh;
}

/* 1. Detail Standalone (LỊCH LÃNH ĐẠO) */
.detail-standalone {
  min-height: 100vh;
  background: linear-gradient(135deg, #e7f6f9 0%, #f7fcfe 50%, #dff2f7 100%);
  padding: 16px 14px 60px;
}
.detail-standalone-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #5b8fa3;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

/* 2. Public Content (WorkingSchedule/Content) */
.public-page { min-height: 100vh; background: #fff; padding-bottom: 60px; }
.public-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 6px 14px;
  border-bottom: 2px solid #007bff;
}
.public-banner-center {
  flex: 1;
  margin: 0 16px;
  background: linear-gradient(180deg, #007bff 0%, #0062cc 100%);
  color: #fff;
  border-radius: 4px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-banner-title {
  flex: 1;
  text-align: center;
}
.public-banner-title h2 {
  margin: 0 0 6px;
  color: #ffff00;
  font-size: 18px;
}
.public-marquee {
  background: #fff;
  color: #dc3545;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #e9ecef;
}
.public-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 24s linear infinite;
}

/* 3. TV Kiosk Display (WorkingSchedule/SheduleTVCompany) */
.tv-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top center, #085c94 0%, #03416e 55%, #022b4b 100%);
  color: #fff;
  padding: 18px 28px 60px;
  display: flex;
  flex-direction: column;
}
.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  padding-bottom: 14px;
  margin-bottom: 18px;
  gap: 20px;
}
.tv-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.65));
}
.tv-org-title {
  flex: 1;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,0.7), 0 2px 6px rgba(0,0,0,0.45);
}
.tv-clock-box { text-align: right; min-width: 210px; }
.tv-clock-time {
  font-size: 38px;
  font-weight: 700;
  color: #fefa01;
  font-family: Arial, sans-serif;
}
.tv-clock-date { font-size: 18px; color: #e2f1ff; margin-top: 4px; }

.tv-item {
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 12px;
  color: #0b1c2c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.tv-item.to-odd { background: #9ecefe; }
.tv-item.to-even { background: #fef39e; }
.tv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
  color: #002b5c;
}
.tv-item-content { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.tv-item-meta { font-size: 15px; color: #1b2d3e; }

.tv-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #09131d;
  gap: 14px;
}

.floating-home-btns {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 900;
}
.floating-btn {
  background: #5eb8cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.floating-btn:hover { background: #46a1b5; color: #fff; text-decoration: none; }

/* 4. Login Page */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #b8101c 0%, #dc3545 45%, #8f0b14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  padding: 28px 26px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.login-logo-wrap { text-align: center; margin-bottom: 16px; }
.login-logo-wrap img { width: 68px; height: 68px; }
.login-logo-wrap h3 { margin: 8px 0 4px; color: #b80012; font-size: 16px; }

/* ---------------- Charts & Stat Cards ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-box {
  border-radius: 6px;
  padding: 14px 16px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.stat-box .stat-val { font-size: 28px; font-weight: 700; }
.stat-box .stat-lbl { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.bg-blue { background: #17a2b8; }
.bg-green { background: #28a745; }
.bg-yellow { background: #e0a800; color: #1f2d3d; }
.bg-red-card { background: #dc3545; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bar-label { width: 200px; font-size: 12.5px; font-weight: 600; }
.bar-track { flex: 1; background: #e9ecef; height: 22px; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #dc3545, #ff4b5c); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; padding-left: 8px; min-width: 24px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed;
  top: 62px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-msg {
  background: #28a745;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 13px;
  animation: fadeSlide 0.2s ease;
}
.toast-msg.error { background: #dc3545; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .filter-row { grid-template-columns: 1fr 1fr; }
  .form-grid-4 { grid-template-columns: 1fr 1fr; }
  .detail-panel-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
