:root {
  --ink: #15324b;
  --muted: #6d8294;
  --faint: #edf3f6;
  --line: #dfe9ee;
  --canvas: #f6f9fa;
  --white: #ffffff;
  --navy: #102a43;
  --navy-soft: #183d5a;
  --teal: #3db5aa;
  --teal-dark: #218a83;
  --lime: #d8f27d;
  --yellow: #ffd166;
  --red: #e67e77;
  --purple: #9b8afb;
  --shadow: 0 12px 28px rgba(28, 61, 82, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 14px/1.5 "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--navy); color: #e9f2f4; display: flex; flex-direction: column; padding: 26px 14px 18px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 30px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--lime); color: var(--navy); display: grid; place-items: center; font: 800 20px Manrope, sans-serif; transform: rotate(-8deg); }
.brand strong { display: block; font: 800 17px Manrope, sans-serif; letter-spacing: .11em; }
.brand span { color: #8ca9b7; font-size: 11px; letter-spacing: .08em; }
.workspace-switcher { padding: 0 12px 23px; border-bottom: 1px solid rgba(255,255,255,.09); }
.eyebrow, .nav-section-label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; color: #7092a4; }
.branch-switcher { margin-top: 8px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.1); width: 100%; text-align: left; padding: 10px 11px; border-radius: 9px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.branch-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 3px rgba(61,181,170,.15); }
.chevron { color: #9db3bd; margin-left: auto; font-size: 16px; }
.primary-nav { padding-top: 23px; }
.nav-section-label { padding: 0 12px 9px; }
.nav-section-spaced { padding-top: 25px; }
.nav-item { width: 100%; color: #afc4cc; background: transparent; text-align: left; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; margin: 2px 0; transition: background .2s, color .2s; }
.nav-item:hover, .nav-item.active { background: rgba(216,242,125,.12); color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 0 var(--lime); }
.nav-icon { width: 17px; color: #7b9daa; font-size: 18px; text-align: center; line-height: 1; }
.nav-item.active .nav-icon { color: var(--lime); }
.nav-badge { margin-left: auto; min-width: 21px; padding: 1px 6px; border-radius: 20px; background: #294d64; color: #c9d8dd; font-size: 11px; text-align: center; }
.nav-badge.alert { background: rgba(230,126,119,.2); color: #ffb1a8; }
.sidebar-footer { margin-top: auto; }
.future-module { display: flex; gap: 10px; margin: 15px 8px 20px; padding: 12px; background: rgba(216,242,125,.08); border: 1px solid rgba(216,242,125,.12); border-radius: 11px; }
.future-module .sparkle { color: var(--lime); font-size: 18px; }
.future-module strong, .future-module span { display: block; }
.future-module strong { font-size: 12px; }
.future-module span:last-child { color: #94abb5; font-size: 11px; margin-top: 3px; }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.09); padding: 16px 8px 0; display: flex; align-items: center; gap: 9px; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user span { color: #8ca9b7; font-size: 11px; }
.more-button { margin-left: auto; background: transparent; color: #809aa7; letter-spacing: 2px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #e0f0b4; color: #355740; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.avatar.small { width: 29px; height: 29px; font-size: 10px; }
.main-area { min-width: 0; flex: 1; }
.topbar { height: 75px; padding: 0 38px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumbs { display: flex; gap: 12px; align-items: center; color: #94a5ae; font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.crumb-separator { color: #c6d2d7; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.header-action { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); color: #8396a2; border-radius: 8px; background: #fff; }
.header-action > span:first-child { font-size: 21px; line-height: .5; color: var(--ink); }
kbd { color: #a8b6bc; font-size: 10px; border: 1px solid #dbe4e7; border-radius: 4px; padding: 1px 4px; }
.icon-button { position: relative; background: transparent; color: var(--ink); font-size: 22px; padding: 3px; transform: rotate(180deg); }
.icon-button i { position: absolute; top: 0; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.profile-button { background: transparent; display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.profile-button .chevron { color: #8ca0aa; margin-left: 0; }
.content { max-width: 1440px; margin: 0 auto; padding: 35px 38px 60px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.page-heading h1 { font: 800 27px/1.2 Manrope, sans-serif; letter-spacing: -.035em; margin: 0; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 14px; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(30,60,80,.1); }
.button.primary { background: var(--navy); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.button.lime { background: var(--lime); color: var(--navy); }
.button.small { padding: 7px 10px; font-size: 12px; }
.quick-actions { display: flex; gap: 9px; margin-bottom: 24px; flex-wrap: wrap; }
.quick-actions .button { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.quick-actions .button:first-child { background: var(--lime); border-color: var(--lime); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card, .panel, .branch-card, .transfer-card, .report-card, .setting-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 19px 20px; position: relative; overflow: hidden; }
.stat-card:after { content: ""; position: absolute; width: 62px; height: 62px; border-radius: 50%; right: -13px; top: -17px; background: var(--faint); }
.stat-card.teal:after { background: #e1f5f1; }
.stat-card.yellow:after { background: #fff4d5; }
.stat-card.purple:after { background: #eeeaff; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-value { font: 800 28px Manrope, sans-serif; margin: 9px 0 4px; letter-spacing: -.04em; }
.stat-meta { color: var(--muted); font-size: 11px; }
.stat-meta strong { color: var(--teal-dark); }
.mini-symbol { position: absolute; z-index: 1; right: 14px; top: 12px; font-size: 19px; color: var(--ink); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.panel { overflow: hidden; }
.panel-header { padding: 18px 20px 15px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.panel-header h2, .panel-header h3 { margin: 0; font: 700 16px Manrope, sans-serif; letter-spacing: -.02em; }
.panel-header p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.text-link { background: transparent; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { color: #90a1aa; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; font-weight: 700; text-align: left; padding: 10px 20px; background: #fbfcfc; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--line); }
td { padding: 13px 20px; border-bottom: 1px solid var(--faint); color: #526b7b; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.item-cell { display: flex; gap: 10px; align-items: center; min-width: 180px; }
.item-thumb { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #e7f3f1; color: var(--teal-dark); font-size: 16px; }
.item-cell strong { display: block; color: var(--ink); font-size: 12px; }
.item-cell span { display: block; color: #93a3ac; font-size: 10px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 8px; background: #edf8f5; color: #278b79; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status:before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.pending { color: #a87516; background: #fff6dc; }
.status.warning { color: #bd665f; background: #fff0ee; }
.status.blue { color: #5779b0; background: #edf3ff; }
.status.neutral { color: #72818a; background: #f0f3f4; }
.bar-chart { padding: 0 20px 20px; }
.chart-area { height: 210px; position: relative; display: flex; align-items: flex-end; gap: 9%; padding: 20px 6px 25px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent, transparent 40px, #f1f5f6 41px); }
.chart-area:before { content: ""; position: absolute; left: 0; top: 40%; width: 100%; border-top: 1px dashed #bdcfce; transform: rotate(-5deg); }
.chart-bar-group { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; z-index: 1; }
.chart-bar { width: 100%; max-width: 52px; border-radius: 7px 7px 2px 2px; background: #dceff0; min-height: 20px; }
.chart-bar.highlight { background: var(--teal); }
.chart-bar-group span { color: #96a6ae; font-size: 10px; }
.legend-row { display: flex; gap: 15px; padding-top: 14px; color: var(--muted); font-size: 10px; }
.legend-row span:before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; background: var(--teal); }
.legend-row span:last-child:before { background: #dceff0; }
.activity-list { padding: 0 20px 17px; }
.activity { display: flex; gap: 11px; position: relative; padding: 10px 0 14px; }
.activity:not(:last-child):after { content: ""; position: absolute; left: 13px; top: 34px; height: calc(100% - 16px); border-left: 1px dashed #d2dfe2; }
.activity-icon { width: 27px; height: 27px; border-radius: 50%; background: #e8f5f1; color: var(--teal-dark); display: grid; place-items: center; z-index: 1; font-size: 13px; }
.activity:nth-child(2) .activity-icon { background: #fff4da; color: #a87516; }
.activity:nth-child(3) .activity-icon { background: #efeaff; color: #7665ce; }
.activity strong { font-size: 11px; color: var(--ink); }
.activity p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.activity time { display: block; color: #a6b3b8; font-size: 10px; margin-top: 4px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; }
.tab { background: transparent; color: var(--muted); padding: 12px 2px; font-weight: 700; font-size: 12px; border-bottom: 2px solid transparent; position: relative; }
.tab.active { color: var(--ink); border-bottom-color: var(--teal); }
.tab-count { color: var(--teal-dark); font-size: 10px; padding-left: 4px; }
.filter-row { display: flex; gap: 9px; margin-bottom: 17px; flex-wrap: wrap; }
.filter-input, .filter-select { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); padding: 9px 11px; outline: none; }
.filter-input { min-width: 220px; flex: 1; }
.filter-select { min-width: 130px; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.branch-card { padding: 19px; }
.branch-card-top { display: flex; justify-content: space-between; align-items: start; }
.branch-card h3 { margin: 0; font: 700 15px Manrope, sans-serif; }
.branch-card p { color: var(--muted); margin: 5px 0 16px; font-size: 12px; }
.branch-number { font: 800 20px Manrope, sans-serif; }
.branch-number-label { color: var(--muted); font-size: 11px; }
.progress { height: 7px; background: #edf3f4; border-radius: 10px; margin: 14px 0 9px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.branch-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.approval-list { display: grid; gap: 12px; }
.approval-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.approval-card .item-cell { min-width: 0; }
.approval-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.approval-actions .button { padding: 7px 10px; font-size: 11px; }
.approval-note { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
.transfer-grid { display: grid; gap: 12px; }
.transfer-card { padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.transfer-card h3 { margin: 0 0 4px; font: 700 14px Manrope, sans-serif; }
.transfer-route { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.transfer-route strong { color: var(--ink); }
.transfer-line { color: var(--teal); }
.transfer-side { text-align: right; }
.transfer-side time { color: var(--muted); display: block; font-size: 10px; margin-top: 7px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.report-card { padding: 18px; }
.report-card .report-icon { width: 34px; height: 34px; border-radius: 9px; background: #e8f5f1; color: var(--teal-dark); display: grid; place-items: center; font-size: 18px; }
.report-card:nth-child(2) .report-icon { background: #fff4db; color: #a87516; }
.report-card:nth-child(3) .report-icon { background: #eeeaff; color: #7665ce; }
.report-card h3 { font: 700 14px Manrope, sans-serif; margin: 16px 0 5px; }
.report-card p { color: var(--muted); font-size: 11px; margin: 0 0 18px; min-height: 32px; }
.notification-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notification { display: flex; gap: 14px; align-items: center; padding: 17px 20px; background: #fff; }
.notification.unread { background: #fbfef7; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.notification.read .notification-dot { background: #d8e1e4; }
.notification strong { font-size: 12px; }
.notification p { color: var(--muted); margin: 3px 0 0; font-size: 11px; }
.notification time { margin-left: auto; color: #a5b2b7; font-size: 10px; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.setting-card { padding: 20px; }
.setting-card h3 { margin: 0 0 14px; font: 700 14px Manrope, sans-serif; }
.setting-list { display: grid; gap: 10px; }
.setting-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--faint); padding-bottom: 10px; color: var(--muted); font-size: 12px; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row strong { color: var(--ink); }
.future-card { border: 1px dashed #b7ccce; background: #f7fbfa; padding: 18px; border-radius: var(--radius); display: flex; align-items: center; gap: 14px; color: var(--muted); }
.future-card strong { color: var(--ink); display: block; }
.future-card p { margin: 3px 0 0; font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(10,31,49,.48); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(520px, 100%); max-height: min(680px, 90vh); overflow: auto; background: #fff; border-radius: 17px; box-shadow: 0 25px 70px rgba(3,25,40,.22); }
.modal-header { padding: 22px 23px 13px; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header h2 { margin: 0; font: 800 20px Manrope, sans-serif; }
.modal-header p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.close-modal { background: #f1f5f5; color: var(--muted); border-radius: 50%; width: 28px; height: 28px; font-size: 18px; }
.modal-body { padding: 8px 23px 23px; }
.movement-options { display: grid; gap: 9px; }
.movement-option { padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: #fff; display: flex; gap: 12px; align-items: center; }
.movement-option:hover { border-color: var(--teal); background: #f7fcfb; }
.movement-option .option-icon { width: 34px; height: 34px; border-radius: 9px; background: #e8f5f1; display: grid; place-items: center; color: var(--teal-dark); font-size: 17px; }
.movement-option strong, .movement-option span { display: block; }
.movement-option strong { color: var(--ink); font-size: 12px; }
.movement-option span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.search-modal-form { display: flex; gap: 8px; }
.search-modal-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 11px; outline: none; }
.search-results { margin-top: 16px; display: grid; gap: 8px; }
.search-result { border: 1px solid var(--line); padding: 11px; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; }
.search-result strong { display: block; font-size: 12px; }
.search-result span { color: var(--muted); font-size: 10px; }
.mobile-menu, .mobile-bottom-nav { display: none; }

@media (max-width: 1080px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .topbar, .content { padding-left: 25px; padding-right: 25px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 15px 0 35px rgba(0,0,0,.15); }
  .sidebar.open { transform: translateX(0); }
  .topbar { height: 65px; padding: 0 16px; }
  .mobile-menu { display: block; background: transparent; color: var(--ink); font-size: 21px; margin-right: 10px; }
  .breadcrumbs span:first-child, .crumb-separator { display: none; }
  .topbar-actions { gap: 10px; }
  .search-trigger { border: 0; padding: 4px; }
  .search-label, .search-trigger kbd, .profile-name, .profile-button .chevron { display: none; }
  .icon-button { font-size: 21px; }
  .content { padding: 25px 16px 30px; }
  .page-heading { display: block; margin-bottom: 21px; }
  .page-heading h1 { font-size: 23px; }
  .heading-actions { margin-top: 15px; }
  .heading-actions .button:not(.primary) { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 23px; }
  .dashboard-grid { gap: 14px; }
  .content-grid, .report-grid, .settings-grid { grid-template-columns: 1fr; }
  .panel-header, th, td { padding-left: 15px; padding-right: 15px; }
  .filter-input { min-width: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .approval-card { align-items: flex-start; flex-direction: column; }
  .approval-actions { width: 100%; }
  .approval-actions .button { flex: 1; }
  .transfer-card { grid-template-columns: 1fr; }
  .transfer-side { text-align: left; display: flex; align-items: center; gap: 12px; }
  .transfer-side time { margin-top: 0; }
  .mobile-bottom-nav { position: fixed; z-index: 12; display: flex; bottom: 0; left: 0; right: 0; height: 66px; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; }
  .mobile-nav-item { background: transparent; color: #91a1a9; font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 65px; }
  .mobile-nav-item span { font-size: 20px; line-height: 1; }
  .mobile-nav-item.active { color: var(--teal-dark); font-weight: 700; }
  .mobile-nav-item.active span { color: var(--teal); }
}
