:root {
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e9eefc;
  --muted: #9fb0d1;
  --accent: #5eead4;
  --danger: #fb7185;
  --line: #223153;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial
}

body {
  margin: 0;
  background: linear-gradient(180deg, #070b14, #0b1220);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none
}

.container {
  max-width: 100%;
  padding: 18px 24px
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(17, 26, 46, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0
}

.nav .left {
  display: flex;
  gap: 12px;
  align-items: center
}

.brand {
  font-weight: 700;
  letter-spacing: .2px
}

.badge {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted)
}

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: #0f1730;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer
}

.btn:hover {
  border-color: #2d4578
}

.btn.danger {
  border-color: #6a2330;
  background: #2a0f18
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px
}

@media(min-width:900px) {
  .grid.two {
    grid-template-columns: 1.2fr .8fr
  }
}

.card {
  background: rgba(17, 26, 46, .9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25)
}

.h1 {
  font-size: 22px;
  margin: 0 0 8px
}

.h2 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--muted)
}

.label {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 6px
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  outline: none
}

textarea {
  min-height: 120px;
  resize: vertical
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px
}

@media(min-width:700px) {
  .row.two {
    grid-template-columns: 1fr 1fr
  }

  .row.three {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.table {
  width: 100%;
  border-collapse: collapse
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top
}

.table th {
  color: var(--muted);
  text-align: left;
  font-weight: 600
}

.small {
  font-size: 12px;
  color: var(--muted)
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220
}

.notice.ok {
  border-color: #134e4a
}

.notice.err {
  border-color: #7f1d1d
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px
}

.tab {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted)
}

.tab.active {
  border-color: #2d4578;
  color: var(--text);
  background: #0b1220
}

/* Lotus datepicker */
.datefield {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.datefield .date-ui {
  flex: 1 1 auto;
  min-width: 0;
}

.datefield .calbtn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.datefield .calbtn:hover {
  filter: brightness(1.08);
}

/* Status badges */
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.st-todo {
  background: rgba(255, 255, 255, 0.06);
}

.st-doing {
  background: rgba(255, 193, 7, 0.15);
}

.st-stop {
  background: rgba(220, 53, 69, 0.18);
}

.st-done {
  background: rgba(40, 167, 69, 0.18);
}

/* Tag badge */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 123, 255, 0.14);
  font-size: 12px;
  margin-left: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 18, 40, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.modal.open .modal-dialog {
  pointer-events: auto !important;
  z-index: 1060;
}

.modal.open .modal-backdrop {
  z-index: 1050;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}



/* ==============================
   Vietnam Airlines theme (light)
   ============================== */
:root {
  --va-blue: #00539F;
  --va-blue-2: #0B63B6;
  --va-yellow: #F2A900;
  --va-yellow-2: #FFD24D;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #52607a;
  --border: #e6e9ef;
}

html,
body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

a {
  color: var(--va-blue)
}

/* Top nav */
.topbar,
.nav {
  background: linear-gradient(0deg, var(--va-blue), var(--va-blue-2)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.topbar *,
.nav * {
  color: #fff !important;
}

.brand {
  font-weight: 800 !important;
  letter-spacing: .2px;
}

/* menu buttons */
.nav a,
.menu a,
.topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav a:hover,
.menu a:hover,
.topbar a:hover {
  filter: brightness(1.08);
}

.nav a.active,
.menu a.active {
  background: var(--va-yellow) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #062a4d !important;
}

/* Cards */
.card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08) !important;
}

.h1,
.h2 {
  color: var(--text) !important;
}

.small {
  color: var(--muted) !important;
}

/* Inputs */
input,
select,
textarea {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

input::placeholder,
textarea::placeholder {
  color: #9aa4b2 !important;
}

select[multiple] {
  background: #fff !important;
}

.label {
  color: var(--muted) !important;
}

/* Buttons */
.btn {
  background: var(--va-blue) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #fff !important;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn.danger {
  background: #c81e1e !important;
}

.btn-vna-gold { 
  background-color: #bda554 !important; 
  border-color: #bda554 !important; 
  color: #fff !important; 
  transition: all 0.2s ease-in-out; 
}
.btn-vna-gold:hover { 
  background-color: #a38d45 !important; 
  border-color: #a38d45 !important; 
  color: #fff !important; 
}

.btn.secondary {
  background: var(--va-yellow) !important;
  color: #062a4d !important;
}

.notice.ok {
  background: #e9f6ef !important;
  border-color: #bfe7cf !important;
  color: #0f5132 !important;
}

.notice.err {
  background: #fdecec !important;
  border-color: #f5bcbc !important;
  color: #842029 !important;
}

/* Table */
.table {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

.table th {
  background: #f6f8fc !important;
  color: #273247 !important;
}

.table td {
  border-top: 1px solid var(--border) !important;
}

.table code {
  background: #f3f6fb !important;
  border: 1px solid var(--border) !important;
  color: #1f2a44 !important;
}

/* Status badges */
.st {
  border: 1px solid var(--border) !important;
}

.st-todo {
  background: #f1f3f5 !important;
}

.st-doing {
  background: #fff7e6 !important;
  border-color: #ffe0a3 !important;
}

.st-stop {
  background: #fdecec !important;
  border-color: #f5bcbc !important;
}

.st-done {
  background: #e9f6ef !important;
  border-color: #bfe7cf !important;
}

/* Tag badge */
.tag-badge {
  background: #eef6ff !important;
  border-color: #cfe3ff !important;
  color: #0b3b74 !important;
}

/* Modal */
.modal-dialog {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

/* Datepicker */
.dp-pop {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
}

.dp-nav,
.dp-foot button,
.dp-day {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

.dp-day.selected {
  background: rgba(0, 83, 159, 0.10) !important;
  border-color: rgba(0, 83, 159, 0.25) !important;
}

.dp-day.today {
  outline: 2px solid rgba(0, 83, 159, 0.25) !important;
}

/* Layout full-width + responsive */
.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 16px 24px !important;
  margin: 0 !important;
}

.grid.two {
  grid-template-columns: 1.2fr .8fr !important;
}

@media (max-width: 1100px) {
  .grid.two {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {

  .row.two,
  .row.three {
    grid-template-columns: 1fr !important;
  }

  .nav a,
  .menu a {
    padding: 8px 10px;
  }
}

/* Reports tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 83, 159, 0.08);
  border: 1px solid rgba(0, 83, 159, 0.18);
  color: var(--va-blue) !important;
  text-decoration: none;
}

.tabs .tab:hover {
  filter: brightness(1.03);
}

.tabs .tab.active {
  background: var(--va-yellow) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #062a4d !important;
  font-weight: 800;
}

/* Truncate + expand */
.linkbtn {
  border: none;
  background: transparent;
  color: var(--va-blue);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.linkbtn:hover {
  text-decoration: underline;
}

.task-content.expanded {
  white-space: normal;
}

/* 4-column row for filters */
.row.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .row.four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .row.four {
    grid-template-columns: 1fr;
  }
}

.tagline {
  margin-top: 6px;
  font-weight: 700;
  color: var(--va-blue) !important;
}

/* Dashboard upgrades */
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 83, 159, 0.18);
  background: rgba(0, 83, 159, 0.08);
  text-decoration: none;
  color: var(--va-blue) !important;
  font-weight: 900;
}

.pginfo {
  font-weight: 800;
  color: var(--va-blue);
}

.task-title,
.task-content {
  word-break: break-word;
}

/* Filter: 1 row with 5 fields */
.row.five {
  display: grid;
  grid-template-columns: 130px 1.4fr 1.1fr 220px 1.3fr;
  gap: 12px;
  align-items: end;
}

.row.five select,
.row.five input {
  width: 100%;
}

/* month + sort compact */
.row.five input[name="month"] {
  max-width: 130px;
}

.row.five select[name="sort"] {
  max-width: 220px;
}

.row.five select[name="category_key"] {
  height: 38px;
}

@media (max-width:1100px) {
  .row.five {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px) {
  .row.five {
    grid-template-columns: 1fr;
  }
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.filter-actions>div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-actions .btn.secondary {
  background: var(--va-yellow) !important;
  color: #062a4d !important;
  font-weight: 900;
}

/* ===== Row five filter layout (compact month + sort) ===== */
.row.five {
  display: grid;
  grid-template-columns: 120px 1.4fr 1.1fr 190px 1.3fr;
  gap: 12px;
  align-items: end;
}

.row.five input[name="month"] {
  width: 120px;
}

.row.five select[name="sort"] {
  width: 190px;
}

.row.five select[name="category_key"] {
  height: 38px;
}

@media (max-width:1100px) {
  .row.five {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px) {
  .row.five {
    grid-template-columns: 1fr;
  }
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.filter-actions>div {
  display: flex;
  gap: 10px;
  align-items: end;
}

.filter-actions .btn.secondary {
  background: var(--va-yellow) !important;
  color: #062a4d !important;
  font-weight: 900;
}

/* V2: export button */
.filter-actions .btn {
  white-space: nowrap;
}

/* ===== V3 dashboard ===== */
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.statcard {
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 83, 159, 0.18);
  background: #fff;
}

.statcard .num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.statcard .lbl {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--va-blue);
}

.statcard.st-todo {
  background: rgba(0, 83, 159, 0.06);
}

.statcard.st-doing {
  background: rgba(0, 83, 159, 0.10);
}

.statcard.st-stop {
  background: rgba(242, 169, 0, 0.12);
}

.statcard.st-done {
  background: rgba(16, 185, 129, 0.12);
}

.row.eight {
  display: grid;
  grid-template-columns: 120px 1.2fr 1fr 170px 1.2fr 150px 150px 170px;
  gap: 12px;
  align-items: end;
}

.row.eight input[name="month"] {
  width: 120px;
}

.row.eight select[name="sort"] {
  width: 170px;
}

@media (max-width:1200px) {
  .row.eight {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px) {
  .row.eight {
    grid-template-columns: 1fr;
  }

  .statgrid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== V3: Force filter inputs on ONE ROW ===== */
.row.eight {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: flex-end !important;
  overflow-x: auto;
  padding-bottom: 6px;
}

.row.eight>div {
  min-width: 180px;
}

.row.eight>div:nth-child(1) {
  min-width: 130px;
}

/* Tháng */
.row.eight>div:nth-child(4) {
  min-width: 170px;
}

/* Sắp xếp */
.row.eight input[name="month"] {
  width: 130px !important;
}

/* make selects fit */
.row.eight select,
.row.eight input {
  width: 100%;
}

/* Hide scrollbar nicely */
.row.eight::-webkit-scrollbar {
  height: 8px;
}

.row.eight::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}


/* V4: status filter width */
.row.eight>div {
  min-width: 170px;
}

.row.eight>div:nth-child(1) {
  min-width: 130px;
}

/* V4 paging */
.limit-select {
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 83, 159, 0.25);
  padding: 6px 10px;
  background: #fff;
  min-width: 90px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pager-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Reports analytics */
.report-statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-statcard {
  background: #fff;
  border: 1px solid rgba(0, 83, 159, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.report-statcard .num {
  font-size: 24px;
  font-weight: 900;
  color: var(--va-blue);
}

.report-statcard .lbl {
  margin-top: 6px;
  font-weight: 800;
  color: var(--va-blue);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.bar-name {
  font-weight: 700;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 83, 159, 0.10);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--va-blue), var(--va-yellow));
}

.bar-value {
  font-weight: 800;
  color: var(--va-blue);
}

.detail-item {
  padding: 8px 10px;
  border: 1px solid rgba(0, 83, 159, 0.12);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}

@media (max-width:900px) {
  .report-statgrid {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }
}

/* New reports page */
.report-filter {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.report-filter>div {
  min-width: 180px;
}

.report-filter .filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  min-width: auto;
}

.report-statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-statcard {
  background: #fff;
  border: 1px solid rgba(0, 83, 159, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.report-statcard .num {
  font-size: 24px;
  font-weight: 900;
  color: var(--va-blue);
}

.report-statcard .lbl {
  margin-top: 6px;
  font-weight: 800;
  color: var(--va-blue);
}

.status-bars,
.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.bar-name {
  font-weight: 700;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 83, 159, 0.10);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-fill.todo {
  background: #94a3b8;
}

.bar-fill.doing {
  background: #f2a900;
}

.bar-fill.stop {
  background: #ef4444;
}

.bar-fill.done {
  background: #10b981;
}

.bar-fill.team {
  background: linear-gradient(90deg, var(--va-blue), var(--va-yellow));
}

.bar-value {
  font-weight: 800;
  color: var(--va-blue);
}

.detail-item {
  padding: 8px 10px;
  border: 1px solid rgba(0, 83, 159, 0.12);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}

@media (max-width:900px) {
  .report-statgrid {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }
}

/* Pro reports page */
.report-filter {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.report-filter>div {
  min-width: 180px;
}

.report-filter .filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  min-width: auto;
}

.report-statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-statcard {
  background: #fff;
  border: 1px solid rgba(0, 83, 159, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.report-statcard .num {
  font-size: 24px;
  font-weight: 900;
  color: var(--va-blue);
}

.report-statcard .lbl {
  margin-top: 6px;
  font-weight: 800;
  color: var(--va-blue);
}

.status-bars,
.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.bar-name {
  font-weight: 700;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 83, 159, 0.10);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-fill.todo {
  background: #94a3b8;
}

.bar-fill.doing {
  background: #f2a900;
}

.bar-fill.stop {
  background: #ef4444;
}

.bar-fill.done {
  background: #10b981;
}

.bar-fill.team {
  background: linear-gradient(90deg, var(--va-blue), var(--va-yellow));
}

.bar-value {
  font-weight: 800;
  color: var(--va-blue);
}

.detail-item {
  padding: 8px 10px;
  border: 1px solid rgba(0, 83, 159, 0.12);
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fff;
}

@media (max-width:900px) {
  .report-statgrid {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }
}

/* Reports UI polish */
.report-filter {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: 6px;
}

.report-filter>div {
  min-width: 180px;
}

.report-filter .filter-actions {
  margin-left: auto;
  min-width: auto;
  white-space: nowrap;
}

.report-filter::-webkit-scrollbar {
  height: 8px;
}

.report-filter::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.report-statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.report-statcard {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 14px;
  border: 1px solid rgba(0, 83, 159, 0.16);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
  overflow: hidden;
}

.report-statcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--va-blue);
}

.report-statcard.total::before {
  background: var(--va-blue);
}

.report-statcard.member::before {
  background: #64748b;
}

.report-statcard.doing::before {
  background: #f2a900;
}

.report-statcard.done::before {
  background: #10b981;
}

.report-statcard .num {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #0b2e59;
  margin-bottom: 8px;
}

.report-statcard .lbl {
  font-size: 14px;
  font-weight: 800;
  color: #365072;
}

.status-bars,
.bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 64px;
  gap: 14px;
  align-items: center;
}

.bar-name {
  font-weight: 800;
  color: #243b5e;
}

.bar-track {
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef4fb, #e8f0f9);
  border: 1px solid rgba(0, 83, 159, 0.12);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18);
}

.bar-fill.todo {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.bar-fill.doing {
  background: linear-gradient(90deg, #ffd24d, #f2a900);
}

.bar-fill.stop {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.bar-fill.done {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.bar-fill.team {
  background: linear-gradient(90deg, var(--va-blue), #3a84c8, var(--va-yellow));
}

.bar-value {
  font-size: 15px;
  font-weight: 900;
  color: #0b2e59;
  text-align: right;
}

@media (max-width: 1000px) {
  .report-statgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .bar-row {
    grid-template-columns: 1fr;
  }
}

/* Reports filter like tasks: row 1 inputs, row 2 buttons */
.report-filter {
  display: grid !important;
  grid-template-columns: 1.4fr 160px 160px 1fr !important;
  gap: 12px !important;
  align-items: end !important;
}

.report-filter>div {
  min-width: 0 !important;
}

.report-filter .filter-actions {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: auto !important;
}

.report-filter .filter-actions .btn {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .report-filter {
    grid-template-columns: 1fr 1fr !important;
  }

  .report-filter .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .report-filter {
    grid-template-columns: 1fr !important;
  }
}

/* Reports filter fixed layout */
.report-filter {
  display: block !important;
}

.report-filter-top {
  display: grid;
  grid-template-columns: 1.5fr 180px 180px 1fr;
  gap: 12px;
  align-items: end;
}

.report-filter-top>div {
  min-width: 0;
}

.report-filter .filter-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 12px !important;
}

@media (max-width: 1100px) {
  .report-filter-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .report-filter-top {
    grid-template-columns: 1fr;
  }
}

/* ===== Reports V4: filter 1 row like Tasks ===== */
.report-filter {
  display: grid !important;
  grid-template-columns: 1.6fr 160px 160px 1fr !important;
  gap: 12px !important;
  align-items: end !important;
}

.report-filter>div {
  min-width: 0 !important;
}

.report-filter .filter-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

@media (max-width:1100px) {
  .report-filter {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width:700px) {
  .report-filter {
    grid-template-columns: 1fr !important;
  }
}

/* Reports custom layout */
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.report-filter {
  display: grid !important;
  grid-template-columns: 1.5fr 180px 180px 1fr !important;
  gap: 12px !important;
  align-items: end !important;
}

.report-filter>div {
  min-width: 0 !important;
}

.chart-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.status-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.members-list b {
  color: var(--va-blue);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(0, 83, 159, 0.16);
  white-space: nowrap;
}

.status-pill.todo {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8
}

.status-pill.doing {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc
}

.status-pill.stop {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #ef4444
}

.status-pill.done {
  background: #dcfce7;
  color: #14532d;
  border-color: #10b981
}

@media (max-width:1000px) {
  .report-filter {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width:700px) {
  .report-filter {
    grid-template-columns: 1fr !important;
  }
}

.members-under-card {
  margin-top: 8px;
  line-height: 1.6;
  color: var(--va-blue);
}

.members-under-card b {
  font-weight: 900;
}

.linkbtn {
  border: none;
  background: transparent;
  color: var(--va-blue);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.linkbtn:hover {
  text-decoration: underline;
}

.task-content {
  white-space: normal;
  word-break: break-word;
}

.chart-split .card {
  margin-top: 0 !important;
}

/* BV4 Plus tuning */
.assignee-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.assignee-quick .btn {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.active-filter {
  background: var(--va-yellow) !important;
  color: #062a4d !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.chart-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.table details summary {
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .chart-split {
    grid-template-columns: 1fr;
  }
}

.task-clickable {
  cursor: pointer;
}

.task-clickable:hover {
  background: rgba(0, 83, 159, 0.04);
  border-radius: 10px;
}

.task-clickable {
  cursor: pointer;
  transition: background .15s ease;
}

.task-clickable:hover {
  background: rgba(0, 83, 159, 0.04);
  border-radius: 10px;
}


/* Login page */
body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b2e59;
}

.login-bg {
  position: fixed;
  inset: 0;
  transform: scale(1.03);
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 18, 36, .24), rgba(4, 18, 36, .52));
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  padding: 28px 24px;
}

.login-brand {
  font-size: 28px;
  font-weight: 900;
  color: #0b2e59;
  letter-spacing: .2px;
}

.login-subtitle {
  margin-top: 6px;
  color: #4b5563;
  font-size: 14px;
}

.login-form .label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #0b2e59;
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 83, 159, .22);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}

.login-form input:focus {
  border-color: #00539f;
  box-shadow: 0 0 0 3px rgba(0, 83, 159, .10);
}

.login-btn {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width:640px) {
  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .login-brand {
    font-size: 24px;
  }
}

/* Reports V9 */
.report-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.clock-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--accent);
  font-weight: 800
}

.refresh-note {
  margin-top: 8px
}

.v9-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.notify-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1220
}

.workload-box {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.work-row {
  display: grid;
  grid-template-columns: 130px 1fr 48px;
  gap: 10px;
  align-items: center
}

.work-name {
  font-weight: 700
}

.work-bar {
  height: 12px;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid var(--line);
  overflow: hidden
}

.work-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--va-blue, #1f6feb), var(--va-yellow, #f4b400))
}

.work-count {
  font-weight: 800;
  text-align: right
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.kanban-col {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px
}

.kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.kanban-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 26, 46, .85);
  margin-bottom: 8px
}

.timeline-list {
  position: relative
}

.timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex: 0 0 12px
}

.timeline-body {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  width: 100%
}

@media (max-width: 1000px) {

  .v9-grid,
  .kanban-board {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 700px) {
  .report-filter-top {
    grid-template-columns: 1fr !important
  }

  .v9-grid,
  .kanban-board,
  .chart-split {
    grid-template-columns: 1fr !important
  }

  .work-row {
    grid-template-columns: 1fr
  }
}

/* V9 three widgets same row */
.v9-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px
}

@media (max-width: 1200px) {
  .v9-grid {
    grid-template-columns: 1fr
  }
}

/* Report UI Pro */
.report-statgrid-pro {
  grid-template-columns: repeat(5, 1fr) !important;
}

.report-statcard {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 26, 46, .96), rgba(11, 18, 32, .98));
}

.report-statcard .stat-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  opacity: .9
}

@media (max-width: 1100px) {
  .grid.two {
    grid-template-columns: 1fr !important;
  }
}

.report-statcard .lbl {
  font-size: 13px;
  letter-spacing: .2px
}

.report-head {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line)
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.section-head input {
  max-width: 280px
}

.v9-grid .card,
.chart-split .card,
.card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22)
}

