html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background: #f3f6fb;
  color: #172033;
}

body.backoffice-shell {
    overflow: hidden;
}

body.backoffice-shell > main[role="main"] {
    height: calc(100vh - var(--app-header-height, 137px));
    overflow: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================
   SHARED PUBLIC / PORTAL SHELL
========================= */

:root {
    --one-navy: #10233f;
    --one-blue: #1557a6;
    --one-red: #d7282f;
    --one-gold: #d8a33a;
    --one-green: #16885a;
    --one-ink: #172033;
    --one-muted: #667085;
    --one-line: #e5e9f2;
    --one-soft: #f5f8fc;
    --one-shadow: 0 18px 45px rgba(15, 35, 63, .12);
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--one-line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 46px;
    background: var(--one-navy);
    color: #dfe8f7;
    font-size: 13px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 15px 46px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--one-navy);
    text-decoration: none;
    min-width: 260px;
}

.site-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-size: 19px;
    line-height: 1.1;
}

.site-brand small {
    color: var(--one-muted);
    font-size: 12px;
}

.site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--one-navy);
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.site-menu a {
    color: var(--one-navy);
    text-decoration: none;
}

.site-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-auth form {
    margin: 0;
}

.site-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-user-avatar,
.site-user-initials {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
}

.site-user-avatar {
    object-fit: cover;
    border: 2px solid #edf2fb;
}

.site-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--one-navy);
    color: #fff;
    font-weight: 900;
    letter-spacing: .01em;
}

.site-user {
    color: var(--one-muted);
    font-weight: 700;
    white-space: nowrap;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 46px;
    background: var(--one-navy);
    color: #d9e4f4;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.app-container {
    padding-top: 24px;
    padding-bottom: 30px;
}

/* =========================
   PUBLIC WEBSITE
========================= */

.public-hero {
    min-height: 560px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: end;
    color: #fff;
}

.public-hero-slides,
.public-hero-slide {
    position: absolute;
    inset: 0;
}

.public-hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 900ms ease;
}

.public-hero-slide.active {
    opacity: 1;
}

.public-hero-content {
    position: relative;
    z-index: 1;
    padding: 82px 56px 76px;
    max-width: 790px;
}

.public-eyebrow,
.public-section-kicker {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-eyebrow {
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

.public-section-kicker {
    background: #edf4ff;
    color: var(--one-blue);
    border: 1px solid #d6e6ff;
}

.public-hero h1 {
    margin: 20px 0 16px;
    font-size: 54px;
    line-height: 1.04;
    font-weight: 900;
}

.public-hero p {
    margin: 0;
    color: #e8eef9;
    font-size: 19px;
    line-height: 1.6;
}

.public-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 5px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
}

.public-btn.primary {
    background: var(--one-red);
    color: #fff;
}

.public-btn.light,
.public-btn.outline {
    background: #fff;
    color: var(--one-navy);
    border-color: var(--one-line);
}

.public-hero-panel {
    position: relative;
    z-index: 1;
    margin: 0 56px 64px 0;
    padding: 24px;
    background: rgba(255, 255, 255, .94);
    color: var(--one-navy);
    border-radius: 8px;
    box-shadow: var(--one-shadow);
}

.public-mini-stat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.public-mini-stat div {
    padding: 14px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f7f9fd;
}

.public-mini-stat b {
    display: block;
    color: var(--one-blue);
    font-size: 25px;
}

.public-mini-stat span {
    color: var(--one-muted);
}

.public-hero-dots {
    position: absolute;
    left: 56px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.public-hero-dots button {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
}

.public-hero-dots button.active {
    background: var(--one-red);
}

.public-section {
    padding: 54px 56px;
    background: #fff;
}

.public-soft {
    background: #f8fbff;
    border-top: 1px solid var(--one-line);
    border-bottom: 1px solid var(--one-line);
}

.public-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.public-section-head h2,
.public-about h2,
.public-contact h2 {
    margin: 12px 0 8px;
    color: var(--one-navy);
    font-size: 32px;
    font-weight: 900;
}

.public-section-head p,
.public-about p,
.public-contact p {
    color: var(--one-muted);
    line-height: 1.6;
    max-width: 720px;
    margin: 0;
}

.public-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.public-value-card,
.public-service-card,
.public-news-card,
.ops-panel,
.cms-editor-card,
.cms-preview-card {
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.public-value-card {
    padding: 22px;
    border-top: 4px solid var(--one-red);
}

.public-value-card h3,
.public-service-card h3,
.public-news-card h3 {
    color: var(--one-navy);
    font-size: 18px;
    font-weight: 900;
}

.public-value-card p,
.public-service-card p,
.public-news-card p {
    color: var(--one-muted);
    line-height: 1.5;
    margin: 0;
}

.public-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-service-card {
    overflow: hidden;
}

.public-service-image {
    height: 156px;
    background-size: cover;
    background-position: center;
}

.public-service-body {
    padding: 20px;
}

.public-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 54px 56px;
    background: #fff;
}

.public-about-image {
    min-height: 320px;
    border-radius: 10px;
    background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1400&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.public-route-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.public-route-list span {
    padding: 8px 12px;
    background: #edf4ff;
    color: var(--one-blue);
    border-radius: 999px;
    font-weight: 800;
}

.public-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-news-card {
    padding: 20px;
}

.public-news-card span {
    color: var(--one-red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 44px 56px;
    background: #f8fbff;
    border-top: 1px solid var(--one-line);
}

/* =========================
   AUTH / PORTAL
========================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #f6f8fb;
}

.auth-visual {
    padding: 44px;
    color: #fff;
    background-image:
        linear-gradient(135deg, rgba(16, 35, 63, .95), rgba(21, 87, 166, .62)),
        url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=80&w=1600&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 900;
}

.auth-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.auth-copy {
    max-width: 720px;
    margin-top: 128px;
}

.auth-copy h1 {
    margin: 18px 0 12px;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 900;
}

.auth-copy p {
    color: #e7eef9;
    font-size: 18px;
    line-height: 1.55;
}

.auth-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
    max-width: 760px;
}

.auth-role-grid div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.auth-role-grid b,
.auth-role-grid span {
    display: block;
}

.auth-form-zone {
    display: grid;
    place-items: center;
    padding: 44px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 10px;
    box-shadow: var(--one-shadow);
}

.auth-card h2 {
    color: var(--one-navy);
    font-weight: 900;
}

.auth-card p {
    color: var(--one-muted);
}

.auth-form label,
.cms-layout label {
    display: block;
    margin: 14px 0 7px;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 900;
}

.auth-form .btn {
    margin-top: 14px;
}

.auth-demo-users {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--one-line);
}

.auth-demo-users strong {
    display: block;
    color: var(--one-navy);
    margin-bottom: 10px;
}

.auth-demo-users div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #edf1f7;
    font-size: 12px;
}

.auth-demo-users b {
    color: var(--one-red);
}

.auth-demo-users em {
    color: var(--one-blue);
    font-style: normal;
    font-weight: 800;
}

.portal-page {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: calc(100vh - 137px);
    background: #f4f7fb;
}

body.backoffice-shell .portal-page {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.portal-sidebar {
    padding: 22px;
    background: var(--one-navy);
    color: #d9e4f4;
}

body.backoffice-shell .portal-sidebar {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.portal-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.portal-brand strong,
.portal-brand span {
    display: block;
}

.portal-brand strong {
    color: #fff;
    font-size: 18px;
}

.portal-brand span {
    color: #aebed4;
    font-size: 12px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    margin: -8px 0 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
}

.sidebar-user-card:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sidebar-user-avatar,
.sidebar-user-initials {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
}

.sidebar-user-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .85);
}

.sidebar-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b1a32;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .85);
    font-weight: 900;
}

.sidebar-user-meta {
    min-width: 0;
}

.sidebar-user-meta strong,
.sidebar-user-meta small {
    display: block;
}

.sidebar-user-meta strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-meta small {
    color: #b9c8dc;
    font-size: 11px;
    font-weight: 700;
}

.portal-link {
    display: block;
    padding: 11px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    color: #d9e4f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.portal-link:hover,
.portal-link.active {
    background: var(--one-red);
    color: #fff;
}

.portal-submenu {
    margin-bottom: 6px;
}

.portal-submenu summary {
    list-style: none;
    cursor: pointer;
}

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

.portal-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portal-submenu-toggle::after {
    content: "▾";
    font-size: 12px;
    transition: transform .18s ease;
}

.portal-submenu[open] .portal-submenu-toggle::after {
    transform: rotate(180deg);
}

.portal-submenu-panel {
    display: grid;
    gap: 4px;
    padding: 3px 0 7px 14px;
    margin-left: 9px;
    border-left: 1px solid rgba(217, 228, 244, .22);
}

.portal-submenu-panel .portal-link {
    display: block;
    padding: 8px 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 750;
}

.bo-root-submenu {
    margin-bottom: 8px;
}

.bo-section-toggle {
    margin-top: 8px;
    color: #b8c7df;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bo-root-submenu .portal-submenu-panel {
    padding-top: 2px;
    padding-bottom: 8px;
}

.portal-workspace {
    min-width: 0;
    padding: 24px;
}

body.backoffice-shell .portal-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.backoffice-shell .portal-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 24px 0;
    scrollbar-gutter: stable;
}

body.backoffice-shell .portal-scroll-body > :last-child {
    margin-bottom: 0;
}

.portal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.backoffice-shell .portal-heading {
    flex: 0 0 auto;
    margin-bottom: 14px;
}

.portal-heading-with-greeting {
    align-items: flex-start;
}

.portal-heading-with-greeting > :not(.global-greeting-clock):not(.portal-actions) {
    flex: 1 1 auto;
    min-width: 0;
}

.portal-kicker {
    color: var(--one-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-heading h1 {
    margin: 5px 0 4px;
    color: var(--one-navy);
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(24px, 1.9vw, 30px);
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-heading p {
    margin: 0;
    color: var(--one-muted);
}

.portal-actions {
    display: flex;
    gap: 10px;
}

.portal-actions-replaced-by-greeting {
    display: none !important;
}

.global-greeting-clock {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: -6px;
    min-width: 470px;
}

.global-greeting-text {
    padding-top: 8px;
    color: #20283a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.global-greeting-text strong {
    color: var(--one-red);
    font-weight: 900;
}

.global-clock-face {
    --hour-angle: 0deg;
    --minute-angle: 0deg;
    --second-angle: 0deg;
    position: relative;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 50%;
    border: 5px solid #d9e7ff;
    background:
        radial-gradient(circle at center, #fff 0 62%, #f5f9ff 63% 100%),
        #fff;
    box-shadow: 0 10px 22px rgba(38, 73, 138, .18), inset 0 0 0 2px #517ae5;
}

.global-clock-face::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #5277d8 0 1deg, transparent 1deg 30deg);
    -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 45% 50%, transparent 51%);
    mask: radial-gradient(circle, transparent 0 44%, #000 45% 50%, transparent 51%);
}

.global-clock-number {
    position: absolute;
    color: #3159bd;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.global-clock-number-12 {
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.global-clock-number-3 {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.global-clock-number-6 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.global-clock-number-9 {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.global-clock-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 7px;
    margin-left: -1px;
    margin-top: -45px;
    border-radius: 99px;
    background: #6f89df;
    transform-origin: 1px 45px;
}

.global-clock-tick-1 { transform: rotate(30deg); }
.global-clock-tick-2 { transform: rotate(60deg); }
.global-clock-tick-4 { transform: rotate(120deg); }
.global-clock-tick-5 { transform: rotate(150deg); }
.global-clock-tick-7 { transform: rotate(210deg); }
.global-clock-tick-8 { transform: rotate(240deg); }
.global-clock-tick-10 { transform: rotate(300deg); }
.global-clock-tick-11 { transform: rotate(330deg); }

.global-clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    border-radius: 99px;
    transform-origin: 50% 100%;
}

.global-clock-hour {
    width: 5px;
    height: 28px;
    margin-left: -2.5px;
    background: #2d55ba;
    transform: rotate(var(--hour-angle));
}

.global-clock-minute {
    width: 4px;
    height: 38px;
    margin-left: -2px;
    background: #446fe0;
    transform: rotate(var(--minute-angle));
}

.global-clock-second {
    width: 2px;
    height: 41px;
    margin-left: -1px;
    background: #e24b4b;
    transform: rotate(var(--second-angle));
}

.global-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3159bd;
    box-shadow: 0 0 0 3px #fff;
    transform: translate(-50%, -50%);
}

.global-clock-subdial {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 24px;
    height: 24px;
    border: 2px solid #d2def8;
    border-radius: 50%;
    transform: translateX(-50%);
}

.ops-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.ops-metric {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.ops-metric span,
.ops-metric small {
    display: block;
    color: var(--one-muted);
}

.ops-metric b {
    display: block;
    color: var(--one-blue);
    font-size: 25px;
    line-height: 1.2;
}

.ops-metric.danger b {
    color: var(--one-red);
}

.ops-two-column {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin-bottom: 18px;
}

.ops-panel,
.cms-editor-card,
.cms-preview-card {
    padding: 18px;
    margin-bottom: 18px;
}

/* =========================
   BACK-OFFICE STANDARD DEMO
========================= */

.bo-demo-page {
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 137px);
}

.bo-standard-page {
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 137px);
}

.bo-standard-sidebar {
    padding: 24px 22px;
}

.bo-standard-workspace {
    padding: 26px;
    background: #f4f7fb;
}

.bo-standard-workspace .alert {
    border-radius: 8px;
}

.account-page {
    grid-template-columns: minmax(0, 1fr);
}

.account-page .account-workspace {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.bo-menu-label {
    display: block;
    margin: 18px 10px 7px;
    color: #94a6c3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bo-filterbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

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

.bo-form-grid .span-2 {
    grid-column: span 2;
}

.bo-form-grid label,
.bo-filterbar label {
    display: block;
    margin-bottom: 6px;
    color: var(--one-navy);
    font-size: 12px;
    font-weight: 900;
}

.bo-form-actions,
.bo-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bo-form-actions {
    margin-top: 16px;
}

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

.bo-detail-grid .span-2 {
    grid-column: span 2;
}

.bo-detail-item {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
}

.bo-detail-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--one-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-detail-item strong {
    display: block;
    color: var(--one-navy);
    font-size: 16px;
}

/* =========================
   INTERNAL CHAT DASHBOARD DEMO
========================= */

.bo-chat-demo-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 137px);
    background: #f4f7fb;
}

.bo-chat-demo-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.bo-chat-demo-header .site-nav {
    min-height: 102px;
}

.bo-chat-demo-header .site-user-menu {
    min-width: 182px;
}

.bo-chat-demo-sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 137px);
}

