:root {
  --amw-blue-950: #08213c;
  --amw-blue-900: #0b3b6f;
  --amw-blue-700: #0d66b2;
  --amw-blue-500: #1686ee;
  --amw-blue-100: #eaf4ff;
  --amw-blue-050: #f7fbff;
  --amw-cyan: #02a6d8;
  --amw-green: #16a765;
  --amw-pink: #e8175c;
  --amw-orange: #f59e0b;
  --amw-purple: #653090;
  --amw-text: #122b43;
  --amw-muted: #6d7f90;
  --amw-border: #dbe7f2;
  --amw-surface: rgba(255, 255, 255, 0.92);
  --amw-shadow: 0 22px 60px rgba(10, 42, 76, 0.12);
  --amw-shadow-soft: 0 12px 34px rgba(10, 42, 76, 0.08);
  --sidebar-width: 304px;
  --sidebar-rail: 78px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--amw-text);
  font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0, #eef5fc 100%);
  letter-spacing: 0;
}

a {
  text-decoration: none;
}

.material-symbols-rounded {
  width: auto;
  min-width: 1em;
  height: auto;
  overflow: visible;
  font-size: 1.35rem;
  line-height: 1;
  vertical-align: -0.22em;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-rail) minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: var(--sidebar-rail);
  height: 100vh;
  padding: 14px 10px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #08213c 0%, #0b3b6f 54%, #0d66b2 100%);
  box-shadow: 16px 0 40px rgba(8, 33, 60, 0.14);
  transition: width 180ms ease, box-shadow 180ms ease;
}

.app-sidebar:hover,
.app-sidebar:focus-within {
  width: var(--sidebar-width);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-content: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.16), 0 12px 28px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
}

.app-sidebar:hover .brand-copy,
.app-sidebar:focus-within .brand-copy {
  opacity: 1;
  transform: none;
}

.sidebar-scroll {
  height: calc(100vh - 104px);
  overflow: hidden auto;
  padding-right: 2px;
}

