:root {
  --ink: #1a2933;
  --muted: #6f7c84;
  --faint: #97a2a8;
  --line: #e5e9e8;
  --canvas: #f5f7f6;
  --white: #ffffff;
  --navy: #173f2a;
  --navy-2: #245b35;
  --teal: #367c2b;
  --teal-soft: #edf6e9;
  --blue: #3977d4;
  --blue-soft: #edf3fe;
  --amber: #c98826;
  --amber-soft: #fff5df;
  --coral: #d75b4e;
  --coral-soft: #fff0ed;
  --purple: #7858c3;
  --purple-soft: #f1edfb;
  --green: #3d8a66;
  --green-soft: #eaf5ef;
  --shadow: 0 12px 35px rgba(23, 49, 51, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { display: none; }
strong, h1, h2, h3 { font-family: "Manrope", sans-serif; }

.prototype-banner { height: 27px; background: #f0e9d4; color: #6d603e; display: flex; align-items: center; justify-content: center; gap: 13px; position: fixed; inset: 0 0 auto 0; z-index: 100; font-size: 9px; letter-spacing: .04em; }
.prototype-banner span { font-weight: 800; letter-spacing: .12em; }
.prototype-banner p { margin: 0; opacity: .78; }
.app-shell { min-height: 100vh; padding-top: 27px; }
.sidebar { position: fixed; left: 0; top: 27px; bottom: 0; width: 244px; padding: 27px 17px 21px; background: var(--navy); color: white; display: flex; flex-direction: column; z-index: 20; }
.brand { margin: 0 10px 31px; display: flex; align-items: flex-start; flex-direction: column; gap: 9px; }
.brand img { width: 188px; height: auto; display: block; object-fit: contain; }
.brand small { padding-left: 2px; font-size: 8px; color: rgba(255,255,255,.5); letter-spacing: .09em; text-transform: uppercase; }
.main-nav { display: grid; gap: 6px; }
.nav-item { position: relative; width: 100%; min-height: 45px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: 11px; text-align: left; font-size: 11px; font-weight: 600; transition: .18s ease; }
.nav-item svg { width: 17px; }
.nav-item:hover { background: rgba(255,255,255,.055); color: white; }
.nav-item.active { color: white; background: rgba(93, 146, 61, .25); box-shadow: inset 3px 0 #ffde00; }
.nav-item.active svg { color: #ffde00; }
.nav-item b { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #ffde00; color: #173f2a; font-size: 8px; }
.sidebar-flow { margin: 32px 10px 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-flow > span { display: block; color: rgba(255,255,255,.3); font-size: 8px; letter-spacing: .14em; margin-bottom: 15px; }
.flow-mini { min-height: 48px; display: flex; gap: 10px; position: relative; }
.flow-mini:not(:last-child):after { content: ""; position: absolute; left: 10px; top: 26px; bottom: -5px; width: 1px; background: rgba(255,255,255,.12); }
.flow-mini > i { width: 21px; height: 21px; flex: 0 0 21px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; font: normal 700 8px Manrope, sans-serif; color: rgba(255,255,255,.45); }
.flow-mini > i.done { background: #3b8b7e; border-color: #3b8b7e; color: white; }
.flow-mini p { margin: 0; display: flex; flex-direction: column; }
.flow-mini strong { font-size: 9px; color: rgba(255,255,255,.7); }.flow-mini small { font-size: 8px; color: rgba(255,255,255,.32); margin-top: 2px; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 9px; }
.shield { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(95, 192, 185, .13); color: #6bd0c4; font-weight: 700; }
.sidebar-foot p { margin: 0; display: flex; flex-direction: column; }.sidebar-foot strong { color: rgba(255,255,255,.75); font-size: 9px; }.sidebar-foot small { color: rgba(255,255,255,.32); font-size: 8px; margin-top: 2px; }

.main-area { margin-left: 244px; min-height: calc(100vh - 27px); }
.topbar { height: 68px; padding: 0 34px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 27px; z-index: 15; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu { display: none; }
.mobile-brand { display: none; }
.breadcrumb-top { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #8a969c; }.breadcrumb-top b { color: #c1c8cb; }.breadcrumb-top strong { color: #41555b; font-size: 9px; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.microsoft-session { min-height: 32px; padding: 0 10px; border: 1px solid #d6e1de; border-radius: 7px; background: white; color: #315f59; display: inline-flex; align-items: center; text-decoration: none; font-size: 9px; font-weight: 700; }.microsoft-session.connected { border-color: #cbdccf; background: #f2f8f3; color: #367c2b; }
.icon-btn { width: 34px; height: 34px; border: 0; background: transparent; color: #7f8d92; position: relative; display: grid; place-items: center; }
.icon-btn svg { width: 18px; }.icon-btn i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); position: absolute; right: 7px; top: 6px; box-shadow: 0 0 0 2px white; }
.profile { padding-left: 17px; border: 0; border-left: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile > div { display: flex; flex-direction: column; text-align: right; }.profile strong { font-size: 10px; }.profile small { color: #8b979d; font-size: 8px; margin-top: 2px; }
.profile > span { width: 34px; height: 34px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: #eaf4e5; color: #367c2b; border: 2px solid white; box-shadow: 0 0 0 1px #d8e4e1; }.profile > span i { font: normal 700 9px Manrope, sans-serif; }.profile > span img { width: 100%; height: 100%; object-fit: cover; }

.auth-gate { min-height: calc(100vh - 31px); padding: 50px 20px; background: radial-gradient(circle at 15% 15%, rgba(255,222,0,.18), transparent 30%), linear-gradient(135deg,#eef5ef,#f8faf8 50%,#e8f1ec); display: grid; place-items: center; }.auth-gate[hidden] { display: none; }.auth-card { width: min(520px,100%); padding: 42px; border: 1px solid #d5e1dc; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 28px 80px rgba(23,63,42,.15); text-align: center; }.auth-card > img { width: min(290px,80%); max-height: 82px; object-fit: contain; }.auth-card > span { margin-top: 28px; display: block; color: #58806a; font-size: 10px; font-weight: 800; letter-spacing: .14em; }.auth-card h1 { margin: 9px 0 10px; color: #173f2a; font-size: 30px; line-height: 1.15; letter-spacing: -.035em; }.auth-card p { margin: 0 auto; max-width: 430px; color: #657874; font-size: 13px; line-height: 1.55; }.auth-microsoft-button { min-height: 48px; margin: 25px auto 16px; padding: 0 20px; border-radius: 9px; background: #173f2a; color: white; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 12px; font-weight: 800; box-shadow: 0 12px 25px rgba(23,63,42,.2); }.auth-microsoft-button svg { width: 18px; }.auth-card > small { display: block; color: #84938f; font-size: 9px; }

.view { display: none; max-width: 1480px; margin: 0 auto; padding: 32px 36px 60px; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.overline { display: block; font-size: 8px; font-weight: 800; color: #789096; letter-spacing: .15em; text-transform: uppercase; }
.page-head h1 { margin: 6px 0 5px; color: #19343a; font-size: 27px; letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.primary-btn, .ghost-btn, .link-btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; transition: .18s ease; }
.primary-btn { min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--navy); color: white; box-shadow: 0 8px 18px rgba(17, 61, 66, .16); font-size: 10px; }
.primary-btn:hover { background: var(--navy-2); transform: translateY(-1px); }.primary-btn svg { width: 16px; }
.primary-btn kbd { margin-left: 5px; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.12); font: 600 7px "DM Sans"; color: rgba(255,255,255,.58); }
.ghost-btn { height: 36px; padding: 0 11px; border-radius: 8px; background: white; border: 1px solid #dde3e2; color: #5d6b70; font-size: 9px; }.ghost-btn:hover { background: #f8faf9; }.ghost-btn svg { width: 15px; }
.link-btn { padding: 0; background: transparent; color: #486d70; font-size: 9px; }.link-btn svg { width: 14px; }
.head-actions { display: flex; gap: 8px; }

.attention-card { margin-bottom: 13px; min-height: 78px; padding: 14px 17px; border: 1px solid #eeddbb; border-radius: 11px; background: linear-gradient(115deg, #fffaf0, #fff); display: grid; grid-template-columns: 39px 1fr auto; gap: 13px; align-items: center; }
.attention-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }.attention-icon svg { width: 18px; }
.attention-card > div:nth-child(2) { display: flex; flex-direction: column; }.attention-card span { color: #ad7830; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.attention-card strong { font-size: 11px; margin: 3px 0 2px; }.attention-card p { margin: 0; color: #7f7464; font-size: 9px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { min-height: 105px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; }
.kpi-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; }.kpi-icon svg { width: 17px; }
.kpi-icon.teal { background: var(--teal-soft); color: var(--teal); }.kpi-icon.blue { background: var(--blue-soft); color: var(--blue); }.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }.kpi-icon.coral { background: var(--coral-soft); color: var(--coral); }
.kpi > div { display: flex; flex-direction: column; }.kpi small { color: #78868d; font-size: 8px; }.kpi strong { font-size: 19px; letter-spacing: -.04em; margin: 6px 0 4px; }.kpi p { margin: 0; color: #98a3a8; font-size: 8px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.obligations-panel, .finance-panel, .matrix-panel, .post-payment { overflow: hidden; }
.panel-head { min-height: 77px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0ef; }
.panel-head.compact { min-height: 65px; padding: 15px 18px; }
.panel-head h2 { margin: 4px 0 2px; font-size: 15px; letter-spacing: -.025em; }.panel-head p { margin: 0; font-size: 8px; color: #8b979c; }
.panel-tools { display: flex; gap: 7px; }.search { width: 218px; height: 36px; border: 1px solid #dfe4e3; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #89969b; }.search svg { width: 15px; }.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 9px; color: var(--ink); }.search input::placeholder { color: #a5afb3; }
.status-tabs { height: 43px; padding: 0 20px; display: flex; align-items: end; gap: 7px; border-bottom: 1px solid #edf0ef; background: #fcfdfc; }
.status-tabs button { height: 43px; padding: 0 10px; border: 0; background: transparent; color: #7d8a90; font-size: 9px; font-weight: 600; position: relative; }.status-tabs button:after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: transparent; }.status-tabs button.active { color: #234f52; }.status-tabs button.active:after { background: var(--teal); }.status-tabs button b { margin-left: 4px; padding: 2px 5px; border-radius: 8px; background: #e9eeee; font-size: 7px; }
.payment-list { min-height: 290px; }
.payment-row { min-height: 70px; padding: 11px 17px; display: grid; grid-template-columns: 36px minmax(185px, 1.5fr) .6fr .75fr 1fr auto 30px; gap: 11px; align-items: center; border-bottom: 1px solid #edf0ef; transition: .16s ease; }.payment-row:last-child { border-bottom: 0; }.payment-row:hover { background: #fafcfb; }.payment-row.hidden { display: none; }.payment-row.warning-row { background: linear-gradient(90deg, #fffaf9, white 60%); border-left: 3px solid var(--coral); padding-left: 14px; }
.supplier-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 800 8px Manrope, sans-serif; }.supplier-logo.purple { background: var(--purple-soft); color: var(--purple); }.supplier-logo.green { background: var(--green-soft); color: var(--green); }.supplier-logo.navy { background: #e7eff0; color: var(--navy); }.supplier-logo.orange { background: #fff0e3; color: #bb6a31; }.supplier-logo.blue { background: var(--blue-soft); color: var(--blue); }
.payment-main, .date-col, .amount-col, .origin, .due, .finance-row > div:not(.finance-supplier), .finance-supplier > div:last-child { display: flex; flex-direction: column; min-width: 0; }.payment-main strong { font-size: 10px; }.payment-main small { margin-top: 2px; font-size: 8px; color: #8a969b; }.date-col small, .amount-col small { color: #9ba5aa; font-size: 7px; letter-spacing: .06em; }.date-col strong, .amount-col strong { font-size: 9px; margin-top: 4px; }.amount-col strong { font-size: 10px; }
.inline-warning { width: fit-content; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; color: var(--coral); font-size: 7px; font-weight: 700; }.inline-warning svg { width: 11px; }
.status-pill { width: fit-content; padding: 5px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; font-size: 7px; font-weight: 700; white-space: nowrap; }.status-pill i { width: 5px; height: 5px; border-radius: 50%; }.status-pill.amber { background: var(--amber-soft); color: #a66d19; }.status-pill.amber i { background: var(--amber); }.status-pill.blue { background: var(--blue-soft); color: #356cb9; }.status-pill.blue i { background: var(--blue); }.status-pill.teal { background: var(--teal-soft); color: #26746f; }.status-pill.teal i { background: var(--teal); }.status-pill.coral { background: var(--coral-soft); color: #bd4e43; }.status-pill.coral i { background: var(--coral); }
.row-action { height: 29px; padding: 0 9px; border: 1px solid #d6dfdc; border-radius: 7px; background: white; color: #41666a; font-size: 8px; font-weight: 700; white-space: nowrap; }.row-action:hover { background: #f3f8f6; }.row-action.muted { color: #7d8b8f; }.row-action.coral { border-color: #efc9c3; color: var(--coral); background: #fff8f7; }
.more-btn { width: 28px; height: 28px; border: 0; background: transparent; color: #8e999e; display: grid; place-items: center; }.more-btn svg { width: 16px; }

.manager-top-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 13px; margin-bottom: 13px; }
.approvals-card, .budget-summary { min-height: 175px; }.approvals-card { padding-bottom: 7px; }.approval-line { min-height: 53px; margin: 0 15px; display: grid; grid-template-columns: 34px 1fr auto auto auto; gap: 9px; align-items: center; border-top: 1px solid #edf0ef; }.approval-line:first-of-type { border-top: 0; }.approval-line > div:nth-child(2) { display: flex; flex-direction: column; }.approval-line strong { font-size: 9px; }.approval-line small { color: #8b979c; font-size: 7px; margin-top: 2px; }.approval-line > b { font-size: 9px; }.reject-small, .approve-small { height: 27px; padding: 0 8px; border-radius: 6px; font-size: 7px; font-weight: 700; }.reject-small { background: white; color: #849095; border: 1px solid #dfe4e3; }.approve-small { background: var(--teal); color: white; border: 1px solid var(--teal); }.mini-alert { padding: 4px 6px; border-radius: 5px; background: var(--coral-soft); color: var(--coral); font-size: 6px; font-weight: 800; }
.budget-summary { padding: 19px; }.budget-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 19px; }.budget-numbers > div { display: flex; flex-direction: column; }.budget-numbers small { color: #89959a; font-size: 8px; }.budget-numbers strong { font-size: 17px; margin-top: 4px; letter-spacing: -.03em; }.budget-bar { height: 7px; margin: 17px 0 9px; border-radius: 6px; background: #e9eeec; overflow: hidden; }.budget-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1e817b, #63b5a6); }.budget-foot { display: flex; justify-content: space-between; color: #849095; font-size: 7px; }.budget-foot span { display: flex; align-items: center; gap: 5px; }.budget-foot span i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }.budget-foot strong { font-size: 8px; color: #47766e; }
.legend-inline { display: flex; align-items: center; gap: 12px; color: #869298; font-size: 7px; }.legend-inline span { display: flex; align-items: center; gap: 5px; }.legend-inline i { width: 7px; height: 7px; border-radius: 2px; }.legend-inline i.actual { background: #d9ece8; }.legend-inline i.forecast { border: 1px dashed #7da7a3; }.legend-inline i.pending { background: #f6c2ba; }
.matrix-wrap { width: 100%; overflow-x: auto; }.budget-matrix { min-width: 1200px; }.matrix-row { min-height: 56px; display: grid; grid-template-columns: 235px repeat(12, minmax(64px, 1fr)) 76px; align-items: stretch; border-bottom: 1px solid #edf0ef; }.matrix-row > * { display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; border-left: 1px solid #f0f2f1; font-size: 8px; color: #596a70; }.matrix-row .sticky-cell { position: sticky; left: 0; z-index: 2; justify-content: flex-start; background: white; border-left: 0; padding-left: 18px; box-shadow: 7px 0 12px rgba(26, 45, 45, .025); }.matrix-header { min-height: 37px; background: #f8faf9; }.matrix-header > * { color: #909ba0; font-size: 7px; font-weight: 800; letter-spacing: .07em; }.matrix-header .sticky-cell { background: #f8faf9; }.supplier-row { width: 100%; border: 0; border-bottom: 1px solid #edf0ef; background: white; padding: 0; text-align: right; }.supplier-row:hover { background: #fbfdfc; }.supplier-row > span.actual { background: rgba(230,244,241,.36); color: #2c716d; }.supplier-row > span.forecast { background-image: repeating-linear-gradient(135deg, rgba(29,128,123,.025), rgba(29,128,123,.025) 4px, transparent 4px, transparent 8px); color: #668a87; }.supplier-row > span.pending { background: #fff5f3; color: var(--coral); gap: 3px; }.supplier-row > span.pending span { padding: 2px 3px; border-radius: 3px; background: var(--coral); color: white; font-size: 5px; }.supplier-cell { display: grid !important; grid-template-columns: 15px 31px 1fr; gap: 8px; }.supplier-cell > svg { width: 13px; transition: .18s ease; }.supplier-row.open .supplier-cell > svg { transform: rotate(180deg); }.supplier-cell .supplier-logo { width: 30px; height: 30px; }.supplier-cell > span:last-child { display: flex; align-items: flex-start; flex-direction: column; }.supplier-cell strong { font-size: 9px; }.supplier-cell small { font-size: 7px; color: #929da1; margin-top: 2px; }.supplier-row > b, .total-row > b { font: 700 8px Manrope, sans-serif; color: #2e4c51; }
.detail-rows { display: none; }.detail-rows.open { display: block; }.detail-row { min-height: 42px; background: #fafcfb; }.detail-row > * { color: #718087; font-size: 7px; }.detail-row .sticky-cell { background: #fafcfb; padding-left: 46px; gap: 8px; }.detail-row .sticky-cell > div { display: flex; flex-direction: column; }.detail-row strong { font-size: 8px; }.detail-row small { font-size: 6px; color: #9ba5a9; }.detail-line { width: 9px; height: 1px; background: #c9d3d1; }.total-row { min-height: 43px; background: #f0f6f4; border: 0; }.total-row > * { font-weight: 700; color: #345d5c; }.total-row .sticky-cell { background: #f0f6f4; }

.finance-kpis { display: grid; grid-template-columns: 1.1fr .8fr 1.15fr; gap: 12px; margin-bottom: 13px; }.finance-kpis article { min-height: 95px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: white; display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); }.finance-kpis article > div { display: flex; flex-direction: column; }.finance-kpis small { color: #879399; font-size: 7px; letter-spacing: .08em; }.finance-kpis strong { font-size: 18px; margin: 5px 0 3px; }.finance-kpis p { margin: 0; color: #96a0a5; font-size: 7px; }
.finance-panel { margin-bottom: 13px; }.finance-table { min-width: 1040px; }.finance-head, .finance-row { display: grid; grid-template-columns: minmax(250px, 1.6fr) .65fr .62fr .73fr .78fr .75fr 62px; gap: 12px; align-items: center; padding: 0 18px; }.finance-head { height: 37px; background: #f8faf9; color: #929da1; font-size: 7px; font-weight: 800; letter-spacing: .07em; border-bottom: 1px solid #edf0ef; }.finance-row { min-height: 73px; border-bottom: 1px solid #edf0ef; }.finance-row:last-child { border-bottom: 0; }.finance-row.critical { background: linear-gradient(90deg, #fff9f8, white 52%); border-left: 3px solid var(--coral); padding-left: 15px; }.finance-supplier { display: flex; align-items: center; gap: 10px; }.finance-supplier strong, .finance-row > div > strong { font-size: 9px; }.finance-supplier small, .finance-row > div > small { color: #919ca1; font-size: 7px; margin-top: 2px; }.tag { width: fit-content; padding: 2px 4px; border-radius: 3px; font-size: 5px; font-weight: 800; letter-spacing: .08em; margin-bottom: 3px; }.tag.antecipado { color: var(--coral); background: var(--coral-soft); }.due strong { color: #bd554a !important; }.finance-value { text-align: right; align-items: flex-end; }.finance-value strong { font-size: 10px !important; }.doc-pill { width: fit-content; padding: 5px 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 7px; font-weight: 700; }.doc-pill svg { width: 11px; }.doc-pill.ok { background: var(--green-soft); color: var(--green); }.doc-pill.missing { background: var(--coral-soft); color: var(--coral); }.allowed-note { color: #b17a72 !important; font-size: 6px !important; margin-top: 3px !important; }.pay-btn { height: 30px; border: 0; border-radius: 7px; background: var(--navy); color: white; font-size: 8px; font-weight: 700; }.pay-btn:hover { background: var(--navy-2); }
.post-payment { padding-bottom: 9px; }.coral-text { color: var(--coral); }.count-badge { padding: 5px 8px; border-radius: 6px; background: var(--coral-soft); color: var(--coral); font-size: 7px; font-weight: 700; }.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px 14px; }.post-grid article { min-height: 63px; padding: 10px; border: 1px solid #eee1df; border-radius: 9px; background: #fffbfa; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; }.post-grid article > div:nth-child(2) { display: flex; flex-direction: column; }.post-grid strong { font-size: 8px; }.post-grid small { color: #8f999e; font-size: 7px; margin-top: 2px; }.post-grid article > span { grid-column: 2; display: flex; align-items: center; gap: 5px; color: #a97730; font-size: 7px; }.post-grid article > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }.post-grid article > span.late { color: var(--coral); }.post-grid article > span.late i { background: var(--coral); }.post-grid article > button { grid-column: 3; grid-row: 1/3; padding: 0 8px; height: 28px; border: 1px solid #e4d4d1; background: white; color: #9a5f57; border-radius: 6px; font-size: 7px; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 25px; background: rgba(9, 34, 37, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: .2s ease; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { width: min(650px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; padding: 24px; border-radius: 15px; background: white; box-shadow: 0 35px 90px rgba(5, 26, 29, .3); transform: translateY(10px) scale(.985); transition: .2s ease; }.modal-backdrop.open .modal { transform: none; }.small-modal { width: min(520px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }.modal-head h2 { margin: 5px 0 4px; font-size: 18px; letter-spacing: -.03em; }.modal-head p { margin: 0; color: #7c898f; font-size: 9px; }.close-modal, .close-nf { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #7f8b90; display: grid; place-items: center; }.close-modal svg, .close-nf svg { width: 16px; }
.smart-upload { min-height: 86px; padding: 14px; border: 1px dashed #b8cdca; border-radius: 11px; background: #f8fbfa; display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; }.smart-upload > span { width: 39px; height: 39px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }.smart-upload > span svg { width: 18px; }.smart-upload > div { display: flex; flex-direction: column; }.smart-upload strong { font-size: 10px; }.smart-upload small { color: #8b969b; font-size: 8px; margin-top: 3px; }.smart-upload button { height: 31px; padding: 0 9px; border: 1px solid #cbd8d6; border-radius: 7px; background: white; color: #47716f; font-size: 8px; font-weight: 700; }
.or-line { height: 34px; display: flex; align-items: center; justify-content: center; color: #a2acae; font-size: 7px; letter-spacing: .08em; }.or-line:before, .or-line:after { content: ""; height: 1px; background: #edf0ef; flex: 1; }.or-line span { padding: 0 10px; }
.toggle-line { min-height: 57px; padding: 10px 12px; border: 1px solid #ecdcd9; border-radius: 9px; background: #fffafa; display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }.toggle-line > div { display: flex; flex-direction: column; margin-right: auto; }.toggle-line strong { font-size: 9px; }.toggle-line small { color: #988b89; font-size: 7px; margin-top: 2px; }.toggle-line input { display: none; }.toggle-line > span { width: 34px; height: 19px; border-radius: 20px; background: #d9dfdd; position: relative; transition: .2s ease; }.toggle-line > span:after { content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: .2s ease; }.toggle-line input:checked + span { background: var(--coral); }.toggle-line input:checked + span:after { left: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-grid label { display: grid; gap: 6px; }.form-grid label.full { grid-column: 1/-1; }.form-grid label > span { color: #58696e; font-size: 8px; font-weight: 700; }.form-grid input, .form-grid select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #dde3e2; border-radius: 8px; outline: 0; color: var(--ink); background: white; font-size: 9px; }.form-grid input:focus, .form-grid select:focus { border-color: #79aaa6; box-shadow: 0 0 0 3px #edf7f5; }.input-wrap { position: relative; }.input-wrap small { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 7px; }.money-input, .input-icon { position: relative; }.money-input b, .input-icon svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #78868c; font-size: 9px; }.money-input input { padding-left: 31px; }.input-icon svg { width: 14px; }.input-icon input { padding-left: 31px; }
.route-preview { min-height: 62px; margin-top: 15px; padding: 10px 12px; border-radius: 9px; background: #eff7f5; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }.route-icon { width: 32px; height: 32px; border-radius: 8px; background: white; color: var(--teal); display: grid; place-items: center; }.route-icon svg { width: 16px; }.route-preview > div { display: flex; flex-direction: column; }.route-preview small { color: #6a8f8b; font-size: 6px; letter-spacing: .09em; font-weight: 800; }.route-preview p { margin: 5px 0 0; display: flex; align-items: center; gap: 7px; }.route-preview p strong { font-size: 8px; }.route-preview p i { width: 16px; height: 1px; background: #9fc5c1; position: relative; }.route-preview p i:after { content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid #7eaaa6; border-right: 1px solid #7eaaa6; transform: rotate(45deg); }.ready { color: var(--green); font-size: 7px; font-weight: 700; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }.cancel-modal, .submit-mock { height: 37px; padding: 0 13px; border-radius: 8px; font-size: 9px; font-weight: 700; }.cancel-modal { border: 1px solid #dfe4e3; background: white; color: #6f7c82; }.submit-mock { border: 1px solid var(--navy); background: var(--navy); color: white; display: inline-flex; align-items: center; gap: 7px; }.submit-mock svg { width: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 300; min-width: 315px; padding: 12px 14px; border-radius: 10px; background: #173f42; color: white; box-shadow: 0 18px 45px rgba(8, 38, 41, .25); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: none; }.toast > span { width: 30px; height: 30px; border-radius: 8px; background: rgba(89,191,180,.18); color: #72d2c7; display: grid; place-items: center; }.toast > span svg { width: 16px; }.toast > div { display: flex; flex-direction: column; }.toast strong { font-size: 9px; }.toast small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 7px; }

/* Department and recurring-payment prototype additions */
.department-sidebar { margin: 20px 10px 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.department-sidebar > span { display: block; color: rgba(255,255,255,.28); font-size: 7px; letter-spacing: .14em; margin-bottom: 9px; }
.department-sidebar > div:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.department-sidebar > div:nth-child(2) > b { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: rgba(95,192,185,.16); color: #72d2c8; font-size: 8px; }
.department-sidebar p { margin: 0; display: flex; flex-direction: column; }.department-sidebar strong { font-size: 8px; color: rgba(255,255,255,.72); }.department-sidebar small { font-size: 7px; color: rgba(255,255,255,.34); margin-top: 2px; }
.department-switcher { margin-top: 10px; display: grid; gap: 4px; }.department-switcher > span { color: rgba(255,255,255,.35); font-size: 8px; }.department-switcher select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; outline: 0; background: #193f43; color: rgba(255,255,255,.8); font-size: 10px; }
.mini-avatars { display: flex; margin: 9px 0 0 34px; }.mini-avatars i { width: 22px; height: 22px; margin-left: -4px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--navy); background: #28595d; color: rgba(255,255,255,.78); font: normal 700 6px Manrope, sans-serif; }.mini-avatars i:first-child { margin-left: 0; background: #d49552; color: white; }.mini-avatars img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-flow { margin-top: 14px; padding-top: 0; border-top: 0; }.flow-mini { min-height: 42px; }

.department-card { min-height: 65px; margin-bottom: 13px; padding: 12px 15px; border: 1px solid #cfe0dd; border-radius: 11px; background: linear-gradient(100deg, #f2f9f7, white); display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; }
.department-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }.department-icon svg { width: 18px; }
.department-card > div:nth-child(2) { display: flex; flex-direction: column; }.department-card > div:nth-child(2) span { color: #5d8985; font-size: 6px; font-weight: 800; letter-spacing: .12em; }.department-card > div:nth-child(2) strong { font-size: 10px; margin: 3px 0 2px; }.department-card > div:nth-child(2) p { margin: 0; color: #79888c; font-size: 8px; }
.department-members { display: flex; align-items: center; }.department-members i { width: 27px; height: 27px; margin-left: -5px; border-radius: 50%; display: grid; place-items: center; border: 2px solid white; background: #e6efee; color: #426a6d; font: normal 700 7px Manrope, sans-serif; }.department-members i:first-child { margin-left: 0; background: #f6e9db; color: #a46b34; }.department-members button { height: 29px; margin-left: 8px; padding: 0 9px; border: 1px solid #ccdbd8; border-radius: 7px; background: white; color: #4d706f; font-size: 7px; font-weight: 700; }

.month-select { height: 36px; border: 1px solid #dfe4e3; border-radius: 8px; display: flex; align-items: center; gap: 5px; padding: 0 8px; color: #738488; background: white; }.month-select svg { width: 14px; }.month-select select { border: 0; outline: 0; background: transparent; color: #52686c; font-size: 8px; }
.recurrence-info, .finance-generation { min-height: 52px; padding: 9px 20px; border-bottom: 1px solid #dceae7; background: #f2f9f7; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; }.recurrence-info > span, .finance-generation > span { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: white; color: var(--teal); }.recurrence-info svg, .finance-generation svg { width: 15px; }.recurrence-info p, .finance-generation p { margin: 0; display: flex; flex-direction: column; }.recurrence-info strong, .finance-generation strong { font-size: 8px; }.recurrence-info small, .finance-generation small { margin-top: 2px; color: #718782; font-size: 7px; }.recurrence-info button { border: 0; background: transparent; color: var(--teal); font-size: 7px; font-weight: 800; }.finance-generation > b { padding: 5px 7px; border-radius: 5px; background: var(--teal); color: white; font-size: 5px; letter-spacing: .08em; }
.title-line { display: flex; align-items: center; gap: 6px; }.recurring-badge { padding: 3px 5px; border-radius: 4px; background: var(--teal-soft); color: var(--teal); font-size: 5px; font-weight: 800; letter-spacing: .04em; }.recurrence-meta { margin-top: 3px; color: #55918b; font-size: 6px; }

.recurrence-manager-banner { min-height: 75px; margin-bottom: 13px; padding: 12px 15px; border: 1px solid #cfe2de; border-radius: 11px; background: linear-gradient(100deg, #eff8f5, white); display: grid; grid-template-columns: 40px 1fr auto auto; gap: 13px; align-items: center; }.recurrence-manager-icon { width: 39px; height: 39px; border-radius: 10px; background: white; color: var(--teal); display: grid; place-items: center; position: relative; box-shadow: 0 5px 12px rgba(29,128,123,.08); }.recurrence-manager-icon svg { width: 17px; }.recurrence-manager-icon span { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); color: white; display: grid; place-items: center; font-size: 9px; }.recurrence-manager-banner > div:nth-child(2) { display: flex; flex-direction: column; }.recurrence-manager-banner > div:nth-child(2) > span { color: #5c8b86; font-size: 6px; font-weight: 800; letter-spacing: .12em; }.recurrence-manager-banner > div:nth-child(2) strong { font-size: 9px; margin: 3px 0 2px; }.recurrence-manager-banner > div:nth-child(2) p { margin: 0; color: #788b87; font-size: 7px; }
.recurrence-stats { display: flex; gap: 17px; padding: 0 15px; border-left: 1px solid #d7e6e2; }.recurrence-stats > span { display: flex; flex-direction: column; }.recurrence-stats small { color: #82938f; font-size: 6px; }.recurrence-stats strong { margin-top: 3px; font-size: 8px; white-space: nowrap; }.recurring-action { white-space: nowrap; }
.supplier-cell strong em { font-style: normal; color: var(--teal); font-size: 10px; }.detail-recurring { margin-left: 4px; padding: 2px 4px; border-radius: 3px; background: var(--teal-soft); color: var(--teal); font: normal 800 5px "DM Sans"; }

.finance-row.recurring-row { background: linear-gradient(90deg, #f8fcfb, white 55%); border-left: 3px solid #5caaa3; padding-left: 15px; }.tag.automatic { color: var(--teal); background: var(--teal-soft); }.doc-pill.waiting { background: var(--amber-soft); color: var(--amber); }.disabled-pay { background: #e7ecea; color: #778682; }.disabled-pay:hover { background: #e1e7e4; }

.recurring-toggle { border-color: #cee1dd; background: #f8fcfb; }.recurring-toggle input:checked + span { background: var(--teal); }
.recurrence-fields { display: none; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: -5px 0 15px; padding: 12px; border: 1px solid #d6e6e2; border-radius: 9px; background: #f4faf8; }.recurrence-fields.open { display: grid; }.recurrence-fields label { display: grid; gap: 5px; }.recurrence-fields label span { color: #5f7775; font-size: 7px; font-weight: 700; }.recurrence-fields input, .recurrence-fields select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #d2dfdc; border-radius: 7px; background: white; color: #3e5657; font-size: 8px; }.recurrence-fields > p { grid-column: 1/-1; margin: 2px 0 0; padding-top: 9px; border-top: 1px solid #d8e6e3; display: flex; align-items: center; gap: 8px; color: var(--teal); }.recurrence-fields > p svg { width: 15px; }.recurrence-fields > p > span { display: flex; flex-direction: column; }.recurrence-fields > p strong { font-size: 7px; }.recurrence-fields > p small { margin-top: 2px; color: #78908b; font-size: 6px; }

/* Simplified budget-first workspace */
.budget-page-head { margin-bottom: 15px; }
.budget-summary-strip { min-height: 76px; margin-bottom: 12px; padding: 0 18px; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.budget-summary-strip > div, .budget-summary-strip > button { min-height: 45px; padding: 0 19px; border: 0; border-left: 1px solid #e9edec; background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; }
.budget-summary-strip > :first-child { border-left: 0; padding-left: 0; }.budget-summary-strip > :last-child { padding-right: 0; }
.budget-summary-strip span { color: #89969b; font-size: 6px; font-weight: 800; letter-spacing: .1em; }.budget-summary-strip strong { margin: 3px 0 1px; color: #243f44; font-size: 14px; letter-spacing: -.025em; }.budget-summary-strip small { color: #96a1a5; font-size: 7px; }
.budget-summary-strip .summary-alert strong, .budget-summary-strip .summary-alert span { color: var(--coral); }.approval-shortcut { cursor: pointer; }.approval-shortcut:hover { background: #f8fbfa; }.approval-shortcut span { display: flex; align-items: center; gap: 5px; color: var(--teal); }.approval-shortcut svg { width: 12px; }
.budget-toolbar { min-height: 67px; padding: 12px 16px; display: grid; grid-template-columns: 1fr 205px auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #edf0ef; }.budget-toolbar > div:first-child { display: flex; flex-direction: column; }.budget-toolbar h2 { margin: 4px 0 0; font-size: 15px; }.budget-search { width: 205px; }
.document-legend { display: flex; align-items: center; gap: 9px; padding-left: 4px; white-space: nowrap; }.document-legend span { display: inline-flex; align-items: center; gap: 4px; color: #7f8c91; font-size: 6px; }.document-legend i { width: 8px; height: 8px; border-radius: 3px; }.document-legend i.ready { background: #79b39c; }.document-legend i.missing { background: #e47b70; }.document-legend i.scheduled { background: #e7ebea; border: 1px solid #ccd5d2; }
.budget-filter-bar { min-height: 58px; padding: 9px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e7ecea; background: #fbfcfb; }.budget-filter-bar > div:first-child { display: flex; flex-direction: column; }.budget-filter-bar > div:first-child span { color: #53696a; font-size: 8px; font-weight: 800; letter-spacing: .09em; }.budget-filter-bar > div:first-child small { margin-top: 3px; color: #899598; font-size: 8px; }.budget-type-tabs { padding: 3px; display: inline-flex; gap: 3px; border: 1px solid #dbe3df; border-radius: 9px; background: white; }.budget-type-tabs button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: #71817f; font-size: 9px; font-weight: 700; }.budget-type-tabs button.active { background: var(--navy); color: white; box-shadow: 0 4px 10px rgba(23,63,42,.14); }
.budget-help { min-height: 38px; padding: 8px 17px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #dbeae6; background: #f1f8f6; color: #67807d; font-size: 7px; }.budget-help svg { width: 14px; color: var(--teal); }.budget-help strong { color: #446663; }
.simple-budget .budget-matrix { min-width: 1350px; }.simple-budget .matrix-row { grid-template-columns: 215px repeat(12, minmax(82px, 1fr)) 75px; }.simple-budget .matrix-row.supplier-row { min-height: 68px; }.simple-budget .supplier-row.hidden { display: none; }.simple-budget .supplier-cell { grid-template-columns: 32px 1fr 16px !important; gap: 9px; }.simple-budget .supplier-cell .supplier-logo { width: 31px; height: 31px; }.simple-budget .supplier-cell strong { font-size: 9px; }.simple-budget .supplier-cell small { font-size: 6px; }.simple-budget .supplier-row:hover { background: white; }
.month-cell { min-width: 0; padding: 8px 5px !important; border-top: 0; border-right: 0; border-bottom: 0; background: white; display: flex !important; flex-direction: column; align-items: flex-end !important; justify-content: center !important; gap: 3px; transition: .16s ease; }.month-cell strong { font: 700 8px Manrope, sans-serif; }.month-cell small { font-size: 5.5px; white-space: nowrap; }.month-cell:hover { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px rgba(18,61,66,.2); transform: translateY(-1px); }
.month-cell.ready { background: #edf7f1; color: #36765b !important; }.month-cell.ready small { color: #4d8b70; }.month-cell.missing { background: #fff0ed; color: #bd5045 !important; }.month-cell.missing small { color: #bd5045; font-weight: 700; }.month-cell.scheduled { background: #fbfcfc; color: #6e7d81 !important; }.month-cell.scheduled small { color: #9aa4a7; }.month-cell.current { box-shadow: inset 0 3px #e3a759; }.month-cell.advance { background: #fff2ed; background-image: repeating-linear-gradient(135deg, rgba(215,91,78,.04), rgba(215,91,78,.04) 5px, transparent 5px, transparent 10px); }
.empty-cell { justify-content: center !important; color: #c2c9c7 !important; background: #fdfefe; }.matrix-header .current-month { background: #e8f3f0; color: #1d746e; }.total-row .total-current { background: #dfeeea; color: #245e5a; }
.matrix-section-divider { min-height: 46px; padding: 0 18px 0 235px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #d9e5df; background: #f0f5f1; color: #315f3d; }.matrix-section-divider span { font-size: 9px; font-weight: 800; letter-spacing: .1em; }.matrix-section-divider small { color: #788a80; font-size: 9px; }.matrix-section-divider.hidden { display: none; }
.month-modal { width: min(760px, 100%); }.close-month, .close-document, .close-approvals, .close-permissions, .close-suppliers { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #7f8b90; display: grid; place-items: center; }.close-month svg, .close-document svg, .close-approvals svg, .close-permissions svg, .close-suppliers svg { width: 16px; }
.month-status { min-height: 56px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f0d2cd; border-radius: 10px; background: #fff7f5; display: flex; align-items: center; gap: 10px; }.month-status > span { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; }.month-status svg { width: 15px; }.month-status > div { display: flex; flex-direction: column; }.month-status strong { font-size: 9px; }.month-status small { margin-top: 2px; color: #8e7a77; font-size: 7px; }.month-status.complete { border-color: #cce2d5; background: #f4faf6; }.month-status.complete > span { background: var(--green-soft); color: var(--green); }
.month-payment-list { display: grid; gap: 9px; }.month-payment { padding: 13px; border: 1px solid #e2e7e6; border-radius: 10px; background: white; }.payment-summary { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #edf0ef; }.payment-summary > div { display: flex; flex-direction: column; }.payment-summary span { color: #909ba0; font-size: 6px; font-weight: 800; letter-spacing: .08em; }.payment-summary strong { margin-top: 3px; font-size: 9px; }.payment-summary > div:first-child strong { font-size: 11px; }.payment-summary small { color: #89969a; font-size: 7px; margin-top: 2px; }.document-actions { padding-top: 11px; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; }
.document-action { min-height: 50px; padding: 9px 10px; border: 1px dashed #e1b5ae; border-radius: 8px; background: #fff9f8; display: flex; align-items: center; gap: 8px; color: var(--coral); text-align: left; }.document-action svg { width: 15px; }.document-action span { display: flex; flex-direction: column; }.document-action strong { font-size: 8px; }.document-action small { margin-top: 2px; color: #9e807c; font-size: 6px; }.document-action.attached { border-style: solid; border-color: #c6dfd1; background: #f1f8f4; color: var(--green); }.document-action.attached small { color: #6e907d; }.document-action.not-required { border-style: solid; border-color: #e2e6e5; background: #f8faf9; color: #7d898d; }
.month-modal-foot { margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0ef; display: flex; align-items: center; justify-content: space-between; gap: 14px; }.month-modal-foot p { margin: 0; display: flex; align-items: center; gap: 6px; color: #89959a; font-size: 7px; }.month-modal-foot p svg { width: 14px; }

/* Readable density and expandable supplier details */
.supplier-cell { cursor: pointer; outline: none; }.supplier-cell:after { content: "⌄"; margin-left: auto; color: #6e8588; font-size: 16px; font-weight: 700; transition: transform .18s ease; }.supplier-row.open .supplier-cell:after { transform: rotate(180deg); }.supplier-cell:focus-visible { box-shadow: inset 0 0 0 2px #65a9a3; }
.supplier-details { display: none; width: 100%; padding: 0 18px 13px 235px; border-bottom: 1px solid #dce5e2; background: #f6faf9; }.supplier-details.open { display: block; animation: fadeIn .18s ease; }.supplier-details-head { min-height: 38px; display: flex; align-items: center; gap: 9px; color: #73898a; }.supplier-details-head span { font-size: 8px; font-weight: 800; letter-spacing: .09em; }.supplier-details-head small { font-size: 9px; }.supplier-payment-row { min-height: 66px; margin-bottom: 7px; padding: 10px 12px; display: grid; grid-template-columns: minmax(230px,1fr) 115px 110px 125px 118px; gap: 15px; align-items: center; border: 1px solid #dce5e2; border-radius: 9px; background: white; }.supplier-payment-row:last-child { margin-bottom: 0; }.supplier-payment-row > div, .supplier-payment-row > span { display: flex; flex-direction: column; }.supplier-payment-row > div strong { font-size: 12px; }.supplier-payment-row small { margin-top: 3px; color: #819094; font-size: 9px; }.supplier-payment-row > span small { margin: 0 0 3px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.supplier-payment-row > span strong, .supplier-payment-row > b { color: #354f54; font-size: 11px; }.supplier-payment-row > button { min-height: 36px; border: 1px solid #cbdad6; border-radius: 7px; background: white; color: #2d706a; font-size: 10px; font-weight: 700; }.supplier-payment-row > button:hover { background: #eef7f4; }
.document-actions:has(.document-action:only-child) { grid-template-columns: 1fr; }.document-modal { width: min(650px,100%); }.document-preview { min-height: 285px; padding: 22px; border-radius: 11px; background: #eef2f1; display: grid; place-items: center; }.document-sheet { width: min(360px,88%); min-height: 220px; padding: 28px; border: 1px solid #dde3e1; border-radius: 6px; background: white; box-shadow: 0 12px 35px rgba(24,49,51,.1); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }.document-sheet svg { width: 38px; height: 38px; color: var(--teal); }.document-sheet strong { margin-top: 16px; font-size: 14px; }.document-sheet span { margin-top: 7px; color: #687a7e; font-size: 11px; }.document-sheet small { margin-top: 22px; color: #929da0; font-size: 9px; }.document-audit { margin-top: 12px; padding: 12px; border-radius: 9px; background: #eef8f3; color: var(--green); display: flex; align-items: center; gap: 10px; }.document-audit svg { width: 18px; }.document-audit p { margin: 0; display: flex; flex-direction: column; }.document-audit strong { font-size: 11px; }.document-audit small { margin-top: 3px; color: #698676; font-size: 9px; }
.approvals-modal, .permissions-modal { width: min(920px,100%); }.approval-rule { min-height: 64px; margin-bottom: 13px; padding: 10px 15px; border-radius: 10px; background: #f1f8f6; display: flex; align-items: center; justify-content: center; gap: 15px; }.approval-rule span { padding: 8px 11px; border-radius: 7px; background: white; color: #3f6967; font-size: 9px; font-weight: 800; }.approval-rule i { color: #7ea6a1; }.approval-rule i svg { width: 15px; }.approval-request-list { display: grid; gap: 9px; }.approval-request { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 40px 1fr auto auto auto; gap: 12px; align-items: center; border: 1px solid #e1e7e5; border-radius: 10px; }.approval-request > div:nth-child(2) { display: flex; flex-direction: column; }.approval-request > div:nth-child(2) strong { font-size: 12px; }.approval-request > div:nth-child(2) small { margin-top: 4px; color: #7f8e92; font-size: 10px; }.approval-request > b { font-size: 12px; }.approval-request > button { min-height: 36px; padding: 0 12px; border-radius: 7px; font-size: 10px; font-weight: 700; }.reject-request { border: 1px solid #dce2e0; background: white; color: #748286; }.approve-request { border: 1px solid var(--teal); background: var(--teal); color: white; }.approval-request.approved { border-color: #c9dfd4; background: #f3faf6; }.approval-request.approved .approve-request { border-color: var(--green); background: var(--green); }.approval-manager-note { margin-top: 13px; padding: 12px; border-radius: 9px; background: #f8faf9; display: flex; align-items: center; gap: 10px; color: var(--teal); }.approval-manager-note svg { width: 18px; }.approval-manager-note span { display: flex; flex-direction: column; }.approval-manager-note strong { font-size: 11px; }.approval-manager-note small { margin-top: 3px; color: #75878a; font-size: 9px; }
.hierarchy-flow { min-height: 100px; margin-bottom: 15px; padding: 13px; display: grid; grid-template-columns: 1fr 24px 1.25fr 24px 1fr; gap: 9px; align-items: center; border-radius: 11px; background: #f1f7f5; }.hierarchy-flow > article { min-height: 72px; padding: 11px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; border: 1px solid #dbe6e3; border-radius: 9px; background: white; }.hierarchy-flow > article > span { width: 27px; height: 27px; border-radius: 50%; background: #e5f1ee; color: var(--teal); display: grid; place-items: center; font-size: 9px; font-weight: 800; }.hierarchy-flow article.manager-level { border-color: #e6d4bd; }.hierarchy-flow article.manager-level > span { background: #faead8; color: #ae6b2f; }.hierarchy-flow article div { display: flex; flex-direction: column; }.hierarchy-flow small { color: #859497; font-size: 8px; font-weight: 800; letter-spacing: .07em; }.hierarchy-flow strong { margin-top: 3px; font-size: 11px; }.hierarchy-flow p { margin: 3px 0 0; color: #7c8b8e; font-size: 8px; }.hierarchy-flow > i { color: #7b9d99; }.hierarchy-flow > i svg { width: 15px; }
.permissions-table { overflow: hidden; border: 1px solid #e1e7e5; border-radius: 10px; }.permissions-head, .permission-row { min-width: 760px; display: grid; grid-template-columns: 1.5fr .8fr .65fr .65fr .7fr .7fr; gap: 10px; align-items: center; padding: 0 14px; }.permissions-head { min-height: 38px; background: #f6f8f7; color: #849194; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.permission-row { min-height: 62px; border-top: 1px solid #e8eceb; }.permission-row > div { display: flex; align-items: center; gap: 9px; }.permission-row > div > span { display: flex; flex-direction: column; }.permission-row strong { font-size: 11px; }.permission-row small { margin-top: 2px; color: #899598; font-size: 9px; }.permission-row > b { color: #536a6e; font-size: 10px; }.permission-row > span { font-size: 10px; }.permission-yes { color: var(--green); }.permission-no { color: #9ca6a8; }.avatar { width: 31px; height: 31px; border-radius: 50%; background: #e9f0ef; color: #46706e; display: grid; place-items: center; font: normal 700 8px Manrope,sans-serif; }.avatar.manager { background: #f8e8d6; color: #9f632e; }
.request-modal { width: min(800px,100%); }.payment-method-fields { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.method-field { display: none; gap: 6px; }.method-field.open { display: grid; }.method-field.full { grid-column: 1/-1; }.method-field > span { color: #58696e; font-size: 10px; font-weight: 700; }.method-field input, .method-field select { width: 100%; height: 43px; padding: 0 10px; border: 1px solid #dde3e2; border-radius: 8px; outline: 0; background: white; color: var(--ink); font-size: 12px; }.method-field input:focus, .method-field select:focus { border-color: #79aaa6; box-shadow: 0 0 0 3px #edf7f5; }.pix-source-note { color: #7c8d89; font-size: 9px; }.documents-section { margin-top: 16px; }.section-title { margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }.section-title span { color: #536a6e; font-size: 9px; font-weight: 800; letter-spacing: .08em; }.section-title small { color: #8d999c; font-size: 10px; }.documents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.compact-upload { min-height: 76px; padding: 11px; grid-template-columns: 35px 1fr auto; }.compact-upload > span { width: 34px; height: 34px; }.compact-upload button { white-space: nowrap; }.compact-upload.hidden { display: none; }.contract-upload { grid-column: 1/-1; }.contract-upload em { margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: #edf0ef; color: #6f7d7a; font-size: 8px; font-style: normal; }.contract-upload.recommended { border-color: #b8d0ac; background: #f5faf2; }.contract-upload.recommended em { background: #dbeccd; color: #367c2b; }.input-wrap select { padding-right: 105px; }.input-wrap small { right: 28px; }
.suppliers-modal { width: min(1080px,100%); }.suppliers-toolbar { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.supplier-register-search { width: 330px; height: 42px; }.supplier-form { display: none; margin-bottom: 13px; padding: 13px; grid-template-columns: 1.3fr .85fr 1fr; gap: 10px; align-items: end; border: 1px solid #d8e5e1; border-radius: 10px; background: #f3f8f6; }.supplier-form.open { display: grid; }.supplier-form label { display: grid; gap: 6px; }.supplier-form label span { color: #5d7074; font-size: 9px; font-weight: 700; }.supplier-form input, .supplier-form select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d7dfdd; border-radius: 7px; background: white; font-size: 11px; }.supplier-save { height: 40px; justify-self: end; }.supplier-pix-editor { grid-column: 1/-1; padding-top: 11px; border-top: 1px solid #d7e3df; }.supplier-pix-editor > div:first-child { display: flex; align-items: baseline; gap: 8px; }.supplier-pix-editor > div:first-child strong { font-size: 11px; }.supplier-pix-editor > div:first-child small { color: #7e908a; font-size: 9px; }.supplier-pix-row { margin-top: 8px; display: grid; grid-template-columns: 140px 1fr 34px; gap: 8px; }.supplier-pix-row .remove-pix-key { border: 1px solid #d9e1de; border-radius: 7px; background: white; color: #8d6f6b; font-size: 17px; }.add-pix-key { margin-top: 8px; min-height: 34px; padding: 0 10px; border: 1px dashed #b9cbc5; border-radius: 7px; background: white; color: #367c2b; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }.add-pix-key svg { width: 13px; }.supplier-register-list { display: grid; gap: 8px; }.supplier-register-list article { min-height: 68px; padding: 10px 12px; display: grid; grid-template-columns: 40px 1.35fr .8fr .9fr .9fr 62px; gap: 12px; align-items: center; border: 1px solid #e0e6e4; border-radius: 9px; }.supplier-register-list article.hidden { display: none; }.supplier-register-list p { margin: 0; display: flex; flex-direction: column; }.supplier-register-list p span { color: #899699; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.supplier-register-list p strong { margin-top: 3px; font-size: 11px; }.supplier-register-list article > button { height: 32px; border: 1px solid #d9e1df; border-radius: 7px; background: white; color: #557370; font-size: 9px; font-weight: 700; }

@media (min-width: 861px) {
  .view { max-width: 1660px; padding: 36px 34px 70px; }.prototype-banner { height: 31px; font-size: 10px; }.app-shell { padding-top: 31px; }.sidebar { top: 31px; }.topbar { top: 31px; }
  .brand small { font-size: 9px; }.nav-item { min-height: 52px; font-size: 13px; }.nav-item b { width: 23px; height: 23px; font-size: 10px; }
  .department-sidebar > span, .sidebar-flow > span { font-size: 9px; }.department-sidebar strong, .flow-mini strong, .sidebar-foot strong { font-size: 11px; }.department-sidebar small, .flow-mini small, .sidebar-foot small { font-size: 9px; }.flow-mini { min-height: 48px; }
  .breadcrumb-top, .breadcrumb-top strong { font-size: 11px; }.profile strong { font-size: 12px; }.profile small { font-size: 10px; }.profile > span { width: 38px; height: 38px; font-size: 10px; }
  .overline { font-size: 10px; }.page-head h1 { font-size: 32px; }.page-head p { font-size: 14px; }.primary-btn { min-height: 44px; padding: 0 17px; font-size: 12px; }.ghost-btn { height: 40px; padding: 0 13px; font-size: 11px; }
  .budget-summary-strip { min-height: 90px; }.budget-summary-strip span { font-size: 9px; }.budget-summary-strip strong { font-size: 19px; }.budget-summary-strip small { font-size: 10px; }
  .budget-toolbar { min-height: 78px; grid-template-columns: 1fr 230px auto auto; }.budget-toolbar h2 { font-size: 19px; }.budget-search { width: 230px; height: 40px; }.search input { font-size: 11px; }.document-legend span { font-size: 9px; }.document-legend i { width: 10px; height: 10px; }.budget-filter-bar > div:first-child span { font-size: 9px; }.budget-filter-bar > div:first-child small { font-size: 10px; }.budget-type-tabs button { min-height: 36px; font-size: 10px; }.budget-help { min-height: 48px; font-size: 11px; }
  .simple-budget .budget-matrix { min-width: 1500px; }.simple-budget .matrix-row { grid-template-columns: 230px repeat(12,minmax(95px,1fr)) 82px; }.simple-budget .matrix-row.supplier-row { min-height: 72px; }.matrix-header { min-height: 44px; }.matrix-header > * { font-size: 9px; }.simple-budget .supplier-cell { grid-template-columns: 38px 1fr 18px !important; }.simple-budget .supplier-cell .supplier-logo { width: 36px; height: 36px; font-size: 10px; }.simple-budget .supplier-cell strong { font-size: 14px; }.month-cell strong { font-size: 11px; }.month-cell small { font-size: 8px; }.supplier-row > b, .total-row > b, .total-row > span, .total-row .sticky-cell { font-size: 10px; }
  .supplier-payment-row { min-height: 78px; }.supplier-payment-row > div strong { font-size: 14px; }.supplier-payment-row small { margin-top: 5px; color: #687b7f; font-size: 12px; font-weight: 500; line-height: 1.35; }.supplier-payment-row > span small { font-size: 9px; }.supplier-details-head span { font-size: 9px; }.supplier-details-head small { font-size: 10px; }
  .modal { padding: 28px; }.modal-head h2 { font-size: 23px; }.modal-head p { font-size: 12px; }.month-status strong { font-size: 12px; }.month-status small { font-size: 10px; }.payment-summary { grid-template-columns: minmax(230px,1fr) auto auto auto; }.payment-summary span { font-size: 9px; }.payment-summary strong { font-size: 11px; }.payment-summary > div:first-child strong { font-size: 14px; }.payment-summary small { font-size: 10px; }.document-action strong { font-size: 11px; }.document-action small { font-size: 9px; }.month-modal-foot p { font-size: 10px; }
  .form-grid label > span { font-size: 10px; }.form-grid input, .form-grid select { height: 43px; font-size: 12px; }.smart-upload strong { font-size: 12px; }.smart-upload small { font-size: 10px; }.smart-upload button { font-size: 10px; }.toggle-line strong { font-size: 11px; }.toggle-line small { font-size: 9px; }.route-preview small { font-size: 8px; }.route-preview p strong { font-size: 10px; }.ready { font-size: 9px; }
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-row { grid-template-columns: 36px minmax(175px,1.3fr) .65fr .8fr 1fr auto; }.payment-row .more-btn { display: none; }
  .manager-top-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .recurrence-manager-banner { grid-template-columns: 40px 1fr auto; }.recurrence-manager-banner .recurring-action { grid-column: 2 / -1; justify-self: start; }.panel-tools { flex-wrap: wrap; justify-content: flex-end; }
  .budget-toolbar { grid-template-columns: 1fr auto; }.budget-toolbar .budget-search { grid-row: 2; width: 100%; }.document-legend { grid-row: 2; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: .22s ease; }.sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .main-area { margin-left: 0; }.topbar { padding: 0 18px; }.mobile-menu { width: 34px; height: 34px; border: 0; background: transparent; display: grid; align-content: center; gap: 4px; }.mobile-menu span { width: 18px; height: 1px; background: #486066; }.mobile-brand { width: 104px; height: 48px; margin-left: 10px; display: block; object-fit: contain; }.breadcrumb-top { display: none; }
  .view { padding: 25px 18px 50px; }.finance-table { overflow-x: auto; }
  .budget-summary-strip { grid-template-columns: 1fr 1fr; padding: 8px 14px; }.budget-summary-strip > div, .budget-summary-strip > button { padding: 9px 12px; }.budget-summary-strip > :nth-child(3) { border-left: 0; border-top: 1px solid #e9edec; }.budget-summary-strip > :nth-child(4) { border-top: 1px solid #e9edec; }
}

@media (max-width: 640px) {
  .prototype-banner p { display: none; }.prototype-banner { justify-content: center; }
  .profile > div { display: none; }.page-head { align-items: flex-start; flex-direction: column; }.page-head .primary-btn, .head-actions { width: 100%; }.head-actions > * { flex: 1; }
  .page-head h1 { font-size: 23px; }.attention-card { grid-template-columns: 35px 1fr; }.attention-card .link-btn { grid-column: 2; justify-self: start; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.kpi { min-height: 120px; padding: 13px; flex-direction: column; gap: 7px; }.kpi strong { font-size: 16px; }
  .panel-head { align-items: flex-start; flex-direction: column; }.panel-tools { width: 100%; }.search { flex: 1; }.status-tabs { overflow-x: auto; }.status-tabs button { white-space: nowrap; }
  .payment-row { grid-template-columns: 36px 1fr auto; padding: 13px; }.payment-row > .date-col, .payment-row > .amount-col { margin-top: 4px; }.payment-row > div:nth-child(5) { grid-column: 2; }.payment-row .row-action { grid-column: 3; grid-row: 2; }.payment-main { padding-right: 5px; }
  .finance-kpis { grid-template-columns: 1fr; }.approval-line { grid-template-columns: 34px 1fr auto; padding: 7px 0; }.approval-line .reject-small, .approval-line .approve-small, .approval-line .mini-alert { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.modal-backdrop { padding: 10px; }.modal { padding: 18px; max-height: calc(100vh - 20px); }.smart-upload { grid-template-columns: 38px 1fr; }.smart-upload button { grid-column: 2; justify-self: start; }.route-preview { grid-template-columns: 32px 1fr; }.route-preview .ready { grid-column: 2; }.post-grid article { grid-template-columns: 34px 1fr; }.post-grid article > button { grid-column: 2; grid-row: auto; justify-self: start; }
  .department-card { grid-template-columns: 36px 1fr; }.department-members { grid-column: 2; flex-wrap: wrap; }.department-members button { margin-top: 5px; }.recurrence-info, .finance-generation { grid-template-columns: 30px 1fr; }.recurrence-info button, .finance-generation > b { grid-column: 2; justify-self: start; }.recurrence-manager-banner { grid-template-columns: 38px 1fr; }.recurrence-stats { grid-column: 2; padding: 8px 0 0; border: 0; border-top: 1px solid #d7e6e2; flex-wrap: wrap; }.recurrence-manager-banner .recurring-action { grid-column: 2; }.recurrence-fields { grid-template-columns: 1fr 1fr; }.month-select { flex: 1 1 130px; }
  .budget-toolbar { grid-template-columns: 1fr auto; }.budget-toolbar .budget-search, .document-legend { grid-column: 1/-1; }.document-legend { flex-wrap: wrap; }.budget-filter-bar { align-items: stretch; flex-direction: column; }.budget-type-tabs { width: 100%; }.budget-type-tabs button { flex: 1; }.budget-summary-strip { grid-template-columns: 1fr; }.budget-summary-strip > div, .budget-summary-strip > button { border-left: 0; border-top: 1px solid #e9edec; padding: 9px 0; }.budget-summary-strip > :first-child { border-top: 0; }.payment-summary { grid-template-columns: 1fr 1fr; }.payment-summary > div:first-child { grid-column: 1/-1; }.document-actions { grid-template-columns: 1fr; }.month-modal-foot { align-items: flex-start; flex-direction: column; }
  .supplier-details { padding: 10px; }.supplier-payment-row { grid-template-columns: 1fr 1fr; }.supplier-payment-row > div { grid-column: 1/-1; }.supplier-payment-row > button { grid-column: 1/-1; }.approval-rule { align-items: stretch; flex-direction: column; }.approval-rule i { transform: rotate(90deg); align-self: center; }.approval-request { grid-template-columns: 38px 1fr; }.approval-request > b, .approval-request > button { grid-column: 2; }.hierarchy-flow { grid-template-columns: 1fr; }.hierarchy-flow > i { transform: rotate(90deg); justify-self: center; }.permissions-table { overflow-x: auto; }.document-preview { min-height: 220px; padding: 12px; }
  .payment-method-fields, .documents-grid { grid-template-columns: 1fr; }.method-field.full, .contract-upload { grid-column: auto; }.suppliers-toolbar { align-items: stretch; flex-direction: column; }.supplier-register-search { width: 100%; }.supplier-form { grid-template-columns: 1fr; }.supplier-pix-row { grid-template-columns: 100px 1fr 34px; }.supplier-pix-editor > div:first-child { align-items: flex-start; flex-direction: column; }.supplier-register-list article { grid-template-columns: 38px 1fr; }.supplier-register-list article p, .supplier-register-list article > button { grid-column: 2; }.supplier-register-list article > button { justify-self: start; padding: 0 12px; }
}

/* Production states and connected administration */
.production-banner { background: #183f2a; color: #fff; }
.production-banner span { color: #ffde00; }
.primary-btn { text-decoration: none; }
button:disabled, .primary-btn:disabled { cursor: wait; opacity: .58; }
.icon-btn i[hidden] { display: none; }
.production-loading, .production-empty, .production-error { min-height: 82px; padding: 22px; display: flex; align-items: center; justify-content: center; color: #6f8180; font-size: 12px; text-align: center; }
.production-loading:before { content: ""; width: 17px; height: 17px; margin-right: 9px; border: 2px solid #d6e2de; border-top-color: #367c2b; border-radius: 50%; animation: productionSpin .75s linear infinite; }
.production-error { color: #aa4a40; background: #fff7f5; }
.production-error.matrix-error { min-height: 190px; flex-direction: column; gap: 7px; }
.production-error button { min-height: 36px; margin-top: 6px; padding: 0 13px; border: 0; border-radius: 7px; background: #173f2a; color: white; font-size: 10px; font-weight: 700; }
.matrix-empty { min-height: 110px; border-bottom: 1px solid #e7ecea; background: #fbfcfb; }
.month-cell.empty { justify-content: center !important; color: #bdc7c4 !important; background: #fdfefe; }
.document-frame { width: 100%; height: 410px; border: 1px solid #dce5e2; border-radius: 8px; background: white; }
.close-notifications { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #7f8b90; display: grid; place-items: center; }
.close-notifications svg { width: 16px; }
.notifications-modal { width: min(650px, 100%); }
.notifications-list { display: grid; gap: 8px; }
.notifications-list article { min-height: 66px; padding: 11px 12px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; border: 1px solid #e0e7e4; border-radius: 9px; background: white; }
.notifications-list article.unread { border-color: #bcd6ca; background: #f4faf6; }
.notifications-list article > span { width: 32px; height: 32px; border-radius: 8px; background: #e9f3ef; color: #367c2b; display: grid; place-items: center; }
.notifications-list article svg { width: 15px; }
.notifications-list article div { display: flex; flex-direction: column; }
.notifications-list article strong { font-size: 11px; text-transform: capitalize; }
.notifications-list article p { margin: 4px 0; color: #637578; font-size: 11px; line-height: 1.4; }
.notifications-list article small { color: #96a19f; font-size: 9px; }
.department-admin { margin-bottom: 14px; padding: 13px; border: 1px solid #d9e5e1; border-radius: 10px; background: #f7faf9; }
.department-admin-head { display: grid; grid-template-columns: minmax(210px,.75fr) 1.5fr; gap: 14px; align-items: center; }.department-admin-head > div:first-child { display: flex; flex-direction: column; }.department-admin-head > div:first-child span { color: #63817d; font-size: 8px; font-weight: 800; letter-spacing: .08em; }.department-admin-head > div:first-child strong { margin-top: 3px; font-size: 13px; }.department-admin-head > div:first-child small { margin-top: 3px; color: #7c8d8a; font-size: 9px; }
#departmentCards { display: flex; flex-wrap: wrap; gap: 7px; }.department-chip { min-height: 48px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #d8e2df; border-radius: 8px; background: white; color: #385356; text-align: left; }.department-chip > b { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #edf4f1; color: #367c2b; font-size: 9px; }.department-chip > span { display: flex; flex-direction: column; }.department-chip strong { font-size: 10px; }.department-chip small { margin-top: 2px; color: #8a9794; font-size: 8px; }.department-chip.active { border-color: #78a984; background: #f1f8f2; box-shadow: 0 0 0 2px rgba(54,124,43,.08); }
.department-form { margin-top: 12px; padding-top: 12px; display: grid; grid-template-columns: 120px 1fr auto; gap: 9px; align-items: end; border-top: 1px solid #dfe7e4; }.department-form label { display: grid; gap: 5px; }.department-form label span { color: #657875; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.department-form input { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d4dedb; border-radius: 7px; background: white; font-size: 11px; }.department-form .primary-btn { min-height: 38px; white-space: nowrap; }
.member-form { margin-top: 14px; padding: 13px; display: grid; grid-template-columns: .9fr 1fr 1.25fr .7fr auto; gap: 10px; align-items: end; border: 1px solid #d8e5e1; border-radius: 10px; background: #f3f8f6; }
.member-form > div { display: grid; gap: 6px; }
.member-form span { color: #5d7074; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.member-form input, .member-form select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d7dfdd; border-radius: 7px; background: white; color: #26383b; font-size: 11px; }
.member-form .primary-btn { min-height: 40px; white-space: nowrap; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.profile-modal { width: min(640px,100%); }.profile-editor { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }.profile-photo-picker { min-height: 170px; padding: 16px; border: 1px dashed #b9cbc5; border-radius: 10px; background: #f7faf8; display: flex; align-items: center; flex-direction: column; justify-content: center; cursor: pointer; text-align: center; }.profile-photo-picker > span { width: 82px; height: 82px; overflow: hidden; border: 3px solid white; border-radius: 50%; background: #e8f1ec; color: #367c2b; box-shadow: 0 0 0 1px #d4e0dc; display: grid; place-items: center; }.profile-photo-picker img { width: 100%; height: 100%; object-fit: cover; }.profile-photo-picker i { font: normal 800 20px Manrope,sans-serif; }.profile-photo-picker strong { margin-top: 10px; color: #315f44; font-size: 11px; }.profile-photo-picker small { margin-top: 3px; color: #82908d; font-size: 8px; }.profile-fields { display: grid; gap: 12px; }.profile-fields label { display: grid; gap: 6px; }.profile-fields label span { color: #647673; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.profile-fields input { width: 100%; height: 43px; padding: 0 11px; border: 1px solid #d5dfdc; border-radius: 8px; background: white; color: #273b3e; font-size: 12px; }.profile-fields input[readonly] { background: #f5f7f6; color: #74817f; }
.audit-preview { margin-top: 13px; padding: 12px; border-radius: 9px; background: #f8faf9; }
.audit-preview > span { color: #667b79; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.audit-preview > div { margin-top: 8px; display: grid; gap: 5px; }
.audit-preview article { padding: 7px 8px; display: grid; grid-template-columns: minmax(140px,.8fr) 1.3fr auto; gap: 8px; border: 1px solid #e3e9e7; border-radius: 7px; background: white; font-size: 9px; }
.audit-preview article span { color: #607270; }
.audit-preview article small { color: #919d9b; }
.toast.error { background: #753c36; }
.toast.error > span { background: rgba(255,255,255,.12); color: #ffd6cf; }
@keyframes productionSpin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .member-form { grid-template-columns: 1fr 1fr; }
  .member-form .primary-btn { grid-column: 1 / -1; }
  .department-admin-head { grid-template-columns: 1fr; }.department-form { grid-template-columns: 1fr 2fr; }.department-form .primary-btn { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .member-form { grid-template-columns: 1fr; }
  .member-form .primary-btn { grid-column: auto; }
  .audit-preview article { grid-template-columns: 1fr; }
  .document-frame { height: 330px; }
  .department-form, .profile-editor { grid-template-columns: 1fr; }.profile-photo-picker { min-height: 145px; }
  .microsoft-session { display: none; }.auth-card { padding: 28px 20px; }.auth-card h1 { font-size: 25px; }
}