.bo-chat-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #49c86f;
}

.bo-chat-sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
}

.bo-chat-sidebar-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.bo-chat-sidebar-link:hover,
.bo-chat-sidebar-link.active {
    background: rgba(198, 58, 55, .22);
    color: #fff;
}

.bo-chat-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}

.bo-chat-sidebar-link b,
.bo-chat-tabs span,
.bo-chat-room b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--one-red);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.bo-chat-sidebar-link b {
    min-width: 24px;
    height: 24px;
}

.bo-chat-demo-workspace {
    padding: 22px 22px 28px 26px;
    overflow: hidden;
}

.bo-chat-demo-workspace .portal-heading {
    min-height: 112px;
    margin-bottom: 14px;
}

.bo-chat-demo-workspace .global-greeting-clock {
    min-width: 520px;
}

.bo-chat-demo-workspace .ops-metric-grid,
.bo-chat-demo-workspace .kpi-grid,
.bo-chat-demo-workspace .executive-debt-panel,
.bo-chat-demo-workspace .ops-panel {
    box-shadow: 0 8px 24px rgba(16, 35, 63, .06);
}

.bo-chat-demo-kpi-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border: 2px solid #6c7ef5;
    border-radius: 8px;
    background: #fff;
}

.bo-chat-demo-kpi-row .kpi-card {
    min-height: 116px;
    border: 0;
    border-right: 1px solid var(--one-line);
    border-radius: 0;
    box-shadow: none;
}

.bo-chat-demo-kpi-row .kpi-card:last-child {
    border-right: 0;
}

.bo-chat-demo-table {
    margin-bottom: 0;
}

.bo-chat-panel {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100vh - 137px);
    min-height: 720px;
    padding: 10px 10px 12px;
    border-left: 1px solid var(--one-line);
    background: #fff;
    box-shadow: -12px 0 30px rgba(16, 35, 63, .08);
    overflow: hidden;
}

.bo-chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0 8px;
}

.bo-chat-panel-header h2 {
    margin: 0;
    color: var(--one-navy);
    font-size: 18px;
    font-weight: 900;
}

.bo-chat-panel-actions {
    display: flex;
    gap: 5px;
}

.bo-chat-panel-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #65748c;
    font-size: 16px;
    font-weight: 800;
}

.bo-chat-panel-actions button:hover {
    background: #eef3ff;
    color: var(--one-blue);
}

.bo-chat-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--one-line);
}

.bo-chat-tabs button {
    position: relative;
    min-height: 38px;
    border: 0;
    background: transparent;
    color: #6f7f96;
    font-size: 12px;
    font-weight: 900;
}

.bo-chat-tabs button.active {
    color: var(--one-blue);
}