.nav-group {
  margin-bottom: 6px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.nav-group-toggle:hover,
.nav-group.active .nav-group-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.nav-group-toggle .material-symbols-rounded:first-child {
  color: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
}

.nav-text,
.nav-caret {
  opacity: 0;
  transition: opacity 150ms ease;
}

.nav-caret {
  margin-left: auto;
}

.app-sidebar:hover .nav-text,
.app-sidebar:focus-within .nav-text,
.app-sidebar:hover .nav-caret,
.app-sidebar:focus-within .nav-caret {
  opacity: 1;
}

.nav-submenu {
  margin: 6px 0 8px 45px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-subitem:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-subitem .material-symbols-rounded {
  font-size: 1.12rem;
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 18px 30px 14px;
  border-bottom: 1px solid rgba(219, 231, 242, 0.72);
  background: rgba(248, 251, 255, 0.84);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  color: var(--amw-blue-900);
  font-size: clamp(1.24rem, 2vw, 1.84rem);
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 2px;
  color: #4f6d87;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--amw-border);
  background: #fff;
}

.session-chip,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(219, 231, 242, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--amw-blue-900);
  font-size: 0.88rem;
  font-weight: 500;
}

.content-stage {
  padding: 22px 30px 40px;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  border-color: #126fe0;
  background: linear-gradient(180deg, #1b8af2, #126fe0);
  box-shadow: 0 10px 20px rgba(22, 111, 224, 0.18);
}

.btn-primary:hover {
  border-color: #0d61c7;
  background: linear-gradient(180deg, #157ce1, #0d61c7);
}

.btn-success {
  border-color: #0d9a5a;
  background: linear-gradient(180deg, #19b874, #0d9a5a);
  box-shadow: 0 10px 20px rgba(13, 154, 90, 0.16);
}

.btn-outline-primary,
.btn-outline-secondary {
  background: #fff;
}

.form-label {
  margin-bottom: 6px;
  color: #23435f;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 42px;
  border-color: #d9e4ee;
  border-radius: 10px;
  color: #162c40;
  background-color: #fff;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(8, 33, 60, 0.02);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(22, 134, 238, 0.62);
  box-shadow: 0 0 0 0.22rem rgba(22, 134, 238, 0.12);
}

.form-check-input {
  border-color: #cbd9e6;
}

.form-check-input:checked {
  border-color: var(--amw-blue-500);
  background-color: var(--amw-blue-500);
}

.page-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.page-command h2 {
  margin: 0;
  color: var(--amw-blue-950);
  font-size: 1.18rem;
  font-weight: 800;
}

.page-command p {
  margin: 4px 0 0;
  color: var(--amw-muted);
  font-size: 0.92rem;
}

.page-command-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-stat {
  min-width: 116px;
  padding: 10px 12px;
  border: 1px solid rgba(219, 231, 242, 0.94);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--amw-shadow-soft);
}

.mini-stat strong {
  display: block;
  color: var(--amw-blue-900);
  font-size: 1.04rem;
}

.mini-stat span {
  color: var(--amw-muted);
  font-size: 0.78rem;
}

.workspace {
  display: grid;
  gap: 18px;
}

.dashboard-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 0;
}

.dashboard-overview h2 {
  margin: 0 0 4px;
  color: var(--amw-blue-900);
  font-size: 1.22rem;
  font-weight: 800;
}

.dashboard-overview p {
  margin: 0;
  color: var(--amw-muted);
  font-size: 0.92rem;
}

.dashboard-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(211, 226, 240, 0.95);
  border-radius: 8px;
  color: var(--amw-blue-700);
  background: #fff;
  box-shadow: var(--amw-shadow-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-updated .material-symbols-rounded {
  font-size: 18px;
}

.dashboard-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 187, 75, 0.38);
  border-radius: 8px;
  color: #7a4a05;
  background: #fff8e8;
  font-weight: 600;
}

.dashboard-notice .material-symbols-rounded {
  font-size: 21px;
}

.hero-panel,
.work-panel,
.metric-card,
.report-sheet,
.login-card {
  border: 1px solid rgba(219, 231, 242, 0.94);
  border-radius: 14px;
  background: var(--amw-surface);
  box-shadow: var(--amw-shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 22px;
  overflow: hidden;
}

.hero-copy h2 {
  margin: 0 0 8px;
  color: var(--amw-blue-900);
  font-size: clamp(1.28rem, 2.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--amw-muted);
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-logo img {
  max-width: 164px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(16, 82, 140, 0.12));
}

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

.metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 17px;
  box-shadow: var(--amw-shadow-soft);
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: var(--amw-blue-700);
  background: var(--amw-blue-100);
}

.metric-icon.vivid {
  color: #fff;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(47, 145, 232, 0.2);
}

.metric-icon.vivid.pink { background: linear-gradient(135deg, #ff2b74, #d80b56); }
.metric-icon.vivid.green { background: linear-gradient(135deg, #b8d915, #75bb12); }
.metric-icon.vivid.orange { background: linear-gradient(135deg, #ffb13d, #f36a2d); }
.metric-icon.vivid.purple { background: linear-gradient(135deg, #7d3ac7, #4e238f); }

.metric-value {
  color: var(--amw-blue-900);
  font-size: 1.65rem;
  font-weight: 700;
}

.metric-label {
  color: var(--amw-muted);
  font-size: 0.9rem;
}

.work-panel {
  overflow: hidden;
  border-color: rgba(207, 223, 238, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 50px rgba(10, 42, 76, 0.1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--amw-border);
  background: #fff;
  color: var(--amw-blue-900);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--amw-muted);
  font-size: 0.86rem;
}

.dashboard-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 44px 18px;
  color: var(--amw-muted);
  text-align: center;
  background: #fff;
}

.dashboard-empty .material-symbols-rounded {
  color: var(--amw-blue-500);
  font-size: 42px;
}

.dashboard-empty strong {
  color: var(--amw-blue-900);
  font-size: 1rem;
}

.filter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--amw-border);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(241, 247, 253, 0.92));
}

.branch-search-form {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: end;
  flex-wrap: nowrap;
  width: 100%;
}

.branch-search-form > div {
  flex: 1 1 180px;
  min-width: 0;
}

.branch-search-form > div:first-child {
  flex-basis: 260px;
}

.branch-search-form > div:last-child {
  flex: 0 0 auto;
}

.customer-search-form {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  align-items: end;
  flex-wrap: nowrap;
  width: 100%;
}

.customer-search-form > div {
  flex: 1 1 180px;
  min-width: 0;
}

.customer-search-form > div:first-child {
  flex: 1.18 1 260px;
}

.customer-search-form > div:last-child {
  flex: 0 0 auto;
}

.employee-search-form {
  display: flex;
  flex-wrap: nowrap;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: end;
  justify-content: flex-start;
  width: 100%;
}

.employee-search-form > div:nth-child(1) {
  flex: 1.1 1 220px;
  min-width: 0;
}

.employee-search-form > div:nth-child(2) {
  flex: 1.2 1 240px;
  min-width: 0;
}

.employee-search-form > div:nth-child(3) {
  flex: 0.9 1 180px;
  min-width: 0;
}

.employee-search-form > div:nth-child(4),
.employee-search-form > div:nth-child(5) {
  flex: 0 0 auto;
}

.employee-search-form .filter-check {
  min-height: 38px;
  margin: 0;
  padding-top: 8px;
  white-space: nowrap;
}

.time-stamp-search-form {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: end;
  flex-wrap: nowrap;
  width: 100%;
}

.time-stamp-search-form > div {
  flex: 1 1 180px;
  min-width: 0;
}

.time-stamp-search-form > div:first-child {
  flex: 1.1 1 240px;
}

.time-stamp-search-form > div:last-child {
  flex: 0 0 auto;
}

.branch-load-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--amw-border);
  background: rgba(255, 255, 255, 0.88);
  color: #31506c;
}

.branch-progress {
  width: min(260px, 34vw);
  height: 8px;
  border-radius: 999px;
  background: var(--amw-blue-100);
}

.branch-progress .progress-bar {
  background: linear-gradient(90deg, var(--amw-blue-500), var(--amw-cyan));
}

.form-validation-summary {
  display: flex;
  min-width: 0;
  max-width: min(760px, 100%);
  margin-right: auto;
  padding: 8px 12px;
  border: 1px solid rgba(232, 23, 92, 0.2);
  border-radius: 12px;
  background: #fff7fa;
  color: #9d123f;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.form-validation-summary .material-symbols-rounded {
  font-size: 1.15rem;
  color: var(--amw-pink);
}

.validation-summary-main {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.validation-summary-copy {
  display: flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
}

.validation-summary-copy strong,
.validation-summary-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.validation-details {
  position: relative;
  flex: 0 0 auto;
}

.validation-details summary {
  color: #9d123f;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
}

.validation-details summary::-webkit-details-marker {
  display: none;
}

.validation-details[open] ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  width: min(420px, calc(100vw - 48px));
  max-height: 240px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid rgba(232, 23, 92, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10, 40, 80, 0.16);
  gap: 6px;
}

.validation-link {
  padding: 0;
  border: 0;
  color: #9d123f;
  background: transparent;
  font: inherit;
  text-align: left;
}

.validation-link:hover {
  text-decoration: underline;
}

.modal-dialog-scrollable .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--amw-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.modal-content {
  border: 1px solid rgba(207, 223, 238, 0.9);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(8, 33, 60, 0.22);
}

.modal-header {
  position: relative;
  min-height: 64px;
  padding: 14px 60px 14px 20px;
  border-bottom: 0;
  color: #fff;
  background: linear-gradient(135deg, #0f5d9b 0%, #1d8ee4 52%, #30c0d4 100%);
}

.modal-title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.modal-header .btn-close,
.modal-header .btn-icon {
  position: absolute;
  top: 15px;
  right: 16px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 49, 87, 0.18);
  color: #123451;
  opacity: 1;
}

.modal-header .btn-close {
  background-size: 0.72rem;
}

.modal-header .btn-icon .material-symbols-rounded {
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  font-size: 20px;
  line-height: 1;
  vertical-align: 0;
}

.modal-header .btn-close:hover,
.modal-header .btn-icon:hover {
  background-color: #fff;
  color: #0f5d9b;
}

.amw-dialog-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf5ff;
  color: #0f68b8;
  font-size: 1.3rem;
}

.amw-dialog-icon[data-tone="warning"] {
  background: #fff4df;
  color: #b85d00;
}

.amw-dialog-icon[data-tone="danger"] {
  background: #ffe8ee;
  color: #c21d38;
}

.amw-dialog-icon[data-tone="success"] {
  background: #e6f8ef;
  color: #0b7f53;
}

.amw-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.modal-body {
  padding: 20px 22px;
}

.modal-footer {
  padding: 14px 22px;
}

.modal-footer-validation {
  gap: 10px;
}

.tax-branch-control {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.tax-branch-control.invalid {
  padding: 8px;
  border: 1px solid rgba(244, 63, 94, 0.55);
  border-radius: 8px;
  background: #fff8fa;
}

.tax-sub-branch-input:disabled {
  background-color: #f3f7fb;
  opacity: 0.72;
}

.amw-date-field {
  max-width: 100%;
}

.amw-date-field .amw-date-display {
  background: #fff;
  cursor: pointer;
}

.amw-date-field .amw-date-display:focus {
  border-color: rgba(15, 118, 210, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(15, 118, 210, 0.14);
}

.amw-date-field .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amw-date-field .material-symbols-rounded {
  font-size: 1.25rem;
}

.amw-time-field .form-select {
  min-width: 0;
  padding-right: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.amw-time-field .input-group-text {
  border-color: #d6e4f2;
  background: #f8fbff;
  color: #0f58a0;
}

.amw-time-field .material-symbols-rounded {
  font-size: 1.2rem;
}

.bulk-time-stamp-table {
  max-height: 65vh;
}

.bulk-time-stamp-table table {
  min-width: 1180px;
}

.bulk-time-grid {
  display: grid;
  grid-template-columns: minmax(142px, 1fr) 72px 72px;
  gap: 0.5rem;
  align-items: center;
}

.bulk-time-grid .form-select {
  padding-right: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.bulk-row-status {
  display: inline-flex;
  min-width: 96px;
  font-weight: 800;
  line-height: 1.35;
}

.bulk-row-status.success {
  color: #0b7f53;
}

.bulk-row-status.danger {
  color: #c21d38;
}

.amw-datepicker {
  position: fixed;
  z-index: 3000;
  width: 304px;
  padding: 14px;
  border: 1px solid rgba(15, 88, 154, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(10, 40, 80, 0.2);
}

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

.amw-datepicker-title {
  color: var(--amw-blue-700);
  font-weight: 800;
  line-height: 1.2;
}

.amw-datepicker-nav {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--amw-border);
  border-radius: 8px;
  background: #fff;
  color: var(--amw-blue-700);
}

.amw-datepicker-nav:hover {
  background: var(--amw-blue-100);
}

.amw-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.amw-datepicker-weekday {
  padding: 5px 0;
  color: var(--amw-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.amw-datepicker-day {
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--amw-text);
  font-weight: 700;
}

.amw-datepicker-day:hover {
  background: var(--amw-blue-100);
  color: var(--amw-blue-700);
}

.amw-datepicker-day.active {
  background: var(--amw-blue-500);
  color: #fff;
}

.amw-datepicker-day.today:not(.active) {
  outline: 2px solid rgba(25, 118, 210, 0.28);
  outline-offset: -2px;
  color: var(--amw-blue-700);
}

.amw-datepicker-day.blank {
  visibility: hidden;
}

.amw-datepicker-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--amw-border);
}

.amw-datepicker-clear,
.amw-datepicker-today {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}

.amw-datepicker-clear {
  border: 1px solid var(--amw-border);
  background: #fff;
  color: var(--amw-muted);
}

.amw-datepicker-today {
  border: 1px solid rgba(15, 118, 210, 0.18);
  background: var(--amw-blue-100);
  color: var(--amw-blue-700);
}

.table {
  margin: 0;
  --bs-table-hover-bg: #f7fbff;
  --bs-table-striped-bg: #fbfdff;
}

.table thead th {
  color: var(--amw-blue-900);
  font-size: 0.86rem;
  font-weight: 700;
  background: #f4f8fc;
  border-bottom-color: #cfdfef;
  white-space: nowrap;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.table-sort:hover {
  color: var(--amw-blue-500);
}

.table-sort .material-symbols-rounded {
  font-size: 1.08rem;
  flex: 0 0 auto;
  color: var(--amw-blue-700);
  opacity: 0.72;
}

.table-sort.active {
  color: inherit;
}

.table-sort.active .material-symbols-rounded {
  color: #000;
  opacity: 1;
  font-variation-settings: "FILL" 1;
}

.table > :not(caption) > * > * {
  padding: 0.82rem 1rem;
  border-bottom-color: #e4edf6;
  vertical-align: middle;
}

.table tbody td {
  color: #18334c;
  font-size: 0.94rem;
}

.table tbody tr {
  transition: background 120ms ease;
}

.table .badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.table .badge.text-bg-light {
  background-color: #dff0ff !important;
  border-color: #b9dcff;
  color: #084b82 !important;
}

.table .badge.text-bg-info {
  background-color: #d8f3ff !important;
  border-color: #8bdaf4;
  color: #075a73 !important;
}

.table .badge.text-bg-warning {
  background-color: #fff2bf !important;
  border-color: #f8d75a;
  color: #765400 !important;
}

.table .badge.text-bg-primary {
  background-color: #dbeafe !important;
  border-color: #8bbcff;
  color: #0b4ca0 !important;
}

.table .badge.text-bg-success {
  background-color: #daf8e8 !important;
  border-color: #85dcb1;
  color: #087346 !important;
}

.table .badge.text-bg-secondary {
  background-color: #e8eef5 !important;
  border-color: #c9d6e4;
  color: #41556d !important;
}

.table .badge.text-bg-danger {
  background-color: #ffe1e7 !important;
  border-color: #ff9fb2;
  color: #b51642 !important;
}

.table .badge.employee-type-daily {
  background-color: #e6f7ff;
  border-color: #8bdaf4;
  color: #075a73;
}

.table .badge.employee-type-monthly {
  background-color: #efe7ff;
  border-color: #c9b4ff;
  color: #4c238f;
}

.action-cell {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.action-cell .btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  flex: 0 0 40px;
}

.action-cell .material-symbols-rounded {
  width: auto;
  height: auto;
  min-width: 1em;
  overflow: visible;
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

.btn-icon:disabled,
.btn-icon.disabled,
.action-cell .btn:disabled,
.action-cell .btn.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 1;
  color: #8b949e;
  border-color: #cbd3dc;
  background-color: #e5e7eb;
}

.btn-icon:disabled .material-symbols-rounded,
.btn-icon.disabled .material-symbols-rounded,
.action-cell .btn:disabled .material-symbols-rounded,
.action-cell .btn.disabled .material-symbols-rounded {
  color: #8b949e;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf7f0;
  border: 1px solid rgba(22, 167, 101, 0.28);
  color: var(--amw-blue-900);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.status-badge.inactive {
  background: #fff0f3;
  border-color: #ffc2d0;
  color: #b51642;
}

.status-badge.danger {
  background: #ffe8ec;
  border-color: #ff8fa3;
  color: #b00020;
}

.report-page-progress {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(160px, 280px);
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 10px 14px;
  border: 1px solid #d8e7f5;
  border-radius: 12px;
  background: #f5faff;
  color: var(--amw-blue-900);
  font-size: 0.92rem;
  font-weight: 700;
}

.report-page-progress .progress {
  height: 8px;
  background: #e3edf7;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
  color: var(--amw-blue-900);
  font-weight: 800;
}

.form-section-title::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amw-blue-500);
  content: "";
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(215, 230, 245, 0.92);
  border-radius: 8px;
  color: var(--amw-blue-900);
  text-align: left;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--amw-shadow-soft);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 145, 232, 0.48);
  box-shadow: var(--amw-shadow);
}

.quick-action .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--action-tone, var(--amw-blue-500));
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(47, 145, 232, 0.18);
  font-size: 1.6rem;
}

.quick-action span:last-child {
  font-weight: 600;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top, rgba(47, 145, 232, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7fbff 0, #eef6ff 100%);
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.login-logo {
  display: block;
  max-width: 210px;
  margin: 0 auto 26px;
}

.login-heading {
  margin-bottom: 26px;
  text-align: center;
}

.login-heading h1 {
  margin: 6px 0 0;
  color: var(--amw-blue-900);
  font-size: 1.45rem;
  font-weight: 700;
}

.field-note {
  display: block;
  min-height: 20px;
  margin-top: 6px;
  padding-left: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.field-note-danger {
  color: #e11d48;
}

.field-note-danger.field-validation-error {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.field-note-danger.field-validation-error::before {
  font-family: "Material Symbols Rounded";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  content: "info";
}

.field-validation-valid {
  visibility: hidden;
}

.input-validation-error {
  border-color: rgba(244, 63, 94, 0.55) !important;
  background: linear-gradient(180deg, #fff 0%, #fff8fa 100%) !important;
  box-shadow: 0 0 0 0.24rem rgba(244, 63, 94, 0.11) !important;
}

.login-spin {
  animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

.report-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.report-sheet {
  min-height: 720px;
  padding: 32px;
  background: #fff;
}

.report-title {
  color: var(--amw-blue-900);
  font-weight: 700;
  text-align: center;
}

.report-center {
  display: grid;
  gap: 18px;
}

.report-center-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.report-center-toolbar h2,
.report-migration-note h3 {
  margin: 0;
  color: var(--amw-blue-900);
  font-size: 1.25rem;
  font-weight: 800;
}

.report-center-toolbar p,
.report-migration-note p {
  margin: 4px 0 0;
  color: #55708a;
  font-size: 0.94rem;
}

.report-center-stat {
  display: grid;
  min-width: 124px;
  padding: 12px 16px;
  border: 1px solid var(--amw-border);
  border-radius: 12px;
  background: #f7fbff;
  text-align: left;
}

.report-center-stat span {
  color: #5c7690;
  font-size: 0.82rem;
  font-weight: 700;
}

.report-center-stat strong {
  color: var(--amw-blue-900);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-card,
.report-migration-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(207, 223, 238, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--amw-shadow-soft);
}

.report-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
}

.report-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amw-blue-700), var(--amw-cyan));
  box-shadow: 0 12px 26px rgba(13, 102, 178, 0.18);
}

.report-card-icon .material-symbols-rounded {
  font-size: 1.55rem;
}

.report-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.report-card h3 {
  margin: 0;
  color: var(--amw-blue-900);
  font-size: 1.08rem;
  font-weight: 800;
}

.report-card p {
  margin: 0 0 12px;
  color: #405c76;
  font-size: 0.94rem;
  line-height: 1.45;
}

.report-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.report-card dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.report-card dt {
  color: #6d8296;
  font-size: 0.82rem;
  font-weight: 700;
}

.report-card dd {
  margin: 0;
  color: #15314b;
  font-size: 0.88rem;
  font-weight: 600;
}

.report-card-actions {
  display: grid;
  gap: 8px;
  min-width: 112px;
}

.report-card-actions .btn:disabled {
  opacity: 0.52;
}

.daily-report-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 20px 22px 22px;
}

.daily-report-panel > *,
.daily-report-preview-host,
.daily-report-preview,
.other-income-report-preview,
.monthly-report-preview {
  min-width: 0;
  max-width: 100%;
}

.daily-report-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.daily-report-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.daily-report-panel-header h2 {
  margin: 4px 0 2px;
  color: var(--amw-blue-900);
  font-size: 1.34rem;
  font-weight: 900;
}

.daily-report-panel-header p {
  margin: 0;
  color: #55708a;
  font-size: 0.94rem;
}

.daily-report-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid #d9e8f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.monthly-report-real-form,
.monthly-report-form,
.other-income-report-form {
  grid-template-columns: minmax(260px, 1.2fr) minmax(150px, 0.7fr) minmax(130px, 0.6fr) auto;
}

.daily-report-form .form-label {
  color: var(--amw-blue-900);
  font-weight: 800;
}

.daily-report-form-actions {
  display: flex;
  justify-content: flex-end;
}

.daily-report-preview-host {
  min-height: 180px;
}

.daily-report-preview,
.other-income-report-preview {
  border: 1px solid #d9e8f7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.daily-report-preview-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(14, 116, 196, 0.08), rgba(45, 198, 224, 0.1));
  border-bottom: 1px solid #d9e8f7;
}

.daily-report-preview-header h3 {
  margin: 2px 0;
  color: var(--amw-blue-900);
  font-size: 1.18rem;
  font-weight: 900;
}

.daily-report-preview-header p {
  margin: 0;
  color: #526d86;
  font-weight: 650;
}

.daily-report-total {
  display: grid;
  min-width: 150px;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0fa66a, #22c55e);
  box-shadow: 0 12px 26px rgba(15, 166, 106, 0.16);
}

.daily-report-total.muted {
  background: linear-gradient(135deg, var(--amw-blue-700), var(--amw-cyan));
  box-shadow: 0 12px 26px rgba(13, 102, 178, 0.16);
}

.daily-report-total span {
  font-size: 0.8rem;
  font-weight: 750;
  opacity: 0.88;
}

.daily-report-total strong {
  font-size: 1.2rem;
  font-weight: 900;
  text-align: right;
}

.daily-report-preview .table,
.other-income-report-preview .table {
  margin-bottom: 0;
}

.daily-report-preview thead th,
.daily-report-preview tfoot th,
.other-income-report-preview thead th,
.other-income-report-preview tfoot th {
  color: var(--amw-blue-800);
  font-weight: 900;
}

.daily-report-preview tbody td,
.daily-report-preview tfoot th,
.other-income-report-preview tbody td,
.other-income-report-preview tfoot th {
  border-color: #e3edf7;
}

.monthly-report-preview {
  border: 1px solid #d9e8f7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.monthly-report-real-panel {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.monthly-report-real-panel > *,
.monthly-report-real-panel .monthly-report-preview {
  min-width: 0;
  max-width: 100%;
}

.monthly-report-preview-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(14, 116, 196, 0.08), rgba(45, 198, 224, 0.1));
  border-bottom: 1px solid #d9e8f7;
}

.monthly-report-preview-header h3 {
  margin: 2px 0;
  color: var(--amw-blue-900);
  font-size: 1.18rem;
  font-weight: 900;
}

.monthly-report-preview-header p {
  margin: 0;
  color: #526d86;
  font-weight: 650;
}

.monthly-report-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  scrollbar-color: #4a91c9 #e6f0f8;
  scrollbar-width: auto;
}

