/* DigiMonk Finance: product layer. Flat, dense and quiet. Red only where it means something. */
:root { --radius: 8px; --radius-sm: 6px; --shadow: none; --side: 232px; --top: 56px; --muted: #6f6f6f; --grad: #CE002C; --nav: #262626; --nav-2: #333333; }
:root[data-theme="dark"] { --muted: #A3A3A3; --nav: #101010; --nav-2: #262626; }
body { font-size: 13.5px; } h1 { font-size: 20px; font-weight: 600; } h3 { font-size: 14px; }
.page { max-width: none; padding: 18px 24px 48px; } .page-head { margin-bottom: 14px; align-items: center; }
/* buttons */
.btn { border-radius: 6px; padding: 7px 13px; font-size: 13px; font-weight: 500; } .btn.sm { border-radius: 6px; padding: 5px 10px; } .btn.primary, .btn.primary:hover { box-shadow: none; } .btn.primary:hover { background: #B00026; } .btn.ghost:hover { border-color: #BDBDBD; } .icon-btn { border-radius: 6px; width: 34px; height: 34px; }
/* menu */
.side { background: var(--nav); border-right: 0; } .side-brand { border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; padding: 10px 16px; } .side-brand small { color: #B5B5B5; } .side .icon-btn { color: #D0D0D0; } .side .icon-btn:hover { background: var(--nav-2); color: #fff; }
.side nav { padding: 6px 8px 16px; scrollbar-width: thin; scrollbar-color: #555 transparent; } .nav-sec p { color: #A0A0A0; letter-spacing: .04em; text-transform: none; font-size: 11.5px; margin: 14px 10px 4px; }
.nav-row { position: relative; } .nav-sec a { color: #DCDCDC; padding: 7px 10px; border-radius: 6px; font-weight: 400; } .nav-sec a:hover { background: var(--nav-2); color: #fff; } .nav-sec a.on { background: #CE002C; color: #fff; font-weight: 500; } .nav-sec a.on::before { display: none; }
.nav-add { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center; color: #fff; opacity: 0; } .nav-add .ic { width: 14px; height: 14px; } .nav-row:hover .nav-add, .nav-add:focus-visible { opacity: 1; } .nav-add:hover { background: rgba(255,255,255,.2); }
.side-foot { border-color: rgba(255,255,255,.08); } .me-btn { color: #fff; } .me-btn:hover { background: var(--nav-2); } .me-btn small { color: #B5B5B5; } .side :focus-visible { outline-color: #fff; outline-offset: -2px; }
.side-fold { margin-left: auto; } .side-fold .ic { transition: transform .2s; }
@media (min-width: 1101px) {
  body.folded { --side: 60px; } body.folded .side-brand > div, body.folded .nav-sec p, body.folded .nav-sec span, body.folded .nav-add, body.folded .me-btn div, body.folded .me-btn > .ic { display: none; } body.folded .side-fold { margin: 0 auto; } body.folded .side-brand { padding: 10px 6px; }
  body.folded .nav-sec { border-top: 1px solid rgba(255,255,255,.08); padding: 6px 0; } body.folded .nav-sec:first-child { border: 0; } body.folded .nav-sec a { justify-content: center; } .main { transition: margin-left .2s; } .side { transition: width .2s, transform .25s; }
}
@media (max-width: 1100px) { .side-fold { display: none; } .nav-add { display: none; } }
/* top bar */
.top { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 20px; } .search-trigger { border-radius: 6px; padding: 7px 11px; } .top-logo { height: 34px; }
/* dashboard */
.hero { margin-bottom: 14px; align-items: center; } .hero .eyebrow { display: none; } .hero h1 { font-size: 20px; margin: 0; }
.kpis { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } .kpi, .kpi.accent { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); box-shadow: none; padding: 14px 16px; } .kpi:last-child { border-right: 0; } .kpi:hover { transform: none; box-shadow: none; background: var(--hover); } .kpi::before, .kpi::after { display: none; }
.kpi .kpi-top, .kpi.accent .kpi-top { color: var(--muted); } .kpi .kpi-top .ic, .kpi.accent .ic { color: var(--muted); } .kpi-val, .kpi.accent .kpi-val { font-size: 22px; font-weight: 600; color: var(--ink); } .kpi.accent .kpi-foot, .kpi.accent .sub { color: var(--muted); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpi { border-bottom: 1px solid var(--line) !important; } } @media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(even) { border-right: 0 !important; } }
.card-head { padding: 11px 16px; border-bottom: 1px solid var(--line-2); } .card-head + * { margin-top: 0; } .card-head + .facts, .card-head + .kv-grid, .card-head + .form-grid, .card-head + .bud { padding-top: 14px; }
.age { padding: 14px 16px 16px; } .age-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .age-top b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; } .age-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 12px 0 14px; } .age-bar i { display: block; min-width: 3px; }
.age-key { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .age-key small { display: flex; align-items: center; gap: 6px; color: var(--muted); } .age-key small i { width: 8px; height: 8px; border-radius: 2px; flex: none; } .age-key b { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; } @media (max-width: 640px) { .age-key { grid-template-columns: 1fr 1fr; } }
.a0 { background: #9A9A9A; } .a1 { background: #F2A3B1; } .a2 { background: #EC5A73; } .a3 { background: #EC1A3C; } .a4 { background: #9E0022; }
.facts div { border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 2px 12px; } .facts b { font-size: 15.5px; font-weight: 600; } .facts { gap: 14px; }
/* lists */
.vtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; } .vtabs::-webkit-scrollbar { display: none; }
.vtabs button { padding: 8px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; } .vtabs button:hover { color: var(--ink); background: var(--hover); border-radius: 6px 6px 0 0; } .vtabs button.on { color: var(--red); border-color: var(--red); } .vtabs em { font-style: normal; font-size: 11.5px; color: var(--muted); background: var(--hover); border-radius: 10px; padding: 1px 7px; margin-left: 5px; } .vtabs button.on em { color: var(--deep); background: var(--red-tint); } :root[data-theme="dark"] .vtabs button.on em { color: #F5A3B1; }
@media (min-width: 641px) {
  .tbl thead th { position: sticky; top: 0; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; background: var(--surface-2); padding: 9px 14px; } .tbl tbody td { padding: 9px 14px; } .tbl tbody tr:hover { background: var(--hover); } .tbl td b { font-weight: 500; } .tbl .primary-cell b { color: var(--deep); } :root[data-theme="dark"] .tbl .primary-cell b { color: #F5A3B1; } .tbl .num { font-weight: 500; }
}
.toolbar input, .chip-select, .daterow input, .daterow select { border-radius: 6px !important; } .pill { border-radius: 4px; font-weight: 500; } .p-late { background: var(--red-tint); color: var(--deep); } .p-issued { background: var(--hover); color: var(--ink-2); } :root[data-theme="dark"] .p-late { color: #F5A3B1; } :root[data-theme="dark"] .p-issued { background: var(--hover); color: var(--ink-2); }
/* records */
.record-head { padding: 12px 16px; margin-bottom: 0; } .rh-ic { width: 40px; height: 40px; border-radius: 6px; background: var(--hover); color: var(--ink-2); } .rh-main h1 { font-size: 18px; } .record-head + .vtabs { margin: 8px 0 14px; } .more { position: relative; } .more .menu { min-width: 190px; } .menu { border-radius: 8px; } .menu .btn { border: 0; background: none; font-size: 13px; justify-content: flex-start; width: 100%; }
.menu .btn:hover { background: var(--hover); } .menu .btn[data-a="del"], .menu .btn[data-a="cancel"] { color: var(--red); } .back { margin-bottom: 8px; }
@media (max-width: 640px) { .page { padding: 14px 12px 90px; } .rh-actions .more > .btn { width: 100%; height: 100%; justify-content: center; } .record-head { padding: 12px; } .more .menu { right: auto; left: 0; } }
/* forms */
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { border-radius: 6px; } .modal, .drawer { box-shadow: var(--shadow-lg); } .modal { border-radius: 10px; } .field label { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 641px) and (max-width: 1400px) { .tbl thead th, .tbl tbody td { padding-left: 9px; padding-right: 9px; } .tbl { font-size: 13px; } }
@media (max-width: 640px) { .rh-actions > .more { padding: 0; } .page-head { align-items: flex-start; justify-content: flex-start; } .page-head h1 { text-align: left; } }
/* ask Claude */
.ask { display: grid; gap: 14px; } .ask-log { display: grid; gap: 14px; } .ask-t b { display: block; font-weight: 600; background: var(--hover); border-radius: 8px; padding: 8px 12px; } .ask-t p { white-space: pre-line; margin: 8px 12px 0; font-family: Poppins, 'Noto Sans Tamil', Arial, sans-serif; } .ask-tips { display: flex; flex-wrap: wrap; gap: 8px; } .ask-tips .btn { white-space: normal; text-align: left; }
.ask form { display: flex; gap: 8px; align-items: flex-end; } .ask textarea { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); resize: vertical; font-size: 16px; } .bill-ai { margin-top: 8px; }