.bo-chat-tabs button.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--one-blue);
}

.bo-chat-tabs span {
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    font-size: 10px;
}

.bo-chat-search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 10px;
    margin: 10px 0 9px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #fbfdff;
    color: #8794aa;
}

.bo-chat-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--one-navy);
    font-size: 12px;
}

.bo-chat-room-list {
    display: grid;
    gap: 4px;
}

.bo-chat-room {
    position: relative;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 50px;
    padding: 6px 6px;
    border-radius: 8px;
    color: var(--one-navy);
}

.bo-chat-room.active,
.bo-chat-room:hover {
    background: #eef4ff;
}

.bo-chat-room-icon,
.bo-chat-avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.bo-chat-avatar-mini {
    border-radius: 50%;
}

.bo-chat-room-icon.red { background: #d94c48; }
.bo-chat-room-icon.blue { background: #4d6ff0; }
.bo-chat-room-icon.green { background: #58bd7b; }
.bo-chat-room-icon.cyan { background: #5bb8e8; }
.bo-chat-avatar-mini.dark { background: #16243d; }

.bo-chat-room strong,
.bo-chat-room small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-chat-room strong {
    font-size: 12px;
    font-weight: 900;
}

.bo-chat-room small {
    color: #77859c;
    font-size: 10px;
}

.bo-chat-room time {
    align-self: start;
    color: #8c98aa;
    font-size: 10px;
    font-weight: 800;
}

.bo-chat-room b {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-width: 19px;
    height: 19px;
    font-size: 10px;
}

.bo-chat-create-room {
    width: 100%;
    min-height: 38px;
    margin: 10px 0 10px;
    border: 1px solid var(--one-line);
    border-radius: 7px;
    background: #f8fbff;
    color: var(--one-blue);
    font-size: 13px;
    font-weight: 900;
}

.bo-chat-create-room:hover {
    border-color: var(--one-blue);
    background: #eef4ff;
}

.bo-chat-online {
    flex: 0 0 auto;
    padding: 10px 0 0;
    border-top: 1px solid var(--one-line);
}

.bo-chat-online h3 {
    margin: 0 0 10px;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 900;
}

.bo-chat-online-list {
    display: flex;
    align-items: center;
}

.bo-chat-online-list span,
.bo-chat-online-list b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin-right: -5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #16243d;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(16, 35, 63, .16);
}

.bo-chat-online-list span:nth-child(2) { background: #3358bd; }
.bo-chat-online-list span:nth-child(3) { background: #bd4946; }
.bo-chat-online-list span:nth-child(4) { background: #478d61; }
.bo-chat-online-list span:nth-child(5) { background: #5c6b82; }
.bo-chat-online-list b {
    background: #eef3ff;
    color: var(--one-blue);
}

.bo-chat-online-list img {
    width: 29px;
    height: 29px;
    margin-right: -5px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(16, 35, 63, .16);
}

/* =========================
   INTERNAL CHAT SHELL
========================= */

:root {
    --internal-chat-width: 280px;
    --app-header-height: 116px;
}

.bo-chat-sidebar-link {
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.internal-chat-panel.bo-chat-panel {
    position: fixed;
    top: var(--app-header-height);
    right: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    width: var(--internal-chat-width);
    max-width: 100vw;
    height: calc(100vh - var(--app-header-height));
    min-height: 0;
    padding: 10px 10px 12px;
    transform: translateX(100%);
    transition: transform .22s ease, box-shadow .22s ease;
}

body.internal-chat-open .internal-chat-panel {
    transform: translateX(0);
}

.internal-chat-panel .bo-chat-room-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding-right: 2px;
}

.internal-chat-pane {
    min-height: 0;
}

.internal-chat-panel .internal-chat-pane.active {
    display: block;
}

.internal-chat-panel [data-chat-pane="rooms"].active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.internal-chat-conversation {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    height: calc(100vh - var(--app-header-height) - 118px);
    min-height: 0;
}

.internal-chat-conversation-header {
    display: grid;
    grid-template-columns: 30px 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 0 9px;
    border-bottom: 1px solid var(--one-line);
}

.internal-chat-conversation-header button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--one-line);
    border-radius: 50%;
    background: #fff;
    color: var(--one-blue);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.internal-chat-conversation-header strong,
.internal-chat-conversation-header small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-chat-conversation-header strong {
    color: var(--one-navy);
    font-size: 12px;
    font-weight: 900;
}

.internal-chat-conversation-header small {
    color: #738198;
    font-size: 10px;
}

.internal-chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 0;
    overflow: auto;
}

.internal-chat-empty {
    margin: 10px 0;
    padding: 10px;
    border: 1px dashed var(--one-line);
    border-radius: 8px;
    color: #77859c;
    background: #f8fbff;
    font-size: 12px;
}

.internal-chat-message {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    max-width: 92%;
}

.internal-chat-message.mine {
    align-self: flex-end;
    grid-template-columns: minmax(0, 1fr);
}

.internal-chat-message.mine .internal-chat-message-avatar {
    display: none;
}

.internal-chat-message-avatar span,
.internal-chat-message-avatar img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #172642;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    object-fit: cover;
}

.internal-chat-message-body {
    padding: 7px 9px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 35, 63, .05);
}

.internal-chat-message.mine .internal-chat-message-body {
    border-color: #d8e2ff;
    background: #eef4ff;
}

.internal-chat-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.internal-chat-message-meta strong {
    color: var(--one-navy);
    font-size: 11px;
    font-weight: 900;
}

.internal-chat-message-meta time {
    color: #8c98aa;
    font-size: 10px;
}

.internal-chat-message-body p {
    margin: 0;
    color: #20314d;
    font-size: 12px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.internal-chat-attachments {
    display: grid;
    gap: 5px;
    margin-top: 6px;
}

.internal-chat-attachment {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #dce5f8;
    border-radius: 8px;
    color: var(--one-blue);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.internal-chat-attachment.image {
    padding: 0;
    overflow: hidden;
}

.internal-chat-attachment.image img {
    display: block;
    max-width: 180px;
    max-height: 160px;
    object-fit: cover;
}

.internal-chat-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 4px;
    border-top: 1px solid var(--one-line);
}

.internal-chat-selected-files span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--one-blue);
    font-size: 11px;
    font-weight: 800;
}

.internal-chat-message-form {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 46px;
    gap: 6px;
    padding: 8px 0 0;
    border-top: 1px solid var(--one-line);
}

.internal-chat-message-form input[type="text"] {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    padding: 0 9px;
    color: var(--one-navy);
    font-size: 12px;
}

.internal-chat-message-form button {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid var(--one-blue);
    background: var(--one-blue);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.internal-chat-message-form [data-chat-file-button] {
    border-color: var(--one-line);
    background: #fff;
    color: var(--one-blue);
    font-size: 17px;
}

.internal-chat-create-form {
    display: grid;
    gap: 8px;
    margin: 8px 0 10px;
    padding: 10px;
    border: 1px solid #dce5f8;
    border-radius: 8px;
    background: #f8fbff;
}

.internal-chat-create-form strong {
    color: var(--one-navy);
    font-weight: 900;
}

.internal-chat-create-form label {
    display: grid;
    gap: 4px;
    color: #5f6f87;
    font-size: 11px;
    font-weight: 800;
}

.internal-chat-create-form input,
.internal-chat-create-form select {
    width: 100%;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: var(--one-navy);
    font-size: 12px;
}

.internal-chat-create-form div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.internal-chat-create-form button {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 900;
}

.internal-chat-floating-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1028;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--one-navy);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 30, 55, .24);
}

.internal-chat-floating-toggle b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--one-red);
    color: #fff;
    font-size: 11px;
}

body.internal-chat-open .internal-chat-floating-toggle,
body.internal-chat-has-sidebar-toggle .internal-chat-floating-toggle {
    display: none;
}