.monthly-report-table::-webkit-scrollbar {
  height: 12px;
}

.monthly-report-table::-webkit-scrollbar-track {
  background: #e6f0f8;
}

.monthly-report-table::-webkit-scrollbar-thumb {
  border: 2px solid #e6f0f8;
  border-radius: 6px;
  background: #4a91c9;
}

.monthly-report-table table {
  min-width: 1420px;
  margin-bottom: 0;
}

.monthly-report-table th,
.monthly-report-table td {
  white-space: nowrap;
}

.monthly-report-table thead th,
.monthly-report-table tfoot th {
  color: var(--amw-blue-800);
  font-weight: 900;
}

.monthly-report-table .sticky-col {
  position: sticky;
  z-index: 2;
  background: #fff;
}

.monthly-report-table thead .sticky-col {
  background: #eef6ff;
}

.monthly-report-table .sequence-col {
  left: 0;
  width: 72px;
  min-width: 72px;
}

.monthly-report-table .item-col {
  left: 72px;
  width: 260px;
  min-width: 260px;
  box-shadow: 8px 0 14px rgba(30, 64, 96, 0.05);
}

.monthly-report-table .day-col {
  width: 48px;
  min-width: 48px;
}

.monthly-report-table .total-col {
  width: 96px;
  min-width: 96px;
  font-weight: 800;
}