.notify-item,
.kanban-card,
.detail-item {
  transition: transform .15s ease, border-color .15s ease, background .15s ease
}

.notify-item:hover,
.kanban-card:hover,
.detail-item:hover {
  transform: translateY(-1px);
  border-color: #355082
}

.timeline-dot {
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .14)
}

.upcoming-limit-form select {
  min-width: 90px
}

.report-table thead th {
  position: sticky;
  top: 0;
  background: #111a2e;
  z-index: 2
}

.blink-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: blinker 1.5s linear infinite;
  vertical-align: middle;
}

@keyframes blinker {
  50% {
    opacity: 0.3;
  }
}

.kanban-col {
  min-height: 220px
}

@media (max-width: 1200px) {
  .report-statgrid-pro {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .report-statgrid-pro {
    grid-template-columns: 1fr !important;
  }

  .section-head input {
    max-width: none;
    width: 100%
  }
}

/* Neutral background widgets */
body {
  background: #f6f8fc !important;
  color: #16324f !important;
}

.nav {
  background: rgba(255, 255, 255, .92) !important;
  border-bottom: 1px solid #d9e2ef !important;
}

.card,
.report-statcard,
.kanban-col,
.notify-item,
.kanban-card,
.detail-item,
.notice,
.work-bar,
.bar-track {
  background: #ffffff !important;
  color: #16324f !important;
  border-color: #dde5f0 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

.h1,
.h2,
.label,
.bar-name,
.work-name,
.brand {
  color: #16324f !important;
}

.small,
.report-statcard .lbl,
.table th,
.badge {
  color: #587089 !important;
}

.table thead th {
  background: #f9fbff !important;
}

input,
select,
textarea {
  background: #ffffff !important;
  color: #16324f !important;
  border-color: #d8e2ee !important;
}

.btn {
  background: #ffffff !important;
  color: #16324f !important;
  border-color: #d8e2ee !important;
}

.btn:hover {
  border-color: #9fb3ca !important;
  background: #f9fbff !important;
}

.btn.secondary,
.active-filter {
  background: #f2a900 !important;
  color: #062a4d !important;
  border-color: #e0a100 !important;
}

.report-statcard,
.report-statcard.stop,
.report-statcard.total,
.report-statcard.member,
.report-statcard.doing,
.report-statcard.done {
  background: #ffffff !important;
}

.report-statcard::before {
  opacity: 1 !important;
}

.kanban-head .status-pill,
.status-pill {
  box-shadow: none !important;
}

.login-card {
  background: rgba(255, 255, 255, .96) !important;
}

/* Vietnam Airlines blue-gold style */
:root {
  --va-blue: #00539f;
  --va-blue-dark: #0b2e59;
  --va-gold: #f2a900;
  --va-gold-soft: #fff6df;
  --va-bg: #f7f9fc;
  --va-line: #d9e4f2;
  --va-text: #044F64;
  --va-muted: #5f7893;
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  color: var(--va-text) !important;
}

.nav {
  background: linear-gradient(90deg, var(--va-blue-dark), var(--va-blue)) !important;
  border-bottom: 0 !important;
  box-shadow: 0 10px 28px rgba(0, 83, 159, .16) !important;
}

.brand,
.nav .left .badge,
.nav .right .btn {
  color: #fff !important;
}

.badge {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .08) !important;
}

.nav .right .btn {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

.nav .right .btn:hover {
  background: rgba(255, 255, 255, .16) !important;
}

.nav .right .btn.danger {
  background: rgba(242, 169, 0, .18) !important;
  border-color: rgba(242, 169, 0, .35) !important;
}

.card,
.report-statcard,
.kanban-col,
.notify-item,
.kanban-card,
.detail-item {
  background: #fff !important;
  border: 1px solid var(--va-line) !important;
  box-shadow: 0 14px 30px rgba(0, 83, 159, .07) !important;
}

.h1,
.h2,
.label,
.bar-name,
.work-name {
  color: var(--va-blue-dark) !important;
}

.small,
.table th,
.report-statcard .lbl,
.badge {
  color: var(--va-muted) !important;
}

.report-head {
  border-bottom: 1px solid var(--va-line) !important;
}

.clock-badge {
  background: var(--va-gold-soft) !important;
  color: var(--va-blue-dark) !important;
  border-color: #f3d37a !important;
}

.btn {
  background: #fff !important;
  color: var(--va-blue-dark) !important;
  border-color: #cfdceb !important;
}

.btn:hover {
  border-color: var(--va-blue) !important;
  background: #f8fbff !important;
}

.btn.secondary,
.active-filter {
  background: var(--va-gold) !important;
  color: var(--va-blue-dark) !important;
  border-color: #df9c00 !important;
  box-shadow: 0 8px 18px rgba(242, 169, 0, .18) !important;
}

.tabs .tab,
.assignee-quick .btn {
  background: #fff !important;
  border: 1px solid var(--va-line) !important;
  color: var(--va-blue-dark) !important;
}

.tabs .tab.active {
  background: var(--va-blue) !important;
  color: #fff !important;
  border-color: var(--va-blue) !important;
}

.report-statcard {
  position: relative;
  overflow: hidden;
}

.report-statcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--va-blue);
}