@media (min-width: 1300px) {
    body.internal-chat-open main[role="main"] {
        margin-right: var(--internal-chat-width);
        transition: margin-right .22s ease;
    }

    body.backoffice-shell.internal-chat-open .portal-workspace {
        padding-right: 0;
    }

    body.backoffice-shell.internal-chat-open .portal-scroll-body {
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    body.internal-chat-open .global-greeting-clock {
        transform: scale(.86);
        transform-origin: top right;
    }

    body.internal-chat-open .executive-debt-panel {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 12px;
        padding: 12px 12px 14px;
    }

    body.internal-chat-open .executive-debt-toolbar {
        gap: 10px;
        margin-bottom: 10px;
    }

    body.internal-chat-open .executive-debt-filters {
        grid-template-columns: minmax(112px, .55fr) minmax(150px, 1fr);
        gap: 8px;
    }

    body.internal-chat-open .executive-debt-content {
        grid-template-columns: minmax(116px, 150px) minmax(0, 1fr);
        gap: 10px;
    }

    body.internal-chat-open .executive-debt-donut {
        width: clamp(116px, 11vw, 158px);
    }

    body.internal-chat-open .executive-debt-donut::after {
        inset: clamp(29px, 3.3vw, 39px);
    }

    body.internal-chat-open .executive-debt-donut-core {
        inset: clamp(32px, 3.6vw, 42px);
    }

    body.internal-chat-open .executive-debt-donut-core span,
    body.internal-chat-open .executive-debt-donut-core small {
        font-size: 10px;
    }

    body.internal-chat-open .executive-debt-donut-core strong {
        font-size: 12px;
    }

    body.internal-chat-open .executive-debt-legend-row {
        grid-template-columns: 14px minmax(64px, 1fr) minmax(78px, auto) 42px;
        gap: 6px;
        min-height: 38px;
        padding: 6px 8px;
    }

    body.internal-chat-open .executive-debt-legend-row b,
    body.internal-chat-open .executive-debt-legend-row strong {
        font-size: 11px;
    }

    body.internal-chat-open .executive-debt-chart-grid {
        grid-template-columns: minmax(0, 1fr) 108px;
        gap: 10px;
    }

    body.internal-chat-open .executive-debt-bars {
        gap: clamp(14px, 3vw, 44px);
        min-height: 170px;
        padding: 14px 8px 0;
    }

    body.internal-chat-open .executive-debt-bar-item {
        width: 72px;
        min-width: 72px;
    }

    body.internal-chat-open .executive-debt-bar {
        width: 48px;
    }

    body.internal-chat-open .executive-debt-side-legend {
        gap: 8px;
        padding: 12px 10px;
    }

    body.internal-chat-open .executive-debt-side-legend span {
        font-size: 11px;
    }
}

@media (max-width: 1299px) {
    .internal-chat-panel.bo-chat-panel {
        top: 0;
        width: min(var(--internal-chat-width), 100vw);
        height: 100vh;
    }

    body.internal-chat-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1029;
        background: rgba(16, 35, 63, .35);
    }

    body.internal-chat-open .internal-chat-panel {
        z-index: 1031;
    }
}

.bo-danger-note {
    padding: 15px;
    margin-bottom: 16px;
    background: #fff0f1;
    border: 1px solid #ffd4d8;
    border-radius: 8px;
    color: #8f1f2a;
}

.badge-trangthai {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge-trangthai-du {
    background: #e8f7ef;
    color: #198754;
}

.badge-trangthai-1 {
    background: #fff6df;
    color: #93650b;
}

.badge-trangthai-2 {
    background: #fff1df;
    color: #b25f00;
}

.badge-trangthai-nhieu {
    background: #fff0f1;
    color: var(--one-red);
}

.bo-demo-sidebar {
    padding: 24px 22px;
}

.bo-demo-menu-label {
    display: block;
    margin: 18px 10px 7px;
    color: #94a6c3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bo-demo-workspace {
    padding: 26px;
    background: #f4f7fb;
}

.bo-demo-heading h1 {
    font-size: 32px;
}

.bo-demo-filterbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.bo-demo-filterbar label,
.bo-demo-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--one-navy);
    font-size: 12px;
    font-weight: 900;
}

.bo-demo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.bo-demo-kpi {
    min-height: 116px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-left: 4px solid var(--one-blue);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.bo-demo-kpi span,
.bo-demo-kpi small {
    display: block;
    color: var(--one-muted);
}

.bo-demo-kpi strong {
    display: block;
    margin: 6px 0 4px;
    color: var(--one-navy);
    font-size: 28px;
    line-height: 1.1;
}

.bo-demo-kpi.danger {
    border-left-color: var(--one-red);
}

.bo-demo-kpi.danger strong {
    color: var(--one-red);
}

.bo-demo-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
}

.bo-demo-chart-panel,
.bo-demo-todo-panel,
.bo-demo-wide-panel {
    margin-bottom: 0;
}

.bo-demo-wide-panel {
    grid-column: 1 / -1;
}

.bo-demo-bars {
    height: 270px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    padding: 18px 8px 8px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.bo-demo-bars > div {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.bo-demo-bars span {
    position: absolute;
    bottom: -2px;
    transform: translateY(100%);
    color: var(--one-muted);
    font-size: 12px;
    font-weight: 800;
}

.bo-demo-bars i {
    width: 28px;
    min-height: 18px;
    border-radius: 5px 5px 0 0;
}

.bo-demo-bars i.income,
.bo-demo-legend i.income {
    background: var(--one-green);
}

.bo-demo-bars i.expense,
.bo-demo-legend i.expense {
    background: var(--one-gold);
}

.bo-demo-legend {
    display: flex;
    gap: 16px;
    margin-top: 26px;
    color: var(--one-muted);
    font-size: 13px;
    font-weight: 800;
}

.bo-demo-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bo-demo-legend i {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 3px;
}

.bo-demo-task-list {
    display: grid;
    gap: 10px;
}

.bo-demo-task-list div,
.bo-demo-building-list div {
    padding: 12px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.bo-demo-task-list b,
.bo-demo-task-list span,
.bo-demo-building-list strong,
.bo-demo-building-list span {
    display: block;
}

.bo-demo-task-list b,
.bo-demo-building-list strong {
    color: var(--one-navy);
}

.bo-demo-task-list span,
.bo-demo-building-list span {
    margin-top: 3px;
    color: var(--one-muted);
    font-size: 13px;
}

.bo-demo-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.bo-demo-form {
    display: grid;
    gap: 18px;
}

.bo-demo-form .ops-panel,
.bo-demo-form-side .ops-panel {
    margin-bottom: 0;
}

.bo-demo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.bo-demo-form-grid .span-2 {
    grid-column: span 2;
}

.bo-demo-checks {
    display: grid;
    gap: 9px;
}

.bo-demo-checks label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--one-navy);
    font-weight: 800;
}

.bo-demo-checks input {
    width: 16px;
    height: 16px;
}

.bo-demo-form-side {
    display: grid;
    gap: 18px;
}

.bo-demo-building-list {
    display: grid;
    gap: 9px;
}

.bo-demo-sticky-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.bo-demo-sticky-actions .btn {
    flex: 1;
}

.ops-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.ops-panel-head h2 {
    margin: 0 0 5px;
    color: var(--one-navy);
    font-size: 22px;
    font-weight: 900;
}

.ops-panel-head p {
    margin: 0;
    color: var(--one-muted);
    line-height: 1.45;
}

.ops-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.ops-badge.green {
    background: #e8f7ef;
    color: var(--one-green);
}

.ops-badge.yellow,
.ops-badge.warn {
    background: #fff6df;
    color: #93650b;
}

.ops-badge.red,
.ops-badge.danger {
    background: #fff0f1;
    color: var(--one-red);
}

.ops-badge.blue {
    background: #edf4ff;
    color: var(--one-blue);
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ops-table th,
.ops-table td {
    padding: 10px;
    border-bottom: 1px solid var(--one-line);
    text-align: left;
    vertical-align: middle;
}

.ops-table th {
    background: #f8fbff;
    color: var(--one-navy);
    font-size: 12px;
    text-transform: uppercase;
}

.doi-soat-action-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-width: 360px;
}

.doi-soat-action-form button {
    white-space: nowrap;
}

.thu-chi-metric-grid {
    margin-bottom: 18px;
}

.thu-chi-chart-panel {
    margin-bottom: 18px;
}

.thu-chi-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.thu-chi-bars > div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.thu-chi-bars span,
.thu-chi-report-row span {
    color: var(--one-muted);
    font-size: 12px;
    font-weight: 800;
}

.thu-chi-bars b {
    color: var(--one-navy);
    font-size: 18px;
}

.thu-chi-bars div div,
.thu-chi-report-track {
    height: 10px;
    border-radius: 999px;
    background: #e7edf5;
    overflow: hidden;
}

.thu-chi-bars i,
.thu-chi-report-track i {
    display: block;
    height: 100%;
    background: var(--one-blue);
}

.thu-chi-bars i.green,
.thu-chi-report-track i.green {
    background: var(--one-green);
}

.thu-chi-bars i.gold {
    background: var(--one-gold);
}

.thu-chi-bars i.red {
    background: var(--one-red);
}

.thu-chi-grid,
.thu-chi-two-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.thu-chi-form {
    display: grid;
    gap: 10px;
}

.thu-chi-sub-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--one-line);
}

.thu-chi-inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #f8fbff;
}

.thu-chi-inline-check label {
    margin: 0;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 800;
}

.thu-chi-report-bars {
    display: grid;
    gap: 12px;
}