.report-inline-alert {
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 800;
}

.select2-container {
  min-width: 0;
  font-family: "Kanit", sans-serif;
}

.select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #fff;
  color: #15314b;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #69aaf3;
  box-shadow: 0 0 0 0.2rem rgba(21, 115, 246, 0.12);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding-left: 14px;
  padding-right: 38px;
  color: #15314b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6d8296;
  font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
}

.select2-dropdown {
  z-index: 2055;
  overflow: hidden;
  border: 1px solid #bfd5e8;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(24, 67, 104, 0.18);
}

.select2-search--dropdown {
  padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d5e1ec;
  border-radius: 7px;
  outline: 0;
  color: #15314b;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 300px;
}

.select2-results__option {
  padding: 9px 12px;
  color: #15314b;
  font-weight: 600;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: #eaf5ff;
  color: #075a9b;
}

.select2-container--default .select2-results__option--selected {
  background: #dceeff;
  color: #075a9b;
  font-weight: 800;
}

.tax-invoice-report-preview .table-responsive,
.receipt-report-preview .table-responsive {
  overflow-x: auto;
}

.tax-invoice-report-preview .report-action-column,
.receipt-report-preview .report-action-column {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 190px;
  min-width: 190px;
  background: #fff;
  box-shadow: -10px 0 16px rgba(31, 73, 110, 0.07);
}

