:root {
  font-family: "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #243b35;
  background: #f6f7f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #f6f7f2;
  --paper: #fff;
  --forest: #113c36;
  --forest-light: #1d5148;
  --lime: #d6eb83;
  --orange: #eeb85c;
  --text: #243b35;
  --muted: #79857c;
  --border: #e5e9e1;
  --shadow: 0 8px 30px rgba(31, 59, 45, .035);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--forest); }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a8c95c;
  outline-offset: 3px;
}
button { border: 0; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--forest); }
h1 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; margin-bottom: 9px; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.5; letter-spacing: -.015em; font-weight: 650; }
p { line-height: 1.65; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; flex: 0 0 244px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 32px 20px 18px; color: #e5efe4; background: var(--forest); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 35px; text-decoration: none; color: white; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--forest); background: var(--lime); border-radius: 12px; }
.brand-mark .icon, .brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 21px; font-weight: 750; letter-spacing: .1em; line-height: 1.1; }
.brand-sub { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #b7cfc3; margin-top: 5px; font-weight: 500; }
.nav-list { display: flex; flex-direction: column; gap: 7px; }
.nav-list > .eyebrow { color: #7fa699; padding: 0 14px; margin: 8px 0 8px; font-size: 9px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 13px 14px; border-radius: 10px; background: transparent; color: #b6cec3; font-size: 13px; text-align: left; text-decoration: none; font-weight: 500; transition: background .18s, color .18s; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: white; }
.nav-item.active { background: var(--lime); color: #153b30; font-weight: 650; }
.nav-icon { display: flex; width: 20px; align-items: center; justify-content: center; }
.nav-count { margin-left: auto; font-size: 10px; min-width: 24px; text-align: center; border-radius: 6px; background: rgba(255,255,255,.09); padding: 3px 6px; }
.active .nav-count { background: rgba(17,60,54,.1); }
.sidebar-note { margin-top: auto; padding: 21px 16px 18px; border: 1px solid #3e6153; border-radius: 13px; background: rgba(255,255,255,.03); font-size: 11px; color: #adc4b6; line-height: 1.7; }
.sidebar-note strong { display: block; color: #f0f6df; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.sidebar-note .icon { color: var(--lime); margin-bottom: 9px; }
.sidebar-note p { margin-bottom: 0; }
.sidebar-note .button { margin-top: 14px; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 20px 8px 0; color: #afc8bb; font-size: 11px; }
.sidebar-footer .avatar { width: 34px; height: 34px; font-size: 11px; background: #315b4b; color: #d6eb83; }
.sidebar-footer strong { color: #e8f0e4; font-size: 12px; font-weight: 550; display: block; margin-bottom: 3px; }
.sidebar-footer .icon { margin-left: auto; width: 16px; }
.workspace { width: calc(100% - 244px); min-width: 0; margin-left: 244px; }
.topbar { min-height: 83px; padding: 18px 40px; border-bottom: 1px solid var(--border); background: #fafbf7; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-left { min-width: 0; }
.topbar-left > .brand-mark { background: white; border: 1px solid var(--border); border-radius: 10px; width: 36px; height: 36px; flex-basis: 36px; }
.topbar-left > .icon { color: var(--muted); width: 16px; }
.workspace-name { font-size: 13px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.eyebrow { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin-bottom: 7px; }
.control-group { display: flex; gap: 8px; align-items: center; }
.select-control { width: auto; min-height: 44px; padding: 7px 29px 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; font-weight: 550; color: var(--forest); background-color: #fff; }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.lang-switch button { background: transparent; min-width: 44px; min-height: 44px; padding: 6px; border-radius: 5px; font-size: 10px; font-weight: 650; color: var(--muted); }
.lang-switch button.active { color: var(--forest); background: #edf1e8; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: #e9eddc; color: var(--forest); display: inline-flex; justify-content: center; align-items: center; font-size: 11px; font-weight: 650; flex-shrink: 0; }
.main { max-width: 1540px; padding: 34px 40px 48px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.heading-copy p { font-size: 13px; color: var(--muted); margin: 0; }
.heading-copy .eyebrow { margin-bottom: 8px; }
.page-actions, .inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: #fff; background: var(--forest); box-shadow: 0 4px 9px #123d3612; }
.button.primary:hover { background: #1d5148; box-shadow: 0 5px 13px #123d3620; }
.button.secondary { color: var(--forest); background: white; border-color: #dce3d8; }
.button.secondary:hover { background: #f1f4eb; }
.button.ghost { color: var(--forest); background: transparent; }
.button.ghost:hover { background: #edf1e8; }
.button.danger { color: #b33a39; border-color: #efd6d0; background: #fff8f6; }
.button.danger:hover { background: #fbe9e4; }
.button.small { padding: 9px 12px; min-height: 44px; font-size: 11px; }
.button.full { width: 100%; }
.button .icon { width: 16px; height: 16px; }

.hero-card { position: relative; display: flex; justify-content: space-between; min-height: 208px; margin-bottom: 24px; padding: 30px 34px; border-radius: 17px; background: var(--forest); color: white; overflow: hidden; }
.hero-copy { z-index: 1; position: relative; max-width: 68%; align-self: center; }
.hero-copy h2 { color: #f4f7e9; font-size: 27px; font-weight: 550; line-height: 1.25; letter-spacing: -.035em; margin-bottom: 11px; }
.hero-copy p { color: #b8cfc3; font-size: 12px; line-height: 1.7; margin-bottom: 18px; max-width: 480px; }
.hero-copy .button.primary, .hero-copy .button.secondary { background: var(--lime); color: var(--forest); border-color: var(--lime); box-shadow: none; }
.hero-copy .button.ghost { color: #dbe7cb; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; color: #d6eb83; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 13px; }
.hero-tag .icon { width: 13px; height: 13px; }
.hero-art { width: 240px; height: 190px; align-self: center; flex-shrink: 0; margin: -22px -4px -22px 12px; position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 250px; height: 250px; border: 1px solid #96b58b20; border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; width: 194px; height: 194px; border: 1px solid #96b58b25; border-radius: 50%; }
.hero-art svg { position: relative; z-index: 1; width: 220px; height: 180px; }
.hero-art .icon { width: 104px; height: 104px; color: var(--lime); stroke-width: 1; transform: rotate(-9deg); filter: drop-shadow(0 12px 12px #092d2940); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 29px; }
.stat-card { position: relative; background: white; border: 1px solid var(--border); border-radius: 13px; padding: 20px 20px 17px; box-shadow: var(--shadow); }
.stat-card.highlight { background: #edf3dc; border-color: #e1e9ce; }
.stat-card .stat-icon { position: absolute; right: 18px; top: 18px; }
.stat-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: #6c8863; background: #f1f5e8; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-label { display: block; margin-bottom: 14px; padding-right: 30px; font-size: 11px; color: #768276; font-weight: 500; }
.stat-value { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 650; letter-spacing: -.045em; color: var(--forest); font-variant-numeric: tabular-nums; margin-bottom: 13px; }
.stat-value small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #8a9387; margin: 0; line-height: 1.5; }
.stat-foot .icon { width: 12px; height: 12px; }
.kpi-trend { font-size: 9px; font-weight: 650; padding: 3px 5px; color: #5d7944; background: #eff5df; border-radius: 4px; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(270px, 1fr); gap: 22px; align-items: start; margin-bottom: 24px; }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 75px; padding: 20px 24px; border-bottom: 1px solid #edf0e8; }
.panel-title { font-size: 14px; font-weight: 650; color: var(--forest); margin: 0; display: flex; align-items: center; gap: 9px; }
.panel-title .icon { width: 17px; height: 17px; color: #75906a; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; gap: 6px; align-items: center; color: #5b725a; font-size: 11px; font-weight: 600; text-decoration: none; background: transparent; min-height: 44px; padding: 5px 0; white-space: nowrap; }
.text-link:hover { color: var(--forest); text-decoration: underline; }
.text-link .icon { width: 14px; height: 14px; }
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c9d3c3 transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
th { padding: 13px 20px; font-size: 9px; text-transform: uppercase; font-weight: 550; letter-spacing: .075em; color: #8c9589; background: #fcfdf9; border-bottom: 1px solid #edf0e8; }
td { padding: 16px 20px; border-bottom: 1px solid #edf0e8; vertical-align: middle; color: #526558; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fcfdf8; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td .icon-button { margin: -7px; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-cell strong { display: block; color: #365142; font-size: 11px; font-weight: 600; line-height: 1.5; }
.customer-cell small { font-size: 10px; color: #929b8d; display: block; line-height: 1.6; }
.initials { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; color: #638151; background: #eff3e7; font-size: 10px; font-weight: 650; flex-shrink: 0; }
.initials:nth-of-type(3n) { color: #a27c49; background: #fbf0dd; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 8px; border-radius: 6px; font-size: 9px; line-height: 1.25; font-weight: 550; white-space: nowrap; color: #657c56; background: #eef3e4; }
.badge.new { background: #edf1f7; color: #697f99; }
.badge.in_progress { background: #fff2d9; color: #ad8a38; }
.badge.ready { background: #eef3dc; color: #758d40; }
.badge.delivered { background: #e5f1e8; color: #5a856a; }
.badge.cancelled { background: #f0f0ed; color: #8b9187; }
.badge.late { background: #fcece5; color: #bd6a51; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; color: #3a5547; }
.order-reference { color: #809573; font-size: 10px; font-weight: 550; letter-spacing: .015em; }
.empty-state { text-align: center; padding: 56px 28px; color: var(--muted); }
.empty-state > .icon { width: 40px; height: 40px; margin-bottom: 16px; color: #8aa275; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; font-size: 18px; }
.empty-state p { font-size: 12px; max-width: 360px; margin: 0 auto 20px; }
.empty-state .inline-actions { justify-content: center; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.search-field { position: relative; display: flex; align-items: center; min-width: 200px; flex: 1; max-width: 340px; }
.search-field > .icon { position: absolute; left: 13px; width: 16px; height: 16px; color: #96a18d; pointer-events: none; }
.search-field input { min-height: 44px; padding-left: 38px; font-size: 11px; background: #fbfcf8; }
.filter-control { width: auto; min-width: 138px; min-height: 44px; font-size: 11px; padding: 9px 29px 9px 12px; background-color: white; }
.toolbar > .button:last-child { margin-left: auto; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { position: relative; flex-shrink: 0; padding: 14px 3px 16px; min-height: 46px; color: #899381; font-size: 12px; font-weight: 550; background: transparent; border-bottom: 2px solid transparent; }
.tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.tab .nav-count { background: #edf1e5; margin-left: 5px; font-size: 9px; }
.icon-button, .close-button { background: transparent; border-radius: 8px; color: #7d8d76; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
.icon-button:hover, .close-button:hover { color: var(--forest); background: #eff3e9; }
.icon-button .icon { width: 17px; height: 17px; }
.due-item { display: flex; align-items: flex-start; gap: 13px; padding: 18px 22px; border-bottom: 1px solid #edf0e8; }
.due-item:last-child { border-bottom: 0; }
.due-date { width: 42px; flex: 0 0 42px; border: 1px solid #e8ecdf; border-radius: 8px; text-align: center; padding: 7px 3px 6px; color: #5f784e; background: #f8faef; line-height: 1.1; font-weight: 650; font-size: 17px; }
.due-date small { display: block; font-size: 8px; font-weight: 550; text-transform: uppercase; letter-spacing: .06em; color: #97a282; margin-top: 4px; }
.due-copy { flex: 1; min-width: 0; }
.due-copy strong { font-size: 11px; font-weight: 600; color: #3d5849; display: block; margin: 2px 0 4px; }
.due-copy p { font-size: 10px; line-height: 1.5; margin: 0 0 7px; color: #919c89; }
.due-copy .badge { padding: 3px 6px; font-size: 8px; }
.country-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #6d8163; white-space: nowrap; }
.progress-track { width: 100%; height: 5px; border-radius: 4px; background: #edf1e5; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: #aec466; max-width: 100%; transition: width .25s; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff8e9; color: #8a7544; border: 1px solid #efe3c5; border-radius: 10px; padding: 11px 15px; margin-bottom: 20px; font-size: 11px; line-height: 1.6; }
.demo-banner strong { font-weight: 600; }
.demo-banner .text-link { color: #88703c; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9fb962; flex-shrink: 0; }
.mobile-menu, .mobile-overlay { display: none; }

.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.client-card { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow); padding: 22px 22px 0; overflow: hidden; }
.client-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.client-card-header .initials { width: 43px; height: 43px; font-size: 13px; border-radius: 12px; }
.client-card-header h3 { margin: 1px 0 4px; font-size: 14px; }
.client-card-header p { margin: 0; color: var(--muted); font-size: 11px; }
.client-card-header .icon-button { margin-left: auto; margin-top: -5px; margin-right: -7px; }
.client-card > p { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #7f8e77; margin-bottom: 10px; overflow-wrap: anywhere; }
.client-card > p .icon { width: 14px; height: 14px; color: #9eac92; }
.client-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fcfdf9; margin: 19px -22px 0; padding: 14px 22px; border-top: 1px solid #edf0e8; color: #8c9882; font-size: 10px; }
.client-card-footer strong { color: #3e5d48; font-size: 12px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field > label, .form-field > .label { font-size: 11px; font-weight: 600; color: #52684e; }
.form-field label span { color: #a46c49; }
input, select, textarea { width: 100%; min-height: 44px; color: #365141; background: #fff; border: 1px solid #dfe5d8; border-radius: 8px; padding: 11px 12px; font-size: 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a2ad99; }
input:hover, select:hover, textarea:hover { border-color: #c8d3bc; }
input:focus, select:focus, textarea:focus { border-color: #8fa96d; box-shadow: 0 0 0 3px #b9d28c20; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="checkbox"], input[type="radio"] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--forest); flex-shrink: 0; cursor: pointer; }
input[type="file"] { font-size: 11px; background: #fafcf5; }
input[type="file"]::file-selector-button { padding: 7px 11px; margin: -3px 12px -3px -3px; border: 0; border-radius: 5px; color: var(--forest); background: #e8efda; cursor: pointer; }
input[readonly], input:disabled, select:disabled { background: #f6f8f1; color: #8b9681; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2379857c' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
textarea { resize: vertical; min-height: 93px; line-height: 1.6; }
.helper { font-size: 10px; color: #8d9983; line-height: 1.6; margin: 0; }
.error { color: #bd5e48; font-size: 11px; line-height: 1.5; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #d89b83; background: #fffaf7; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 9px; border: 1px solid #dce8cb; background: #f2f7e8; font-size: 11px; line-height: 1.65; color: #65814e; margin-bottom: 20px; }
.alert .icon { width: 17px; height: 17px; margin-top: 1px; }
.alert p { margin: 0; }
.alert.success { background: #eff7ed; border-color: #d7e7cf; color: #5b7d4b; }
.alert.warning { background: #fff8e9; border-color: #f0e2bd; color: #978042; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.settings-card { border: 1px solid var(--border); border-radius: 15px; padding: 25px; background: white; box-shadow: var(--shadow); }
.settings-card h2 { margin-bottom: 8px; font-size: 16px; }
.settings-card > p { font-size: 12px; color: #88947f; margin-bottom: 23px; }
.settings-card .form-grid { margin-bottom: 21px; }
.settings-card .form-grid:last-child { margin-bottom: 0; }
.locale-note { font-size: 10px; color: #8c987f; line-height: 1.7; padding: 13px 15px; background: #f8faf3; border-radius: 8px; border: 1px solid #e9eedf; margin-top: 17px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; font-size: 11px; color: #65795b; line-height: 1.65; cursor: pointer; }
.checkbox-row input { margin-top: 3px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: #092a257a; backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; padding: 28px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; max-height: calc(100dvh - 56px); display: flex; flex-direction: column; background: #fff; border-radius: 17px; box-shadow: 0 24px 90px #06231e40; position: relative; overflow: hidden; }
.modal.wide { max-width: 790px; }
.modal-header { padding: 23px 27px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header h2 { font-size: 20px; letter-spacing: -.025em; margin: 3px 0 5px; }
.modal-header p { margin: 0; font-size: 11px; color: var(--muted); }
.modal-header .close-button { margin: -3px -8px 0 0; }
.modal-body { padding: 25px 27px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.modal-body h3 { margin-bottom: 14px; font-size: 13px; }
.modal-body .form-grid + h3 { margin-top: 25px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); padding: 17px 27px; background: #fcfdf9; flex-shrink: 0; }
.modal-footer .helper { margin-right: auto; }
.close-button { min-width: 44px; min-height: 44px; }
.order-summary { padding: 20px; background: #f6f9ee; border: 1px solid #e5ecd8; border-radius: 10px; margin-top: 22px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; font-size: 12px; }
.order-summary > div:last-child { border-top: 1px solid #dee6ce; margin-top: 9px; padding-top: 14px; font-weight: 650; color: var(--forest); font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.detail-block { padding: 17px; background: #fafcf6; border-radius: 9px; border: 1px solid #e9eedf; min-width: 0; }
.detail-block label, .detail-block small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: #95a088; margin-bottom: 7px; }
.detail-block p { margin: 0; font-size: 12px; color: #486441; overflow-wrap: anywhere; }
.detail-block strong { color: var(--forest); font-weight: 600; }
.item-row { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e8eddf; font-size: 12px; }
.item-row:last-child { border-bottom: 0; }
.item-row small { display: block; color: #99a28e; font-size: 10px; margin-top: 4px; }
.line-item-grid, .line-item-head { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 38px; gap: 8px; align-items: center; }
.line-item-grid { margin-bottom: 9px; }
.line-item-grid input { min-height: 40px; font-size: 11px; padding: 9px 10px; }
.line-item-head { padding: 0 2px 9px; color: #8f9c83; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.payment-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 13px 0; border-bottom: 1px solid #e8eddf; font-size: 11px; }
.payment-row strong { font-weight: 600; color: #45643e; }
.payment-row small { display: block; color: #8f9d82; font-size: 10px; margin-top: 5px; }
.timeline { padding: 3px 0 0 5px; }
.timeline-item { position: relative; border-left: 1px solid #dbe5cc; margin: 0 0 0 4px; padding: 0 0 22px 21px; font-size: 11px; color: #657c58; }
.timeline-item::before { content: ""; width: 9px; height: 9px; position: absolute; left: -5px; top: 2px; border-radius: 50%; border: 2px solid #eff4e7; background: #98b56e; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item p { margin: 0 0 4px; }
.timeline-item small { font-size: 9px; color: #9ba68e; }
.toast { position: fixed; bottom: 28px; left: calc(50% + 122px); transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 36px)); padding: 15px 20px; border-radius: 11px; background: var(--forest); color: #f5f8ec; box-shadow: 0 12px 38px #133d3630; font-size: 12px; line-height: 1.6; animation: toast-in .22s ease-out; }
.toast .icon { color: var(--lime); width: 18px; height: 18px; }
.toast.error { color: #fff7f0; background: #873c30; }
.toast.error .icon { color: #ffd6b8; }
.screen-reader-only { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.intro-card { padding: 29px 31px; border-radius: 15px; border: 1px solid #e3ead4; background: #edf3df; margin-bottom: 24px; }
.intro-card h2 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 10px; }
.intro-card p { font-size: 12px; color: #788d65; max-width: 650px; margin-bottom: 17px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-step { border: 1px solid var(--border); padding: 24px; border-radius: 13px; background: white; }
.guide-step > .stat-icon { margin-bottom: 17px; }
.guide-step h3 { font-size: 13px; margin-bottom: 8px; }
.guide-step p { font-size: 11px; color: #89977d; margin: 0; }
.metric-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 21px 24px; }
.metric-split > div + div { border-left: 1px solid var(--border); padding-left: 19px; }
.metric-split label { font-size: 10px; color: #929e86; display: block; margin-bottom: 9px; }
.metric-split strong { color: #46633a; font-size: 19px; letter-spacing: -.025em; font-weight: 600; }
.summary-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding: 15px 24px; background: #fcfdf8; color: #8c9980; font-size: 10px; }
.summary-strip .money { color: #5e7a4e; }
.view-toggle { display: inline-flex; padding: 3px; background: #f0f4e8; border: 1px solid #e7eddd; border-radius: 8px; }
.view-toggle button { min-width: 44px; min-height: 44px; background: transparent; color: #9aa68e; border-radius: 5px; display: grid; place-items: center; }
.view-toggle button.active { color: var(--forest); background: white; box-shadow: 0 1px 4px #324c2410; }
.view-toggle .icon { width: 15px; height: 15px; }
.print-sheet { display: none; }

@keyframes toast-in { from { opacity: 0; bottom: 18px; } to { opacity: 1; bottom: 28px; } }
@media (min-width: 1600px) { .main { padding-top: 40px; } .hero-card { min-height: 226px; } }
@media (max-width: 1180px) {
  .main { padding: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .section-grid > .panel:last-child:not(:first-child) .due-item { padding-top: 15px; padding-bottom: 15px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px 15px; }
  .stat-card .stat-icon { right: 13px; top: 13px; width: 28px; height: 28px; }
  .stat-label { font-size: 10px; }
  .stat-foot { font-size: 9px; flex-wrap: wrap; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .2s; box-shadow: 12px 0 50px #082c2620; }
  .workspace { margin-left: 0; width: 100%; }
  .mobile-menu { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--forest); border: 1px solid var(--border); border-radius: 8px; background: #fff; margin-right: -6px; }
  .mobile-menu .icon { width: 19px; height: 19px; }
  .app-shell.menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .app-shell.menu-open .mobile-overlay { display: block; position: fixed; inset: 0; background: #0b2d2770; backdrop-filter: blur(2px); z-index: 25; border: 0; }
  .topbar { min-height: 76px; padding: 16px 26px; }
  .main { padding: 28px 26px 40px; }
  .topbar-left { gap: 13px; }
  .topbar-right { gap: 10px; }
  .hero-card { min-height: 204px; }
  .hero-copy { max-width: 64%; }
  .hero-copy h2 { font-size: 25px; }
  .hero-art { width: 210px; }
  .hero-art svg { width: 195px; }
  .toast { left: 50%; }
  .guide-grid { gap: 12px; }
  .guide-step { padding: 20px; }
}
@media (max-width: 640px) {
  .topbar { min-height: 72px; padding: 13px 17px; gap: 8px; }
  .topbar-left { gap: 10px; }
  .topbar-left > .brand-mark, .topbar-left > .icon { display: none; }
  .workspace-name { font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-left .eyebrow { display: none; }
  .topbar-right { gap: 7px; }
  .topbar-right > .avatar { display: none; }
  .select-control { min-height: 44px; max-width: 116px; padding-left: 8px; padding-right: 24px; background-position: right 8px center; font-size: 10px; }
  .lang-switch { gap: 0; padding: 2px; }
  .lang-switch button { min-width: 44px; min-height: 44px; font-size: 9px; padding: 5px; }
  .main { padding: 25px 17px 32px; }
  h1 { font-size: 26px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 23px; }
  .heading-copy p { font-size: 12px; }
  .page-actions { width: 100%; gap: 8px; }
  .page-actions .button { flex: 1; }
  .button { min-height: 44px; padding: 11px 13px; font-size: 11px; }
  .button.small, .text-link, .icon-button, .close-button { min-height: 44px; }
  .button.small { font-size: 10px; }
  .hero-card { padding: 25px 23px; min-height: 221px; margin-bottom: 17px; border-radius: 13px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h2 { font-size: 25px; max-width: 255px; }
  .hero-copy p { font-size: 11px; max-width: 80%; }
  .hero-art { position: absolute; right: -70px; bottom: -22px; opacity: .22; width: 210px; height: 190px; pointer-events: none; }
  .hero-art svg { width: 190px; }
  .hero-tag { font-size: 8px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 23px; }
  .stat-card { min-height: 133px; padding: 17px 14px 14px; border-radius: 11px; }
  .stat-card .stat-icon { right: 11px; top: 12px; width: 26px; height: 26px; border-radius: 7px; }
  .stat-card .stat-icon .icon { width: 13px; height: 13px; }
  .stat-label { font-size: 9px; padding-right: 24px; margin-bottom: 17px; }
  .stat-value { font-size: 25px; margin-bottom: 9px; }
  .stat-foot { font-size: 8px; }
  .section-grid { gap: 18px; }
  .panel { border-radius: 12px; }
  .panel-header { min-height: 68px; padding: 16px 18px; gap: 10px; }
  .panel-title { font-size: 13px; }
  .panel-header p { font-size: 10px; }
  .text-link { font-size: 10px; }
  table { font-size: 10px; }
  th { font-size: 8px; }
  th, td { padding: 13px 14px; }
  th:first-child, td:first-child { padding-left: 18px; }
  th:last-child, td:last-child { padding-right: 18px; }
  .customer-cell { gap: 8px; }
  .customer-cell strong { font-size: 10px; }
  .customer-cell small { font-size: 9px; }
  .initials { width: 29px; height: 29px; font-size: 9px; }
  .toolbar { padding: 14px; gap: 9px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .filter-control { min-width: 0; flex: 1; font-size: 10px; min-height: 44px; }
  .toolbar > .button:last-child { margin-left: 0; }
  .tabs { gap: 18px; margin-bottom: 17px; }
  .tab { font-size: 11px; padding-bottom: 13px; }
  .due-item { padding: 17px 18px; }
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 1px; padding: 11px 13px; font-size: 10px; }
  .demo-banner .text-link { min-height: 44px; }
  .client-grid { grid-template-columns: 1fr; gap: 14px; }
  .client-card { padding: 20px 20px 0; }
  .client-card-footer { margin-left: -20px; margin-right: -20px; padding: 13px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .settings-grid { gap: 17px; }
  .settings-card { padding: 22px 19px; }
  .settings-card h2 { font-size: 15px; }
  .settings-card > p { font-size: 11px; }
  .modal-backdrop { padding: 12px; align-items: center; }
  .modal, .modal.wide { max-height: calc(100dvh - 24px); border-radius: 13px; }
  .modal-header { padding: 20px 20px 17px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 21px 20px; }
  .modal-footer { padding: 14px 20px; gap: 9px; flex-wrap: wrap; }
  .modal-footer > .button { flex: 1; }
  .modal-footer .helper { flex-basis: 100%; }
  .detail-grid { gap: 11px; }
  .detail-block { padding: 13px; }
  .detail-block p { font-size: 11px; }
  .line-item-grid, .line-item-head { grid-template-columns: minmax(0, 1fr) 49px 78px 34px; gap: 6px; }
  .line-item-grid input { font-size: 10px; padding-left: 7px; padding-right: 7px; }
  .line-item-head { font-size: 8px; letter-spacing: 0; }
  .line-item-grid .icon-button { min-width: 34px; min-height: 44px; padding: 5px; }
  .order-summary { padding: 15px; }
  .toast { bottom: 18px; padding: 13px 16px; font-size: 11px; width: max-content; }
  .intro-card { padding: 25px 22px; }
  .intro-card h2 { font-size: 21px; }
  .intro-card p { font-size: 11px; }
  .guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .guide-step { padding: 21px; }
  .guide-step > .stat-icon { float: left; margin: 0 15px 0 0; }
  .guide-step p { padding-left: 47px; }
  .summary-strip { padding: 14px 18px; font-size: 9px; gap: 12px; flex-wrap: wrap; }
  .metric-split { padding: 20px 18px; }
  .metric-split strong { font-size: 17px; }
}
@media (max-width: 420px) {
  .topbar-left .workspace-name { display: none; }
  .topbar-right { flex-wrap: wrap; justify-content: flex-end; }
  .topbar-right .control-group { gap: 6px; }
  .topbar-right .select-control { max-width: 102px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 16mm; size: A4; }
  body { background: #fff !important; color: #222 !important; font: 11pt/1.5 "Segoe UI", sans-serif; }
  body > * { display: none !important; }
  body > #print-area, #print-area { display: block !important; }
  body:has(#app #print-area) > #app { display: block !important; }
  #app:has(#print-area) > * { display: none !important; }
  #app > #print-area { display: block !important; }
  #print-area { position: static; width: 100%; box-shadow: none; background: #fff; padding: 0; }
  #print-area * { visibility: visible; }
  #print-area h1 { font-size: 24pt; }
  #print-area h2 { font-size: 15pt; }
  #print-area table { white-space: normal; font-size: 10pt; }
  #print-area th, #print-area td { padding: 9px 7px; border-bottom: 1px solid #ddd; }
  #print-area tr, #print-area .detail-block { break-inside: avoid; }
  #print-area .button, #print-area .icon-button { display: none !important; }
  #print-area .detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
  #print-area a { text-decoration: none; color: inherit; }
}

/* Server-backed workspace application, v2. */
.loading-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; color: var(--forest); background: var(--bg); }
.loading-mark { width: 66px; height: 66px; display: grid; place-items: center; background: var(--forest); color: var(--lime); border-radius: 20px; font-size: 32px; font-weight: 750; margin-bottom: 18px; box-shadow: 0 8px 26px #143d3620; }
.loading-screen p { font-size: 19px; font-weight: 650; margin: 0 0 8px; }
.loading-screen small { color: var(--muted); font-size: 12px; }
.entry-page { min-height: 100dvh; background: radial-gradient(ellipse at 80% 20%, #e7edcd 0%, transparent 45%), var(--bg); padding: 40px 8%; }
.entry-brand { display: flex; align-items: center; gap: 12px; color: var(--forest); font-size: 21px; letter-spacing: .12em; }
.entry-brand .brand-mark { font-weight: 800; background: var(--forest); color: var(--lime); }
.entry-brand small { display: block; font-size: 9px; letter-spacing: .2em; margin-top: 4px; }
.entry-card { max-width: 560px; margin: 9vh auto 0; padding: 44px; border: 1px solid var(--border); border-radius: 23px; background: white; box-shadow: 0 16px 70px #143d3608; }
.entry-card > .stat-icon { width: 50px; height: 50px; margin-bottom: 25px; border-radius: 14px; }
.entry-card h1 { font-size: 34px; margin: 12px 0 17px; }
.entry-card > p { font-size: 13px; color: #77856e; }
.entry-card > .button { margin-top: 8px; }
.entry-language { margin: 30px 0 23px; }
.entry-foot { font-size: 10px; color: #93a088; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 20px; }
.onboarding { min-height: 100dvh; display: grid; grid-template-columns: minmax(350px, .9fr) minmax(480px, 1.1fr); }
.onboarding-aside { background: var(--forest); color: #bdd1c2; padding: 48px 12%; display: flex; flex-direction: column; justify-content: space-between; gap: 70px; position: relative; overflow: hidden; }
.onboarding-aside::after { content: ""; width: 540px; height: 540px; position: absolute; border: 1px solid #d6eb8318; border-radius: 50%; right: -260px; bottom: -130px; pointer-events: none; }
.onboarding-aside .entry-brand { color: #fff; }
.onboarding-aside .brand-mark { background: var(--lime); color: var(--forest); }
.onboarding-aside h1 { color: #f4f6e8; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.15; margin: 12px 0 22px; }
.onboarding-aside p { font-size: 13px; max-width: 390px; }
.onboarding-trades { display: flex; flex-direction: column; gap: 17px; margin-top: 35px; font-size: 12px; color: #d5e0d0; }
.onboarding-trades span { display: flex; align-items: center; gap: 11px; }
.onboarding-trades .icon { width: 17px; height: 17px; color: var(--lime); }
.onboarding-aside .onboarding-countries { font-size: 10px; line-height: 1.8; color: #91b09d; margin: 0; }
.onboarding-main { padding: 30px 9% 50px; }
.onboarding-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); }
.onboarding-top > span { overflow-wrap: anywhere; }
.onboarding-form { max-width: 520px; margin: 15vh auto 0; }
.onboarding-form > h2 { font-size: 28px; line-height: 1.25; margin: 11px 0; }
.onboarding-form > p { font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.onboarding-form form > .button { margin-top: 24px; }
.country-currency-note { margin-top: 13px; }
.workspace-switch { border: 0; width: auto; min-height: 27px; max-width: 290px; padding: 0 26px 0 0; background-color: transparent; font-size: 13px; font-weight: 650; color: var(--forest); }
.workspace-switch:hover { border: 0; }
.workspace-switch:focus { box-shadow: none; }
.sync-state { display: flex; align-items: center; gap: 6px; color: #809075; font-size: 10px; white-space: nowrap; }
.sync-state .status-dot { background: #93ad62; }
.sync-state.offline { color: #ad6a4d; }
.sync-state.offline .status-dot { background: #d89a64; }
.new-workspace-button { border: 1px solid var(--border); background: #fff; color: var(--forest); }
.nav-manage-label { margin-top: 24px !important; }
.nav-list { gap: 4px; }
.nav-item { min-height: 43px; padding: 11px 14px; font-size: 11px; }
.sidebar { padding-top: 29px; }
.sidebar { overflow-x: hidden; }
.brand > span:last-child { min-width: 0; }
.brand-name, .brand-sub { display: block; }
.brand-sub { line-height: 1.5; letter-spacing: .1em; }
.sidebar-footer > span:not(.avatar) { min-width: 0; overflow-wrap: anywhere; }
.sidebar .brand { padding-bottom: 28px; }
.sidebar-note { margin-top: 28px; padding: 17px 15px; }
.sidebar-note > .icon { width: 18px; height: 18px; margin-bottom: 5px; }
.sidebar-footer { margin-top: auto; }
.sidebar-logout { color: #b3cbbd; margin-left: auto; display: grid; place-items: center; width: 32px; height: 44px; }
.sidebar-logout:hover { color: var(--lime); }
.sidebar-logout .icon { width: 17px; }
.main-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); margin-top: 38px; padding-top: 20px; font-size: 9px; color: #98a28d; line-height: 1.6; }
.license-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e7ddbc; border-radius: 10px; padding: 10px 16px; margin-bottom: 24px; background: #fff9e9; color: #927b45; font-size: 11px; line-height: 1.6; }
.license-banner > div { display: flex; align-items: center; gap: 10px; }
.license-banner .icon { width: 17px; }
.license-banner .button { min-height: 38px; }
.monetary-value { font-size: clamp(18px, 1.8vw, 26px); }
.workspace-facts { padding: 10px 24px; }
.workspace-facts > div { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); gap: 16px; font-size: 11px; color: #89937e; }
.workspace-facts > div:last-child { border: 0; }
.workspace-facts strong { color: var(--forest); font-size: 13px; font-weight: 650; }
.row-title { display: block; text-align: left; min-height: 0; padding: 0; font-size: 12px; color: #365142; max-width: 260px; white-space: normal; line-height: 1.5; }
.cell-small { display: block; margin-top: 4px; color: #94a08b; font-size: 10px; line-height: 1.6; }
.late-label { display: block; color: #b87451; font-size: 9px; margin-top: 4px; }
.badge.waiting { background: #f3edf6; color: #8b6e9b; }
.badge.draft { background: #edf1f7; color: #697f99; }
.badge.converted { background: #e8f2de; color: #64834e; }
.initials > .icon { width: 17px; height: 17px; }
.section-spacer { height: 24px; }
.client-search { margin-bottom: 22px; }
.client-search .toolbar { border-bottom: 0; }
.client-note { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.client-card-footer { min-height: 54px; }
.role-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.role-cards > article { background: white; border: 1px solid var(--border); border-radius: 13px; padding: 20px; }
.role-cards .stat-icon { margin-bottom: 13px; }
.role-cards h3 { font-size: 13px; margin: 0 0 7px; }
.role-cards p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.7; }
.license-card { padding: 35px; background: var(--forest); color: #bdcfc1; border-radius: 17px; position: relative; overflow: hidden; }
.license-emblem { width: 58px; height: 58px; border: 1px solid #627c59; border-radius: 17px; color: var(--lime); display: grid; place-items: center; margin-bottom: 27px; }
.license-emblem .icon { width: 29px; height: 29px; }
.license-card .eyebrow { display: block; color: #b5c585; font-size: 9px; }
.license-card h2 { font-size: 26px; color: #f4f7e9; margin: 8px 0 15px; }
.license-card > p { font-size: 12px; max-width: 380px; }
.license-card dl { margin: 26px 0 0; }
.license-card dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-top: 1px solid #365c4e; padding: 14px 0; font-size: 11px; }
.license-card dt { color: #96b29e; }
.license-card dd { margin: 0; text-align: right; color: #e2e9d8; overflow-wrap: anywhere; }
.license-card .license-foot { font-size: 10px; margin-top: 20px; color: var(--lime); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.identity-panel { display: flex; align-items: center; gap: 13px; margin: 26px 0; }
.identity-panel .avatar { width: 46px; height: 46px; font-size: 14px; }
.identity-panel strong { font-size: 13px; }
.identity-panel p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.profile-facts { margin: 0 0 25px; }
.profile-facts > div { display: flex; gap: 20px; justify-content: space-between; border-top: 1px solid var(--border); padding: 14px 0; font-size: 11px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; color: var(--forest); text-align: right; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); margin-top: 25px; padding-top: 21px; }
.form-section-title { display: flex; gap: 20px; justify-content: space-between; align-items: center; font-size: 13px; margin: 28px 0 17px; padding-top: 23px; border-top: 1px solid var(--border); }
.form-notes { margin-top: 22px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; color: #8a794a; background: #fff9e9; border-radius: 8px; padding: 10px 12px; }
.privacy-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.detail-notes { font-size: 12px; color: #75846c; }
.pre-line { white-space: pre-line; }
.payment-balance { padding: 14px 17px; border: 1px solid #e4ebd6; background: #f5f8ee; border-radius: 9px; color: #6c8058; font-size: 12px; margin-bottom: 17px; line-height: 1.7; }
.form-grid .payment-balance { margin-bottom: 0; }
.form-grid > .span-2 { grid-column: 1 / -1; }
.issued-key { margin-top: 25px; border: 1px solid #d7e6c2; border-radius: 10px; background: #f5f9ec; padding: 20px; }
.issued-key strong { font-size: 12px; }
.issued-key code { display: block; overflow-wrap: anywhere; padding: 15px 0; color: var(--forest); font-size: 13px; }
.issued-key p { color: var(--muted); font-size: 11px; margin: 0; }
#print-area { display: none; }
.print-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 35px; border-bottom: 2px solid #113c36; padding-bottom: 25px; }
.print-header > div:last-child { text-align: right; }
.print-brand { display: flex; align-items: flex-start; gap: 15px; }
.print-brand h1 { margin-bottom: 8px; }
.print-brand p, .print-header > div:last-child p { font-size: 10px; line-height: 1.7; margin: 0; }
.print-monogram { width: 52px; height: 52px; border: 1px solid #113c36; color: #113c36; border-radius: 9px; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.print-receipt-amount { border: 1px solid #ddd; background: #fafcf7; padding: 23px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.print-receipt-amount strong { font-size: 24px; }
.print-totals { max-width: 350px; margin: 25px 0 30px auto; }
.print-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #ddd; font-size: 11px; }
.print-totals > div:last-child { font-size: 13px; font-weight: 700; }
.print-details { padding: 18px; border: 1px solid #ddd; margin-bottom: 23px; }
.print-details p { font-size: 10px; margin: 0 0 6px; white-space: pre-line; }
.print-signatures { display: flex; justify-content: space-between; gap: 50px; padding: 30px 0 50px; }
.print-signatures > div { border-top: 1px solid #aaa; padding-top: 8px; width: 40%; font-size: 10px; }
.print-footer { border-top: 1px solid #ddd; padding-top: 14px; text-align: center; font-size: 10px; line-height: 1.7; }
.print-footer small { color: #777; font-size: 8px; }
@media (max-width: 1100px) { .sync-state { display: none; } .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .onboarding-aside { padding: 40px 9%; } .onboarding-main { padding-left: 8%; padding-right: 8%; } }
@media (max-width: 800px) { .onboarding { grid-template-columns: 1fr; } .onboarding-aside { min-height: 350px; padding: 30px 7%; gap: 32px; } .onboarding-aside h1 { font-size: 34px; } .onboarding-trades { display: none; } .onboarding-aside .onboarding-countries { display: none; } .onboarding-main { padding: 24px 7% 45px; } .onboarding-form { margin-top: 40px; max-width: none; } .workspace-switch { max-width: 230px; } }
@media (max-width: 640px) { .entry-page { padding: 25px 18px; } .entry-card { padding: 30px 24px; margin-top: 50px; } .entry-card h1 { font-size: 28px; } .workspace-switch { max-width: 165px; font-size: 11px; } .refresh-button { display: none; } .new-workspace-button { min-width: 38px; } .topbar-right { gap: 5px; } .topbar-right .lang-switch button { min-width: 34px; } .license-banner { padding: 10px 12px; align-items: flex-start; font-size: 10px; gap: 8px; } .license-banner .button { padding: 8px 10px; font-size: 10px; } .license-banner > div { align-items: flex-start; gap: 7px; } .license-banner .icon { margin-top: 2px; } .main-footer { flex-direction: column; gap: 6px; } .role-cards { gap: 11px; } .role-cards > article { padding: 17px; } .license-card { padding: 26px 22px; } .license-card h2 { font-size: 24px; } .form-actions { flex-wrap: wrap; } .form-actions > .button { flex: 1; } .form-section-title { margin-top: 25px; } .workspace-facts { padding: 7px 19px; } .onboarding-top { font-size: 10px; } .modal-footer .button { min-width: 115px; } }
@media print { .print-header, .print-receipt-amount, .print-totals, .print-details, .print-signatures { break-inside: avoid; } #print-area h1 { font-size: 21pt; } #print-area h2 { font-size: 15pt; } }