.thu-chi-report-row {
    display: grid;
    grid-template-columns: minmax(120px, .9fr) 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.thu-chi-report-row strong {
    color: var(--one-navy);
    font-size: 13px;
}

.thu-chi-mini-action,
.thu-chi-row-actions,
.thu-chi-row-actions form,
.ops-table td form {
    margin: 0;
}

.thu-chi-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.user-action-buttons form {
    margin: 0;
}

.thu-chi-reconcile-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ops-progress {
    min-width: 110px;
    height: 8px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
}

.ops-progress i {
    display: block;
    height: 100%;
    background: var(--one-blue);
}

.ops-progress.warn i {
    background: var(--one-gold);
}

.ops-progress.danger i {
    background: var(--one-red);
}

.task-board-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.task-column {
    padding: 10px;
    background: #f7f9fd;
    border: 1px solid var(--one-line);
    border-radius: 8px;
}

.task-column h3 {
    color: var(--one-navy);
    font-size: 15px;
    font-weight: 900;
}

.task-card {
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--one-line);
    border-left: 4px solid var(--one-blue);
    border-radius: 6px;
    font-size: 13px;
}

.task-card strong,
.task-card span {
    display: block;
}

.task-card span {
    color: var(--one-muted);
    margin-top: 5px;
}

.cms-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    margin-bottom: 18px;
}

.cms-form-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 12px;
}

.cms-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin: 16px 0 12px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #f8fbff;
}

.cms-toolbar button {
    min-width: 34px;
    height: 32px;
    border: 1px solid var(--one-line);
    border-radius: 5px;
    background: #fff;
    color: var(--one-navy);
    font-weight: 900;
}

.cms-textarea {
    min-height: 180px;
}

.cms-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.cms-preview-image {
    height: 170px;
    margin-bottom: 14px;
    border-radius: 8px;
    background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=900&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.cms-preview-card h2 {
    color: var(--one-navy);
    font-size: 24px;
    font-weight: 900;
}

.cms-preview-card p {
    color: var(--one-muted);
}

.cms-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cms-banner-card,
.cms-post-item {
    display: grid;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
}

.cms-banner-image {
    height: 92px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.cms-banner-card strong,
.cms-post-item strong,
.cms-post-item span {
    display: block;
}

.cms-post-list {
    display: grid;
    gap: 10px;
}

.cms-post-item {
    grid-template-columns: 72px 1fr auto;
    align-items: center;
}

.cms-post-thumb {
    height: 56px;
    border-radius: 6px;
    background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=300&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}
/* =========================
   DASHBOARD HOME PAGE
========================= */

.dashboard-page {
    padding: 6px 0 12px 0;
}

.hero-box {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 20px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef4ff 100%);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    align-items: center;
}

.hero-left h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #182336;
}

.hero-left p {
    font-size: 15px;
    color: #53627a;
    margin-bottom: 8px;
}

.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    font-size: 22px;
}

.hero-meta-label {
    font-size: 14px;
    color: #7a8699;
}

.hero-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2a3d;
}

