@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #fff;
  --canvas: #f5f6f8;
  --sidebar: #1b75bb;
  --sidebar-edge: #ffffff26;
  --sidebar-text: #fff;
  --ink: #17212f;
  --subtle: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --accent: #1b75bb;
  --accent-dark: #125b94;
  --accent-soft: #edf6fd;
  --shadow: 0 1px 2px #10182803;
  --sidebar-width: 212px;
  --header-height: 64px;
  --panel-inset: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.48;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid #1b75bb; outline-offset: 3px; }
svg { display: inline-block; flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 2.5vw, 29px); font-weight: 650; line-height: 1.24; letter-spacing: -.035em; }
h2 { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 13px; font-weight: 700; }
strong { font-weight: 680; }
small { color: var(--muted); }
[hidden] { display: none !important; }
.initial-loading { display: grid; justify-items: center; gap: 13px; align-content: center; min-height: 100vh; color: var(--muted); }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; }
.shell { min-height: 100vh; padding-left: var(--sidebar-width); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; min-height: 0; }
.sidebar-brand { min-height: 82px; padding: 0 23px; display: flex; align-items: center; color: white; }
.sidebar-nav { padding: 17px 12px; display: flex; flex: 1; flex-direction: column; gap: 26px; overflow: auto; }
.nav-group { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; }
.nav-group-label { color: #d4e9f9; padding: 0 11px; margin-bottom: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 550; }
.nav-link { color: #edf6fc; display: flex; gap: 11px; align-items: center; border-radius: 6px; min-height: 39px; padding: 7px 11px; font-weight: 450; font-size: 13px; position: relative; }
.nav-link-label { min-width: 0; }
.nav-link:hover { background: #ffffff16; color: white; }
.nav-link.active { background: #fff; color: #125f99; font-weight: 600; box-shadow: 0 1px 3px #103d6214; }
.nav-link.active > svg { color: #125f99; }
.nav-link > svg { opacity: .86; }
.nav-link.active > svg { opacity: 1; }
.topbar { height: var(--header-height); position: sticky; z-index: 10; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px,2.5vw,36px); gap: 20px; }
.top-left, .top-right, .crumbs { display: flex; align-items: center; gap: 11px; min-width: 0; }
.top-left { flex: 1; }
.top-right { flex: none; }
.crumbs { gap: 7px; color: var(--ink); font-size: 13px; white-space: nowrap; min-width: 0; }
.crumb-step { display: flex; align-items: center; min-width: 0; gap: 7px; }
.crumbs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 620; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.crumbs svg { color: #8191a6; }
.crumbs strong { flex: 0 1 auto; min-width: 0; font-weight: 730; overflow: hidden; text-overflow: ellipsis; }
.is-routing .topbar::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: 32%;
  height: 2px;
  background: var(--accent);
  animation: route-progress .95s ease-in-out infinite alternate;
}
@keyframes route-progress { to { transform: translateX(212%); } }
.global-search { min-width: 252px; padding: 0 12px; min-height: 36px; background: #f9fafb; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; text-align: left; }
.global-search:hover { border-color: var(--line-strong); background: #eef3f8; }
kbd { font-family: inherit; font-size: 10px; font-weight: 640; margin-left: auto; background: white; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.icon-button { border: 1px solid transparent; background: transparent; border-radius: 6px; min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; color: var(--subtle); position: relative; padding: 6px; }
.icon-button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.notification-indicator { width: 8px; height: 8px; border-radius: 50%; background: #e7824a; position: absolute; top: 6px; right: 7px; border: 1.5px solid white; }
.user-button { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: white; padding: 3px 6px 3px 4px; border-radius: 7px; min-width: 0; color: var(--subtle); }
.user-button .avatar { background: #e3eeff; color: #3158a3; }
.user-button:hover .user-name { color: var(--accent); }
.user-name, .user-role { display: block; line-height: 1.3; }
.menu-anchor { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 12px); width: 320px; max-width: calc(100vw - 32px); background: white; border: 1px solid var(--line); border-radius: 13px; padding: 7px; box-shadow: 0 12px 34px #12264420; z-index: 21; }
.popover.user-popover { width: 205px; }
.popover-title { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.popover-title strong, .popover-title small { display: block; overflow: hidden; text-overflow: ellipsis; }
.popover-action { display: flex; width: 100%; align-items: center; gap: 9px; background: transparent; text-align: left; border: 0; color: var(--ink); border-radius: 7px; padding: 9px 10px; font-size: 13px; }
.popover-action:hover { background: #f0f4f8; }
.notification-item { border-bottom: 1px solid #eef1f6; display: flex; align-items: flex-start; gap: 9px; color: var(--ink); padding: 10px; border-radius: 6px; }
.notification-item:hover { background: #f3f8fa; }
.notification-item:last-child { border-bottom: 0; }
.notification-item strong, .notification-item small { display: block; }
.notification-item small { margin-top: 3px; }
.notification-list { max-height: 380px; overflow-y: auto; }
.mobile-toggle, .nav-scrim, .sidebar-close { display: none; }
.main { padding: 28px clamp(22px,2.5vw,36px) 44px; width: 100%; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 730; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow::before { content: ""; display: block; width: 15px; height: 2px; background: #1b75bb; border-radius: 1px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; line-height: 1.2; font-weight: 550; white-space: nowrap; transition: background-color .16s, border-color .16s; }
.btn-primary { color: white; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { background: #f4f8fc; border-color: #c7d7e6; }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { color: #a62d43; background: #fff0f2; border-color: #f7cbd3; }
.btn-danger:hover { background: #ffe2e8; }
.btn-sm { min-height: 33px; font-size: 12px; padding: 0 10px; }
.card, .panel { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.card-header, .panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
.card-header p, .panel-header p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.card-body, .panel-body { padding: 18px; }
.card-footer { padding: 13px var(--panel-inset); border-top: 1px solid var(--line); }
.kpi-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; flex: none; color: var(--accent-dark); background: var(--accent-soft); }
.kpi-icon.blue { color: #3464b2; background: #e8f0ff; }
.kpi-icon.amber { color: #a76e11; background: #fff3dc; }
.kpi-icon.violet { color: #7250b9; background: #f0eaff; }
.panel-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--accent-dark); font-weight: 720; font-size: 12px; }
.panel-link:hover { color: var(--accent-dark); text-decoration: underline; }
.table-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px var(--panel-inset); border-bottom: 1px solid var(--line); }
.search-field, .select-filter { min-height: 37px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; display: flex; gap: 8px; align-items: center; color: var(--muted); padding: 0 10px; }
.search-field { width: min(100%,328px); }
.search-field:focus-within, .select-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #1b75bb19; }
.search-field input, .select-filter select { border: 0; padding: 0; font-size: 13px; background: none; color: var(--ink); outline: none; min-width: 0; width: 100%; }
.search-field input::placeholder { color: #68778e; }
.select-filter { max-width: min(100%,210px); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
th { color: var(--subtle); font-weight: 550; background: #f9fafb; height: 41px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0; }
td { padding: 12px 16px; height: 56px; border-bottom: 1px solid #edf0f3; }
td:first-child, th:first-child { padding-left: var(--panel-inset); }
td:last-child, th:last-child { padding-right: var(--panel-inset); }
tr:last-child td { border-bottom: 0; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: #f5faff; }
.clickable-row:focus-visible { outline-offset: -2px; }
.th-sort { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: none; color: inherit; background: none; }
.th-sort:hover, .sort-indicator { color: var(--accent); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--panel-inset); color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.table-result-count { margin-right: auto; }
.table-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.table-page-size { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.table-page-size select { min-width: 58px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--subtle); font-size: 11px; }
.table-page-buttons { display: inline-flex; align-items: center; gap: 5px; }
.table-page-buttons > span { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.table-page-buttons button { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--subtle); }
.table-page-buttons button:hover:not(:disabled) { background: var(--canvas); border-color: var(--line-strong); color: var(--ink); }
.table-page-buttons button:disabled { cursor: default; opacity: .4; }

.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-name { display: block; font-weight: 650; color: var(--ink); }
.cell-link { color: var(--accent); font-weight: 670; }
.cell-secondary { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 7px; font-size: 11px; font-weight: 700; color: #4c6786; background: #eaf0f6; }
.avatar.avatar-round { border-radius: 50%; }
.avatar.avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.avatar-lg { width: 54px; height: 54px; font-size: 18px; border-radius: 13px; }
.avatar.tone-1 { background: #e9f1f1; color: #4b6b72; }
.avatar.tone-2 { background: #edf0f6; color: #5d6686; }
.avatar.tone-3 { background: #f1eee8; color: #7a6b54; }
.avatar.tone-4 { background: #e8f0f5; color: #4a708a; }
.badge { border-radius: 5px; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; font-weight: 620; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { color: #08775b; background: #e4f7ee; }
.badge-amber { color: #875a0a; background: #fff3d8; }
.badge-rose { color: #a83d50; background: #fdeef1; }
.badge-blue { color: #355f9c; background: #eaf2ff; }
.badge-neutral { color: #5b6a7e; background: #eef1f5; }
.empty { text-align: center; min-height: 155px; padding: 24px 18px; display: grid; justify-items: center; align-content: center; gap: 7px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); margin-bottom: 3px; }
.empty strong { font-size: 13px; }
.empty p { color: var(--muted); font-size: 12px; max-width: 340px; }
.empty p:empty { display: none; }
.empty .btn { margin-top: 5px; }
.loading-card { height: 210px; padding: 18px; display: grid; place-items: center; color: var(--muted); }
.loading-card span { display: flex; gap: 9px; align-items: center; }
.spinner { width: 17px; height: 17px; border: 2px solid #dbeaf7; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-heading { display: flex; align-items: center; gap: 13px; }
.detail-heading h1 { overflow-wrap: anywhere; }
.breadcrumb-back { display: inline-flex; color: var(--muted); gap: 7px; align-items: center; font-size: 12px; font-weight: 650; margin-bottom: 17px; }
.breadcrumb-back:hover { color: var(--accent); }
.profile-summary { padding: 17px 19px; display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 15px; }
.profile-summary .info-cell { min-width: 0; padding-left: 13px; border-left: 1px solid var(--line); }
.profile-summary .info-cell:first-child { border-left: 0; padding-left: 0; }
.info-cell > small, .info-cell > strong, .info-cell > a { display: block; overflow-wrap: anywhere; }
.info-cell > strong, .info-cell > a { margin-top: 3px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 15px; }
.tab { padding: 9px 12px 11px; font-size: 12px; color: var(--muted); font-weight: 650; border: 0; background: transparent; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(220px,1fr); gap: 17px; }
.info-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-grid .card-header { border-bottom: 1px solid var(--line); }
.note-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--subtle); }
.document-total { display: grid; gap: 9px; }
.document-total .total-line { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.document-total .total-line.total-emphasis { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
.document-total .total-line span { color: var(--muted); }
.document-total .total-line strong { white-space: nowrap; }
.section-space { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-field { display: grid; align-content: start; gap: 6px; font-size: 13px; color: var(--subtle); min-width: 0; }
.form-field > span { font-weight: 650; }
.form-field b { color: #a83d50; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; min-height: 42px; padding: 9px 11px; outline: none; color: var(--ink); font-size: 13px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #1b75bb19; }
.form-field input:invalid:focus { border-color: #d58691; }
.form-field textarea { min-height: 72px; resize: vertical; }
.form-field small { font-size: 11px; }
.span-2 { grid-column: 1 / -1; }
.check-field { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.check-field input { accent-color: var(--accent); }
.form-note { border: 1px solid #dceaf6; background: #f2f8fd; border-radius: 9px; padding: 9px 11px; font-size: 12px; color: #315c7e; }
.invoice-line { display: grid; grid-template-columns: minmax(0,1fr) 30px; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 11px; padding: 11px; margin: 0 0 8px; background: var(--canvas); }
.invoice-line .form-grid { gap: 6px; }
.invoice-line .line-numbers { display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 7px; }
.invoice-line .icon-button { min-width: 28px; }
.inline-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 7px; }
.modal { max-width: min(600px, calc(100vw - 28px)); width: 100%; max-height: min(91vh, 810px); border: 1px solid var(--line); border-radius: 10px; padding: 0; color: var(--ink); box-shadow: 0 20px 65px #12294438; }
.modal.wide { max-width: min(760px, calc(100vw - 28px)); }
.modal::backdrop { background: #12263e73; }
.modal form { display: flex; flex-direction: column; max-height: min(91vh, 810px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; margin-top: 2px; }
.modal-head p { color: var(--muted); margin-top: 4px; font-size: 12px; }
.modal-body { padding: 18px 21px; overflow: auto; }
.modal-foot { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; padding: 13px 21px; background: var(--canvas); }
.modal-error, .form-error { color: #9e2b40; padding: 9px 11px; border-radius: 7px; border: 1px solid #f7ced5; background: #fff1f3; font-size: 12px; }
.modal-error { margin: 0 18px 10px; }
.toasts { position: fixed; z-index: 40; right: 17px; bottom: 17px; display: flex; flex-direction: column; gap: 7px; max-width: min(400px,calc(100% - 34px)); pointer-events: none; }
.toast { border: 1px solid #ccece2; border-radius: 9px; padding: 10px 11px; background: #f4fdf9; box-shadow: 0 7px 22px #11253f20; display: flex; align-items: center; gap: 8px; pointer-events: auto; color: #156552; font-size: 12px; font-weight: 650; }
.toast-error { border-color: #f6cad2; background: #fff0f2; color: #a3394d; }
.toast .icon-button { margin-left: auto; color: inherit; min-height: 24px; min-width: 24px; padding: 3px; }
.search-results { display: grid; gap: 3px; margin-top: 10px; }
.search-result { display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--ink); border-radius: 7px; }
.search-result:hover { background: var(--accent-soft); }
.search-result span { display: block; }
.search-result small { display: block; }
.search-result > svg:last-child { margin-left: auto; color: var(--muted); }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; flex: none; }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--sidebar-edge); flex: none; }
.sidebar-account .user-button { width: 100%; background: transparent; color: #fff; gap: 9px; padding: 7px; }
.sidebar-account .user-button:hover { background: #ffffff15; }
.sidebar-account .avatar { width: 30px; height: 30px; background: #ffffff24; color: #fff; border-radius: 6px; }
.sidebar-account-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sidebar-account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.sidebar-account-copy small { color: #d3e7f7; font-size: 11px; }
.sidebar-account .user-popover { top: auto; bottom: calc(100% + 13px); left: 0; right: auto; width: 245px; color: var(--ink); }
.sidebar-close { color: white; margin-right: 10px; }
.sidebar-close:hover { background: #ffffff24; color: white; }
.sidebar-toggle { margin-left: -6px; }
.user-meta { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 710; color: var(--ink); }
@media (max-width: 1180px) {
  .global-search { min-width: 36px; padding-inline: 8px; }
  .global-search > span, .global-search kbd, .user-meta { display: none; }
}
.notification-button { border-color: transparent; }

@media (min-width: 1400px) {
  .main { padding-top: 28px; }
}
@media (max-width: 940px) {
  .global-search { min-width: 0; }
  .global-search kbd { display: none; }
}
@media (width > 760px) {
  .shell { transition: padding-left .16s ease; }
  .sidebar { transition: width .16s ease; }
  .shell.sidebar-collapsed { --sidebar-width: 68px; }
  .sidebar-collapsed .sidebar-account-copy, .sidebar-collapsed .sidebar-account .user-button > svg { display: none; }
  .sidebar-collapsed .sidebar-footer { padding: 10px 7px; }
  .sidebar-collapsed .sidebar-account .user-button { justify-content: center; }
  .sidebar-collapsed .sidebar-account .user-popover { left: calc(100% + 10px); bottom: 0; }
  .sidebar-collapsed .sidebar-brand { justify-content: center; width: 100%; padding-inline: 6px; }
  .sidebar-collapsed .sidebar-brand .nursoft-logo { width: 54px; }
  .sidebar-collapsed .sidebar-nav { padding: 10px 8px; gap: 8px; }
  .sidebar-collapsed .nav-group + .nav-group { padding-top: 8px; border-top: 1px solid var(--sidebar-edge); }
  .sidebar-collapsed .nav-group-label,
  .sidebar-collapsed .nav-link-label { display: none; }
  .sidebar-collapsed .nav-link { justify-content: center; min-height: 38px; padding: 4px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: min(255px, 84vw); --header-height: 56px; --panel-inset: 14px; }
  .shell { padding-left: 0; }
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .2s ease, visibility .2s; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .nav-scrim { display: block; position: fixed; inset: 0; background: #11213a70; border: none; z-index: 19; }
  .sidebar-close, .mobile-toggle { display: inline-grid; }
  .sidebar-toggle { display: none; }
  .sidebar-nav { padding: 15px 12px; }
  .nav-link { min-height: 44px; font-size: 13px; }
  .mobile-toggle { margin-left: -4px; }
  .mobile-toggle, .notification-button, .global-search { min-width: 44px; min-height: 44px; }
  .topbar { padding-inline: 13px; gap: 8px; }
  .top-left, .top-right { gap: 6px; }
  .crumbs .crumb-step:not(.crumb-parent) { display: none; }
  .crumbs .crumb-parent { max-width: 48%; }
  .user-meta, .user-button > svg, .global-search > span { display: none; }
  .user-button { padding: 2px; border-color: transparent; }
  .global-search { min-height: 44px; border-color: transparent; background: white; padding-inline: 8px; }
  .notification-button { border-color: transparent; }
  .main { padding: 19px 13px 32px; }
  .page-heading { margin-bottom: 17px; gap: 12px; }
  .page-heading p { margin-top: 5px; }
  .card-header, .panel-header, .card-body, .panel-body { padding-inline: 15px; }
  .card-footer, .meeting-list, .table-tools, .table-footer { padding-inline: 14px; }
  td:first-child, th:first-child { padding-left: 14px; }
  td:last-child, th:last-child { padding-right: 14px; }
  .table-pagination { gap: 10px; }
  .table-page-buttons > span { min-width: 60px; }
  .profile-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-summary .info-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .table-pagination { width: 100%; justify-content: space-between; }
}
@media (max-width: 390px) {
  .form-grid { grid-template-columns: 1fr; }
  .btn { padding-inline: 10px; }
  .kpi-icon { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .is-routing .topbar::after { animation: none; }
}
.profile-badge { margin-top: 4px; }
.clipped-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.invoice-preview { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; margin: 10px 0 13px; border: 1px solid #d9ebf8; background: var(--accent-soft); border-radius: 9px; font-size: 13px; color: var(--accent-dark); }
.invoice-preview strong { font-size: 14px; }
.invoice-subscription-line { display: block; margin: 0; }
.invoice-description { white-space: normal; min-width: 140px; overflow-wrap: anywhere; }
.subscription-online { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.subscription-online > div { flex: 1; min-width: 100px; }
.subscription-online strong, .subscription-online small { display: block; }

.nursoft-logo { display: block; width: 118px; height: auto; }
.sidebar-brand .nursoft-logo { width: 140px; filter: brightness(0) invert(1); }
.sidebar :focus-visible { outline-color: #fff; }
.service-header { align-items: center; flex-wrap: wrap; }
.sale-status { margin-left: 3px; }

@media (min-width: 860px) { .profile-summary { grid-template-columns: 1.4fr .9fr .9fr .8fr; } }