.tax-invoice-report-preview thead .report-action-column,
.receipt-report-preview thead .report-action-column {
  z-index: 3;
  background: #f2f7fc;
}

.tax-invoice-report-preview tbody tr:hover .report-action-column,
.receipt-report-preview tbody tr:hover .report-action-column {
  background: #f7fbff;
}

.empty-state.compact {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed #c7dff6;
  border-radius: 16px;
  color: #526d86;
  background: #f8fbff;
  text-align: center;
}

.empty-state.compact .material-symbols-rounded {
  color: var(--amw-blue-700);
  font-size: 2rem;
}

.empty-state.compact strong {
  color: var(--amw-blue-900);
  font-size: 1.02rem;
}

.empty-state.compact p {
  margin: 0;
  color: #6d8296;
  font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
  .metric-grid,
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .report-workspace {
    grid-template-columns: 1fr;
  }

  .filter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid,
  .report-card,
  .daily-report-form,
  .monthly-report-real-form,
  .monthly-report-form,
  .other-income-report-form,
  .monthly-report-preview-header,
  .daily-report-preview-header {
    grid-template-columns: 1fr;
  }

  .daily-report-panel-header {
    flex-direction: column;
  }

  .daily-report-panel-actions {
    width: 100%;
    justify-content: stretch;
  }

  .daily-report-panel-actions .btn {
    flex: 1 1 160px;
  }

  .daily-report-form-actions {
    justify-content: stretch;
  }

  .daily-report-form-actions .btn {
    width: 100%;
  }

  .report-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-search-form,
  .customer-search-form,
  .time-stamp-search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-search-form > div:nth-child(n) {
    flex: initial;
  }

  .branch-search-form > div,
  .customer-search-form > div,
  .time-stamp-search-form > div {
    flex: initial;
  }
}

.section-toolbar {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--amw-muted);
    font-size: 0.92rem;
    margin: 0;
}

.customer-items-section {
    background: #f8fbff;
    border: 1px solid #dceafb;
    border-radius: 18px;
    padding: 18px;
}

.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--bs-modal-margin) * 2);
    min-height: 0;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
    overflow-y: auto;
}