.hero-image-card {
    border-radius: 20px;
    overflow: hidden;
    height: 140px;
    min-height: 0px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

    .hero-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.kpi-card {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 95px;
}

.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

    .kpi-icon.blue {
        background: #e8f1ff;
    }

    .kpi-icon.green {
        background: #e9f9ee;
    }

    .kpi-icon.purple {
        background: #f0ebff;
    }

    .kpi-icon.orange {
        background: #fff1e5;
    }

    .kpi-icon.teal {
        background: #e8fbfb;
    }

.kpi-title {
    font-size: 15px;
    color: #6f7b8f;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kpi-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #162132;
    margin-bottom: 8px;
}

.kpi-sub {
    font-size: 15px;
    color: #7b8799;
    margin-bottom: 10px;
}

.kpi-link {
    font-size: 15px;
    color: #3578ff;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a2436;
    margin-bottom: 8px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.donut-inner {
    position: absolute;
    inset: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #eef2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-value {
    font-size: 42px;
    font-weight: 800;
    color: #162132;
    line-height: 1;
}

.donut-text {
    font-size: 18px;
    color: #6f7b8f;
    margin-top: 8px;
}

.legend-box {
    flex: 1;
    min-width: 240px;
}

.legend-item {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 17px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

    .dot.green {
        background: #61d78a;
    }

    .dot.blue {
        background: #69a9ff;
    }

    .dot.yellow {
        background: #f0c64a;
    }

    .dot.red {
        background: #ef6b63;
    }

.card-footer-link {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

    .card-footer-link a {
        color: #3578ff;
        text-decoration: none;
        font-weight: 600;
    }

.bar-chart {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.bar-group {
    min-width: 130px;
    text-align: center;
}

.bar-values {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bars {
    height: 130px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar {
    width: 34px;
    border-radius: 12px 12px 0 0;
}

    .bar.blue {
        background: linear-gradient(180deg, #6aaeff 0%, #4f90f6 100%);
    }

    .bar.green {
        background: linear-gradient(180deg, #75e39d 0%, #53c978 100%);
    }

.bar-label {
    font-size: 14px;
    color: #42506a;
    min-height: 42px;
}

.chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 15px;
    color: #55627a;
}

.legend-square {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 6px;
}

    .legend-square.blue {
        background: #4f90f6;
    }

    .legend-square.green {
        background: #53c978;
    }

.activity-list,
.notify-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item,
.notify-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 8px;
    align-items: start;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef2f7;
}

    .activity-item:last-child,
    .notify-item:last-child {
        border-bottom: none;
    }

.activity-icon,
.notify-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fd;
    font-size: 18px;
    font-weight: 700;
}

    .notify-icon.red {
        background: #ffe8e8;
        color: #d9534f;
    }

    .notify-icon.yellow {
        background: #fff5d7;
        color: #c89d17;
    }

.activity-title,
.notify-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2a3d;
}

.activity-text,
.notify-text {
    font-size: 15px;
    color: #6a768b;
}

.activity-time,
.notify-time {
    font-size: 14px;
    color: #7b8799;
    white-space: nowrap;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-card {
    background: #f9fbff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    transition: .2s ease;
}

    .quick-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,.06);
        border-color: #d8e6ff;
    }

.quick-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

    .quick-icon.blue {
        background: #e8f1ff;
    }

    .quick-icon.green {
        background: #e9f9ee;
    }

    .quick-icon.purple {
        background: #f0ebff;
    }

    .quick-icon.orange {
        background: #fff1e5;
    }

    .quick-icon.teal {
        background: #e8fbfb;
    }

    .quick-icon.gray {
        background: #f1f4f8;
    }

.quick-title {
    font-size: 16px;
    color: #253247;
    font-weight: 700;
}

/* =========================
   EXECUTIVE / ADMIN DASHBOARD
========================= */

.executive-dashboard .dashboard-main-grid,
.executive-dashboard #task-board {
    display: none;
}

.executive-dashboard .ops-panel,
.executive-dashboard .dashboard-card,
.executive-dashboard .ops-metric,
.executive-dashboard .kpi-card {
    border-radius: 8px;
}

.executive-dashboard .ops-panel,
.executive-dashboard .dashboard-card {
    padding: 16px 18px;
    margin-bottom: 16px;
}

.executive-metric-grid,
.executive-kpi-grid {
    margin-bottom: 16px;
}

.executive-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.executive-kpi-grid .kpi-card {
    min-width: 0;
    gap: 12px;
    padding: 12px;
}

.executive-kpi-grid .kpi-title,
.executive-kpi-grid .kpi-sub,
.executive-kpi-grid .kpi-link {
    white-space: nowrap;
}

.executive-kpi-grid .kpi-value {
    font-size: 27px;
}

.executive-two-column,
.executive-bottom-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.executive-table-panel .ops-panel-head {
    margin-bottom: 10px;
}

.executive-table-panel .ops-panel-head h2 {
    font-size: 20px;
}

.executive-table-panel .ops-panel-head p {
    font-size: 13px;
}

.executive-summary-table,
.executive-dashboard .compact-ops-table,
.executive-two-column .ops-table {
    table-layout: fixed;
}

.executive-summary-table th,
.executive-summary-table td,
.executive-dashboard .compact-ops-table th,
.executive-dashboard .compact-ops-table td,
.executive-two-column .ops-table th,
.executive-two-column .ops-table td {
    padding: 7px 9px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.18;
}

.executive-summary-table th:first-child,
.executive-summary-table td:first-child,
.executive-dashboard .compact-ops-table th:first-child,
.executive-dashboard .compact-ops-table td:first-child,
.executive-two-column .ops-table th:first-child,
.executive-two-column .ops-table td:first-child {
    text-align: left;
}

.executive-summary-table td strong,
.executive-summary-table td span,
.executive-dashboard .compact-ops-table td span,
.executive-two-column .ops-table td span {
    display: inline-block;
}

.executive-summary-table td br + span,
.executive-dashboard .compact-ops-table td br + span,
.executive-two-column .ops-table td br + span {
    margin-top: 2px;
    color: var(--one-muted);
    font-size: 12px;
}

.executive-summary-table .ops-badge,
.executive-dashboard .compact-ops-table .ops-badge,
.executive-two-column .ops-table .ops-badge {
    min-width: 42px;
    justify-content: center;
    padding: 4px 8px;
    font-size: 11px;
}

.executive-summary-table .btn-sm,
.executive-dashboard .compact-ops-table .btn-sm {
    min-height: 28px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
}

.executive-bottom-grid .executive-dashboard-card {
    width: 100%;
    min-width: 0;
}

.executive-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 12px;
}

.executive-quick-grid .quick-card {
    min-height: 92px;
    border-radius: 8px;
}

.executive-quick-grid .quick-title {
    font-size: 14px;
    line-height: 1.22;
}

.executive-dashboard .notify-item {
    border: 1px solid var(--one-line);
    border-radius: 8px;
    padding: 12px;
    background: #f9fbff;
}

.executive-debt-panel {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 18px;
    padding: 14px 18px 16px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid #6f8cff;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 30, 55, .08);
}

.executive-debt-panel h2 {
    margin: 0;
    color: var(--one-navy);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.executive-debt-toolbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}

.executive-debt-filters {
    display: grid;
    grid-template-columns: minmax(120px, .55fr) minmax(180px, 1fr);
    gap: 12px;
    align-items: end;
}

.executive-debt-filters.single-debt-filter {
    grid-template-columns: minmax(160px, 220px);
    justify-content: end;
}

.executive-debt-filters label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: var(--one-muted);
    font-size: 12px;
    font-weight: 700;
}

.executive-debt-filters .form-select {
    min-height: 34px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.executive-debt-content {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.executive-debt-donut {
    position: relative;
    width: 190px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: #e8edf8;
    box-shadow: inset 0 0 0 1px rgba(15, 30, 55, .05), 0 12px 20px rgba(42, 85, 180, .08);
}

.executive-debt-donut::after {
    content: "";
    position: absolute;
    inset: 47px;
    border-radius: 50%;
    background: #4f68e8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 4px rgba(255, 255, 255, .92);
}

.executive-debt-donut-core {
    position: absolute;
    inset: 50px;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
    line-height: 1.15;
}

.executive-debt-donut-core span,
.executive-debt-donut-core small {
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 700;
}

.executive-debt-donut-core strong {
    margin: 4px 0 2px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.executive-debt-legend-card,
.executive-debt-side-legend {
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fbfdff;
}

.executive-debt-legend-card {
    align-self: stretch;
    display: grid;
}

.executive-debt-legend-row {
    display: grid;
    grid-template-columns: 18px minmax(86px, 1fr) minmax(112px, auto) 56px;
    gap: 8px;
    align-items: center;
    min-height: 45px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--one-line);
}

.executive-debt-legend-row:last-child {
    border-bottom: 0;
}

.executive-debt-legend-row b,
.executive-debt-legend-row strong {
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 900;
}

.executive-debt-legend-row strong,
.executive-debt-legend-row em {
    text-align: right;
}

.executive-debt-legend-row em {
    color: var(--one-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.debt-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.debt-blue {
    background: #4f68e8;
}

.debt-green {
    background: #5ba766;
}

.debt-red {
    background: #c73d3c;
}

.executive-debt-chart {
    min-width: 0;
}

.executive-debt-chart h2 {
    margin-bottom: 12px;
    text-align: left;
}

.executive-debt-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
}

.executive-debt-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(38px, 6vw, 88px);
    min-height: 220px;
    padding: 18px 22px 0;
    background:
        repeating-linear-gradient(to top, transparent 0 38px, rgba(27, 46, 78, .08) 39px 40px);
    border-bottom: 2px solid #d6deea;
}

.executive-debt-bar-item {
    display: grid;
    justify-items: center;
    align-items: end;
    width: 92px;
    min-width: 92px;
}

.executive-debt-bar-value {
    margin-bottom: 4px;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 900;
}

.executive-debt-bar {
    width: 66px;
    min-height: 5px;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .08);
    transition: height .22s ease;
}

.executive-debt-bar-blue {
    background: linear-gradient(180deg, #6b7df4, #3f57d7);
}

.executive-debt-bar-green {
    background: linear-gradient(180deg, #71bd76, #4c9857);
}

.executive-debt-bar-red {
    background: linear-gradient(180deg, #d6524b, #b73331);
}

.executive-debt-bar-item small {
    margin-top: 8px;
    color: var(--one-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.executive-debt-side-legend {
    display: grid;
    gap: 10px;
    padding: 16px 14px;
}

.executive-debt-side-legend span {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1280px) {
    .executive-debt-panel,
    .executive-debt-content,
    .executive-debt-chart-grid {
        grid-template-columns: 1fr;
    }

    .executive-debt-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-box {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-left h1 {
        font-size: 34px;
    }

    .card-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .kpi-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .donut-chart {
        width: 240px;
        height: 240px;
    }

    .donut-inner {
        inset: 28px;
    }

    .kpi-value {
        font-size: 34px;
    }
}

@media (max-width: 1200px) {
    body.backoffice-shell {
        overflow: auto;
    }

    body.backoffice-shell > main[role="main"],
    body.backoffice-shell .portal-page,
    body.backoffice-shell .portal-workspace {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    body.backoffice-shell .portal-scroll-body {
        overflow: visible;
        padding-right: 0;
    }

    body.backoffice-shell .portal-sidebar {
        height: auto;
        overflow: visible;
    }

    .site-nav {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-menu {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .public-hero,
    .auth-page,
    .public-about,
    .ops-two-column,
    .cms-layout {
        grid-template-columns: 1fr;
    }

    .public-hero-panel {
        margin: 0 56px 76px;
        max-width: 520px;
    }

    .public-value-grid,
    .ops-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .task-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-page {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
    }

    .portal-link {
        display: inline-flex;
        margin-right: 6px;
    }

    .global-greeting-clock {
        min-width: 360px;
    }

    .global-clock-face {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .global-clock-tick {
        margin-top: -37px;
        transform-origin: 1px 37px;
    }

    .global-clock-hour {
        height: 23px;
    }

    .global-clock-minute {
        height: 31px;
    }

    .global-clock-second {
        height: 34px;
    }

    .cms-form-grid,
    .cms-banner-grid,
    .public-service-grid,
    .public-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-topbar,
    .site-nav,
    .public-section,
    .public-about,
    .public-contact,
    .portal-workspace,
    .auth-visual,
    .auth-form-zone {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-topbar,
    .site-footer,
    .public-contact,
    .portal-heading,
    .ops-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .global-greeting-clock {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        margin-left: 0;
    }

    .global-greeting-text {
        white-space: normal;
    }

    .site-brand {
        min-width: 0;
    }

    .public-hero {
        min-height: auto;
    }

    .public-hero-content {
        padding: 56px 18px 28px;
    }

    .public-hero h1,
    .auth-copy h1 {
        font-size: 36px;
    }

    .public-hero p {
        font-size: 16px;
    }

    .public-hero-panel {
        margin: 0 18px 70px;
    }

    .public-hero-dots {
        left: 18px;
    }

    .public-value-grid,
    .ops-metric-grid,
    .task-board-grid,
    .auth-role-grid,
    .public-mini-stat {
        grid-template-columns: 1fr;
    }

    .cms-post-item {
        grid-template-columns: 1fr;
    }
}

/* =========================
   POSTS / NEWS CMS
========================= */

.cms-stat-grid {
    margin-bottom: 18px;
}

.cms-summary {
    min-height: 92px;
}

.cms-upload-grid {
    grid-template-columns: 1fr 1fr .5fr;
    align-items: end;
}

.cms-check {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #f8fbff;
}

.cms-check label {
    margin: 0;
}

.cms-preview-image.dynamic {
    background-image: none;
}

.cms-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.cms-preview-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--one-blue);
    font-size: 12px;
    font-weight: 900;
}

.cms-filter-row,
.cms-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cms-row-actions form {
    margin: 0;
}

.cms-post-item.rich {
    grid-template-columns: 92px minmax(0, 1fr) auto auto;
}

.cms-post-item small {
    display: block;
    margin-top: 4px;
    color: var(--one-muted);
    line-height: 1.35;
}

.cms-empty-state,
.public-empty-state {
    padding: 24px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--one-muted);
}

.cms-empty-state strong,
.cms-empty-state span,
.public-empty-state strong,
.public-empty-state span {
    display: block;
}

.cms-empty-state strong,
.public-empty-state strong {
    color: var(--one-navy);
    font-size: 18px;
}

.public-news-card.with-image {
    overflow: hidden;
    padding: 0;
}

.public-news-image {
    display: block;
    height: 164px;
    background-size: cover;
    background-position: center;
}

.public-news-body {
    padding: 20px;
}

.public-news-body h3 a,
.news-list-body h3 a {
    color: inherit;
    text-decoration: none;
}

.public-news-body h3 a:hover,
.news-list-body h3 a:hover {
    color: var(--one-blue);
}

.news-hero {
    min-height: 340px;
    display: flex;
    align-items: end;
    padding: 64px 56px;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(11, 32, 60, .95), rgba(11, 32, 60, .46)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1800&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.news-hero h1 {
    max-width: 780px;
    margin: 12px 0;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
}

.news-hero p {
    max-width: 760px;
    margin: 0;
    color: #e8eef8;
    font-size: 18px;
    line-height: 1.55;
}

.news-page-section {
    min-height: 420px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-list-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.news-list-image {
    display: block;
    height: 190px;
    background-size: cover;
    background-position: center;
}

.news-list-body {
    padding: 20px;
}

.news-list-body span {
    color: var(--one-red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-list-body h3 {
    margin: 8px 0;
    color: var(--one-navy);
    font-size: 20px;
    font-weight: 900;
}

.news-list-body p {
    color: var(--one-muted);
    line-height: 1.5;
}

.news-list-body small {
    color: var(--one-blue);
    font-weight: 800;
}

.article-page {
    background: #fff;
}

.article-hero {
    min-height: 460px;
    display: flex;
    align-items: end;
    padding: 72px 56px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.article-hero > div {
    max-width: 880px;
}

.article-hero h1 {
    margin: 12px 0;
    font-size: 50px;
    line-height: 1.05;
    font-weight: 900;
}

.article-hero p {
    max-width: 780px;
    color: #e8eef8;
    font-size: 18px;
    line-height: 1.55;
}

.article-hero small {
    color: #cdd8e7;
    font-weight: 800;
}

.article-back {
    display: inline-flex;
    margin-bottom: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.article-body p {
    color: #26354f;
    font-size: 18px;
    line-height: 1.78;
}

.article-footer-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

@media (max-width: 992px) {
    .cms-upload-grid,
    .cms-post-item.rich,
    .news-list-grid {
        grid-template-columns: 1fr;
    }

    .cms-row-actions {
        justify-content: flex-start;
    }

    .news-hero,
    .article-hero {
        padding: 46px 24px;
    }

    .news-hero h1,
    .article-hero h1 {
        font-size: 34px;
    }
}

/* =========================
   OPERATIONS TASKS
========================= */

.work-page {
    background: #f4f7fb;
}

.work-heading p {
    max-width: 780px;
}

.work-scope-note {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #cfe0f6;
    border-left: 4px solid var(--one-blue);
    border-radius: 8px;
    background: #f7fbff;
    color: #34445f;
}

.work-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
}

.work-filter-panel {
    padding: 14px 18px;
}

.work-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr auto;
    gap: 12px;
    align-items: end;
}

.work-filter-form label,
.work-create-card label,
.work-task-actions label {
    display: block;
    margin: 0 0 6px;
    color: var(--one-navy);
    font-size: 12px;
    font-weight: 900;
}

.work-check-filter {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #fff;
}

.work-check-filter label {
    margin: 0;
}

.work-filter-actions {
    display: flex;
    gap: 8px;
}

.work-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    margin-bottom: 18px;
}

.work-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.work-form-grid > div {
    min-width: 0;
}

.work-form-grid .span-2 {
    grid-column: span 2;
}

.work-form-grid .span-3 {
    grid-column: 1 / -1;
}

.multi-project-select {
    min-height: 132px;
}

.multi-project-select option {
    padding: 6px 8px;
}

.work-check-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 6px;
    background: #f8fbff;
}

.work-check-inline label {
    margin: 0;
}

.required-star {
    color: #c63b3b;
}

.user-security-card {
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.user-security-card > label {
    margin-bottom: 12px;
}

.user-security-card .work-check-inline {
    min-height: 78px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
}

.inspection-permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.inspection-permission-option {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--one-navy);
}

.inspection-permission-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.inspection-permission-option span {
    font-size: 15px;
    font-weight: 900;
}

.inspection-permission-option small {
    grid-column: 2;
    color: var(--one-muted);
    font-size: 12px;
    line-height: 1.35;
}

.work-side-panel {
    align-self: start;
}

.work-empty-mini {
    padding: 16px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--one-muted);
}

.work-deadline-list {
    display: grid;
    gap: 10px;
}

.work-deadline-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--one-line);
    border-left: 4px solid var(--one-blue);
    border-radius: 8px;
    background: #fff;
}

.work-deadline-item.overdue {
    border-left-color: var(--one-red);
    background: #fff8f8;
}

.work-deadline-item strong,
.work-deadline-item span {
    display: block;
}

.work-deadline-item span {
    color: var(--one-muted);
    font-size: 13px;
}

.work-template-box {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #10233f;
    color: #dbe7f6;
}

.work-template-box strong {
    color: #fff;
}

.work-template-box span {
    font-size: 13px;
    line-height: 1.45;
}

.company-accounting-page .compact-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.company-accounting-page .thu-chi-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.company-accounting-page .thu-chi-metric-grid .ops-metric {
    min-width: 0;
}

.project-accounting-page .thu-chi-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.project-accounting-page .thu-chi-metric-grid .ops-metric {
    min-width: 0;
}

.chief-accounting-page .thu-chi-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.chief-accounting-page .thu-chi-metric-grid .ops-metric {
    min-width: 0;
}

.company-finance-summary-table th,
.company-finance-summary-table td {
    text-align: center;
    vertical-align: middle;
}

.company-finance-summary-table {
    table-layout: fixed;
}

.company-finance-summary-table th:first-child,
.company-finance-summary-table td:first-child {
    text-align: left;
    width: 17%;
}

.company-finance-summary-table .money-cell,
.company-finance-summary-table .fund-cell,
.company-finance-summary-table .status-cell,
.company-finance-summary-table .action-cell,
.company-finance-summary-table td:last-child {
    text-align: center !important;
}

.company-finance-summary-table .money-cell strong,
.company-finance-summary-table .money-cell small,
.company-finance-summary-table .fund-cell small {
    display: block;
}

.company-finance-summary-table .badge-stack {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.company-finance-summary-table th:last-child,
.company-finance-summary-table .action-cell {
    width: 120px;
}

.company-accounting-data-table th,
.company-accounting-data-table td {
    text-align: center;
    vertical-align: middle;
}

.company-accounting-data-table th:first-child,
.company-accounting-data-table td:first-child {
    text-align: left;
}

.company-accounting-data-table .text-end {
    text-align: center !important;
}

.payroll-stack-form {
    margin-top: 1rem;
}

.ops-panel-head.compact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.payroll-allocation-list {
    display: grid;
    gap: 0.65rem;
    min-width: 320px;
}

.payroll-allocation-list > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: #f8fafc;
}

.payroll-allocation-list span,
.payroll-allocation-list small {
    color: #64748b;
}

.company-task-link {
    display: block;
    padding: 10px;
    border-radius: 8px;
    color: #dbe7f6;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
}

.company-task-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.company-task-link span {
    display: block;
}

.chief-inline-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.chief-row-action {
    margin: 0;
}

.audit-timeline {
    display: grid;
    gap: 10px;
}

.audit-timeline > div {
    padding: 12px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
}

.audit-timeline strong,
.audit-timeline span,
.audit-timeline small {
    display: block;
}

.audit-timeline span,
.audit-timeline small {
    color: var(--one-muted);
}

.work-kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.work-kanban-column {
    min-height: 260px;
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.work-kanban-column header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--one-navy);
}

.work-kanban-column header span {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--one-blue);
    font-weight: 900;
}

.work-kanban-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 35, 63, .05);
}

.work-kanban-card.overdue {
    border-color: #ffd0d2;
}

.work-kanban-card strong,
.work-kanban-card span {
    display: block;
}

.work-kanban-card span,
.work-kanban-card small {
    color: var(--one-muted);
    font-size: 12px;
}

.work-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.work-kanban-empty {
    padding: 18px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: #fff;
    color: var(--one-muted);
    text-align: center;
}

.work-progress,
.work-dept-progress .ops-progress {
    height: 8px;
    border-radius: 999px;
    background: #e7edf5;
    overflow: hidden;
}

.work-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--one-blue), #35b978);
}

.work-department-list {
    display: grid;
    gap: 10px;
}

.work-department-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
}

.work-department-row strong,
.work-department-row span {
    display: block;
}

.work-department-row span {
    color: var(--one-muted);
    font-size: 13px;
}

.work-dept-progress {
    display: grid;
    gap: 5px;
}

.work-dept-progress b {
    color: var(--one-blue);
    font-size: 13px;
}

.work-flow-steps {
    display: grid;
    gap: 10px;
}

.work-flow-steps div {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
}

.work-flow-steps b {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--one-blue);
    color: #fff;
}

.work-flow-steps span {
    color: var(--one-navy);
    font-weight: 900;
}

.work-flow-steps small {
    color: var(--one-muted);
}

.work-task-list {
    display: grid;
    gap: 14px;
}

.work-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 35, 63, .06);
}