.report-statcard.total::before {
  background: var(--va-blue);
}

.report-statcard.member::before {
  background: #6e86a3;
}

.report-statcard.doing::before {
  background: var(--va-gold);
}

.report-statcard.done::before {
  background: #20a26b;
}

.report-statcard.stop::before {
  background: #d9485f;
}

.report-statcard .num {
  color: var(--va-blue-dark) !important;
}

.table thead th {
  background: #f8fbff !important;
  color: var(--va-blue-dark) !important;
}

input,
select,
textarea {
  background: #fff !important;
  color: var(--va-text) !important;
  border-color: #d4dfec !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--va-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 83, 159, .10) !important;
}

.work-bar {
  background: #edf3fa !important;
  border-color: #dce7f3 !important;
}

.work-bar div {
  background: linear-gradient(90deg, var(--va-blue), var(--va-gold)) !important;
}

.bar-track {
  background: #edf3fa !important;
  border: 1px solid #dce7f3 !important;
}

.bar-fill.todo {
  background: linear-gradient(90deg, #90a4bd, #6e86a3) !important;
}

.bar-fill.doing {
  background: linear-gradient(90deg, #ffd24d, var(--va-gold)) !important;
}

.bar-fill.stop {
  background: linear-gradient(90deg, #f08292, #d9485f) !important;
}

.bar-fill.done {
  background: linear-gradient(90deg, #55c892, #20a26b) !important;
}

.bar-fill.team {
  background: linear-gradient(90deg, var(--va-blue), var(--va-gold)) !important;
}

.notify-item {
  background: linear-gradient(180deg, #fff, #fbfdff) !important;
}

.kanban-col {
  background: linear-gradient(180deg, #fdfefe, #f8fbff) !important;
}

.kanban-card,
.detail-item {
  background: #fff !important;
}

.timeline-dot {
  background: var(--va-gold) !important;
  box-shadow: 0 0 0 4px rgba(242, 169, 0, .18) !important;
}

.status-pill {
  border: none !important;
  font-weight: 800 !important;
}

.status-pill.todo {
  background: #eef3f8 !important;
  color: #516a86 !important;
}

.status-pill.doing {
  background: #fff0c2 !important;
  color: #8b6200 !important;
}

.status-pill.stop {
  background: #fde3e8 !important;
  color: #b63d52 !important;
}

.status-pill.done {
  background: #ddf6ea !important;
  color: #167750 !important;
}

.notice {
  background: #fff !important;
  border-color: #d8e3ef !important;
}

.notice.ok {
  border-left: 4px solid #20a26b !important;
}

.notice.err {
  border-left: 4px solid #d9485f !important;
}

/* Vietnam Airlines Premium */
.container {
  max-width: 1360px !important;
}

.report-head {
  padding: 18px 0 14px !important;
  margin-bottom: 2px;
}

.report-head .h1 {
  font-size: 30px !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
}

.report-head .small {
  font-size: 14px !important;
}

.report-head-right {
  gap: 14px !important;
}

.clock-badge {
  font-size: 14px !important;
  font-weight: 900 !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
}

.filter-actions.top-actions .btn {
  min-width: 110px;
  text-align: center;
  font-weight: 800 !important;
}

.report-filter-top {
  display: grid !important;
  grid-template-columns: 1.6fr 180px 180px 1fr !important;
  gap: 14px !important;
  align-items: end !important;
}

.report-filter-top>div {
  min-width: 0 !important;
}

.report-filter .label {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.report-filter select,
.report-filter input {
  height: 44px !important;
  border-radius: 14px !important;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tabs .tab,
.assignee-quick .btn {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(0, 83, 159, .05);
}

.tabs .tab.active {
  box-shadow: 0 10px 20px rgba(0, 83, 159, .18) !important;
}

.assignee-quick {
  margin-top: 12px !important;
  gap: 10px !important;
}

.assignee-quick .btn {
  font-size: 13px !important;
}

.report-statgrid-pro {
  gap: 16px !important;
}

.report-statcard {
  padding: 20px 18px 16px !important;
  border-radius: 22px !important;
}

.report-statcard .stat-icon {
  font-size: 22px !important;
  top: 14px !important;
  right: 16px !important;
}

.report-statcard .num {
  font-size: 38px !important;
  font-weight: 900 !important;
  margin-top: 6px;
}

.report-statcard .lbl {
  font-size: 14px !important;
  font-weight: 800 !important;
}

.members-list {
  line-height: 1.8 !important;
}

.card {
  border-radius: 22px !important;
  padding: 18px !important;
}

.h2 {
  font-size: 18px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}

.small {
  line-height: 1.55;
}

.v9-grid,
.chart-split,
.kanban-board {
  gap: 16px !important;
}

.notify-item,
.kanban-card,
.detail-item {
  border-radius: 16px !important;
  padding: 12px 14px !important;
}

.notify-item b,
.kanban-card b,
.detail-item b {
  font-size: 14px;
}

.kanban-col {
  border-radius: 20px !important;
  padding: 12px !important;
}

.kanban-head {
  margin-bottom: 12px !important;
}

.kanban-head .status-pill {
  padding: 7px 12px !important;
  border-radius: 999px !important;
}

.timeline-item {
  gap: 14px !important;
}

.timeline-body {
  padding-bottom: 12px !important;
}

.section-head {
  margin-bottom: 10px !important;
}

.section-head input {
  height: 42px !important;
  border-radius: 14px !important;
}

.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table thead th {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.table th,
.table td {
  padding: 12px 10px !important;
}

.table tbody tr:hover td {
  background: rgba(0, 83, 159, .025) !important;
}

.work-row {
  grid-template-columns: 140px 1fr 56px !important;
}

.work-count {
  color: var(--va-blue-dark) !important;
}

#taskSearchInput {
  min-width: 280px;
}

@media (max-width: 1100px) {
  .report-filter-top {
    grid-template-columns: 1fr 1fr !important;
  }

  .report-statgrid-pro {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  .report-head {
    padding-top: 10px !important;
  }

  .report-head .h1 {
    font-size: 24px !important;
  }

  .report-filter-top,
  .v9-grid,
  .chart-split,
  .kanban-board,
  .report-statgrid-pro {
    grid-template-columns: 1fr !important;
  }

  #taskSearchInput {
    min-width: 0;
    width: 100%;
  }

  .clock-badge {
    width: 100%;
    text-align: center;
  }

  .filter-actions.top-actions {
    width: 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
}

/* Full width + responsive all devices */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px 20px !important;
}

.card,
.report-statcard,
.kanban-col,
.notify-item,
.kanban-card,
.detail-item {
  width: 100%;
}

.report-head,
.report-head-right,
.report-filter,
.report-filter-top,
.tabs,
.assignee-quick,
.v9-grid,
.chart-split,
.kanban-board,
.report-statgrid-pro {
  width: 100% !important;
  max-width: 100% !important;
}

.report-filter-top {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, .8fr) minmax(160px, .8fr) minmax(220px, 1fr) !important;
}

.v9-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.2fr) minmax(260px, 1fr) !important;
}

.chart-split {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) !important;
}

.kanban-board {
  grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
}

.report-statgrid-pro {
  grid-template-columns: repeat(5, minmax(180px, 1fr)) !important;
}

.table {
  width: 100% !important;
  display: table !important;
}

.table-wrap,
.report-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
  word-break: break-word;
}

@media (max-width: 1366px) {
  .container {
    padding: 16px 16px !important;
  }

  .report-statgrid-pro {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  }

  .kanban-board {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .report-filter-top {
    grid-template-columns: 1fr 1fr !important;
  }

  .v9-grid,
  .chart-split {
    grid-template-columns: 1fr !important;
  }

  .report-statgrid-pro {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }

  .kanban-board {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 12px !important;
  }

  .report-head {
    display: block !important;
  }

  .report-head-right {
    margin-top: 10px;
    justify-content: flex-start !important;
  }

  .report-filter-top,
  .v9-grid,
  .chart-split,
  .kanban-board,
  .report-statgrid-pro {
    grid-template-columns: 1fr !important;
  }

  .tabs,
  .assignee-quick {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }

  .tabs .tab,
  .assignee-quick .btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .table {
    min-width: 720px;
  }

  .section-head {
    display: block !important;
  }

  #taskSearchInput {
    width: 100% !important;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px !important;
  }

  .card {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .report-head .h1 {
    font-size: 22px !important;
  }

  .clock-badge,
  .filter-actions.top-actions .btn,
  .btn {
    width: 100%;
    text-align: center;
  }

  .filter-actions.top-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .report-filter select,
  .report-filter input,
  input,
  select,
  textarea {
    height: 42px !important;
    font-size: 16px !important;
  }
}

/* V10 requested */
.assignee-quick .btn {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(0, 83, 159, .05)
}

.tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px
}

.tabs .tab,
.assignee-quick .btn {
  flex: 0 0 auto
}

.timeline-status-row {
  grid-template-columns: 1.1fr .9fr !important
}

.task-clickable {
  cursor: pointer
}

.task-clickable:hover {
  background: rgba(0, 83, 159, .04);
  border-radius: 12px
}

@media (max-width:900px) {
  .timeline-status-row {
    grid-template-columns: 1fr !important
  }
}

/* REPORT V11 fixes */
.assignee-quick .btn {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(0, 83, 159, .05);
  background: #fff !important;
  border: 1px solid var(--va-line, #d9e4f2) !important;
  color: var(--va-blue-dark, #0b2e59) !important;
}

.assignee-quick .btn.active-filter {
  background: var(--va-blue, #00539f) !important;
  color: #fff !important;
  border-color: var(--va-blue, #00539f) !important;
}

.tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 10px;
  white-space: nowrap;
  padding-bottom: 4px;
}

.tabs .tab {
  flex: 0 0 auto;
}

.timeline-status-row {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr !important;
  gap: 16px !important;
}

.task-clickable {
  cursor: pointer
}

.task-clickable:hover {
  background: rgba(0, 83, 159, .04);
  border-radius: 12px
}

@media (max-width:900px) {
  .timeline-status-row {
    grid-template-columns: 1fr !important;
  }
}

/* Compact single-row filter and 3-section row */
.report-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: end !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.report-filter {
  margin-top: 8px !important;
}

.report-filter-top {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) minmax(180px, .9fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

.report-head-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.filter-actions.top-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.filter-actions.top-actions .btn {
  min-width: 110px !important;
}

.report-head .h1 {
  margin-bottom: 4px !important;
}

.assignee-quick,
.tabs {
  margin-top: 10px !important;
}

/* Put timeline, summary, detail in one row */
.report-three-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.25fr;
  gap: 16px;
  margin-top: 14px;
}

.report-three-row>.card {
  margin-top: 0 !important;
  min-width: 0;
}

.report-three-row .table {
  display: block !important;
  overflow: auto;
  white-space: normal;
}

.report-three-row .table th,
.report-three-row .table td {
  padding: 10px 8px !important;
}

.report-three-row .timeline-list {
  max-height: 540px;
  overflow: auto;
}

.report-three-row .table tbody {
  font-size: 13px;
}

.report-three-row .small {
  font-size: 12px;
}

.report-three-row .report-table {
  min-width: 680px;
}

.report-three-row .summary-compact details summary {
  white-space: nowrap;
}

.report-three-row .detail-list-compact {
  max-height: 620px;
  overflow: auto;
}

@media (max-width: 1400px) {
  .report-filter-top {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .report-three-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .report-head {
    grid-template-columns: 1fr !important;
  }

  .report-head-right {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 820px) {
  .report-filter-top {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  .report-filter-top {
    grid-template-columns: 1fr !important;
  }

  .filter-actions.top-actions {
    width: 100%;
    flex-wrap: wrap !important;
  }

  .filter-actions.top-actions .btn,
  .clock-badge {
    width: 100%;
  }
}

/* Strong compact filter */
.report-filter-compact .report-filter-top {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, .75fr) minmax(150px, .75fr) minmax(160px, .9fr) !important;
  gap: 10px !important;
  align-items: end !important;
}

.report-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  align-items: end !important;
}

.report-head-right {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.filter-actions.top-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.filter-actions.top-actions .btn {
  min-width: 96px !important;
  padding: 8px 10px !important;
}

.clock-badge {
  min-width: 170px !important;
  text-align: center !important;
}

.report-filter .label {
  margin: 0 0 4px !important;
  font-size: 11px !important;
}

.report-filter select,
.report-filter input {
  height: 40px !important;
}

/* Exact one-row layout for 3 sections */
.report-three-row {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr) minmax(460px, 1.2fr) !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
}

.report-three-row>.same-row-section,
.report-three-row>.chart-split,
.report-three-row>.card {
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 0 !important;
}

.report-three-row .timeline-status-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.report-three-row .summary-compact {
  overflow: hidden;
}

.report-three-row .detail-list-compact {
  overflow: hidden;
}

.report-three-row .detail-list-compact .table,
.report-three-row .summary-compact .table {
  display: block !important;
  width: 100% !important;
  overflow: auto !important;
}

.report-three-row .detail-list-compact .table {
  min-width: 780px !important;
}

.report-three-row .summary-compact .table {
  min-width: 720px !important;
}

.report-three-row .timeline-list {
  max-height: 700px !important;
  overflow: auto !important;
}

.report-three-row .detail-list-compact {
  max-height: none !important;
}

.report-three-row .summary-compact details {
  display: block;
}

.report-three-row .summary-compact details>div {
  max-height: 300px;
  overflow: auto;
}

.report-three-row .section-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.report-three-row #taskSearchInput {
  width: 100% !important;
  max-width: none !important;
  margin-top: 8px !important;
}

/* Keep filter one row on laptop, break only when necessary */
@media (max-width: 1280px) {
  .report-filter-compact .report-filter-top {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .report-head {
    grid-template-columns: 1fr !important;
  }

  .report-head-right {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 1180px) {
  .report-three-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .report-filter-compact .report-filter-top {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 560px) {
  .report-filter-compact .report-filter-top {
    grid-template-columns: 1fr !important;
  }

  .filter-actions.top-actions {
    flex-wrap: wrap !important;
  }

  .clock-badge,
  .filter-actions.top-actions .btn {
    width: 100% !important;
  }
}
/* Compact Modal Refinements */
.modal-dialog { padding: 12px !important; }
.modal-header { margin-bottom: 8px !important; }
.label { margin: 6px 0 4px !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
input, select, textarea { padding: 8px 10px !important; border-radius: 8px !important; font-size: 14px !important; }
.modal-body { padding-top: 0 !important; }

/* --- Professional Reporting & Dashboard Utilities --- */
.btn-vna-gold { background-color: #bda554 !important; border-color: #bda554 !important; color: #fff !important; transition: all 0.2s ease-in-out; }
.btn-vna-gold:hover { background-color: #a38d45 !important; border-color: #a38d45 !important; color: #fff !important; }

.btn-filter-active { background-color: #005587 !important; border-color: #005587 !important; color: #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,0.15); transition: all 0.2s ease; }
.btn-filter-active:hover { background-color: #003f63 !important; border-color: #003f63 !important; color: #fff !important; }

.btn-filter-normal { color: #005587 !important; border-color: #005587 !important; background-color: #fff !important; transition: all 0.2s ease; }
.btn-filter-normal:hover { background-color: #005587 !important; color: #fff !important; }

.kpi-card { border: none; border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; color: #fff; position: relative; margin-bottom: 1rem; }
.kpi-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.kpi-card .card-body { position: relative; z-index: 1; padding: 1.5rem; }
.kpi-card .icon-bg { position: absolute; right: -10px; bottom: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; transform: rotate(-15deg); }
.kpi-card.total { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.kpi-card.doing { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
.kpi-card.done { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.kpi-card.members { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }

.task-clickable { cursor: pointer !important; transition: all 0.15s ease-in-out; }
.task-clickable:hover { transform: translateY(-2px); filter: brightness(0.98); box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; }

.chart-container { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); height: 100%; border: 1px solid #f0f0f0; color: #333; }
.chart-container h6 { color: #666; font-weight: bold; }