.customer-items-table {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    overflow-x: auto;
}

.customer-items-table table {
    margin-bottom: 0;
    min-width: 760px;
}

.customer-items-table thead th {
    background: #eef6ff;
    color: var(--amw-blue-700);
    font-size: 0.92rem;
}

.item-helper-alert {
    align-items: center;
    background: #eaf5ff;
    border: 1px solid #c9e4ff;
    border-radius: 14px;
    color: var(--amw-blue-700);
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.drag-col,
.drag-cell {
    width: 44px;
}

.drag-cell {
    color: #6b7d92;
    cursor: grab;
    text-align: center;
}

tr.dragging {
    opacity: 0.45;
}

.item-disable-check {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 12px 14px 12px 38px;
    width: 100%;
}

.customer-modal-behind {
    filter: saturate(0.8);
}

.permission-option {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 100%;
    padding: 14px;
}

.permission-option strong,
.permission-option small {
    display: block;
}

.permission-option small {
    color: #64748b;
    line-height: 1.45;
    margin-top: 4px;
}

.permission-list {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    overflow: hidden;
}

.permission-row {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e8f1ff;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 12px 16px 12px var(--permission-indent);
}

.permission-row:last-child {
    border-bottom: 0;
}

.permission-row.parent {
    background: #f3f8ff;
    font-weight: 600;
}

.permission-row-name {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.permission-row-name .material-symbols-rounded {
    color: #0f5d9b;
    font-size: 20px;
}

.pay-slip-modal-header {
    align-items: flex-start;
    background: linear-gradient(135deg, #0f5d9b 0%, #1d8ee4 52%, #30c0d4 100%);
    border-bottom: 0;
    color: #fff;
    min-height: 64px;
    padding: 14px 60px 14px 20px;
    position: relative;
}

.pay-slip-modal-header .modal-title {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.15;
}

.modal-eyebrow {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.pay-slip-modal-header .modal-close-button {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 18px rgba(15, 49, 87, 0.18);
    color: #123451;
    height: 34px;
    position: absolute;
    right: 16px;
    top: 15px;
    width: 34px;
}

.pay-slip-modal-header .modal-close-button .material-symbols-rounded {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    font-size: 20px;
    line-height: 1;
    vertical-align: 0;
}

.pay-slip-modal-header .modal-close-button:hover {
    background: #fff;
    color: #0f5d9b;
}


.pay-slip-detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: stretch;
}

.pay-slip-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--amw-border);
  border-radius: 14px;
  background: #f8fbff;
}

.pay-slip-detail-meta div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  text-align: left;
}

.pay-slip-detail-meta dt {
  margin: 0;
  color: #526f8a;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.pay-slip-detail-meta dd {
  margin: 0;
  color: var(--amw-blue-950);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.pay-slip-total-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b7f53 0%, #18b36f 100%);
  box-shadow: 0 16px 34px rgba(22, 167, 101, 0.18);
  color: #fff;
  text-align: left;
}