.work-task-card.overdue {
    border-color: #ffd0d2;
    background: linear-gradient(90deg, #fff8f8, #fff);
}

.work-task-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.work-task-code {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--one-blue);
    font-size: 12px;
    font-weight: 900;
}

.work-task-title-row h3 {
    margin: 0;
    color: var(--one-navy);
    font-size: 21px;
    font-weight: 900;
}

.work-task-badges {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.work-task-main p {
    margin: 12px 0;
    color: var(--one-muted);
    line-height: 1.55;
}

.work-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.work-info-grid div {
    padding: 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.work-info-grid span,
.work-info-grid b {
    display: block;
}

.work-info-grid span {
    color: var(--one-muted);
    font-size: 12px;
}

.work-info-grid b {
    color: var(--one-navy);
    font-size: 13px;
}

.work-progress-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
    color: var(--one-muted);
    font-size: 13px;
    font-weight: 800;
}

.work-checklist {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.work-checklist form {
    margin: 0;
}

.work-check-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--one-line);
    border-radius: 7px;
    background: #fff;
    color: var(--one-navy);
    text-align: left;
}

.work-check-item span {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid #b9c7da;
    border-radius: 5px;
}

.work-check-item.done {
    background: #f0fbf5;
    color: #2f7a4f;
}

.work-check-item.done span {
    border-color: var(--one-green);
    background: var(--one-green);
}

.work-result-box {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 12px;
    border-left: 4px solid var(--one-green);
    border-radius: 8px;
    background: #f1fbf5;
}

.work-result-box strong {
    color: var(--one-navy);
}

.work-result-box span {
    color: #3d5a46;
}

.work-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.work-attachments a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--one-blue);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.work-task-actions {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 12px;
    border-radius: 8px;
    background: #f8fbff;
}

.work-task-actions form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.my-work-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.my-work-filter-panel {
    padding: 12px;
}

.my-work-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.my-work-tabs a {
    padding: 9px 12px;
    border: 1px solid var(--one-line);
    border-radius: 999px;
    background: #fff;
    color: var(--one-navy);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.my-work-tabs a.active,
.my-work-tabs a:hover {
    border-color: var(--one-blue);
    background: #edf4ff;
    color: var(--one-blue);
}

.my-work-card {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.my-work-actions .btn {
    width: 100%;
}

.work-history {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--one-line);
}

.work-history strong {
    color: var(--one-navy);
}

.work-history span {
    color: var(--one-muted);
    font-size: 12px;
    line-height: 1.35;
}

.thu-chi-upload-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 6px;
    min-width: 210px;
    margin-top: 6px;
}

.thu-chi-attachment-link {
    display: block;
    max-width: 220px;
    margin-bottom: 4px;
    color: var(--one-blue);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thu-chi-approval-note,
.thu-chi-approval-flow {
    display: block;
    max-width: 260px;
    color: var(--one-muted);
    font-size: 12px;
    line-height: 1.35;
}

.thu-chi-approval-note {
    color: var(--one-navy);
    font-weight: 900;
}

.thu-chi-ledger-grid .ops-table td {
    vertical-align: top;
}

@media (max-width: 1280px) {
    .bo-demo-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-demo-main-grid,
    .bo-demo-form-layout {
        grid-template-columns: 1fr;
    }

    .bo-demo-form-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-demo-sticky-actions {
        grid-column: 1 / -1;
    }

    .work-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-create-grid,
    .work-task-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bo-demo-filterbar,
    .bo-demo-kpis,
    .bo-demo-form-grid,
    .bo-demo-form-side {
        grid-template-columns: 1fr;
    }

    .bo-demo-form-grid .span-2 {
        grid-column: auto;
    }

    .bo-demo-bars {
        height: 220px;
        overflow-x: auto;
    }

    .bo-demo-bars > div {
        min-width: 72px;
    }

    .work-filter-form,
    .work-form-grid,
    .work-info-grid,
    .work-department-row {
        grid-template-columns: 1fr;
    }

    .work-form-grid .span-2,
    .work-form-grid .span-3 {
        grid-column: auto;
    }

    .work-kpi-grid {
        grid-template-columns: 1fr;
    }

    .work-task-title-row,
    .work-progress-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .thu-chi-bars,
    .thu-chi-grid,
    .thu-chi-two-tables,
    .thu-chi-report-row {
        grid-template-columns: 1fr;
    }

    .doi-soat-action-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .inspection-permission-grid {
        grid-template-columns: 1fr;
    }
}
.work-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.work-permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #1d2a44;
}

.work-permission-grid input {
    width: 16px;
    height: 16px;
}

.inspection-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inspection-main-grid {
    align-items: start;
}

.inspection-filter {
    padding: 16px 18px;
}

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

.inspection-form-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.inspection-form-grid .span-2 {
    grid-column: 1 / -1;
}

.inspection-log-stack {
    display: grid;
    gap: 14px;
}

.inspection-log-card {
    padding: 14px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #f8fbff;
}

.inspection-log-card header,
.inspection-log-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inspection-log-card header strong {
    display: block;
    color: var(--one-navy);
    font-size: 18px;
    font-weight: 900;
}

.inspection-log-card header span {
    color: var(--one-muted);
}

.inspection-log-summary {
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--one-muted);
}

.inspection-log-summary b {
    color: var(--one-navy);
}

.inspection-inline-form,
.inspection-finish-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbe3ef;
}

.inspection-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--one-line);
    border-radius: 8px;
    background: #fff;
    color: var(--one-navy);
    font-weight: 800;
}

.inspection-check input {
    width: 18px;
    height: 18px;
}

.inspection-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.inspection-table-scroll .ops-table {
    min-width: 820px;
}

.inspection-approve-form {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    min-width: 260px;
}

@media (max-width: 1280px) {
    .inspection-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .inspection-metric-grid,
    .inspection-form-grid,
    .inspection-form-grid.compact {
        grid-template-columns: 1fr;
    }

    .inspection-form-grid .span-2 {
        grid-column: auto;
    }

    .inspection-approve-form {
        grid-template-columns: 1fr;
    }
}

.update-import-panel {
    padding: 0;
    overflow: hidden;
}

.update-tabs {
    border-bottom: 1px solid var(--one-line);
    background: #fff;
}

.update-tabs .nav-link {
    min-width: 210px;
    padding: 20px 28px 18px;
    border: 0;
    border-right: 1px solid #edf1f7;
    border-radius: 0;
    color: var(--one-navy);
    font-size: 20px;
    font-weight: 900;
}

.update-tabs .nav-link.active {
    color: var(--one-blue);
    background: #fff;
    box-shadow: inset 0 -3px 0 var(--one-blue);
}

.update-tab-content {
    padding: 24px;
}

.update-import-form {
    display: grid;
    gap: 16px;
    align-items: end;
}

.bank-import-form {
    grid-template-columns: minmax(150px, .9fr) minmax(160px, .9fr) minmax(150px, .9fr) minmax(220px, 1.25fr) 150px;
}

.internal-import-form {
    grid-template-columns: minmax(220px, .9fr) minmax(220px, .9fr) minmax(260px, 1fr) 150px;
}

.update-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    color: var(--one-navy);
    font-weight: 800;
}

.update-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--one-blue);
}

.update-file-field {
    min-width: 0;
}

.update-import-button {
    min-height: 45px;
    font-weight: 800;
}

.update-list-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.update-list-actions .btn {
    min-width: 118px;
}

.update-match-status {
    align-self: flex-end;
    min-width: 118px;
    padding: 10px 16px;
    border: 1px solid #8bd486;
    border-radius: 8px;
    background: #f1fde9;
    color: #2f6335;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1400px) {
    .bank-import-form,
    .internal-import-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .update-import-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .update-tabs .nav-link {
        min-width: 0;
        padding: 16px 18px;
        font-size: 17px;
    }

    .update-tab-content {
        padding: 18px;
    }

    .bank-import-form,
    .internal-import-form {
        grid-template-columns: 1fr;
    }

    .update-list-actions {
        width: 100%;
        align-items: flex-end;
    }
}