.pay-slip-total-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.pay-slip-total-card strong {
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.pay-slip-total-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.pay-slip-editor {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

.pay-slip-employee-heading {
    align-items: center;
    background: #f4f9ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px 16px;
}

.pay-slip-employee-heading h3 {
    color: var(--amw-blue-800);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 2px 0 0;
}

.pay-slip-employee-heading .badge {
    background: #dbeafe !important;
    color: #0f5d9b !important;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 12px;
    white-space: normal;
}

.pay-slip-summary-card {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px;
}

.summary-money {
    align-items: center;
    background: #eaf7f0;
    border: 1px solid #9ce6be;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 16px;
}

.summary-money span {
    color: #087346;
    font-size: 0.95rem;
    font-weight: 800;
}

.summary-money output {
    color: #087346;
    font-size: 1.35rem;
    font-weight: 800;
}

.summary-money.net {
    background: #0f5d9b;
    border-color: #0f5d9b;
}

.summary-money.net span,
.summary-money.net output {
    color: #fff;
}

.summary-money.danger {
    background: #fff0f3;
    border-color: #ff9fb2;
}

.summary-money.danger span,
.summary-money.danger output {
    color: #b51642;
}

.pay-slip-section {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 16px;
}

.section-income,
.section-extra {
    grid-column: 1 / 2;
}

.section-deduction,
.section-accumulate {
    grid-column: 1 / -1;
}

.pay-slip-section-title {
    align-items: flex-start;
    border-bottom: 1px solid #e6effb;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.pay-slip-section-title .material-symbols-rounded {
    align-items: center;
    background: #e8f4ff;
    border-radius: 50%;
    color: #0f5d9b;
    display: inline-flex;
    font-size: 24px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pay-slip-section-title h4 {
    color: var(--amw-blue-800);
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
}

.pay-slip-section-title p {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 3px 0 0;
}

.pay-slip-field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pay-slip-field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pay-slip-field {
    display: grid;
    gap: 6px;
}

.pay-slip-field.wide {
    grid-column: span 2;
}

.pay-slip-field span {
    color: #27415f;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.pay-slip-field input {
    min-height: 42px;
}

.pay-slip-field.readonly input {
    background: #f3f8ff;
    color: #0f5d9b;
    font-weight: 700;
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .topbar {
    padding: 14px 18px;
  }

  .content-stage {
    padding: 18px 18px 28px;
  }

  .page-command {
    grid-template-columns: 1fr;
  }

  .page-command-metrics {
    justify-content: flex-start;
  }

  .pay-slip-detail-overview {
    grid-template-columns: 1fr;
  }

  .pay-slip-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    align-items: flex-start;
  }

  .dashboard-overview {
    display: grid;
  }

  .dashboard-updated {
    justify-content: center;
    width: 100%;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-panel,
  .work-panel,
  .metric-card,
  .login-card,
  .report-sheet {
    border-radius: 8px;
  }

  .metric-grid,
  .quick-actions,
  .filter-strip,
  .page-command,
  .branch-search-form,
  .customer-search-form,
  .employee-search-form,
  .time-stamp-search-form {
    grid-template-columns: 1fr;
  }

  .page-command-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-stat {
    min-width: 0;
  }

  .modal-body {
    padding: 16px;
  }

  .tax-branch-control {
    grid-template-columns: 1fr;
  }

  .pay-slip-detail-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .branch-load-status {
    align-items: stretch;
    flex-direction: column;
  }

  .branch-progress {
    width: 100%;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .pay-slip-editor,
  .pay-slip-summary-card,
  .pay-slip-employee-heading,
  .section-income,
  .section-extra,
  .section-deduction,
  .section-accumulate {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pay-slip-field-grid,
  .pay-slip-field-grid.three {
    grid-template-columns: 1fr;
  }

  .pay-slip-field.wide {
    grid-column: span 1;
  }
}

@media (max-width: 899.98px) {
  .login-page {
    min-height: 100vh;
    padding: 24px;
  }

  .login-card {
    width: min(420px, 100%);
  }
}

/* Shared contract: every filter stays on one physical row at every viewport. */
.amw-filter-form {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap !important;
  scrollbar-color: #9fc7eb transparent;
  scrollbar-width: thin;
}

.amw-filter-form::-webkit-scrollbar {
  height: 6px;
}

.amw-filter-form::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9fc7eb;
}

.amw-filter-form > div {
  flex: 1 0 180px !important;
  min-width: 180px !important;
}

.amw-filter-form > div:first-child {
  flex-basis: 240px !important;
}

.amw-filter-form > div:last-child,
.amw-filter-form > .daily-report-form-actions {
  flex: 0 0 auto !important;
  min-width: max-content !important;
}

.amw-filter-form .btn,
.amw-filter-form .d-flex {
  flex-wrap: nowrap;
}

.amw-filter-form .btn {
  min-height: 38px;
  white-space: nowrap;
}

/* User activity report */
.user-activity-report-shell {
  overflow: hidden;
}

.user-activity-report-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #d9e7f4;
  background: #f8fbff;
}

.user-activity-report-filter {
  align-items: end;
  gap: .75rem;
}

.user-activity-report-filter > div {
  flex: 1 1 138px;
  min-width: 126px;
}

.user-activity-report-filter > .user-activity-keyword {
  flex-basis: 190px;
}

.user-activity-filter-actions {
  display: flex;
  flex: 0 0 auto !important;
  gap: .55rem;
  min-width: max-content !important;
  white-space: nowrap;
}

.user-activity-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.user-activity-report-host {
  min-height: 320px;
}

.user-activity-report-content {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.user-activity-report-context {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #173653;
}

.user-activity-report-context > div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.user-activity-report-context span,
.user-activity-report-context small {
  color: #65798d;
  font-size: .8rem;
}

.user-activity-report-context small {
  margin-left: auto;
}

.user-activity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  border: 1px solid #d9e7f4;
  border-radius: 6px;
  background: #fff;
}

.user-activity-summary > div {
  padding: .8rem 1rem;
  border-right: 1px solid #e3edf6;
}

.user-activity-summary > div:last-child {
  border-right: 0;
}

.user-activity-summary span,
.user-activity-summary strong {
  display: block;
}

.user-activity-summary span {
  color: #65798d;
  font-size: .82rem;
}

.user-activity-summary strong {
  margin-top: .2rem;
  color: #123f69;
  font-size: 1.35rem;
}

.user-activity-summary .success strong {
  color: #087f5b;
}

.user-activity-summary .failure strong {
  color: #d6334c;
}

.user-activity-load-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .35rem;
  color: #52657a;
  font-size: .84rem;
}

.user-activity-load-progress .progress {
  height: 7px;
  border-radius: 3px;
  background: #e5edf5;
}

.user-activity-load-progress .progress-bar {
  background: #0879d1;
}

.user-activity-table-wrap {
  border: 1px solid #d9e7f4;
  border-radius: 6px;
}

.user-activity-table {
  min-width: 1120px;
  margin-bottom: 0;
}

.user-activity-table th {
  padding: .7rem .75rem;
  color: #174d7b;
  background: #eef6ff;
  border-bottom-color: #c9dced;
}

.user-activity-table td {
  padding: .7rem .75rem;
  border-color: #e3edf6;
  vertical-align: middle;
}

.user-activity-table td strong,
.user-activity-table td small {
  display: block;
}

.user-activity-description {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-activity-table td small {
  margin-top: .12rem;
  color: #65798d;
  font-size: .78rem;
}

.user-activity-sort {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.user-activity-sort .material-symbols-rounded {
  color: #8fb4d3;
  font-size: 1rem;
}

.user-activity-sort.active .material-symbols-rounded {
  color: #111;
}

.user-activity-menu-badge,
.user-activity-action-badge,
.user-activity-result {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 5px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-activity-menu-badge {
  color: #075985;
  background: #e0f2fe;
}

.user-activity-action-badge {
  color: #5b21b6;
  background: #ede9fe;
}

.user-activity-result.success {
  color: #086a4d;
  background: #d9f8ea;
}

.user-activity-result.failure {
  color: #b4233b;
  background: #ffe1e6;
}

.user-activity-result .material-symbols-rounded {
  font-size: 1rem;
}

.user-activity-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 44px;
}

.user-activity-pagination > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cbdcec;
  border-radius: 5px;
  color: #174d7b;
  background: #fff;
  font-weight: 600;
}

.user-activity-pagination > .user-activity-load-more {
  width: auto;
  min-width: 170px;
  padding: 0 .85rem;
  gap: .35rem;
}

.user-activity-pagination > button.active {
  border-color: #0879d1;
  color: #fff;
  background: #0879d1;
}

.user-activity-pagination > button:disabled {
  border-color: #e2e8f0;
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
}

.user-activity-pagination .material-symbols-rounded {
  font-size: 1.2rem;
}

.user-activity-pagination > div {
  flex: 1 1 360px;
  max-width: 520px;
}

.user-activity-pagination .progress {
  height: 7px;
  margin-top: .35rem;
  border-radius: 3px;
  background: #e5edf5;
}

.user-activity-pagination .progress-bar {
  background: #0879d1;
}

@media (max-width: 768px) {
  .user-activity-report-context {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .user-activity-report-context small {
    margin-left: 0;
  }

  .user-activity-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-activity-summary > div:nth-child(2) {
    border-right: 0;
  }

  .user-activity-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid #e3edf6;
  }

  .user-activity-pagination {
    justify-content: center;
  }
}
/* Executive reports */
.executive-report-shell { overflow: hidden; }
.executive-report-toolbar { padding: 1rem 1.25rem; border-bottom: 1px solid #d9e7f4; background: #f8fbff; }
.executive-report-filter { gap: .85rem; align-items: end; }
.executive-filter-actions { display: flex; gap: .55rem; white-space: nowrap; }
.executive-report-host { min-height: 320px; }
.executive-report-content { padding: 1.25rem; display: grid; gap: 1rem; }
.executive-report-context { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.executive-report-context h2 { margin: .2rem 0 0; font-size: 1.25rem; }
.executive-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: .75rem; }
.executive-kpi { min-height: 126px; padding: 1rem; border: 1px solid #d9e7f4; border-top: 4px solid var(--executive-tone, #0b68b2); border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgba(20, 67, 110, .07); }
.executive-kpi > span { color: #52657a; font-size: .9rem; }
.executive-kpi > strong { display: block; margin: .55rem 0; color: #12304c; font-size: 1.45rem; }
.executive-kpi > div { display: flex; justify-content: space-between; align-items: center; }
.executive-change { display: inline-flex; align-items: center; gap: .1rem; font-weight: 600; }
.executive-change .material-symbols-rounded { font-size: 1rem; }
.executive-change.positive { color: #087f5b; }.executive-change.negative { color: #d6334c; }.executive-change.neutral { color: #64748b; }
.executive-tone-blue { --executive-tone: #0879d1; }.executive-tone-green { --executive-tone: #0ca678; }.executive-tone-cyan { --executive-tone: #0891b2; }.executive-tone-violet { --executive-tone: #7c3aed; }.executive-tone-red { --executive-tone: #e0314b; }.executive-tone-amber { --executive-tone: #f59f00; }.executive-tone-orange { --executive-tone: #f76707; }
.executive-band { padding: 1rem 0; border-top: 1px solid #d9e7f4; }
.executive-section-heading { margin-bottom: .75rem; }
.executive-section-heading > div { display: flex; gap: .6rem; align-items: flex-start; }
.executive-section-heading .material-symbols-rounded { color: #0879d1; font-size: 1.45rem; }
.executive-section-heading h3 { margin: 0; font-size: 1.05rem; color: #123f69; }.executive-section-heading p { margin: .1rem 0 0; color: #64748b; font-size: .85rem; }
.executive-trend-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.executive-trend-panel { min-width: 0; padding: .8rem .9rem .4rem; border: 1px solid #d9e7f4; border-radius: 6px; background: #fff; }
.executive-chart-title { display: flex; align-items: center; gap: .45rem; min-height: 1.6rem; color: #173653; }
.executive-chart-title span { margin-left: auto; color: #65798d; font-size: .8rem; }
.executive-legend-dot { width: .65rem; height: .65rem; border-radius: 50%; flex: 0 0 auto; }
.executive-legend-dot.revenue { background: #0879d1; }
.executive-legend-dot.workload { background: #16a56f; }
.executive-trend-chart { height: 230px; display: flex; align-items: end; gap: .4rem; padding: 1.8rem .25rem 0; overflow-x: auto; border-bottom: 1px solid #b8cde0; }
.executive-trend-point { flex: 1 0 38px; height: 100%; min-width: 38px; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: .25rem; }
.executive-trend-value { font-size: .7rem; color: #52657a; }.executive-trend-bar { width: min(28px, 75%); min-height: 0; border-radius: 4px 4px 0 0; }.executive-trend-bar.revenue { background: linear-gradient(180deg, #24b6df 0%, #0879d1 100%); }.executive-trend-bar.workload { background: linear-gradient(180deg, #46d49e 0%, #12865c 100%); }.executive-trend-point small { height: 1.35rem; white-space: nowrap; }
.executive-two-column { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.executive-table { margin-bottom: 0; }.executive-table th { color: #174d7b; background: #eef6ff; border-bottom-color: #c9dced; }.executive-table td { border-color: #e3edf6; }
.executive-inline-bar { display: block; width: 100%; height: 4px; margin-top: .35rem; background: #eaf1f8; }.executive-inline-bar i { display: block; height: 100%; background: #1688d4; }
.executive-aging-list { display: grid; gap: 1rem; }.executive-aging-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, 1.2fr) auto; gap: .75rem; align-items: center; }.executive-aging-row > div:first-child { display: flex; flex-direction: column; }.executive-aging-row span { color: #64748b; font-size: .8rem; }.executive-aging-track { height: 9px; background: #e7eef5; border-radius: 3px; overflow: hidden; }.executive-aging-track i { display: block; height: 100%; width: 0; background: var(--executive-tone); }
.executive-workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }.executive-workflow-item { padding: .85rem; border-left: 4px solid var(--executive-tone); background: #f8fbff; }.executive-workflow-item strong,.executive-workflow-item span,.executive-workflow-item small { display: block; }.executive-workflow-item strong { font-size: 1.35rem; color: #123f69; }.executive-workflow-item small { margin-top: .25rem; color: #64748b; }
.executive-alert-list { display: grid; gap: .6rem; }.executive-alert { display: flex; gap: .6rem; padding: .75rem; border-left: 4px solid #f59f00; background: #fff9e8; }.executive-alert-danger { border-color: #e0314b; background: #fff1f3; }.executive-alert-success { border-color: #0ca678; background: #edfff8; }.executive-alert p { margin: .1rem 0 0; color: #52657a; }
.report-loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: .75rem; color: #174d7b; }
@media (max-width: 1200px) { .executive-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .executive-two-column,.executive-trend-panels { grid-template-columns: 1fr; }.executive-kpi-grid { grid-template-columns: repeat(2, 1fr); }.executive-workflow-grid { grid-template-columns: repeat(2, 1fr); }.executive-report-context { align-items: flex-start; flex-direction: column; }.executive-aging-row { grid-template-columns: 1fr auto; }.executive-aging-track { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 480px) { .executive-kpi-grid,.executive-workflow-grid { grid-template-columns: 1fr; } }

/* Keep this canonical filter contract after every responsive rule. */
.amw-filter-form {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
}
.amw-searchable-select-panel {
  position: absolute;
  z-index: 1080;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.16);
}

.amw-searchable-select-panel.is-open {
  display: grid;
}

.amw-searchable-select-option {
  border: 0;
  border-radius: 0.35rem;
  padding: 0.55rem 0.65rem;
  background: transparent;
  color: inherit;
  text-align: left;
}

.amw-searchable-select-option:hover,
.amw-searchable-select-option:focus-visible {
  background: rgba(var(--bs-primary-rgb), 0.1);
  outline: 0;
}
