/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f7f9fc;
  --panel: #fff;
  --text: #0e1633;
  --muted: #5d6785;
  --border: #0e163324;
  --accent: #0a1e78;
  --accent-soft: #0a1e781a;
  --accent-soft-strong: #0a1e782e;
  --gold: #f2d21a;
  --success: #12a150;
  --warning: #e0a100;
  --danger: #c53030;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

.app-root {
  min-height: 100vh;
}

.app-topbar {
  z-index: 50;
  background: #061a63;
  border-bottom: 1px solid #ffffff1a;
  position: sticky;
  top: 0;
  box-shadow: 0 10px 30px #0000002e;
}

.app-topbar, .app-topbar * {
  color: #f3f4f6;
}

.app-topbar-inner {
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  min-width: 170px;
  display: flex;
}

.brand-logo {
  background: #05124740;
  border: 1px solid #f2d21a4d;
  border-radius: 6px;
  width: auto;
  height: 34px;
}

.brand-mark {
  color: #f2d21a;
  background: #f2d21a2e;
  border: 1px solid #f2d21a8c;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 800;
  display: grid;
}

.brand-stack {
  flex-direction: column;
  display: flex;
}

.brand-name {
  letter-spacing: .2px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-tagline {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2d21ae6;
  font-size: 11px;
}

.topbar-right {
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}

.topbar-locale {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.topbar-locale-select, .topbar-locale-scope {
  color: #f3f4f6;
  background: #ffffff12;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
}

.topbar-locale-select option, .topbar-locale-scope option {
  color: #111827;
}

.admin-locale-block .topbar-locale-select, .admin-locale-block .topbar-locale-scope {
  border-color: var(--border);
  color: var(--text);
  background: #00000005;
}

.nav-style-toggle {
  color: #f3f4f6;
  cursor: pointer;
  background: #ffffff12;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  min-width: 64px;
  padding: 8px 10px;
}

.nav-style-toggle:hover {
  background: #ffffff1f;
}

.global-search {
  color: #f3f4f6;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  outline: none;
  width: min(520px, 46vw);
  padding: 10px 12px;
}

.global-search::placeholder {
  color: #f3f4f6a6;
}

.topbar-search {
  position: relative;
}

.topbar-search-pop {
  z-index: 120;
  background: #061a63f5;
  border: 1px solid #ffffff29;
  border-radius: 12px;
  padding: 8px;
  position: absolute;
  top: 44px;
  right: 0;
  box-shadow: 0 18px 40px #00000040;
}

.topbar-search-input {
  width: min(420px, 46vw);
}

.user-btn.is-open {
  background: #f2d21a33;
  border-color: #f2d21a73;
}

.user-btn {
  color: #f3f4f6;
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  width: 38px;
  height: 38px;
}

.app-body {
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 58px);
  display: grid;
}

.app-sidebar {
  border-right: 1px solid var(--border);
  background: #eef3ff;
  box-shadow: 8px 0 24px #0a1e7814;
}

.app-main {
  min-width: 0;
}

.app-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 14px;
}

.app-content {
  padding: 16px 14px 28px;
}

.page h1 {
  margin: 0;
  font-size: 22px;
}

.page p {
  color: var(--muted);
}

.page-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.page-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.input {
  border: 1px solid var(--border);
  color: var(--text);
  background: #00000005;
  border-radius: 10px;
  outline: none;
  padding: 10px 12px;
}

.input::placeholder {
  color: #6b7280d9;
}

.input:focus {
  border-color: #0a1e784d;
  box-shadow: 0 0 0 3px #0a1e781f;
}

.input-compact {
  border-radius: 10px;
  width: 240px;
  padding: 9px 10px;
}

.select {
  border: 1px solid var(--border);
  color: var(--text);
  background: #00000005;
  border-radius: 10px;
  outline: none;
  padding: 10px 12px;
}

.sidebar {
  padding: 14px;
}

.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-title {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0a1e78b8;
  margin-bottom: 8px;
  font-size: 12px;
}

.sidebar-items {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.sidebar-link {
  color: #10215f;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  padding: 10px;
  position: relative;
}

.sidebar-link-row {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.sidebar-icon {
  justify-content: center;
  width: 16px;
  display: inline-flex;
}

body.nav-text-only .sidebar-icon {
  display: none;
}

.sidebar-link:hover {
  border-color: var(--border);
  background: #0a1e780f;
}

.sidebar-link.is-active {
  background: #0a1e781f;
  border-color: #0a1e783d;
  font-weight: 600;
}

.sidebar-link.is-active:before {
  content: "";
  background: var(--gold);
  border-radius: 999px;
  width: 3px;
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -6px;
}

.sidebar-link.is-disabled {
  opacity: .5;
  pointer-events: none;
}

.topmenu {
  align-items: center;
  gap: 6px;
  display: flex;
}

.topmenu-item {
  position: relative;
}

.topmenu-btn {
  cursor: pointer;
  color: #f3f4f6;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  padding: 8px 10px;
  transition: background .12s, border-color .12s;
}

.topmenu-btn:hover, .topmenu-btn.is-open {
  background: #f2d21a2e;
  border-color: #f2d21a66;
}

.topmenu-dropdown {
  border: 1px solid var(--border);
  background: #fffffffa;
  border-radius: 12px;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  top: 42px;
  left: 0;
  box-shadow: 0 16px 50px #0000001f;
}

.topmenu-link {
  text-align: left;
  width: 100%;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  display: block;
}

.topmenu-link:hover {
  background: #0000000a;
}

.toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.toolbar-left {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.toolbtn {
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  background: #00000005;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  display: flex;
}

.toolbtn:hover {
  background: #0000000a;
}

.toolicon {
  background: #0a1e781f;
  border: 1px solid #0a1e7840;
  border-radius: 6px;
  width: 18px;
  height: 18px;
}

.toollabel {
  font-size: 13px;
}

.primary-btn {
  background: var(--accent);
  color: #f8fafc;
  cursor: pointer;
  touch-action: manipulation;
  border: 1px solid #0a1e78a6;
  border-radius: 10px;
  padding: 10px 12px;
}

.primary-btn:hover {
  background: #102a93;
}

.primary-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  background: #00000005;
  border-radius: 10px;
  padding: 10px 12px;
}

.btn:hover {
  background: #0000000a;
}

.btn-primary {
  background: var(--accent);
  color: #f8fafc;
  border-color: #0a1e78a6;
}

.btn-primary:hover {
  background: #102a93;
}

.secondary-btn {
  color: #0a1e78;
  cursor: pointer;
  touch-action: manipulation;
  background: #fff;
  border: 1px solid #0a1e784d;
  border-radius: 10px;
  padding: 9px 12px;
}

.secondary-btn:hover {
  background: #0a1e780f;
}

.secondary-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-secondary {
  background: #00000005;
}

.btn-ghost {
  background: none;
  border: 1px solid #0000;
}

.btn-ghost:hover {
  background: #0000000f;
}

.table-wrap {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  max-height: calc(100vh - 240px);
  overflow: auto;
  box-shadow: 0 10px 28px #0000000f;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: #111827eb;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 12px;
  font-weight: 700;
}

.table thead th {
  z-index: 2;
  background: var(--panel);
  position: sticky;
  top: 0;
}

.sort-ind {
  color: #6b7280d9;
}

.td {
  border-bottom: 1px solid var(--border);
  color: #111827e6;
  padding: 12px;
}

.tr:hover {
  background: #00000005;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  display: inline-flex;
}

.pill-ok {
  background: #12a1501f;
  border-color: #12a15040;
}

.pill-warn {
  background: #e0a10024;
  border-color: #e0a10047;
}

.pill-review {
  color: #07175f;
  background: #0a1e781a;
  border-color: #0a1e783d;
}

.pill-final {
  color: #0a6a35;
  background: #12a1501f;
  border-color: #12a15040;
}

.pill-provisional {
  color: #7a5400;
  background: #e0a10024;
  border-color: #e0a10047;
}

.home-hero {
  border: 1px solid var(--border);
  background: linear-gradient(#fff 0%, #f5f8ff 100%);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px #0000000f;
}

.home-brand {
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  display: flex;
}

.home-logo {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  width: auto;
  height: 56px;
}

.home-brand-mark {
  color: #f2d21a;
  background: #061a63;
  border: 2px solid #f2d21a99;
  border-radius: 14px;
  place-items: center;
  width: 54px;
  height: 54px;
  font-weight: 800;
  display: grid;
}

.home-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  display: flex;
}

.mobile-page {
  max-width: 760px;
  margin: 0 auto;
}

.mobile-hero {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 14px;
  box-shadow: 0 8px 24px #0000000f;
}

.mobile-cards {
  gap: 10px;
  display: grid;
}

.mobile-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: block;
  box-shadow: 0 8px 20px #0000000a;
}

.mobile-card-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.mobile-card-text {
  color: var(--muted);
  font-size: 13px;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-nav-link {
  color: #27336c;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 8px 6px;
  font-size: 12px;
  display: flex;
}

.mobile-nav-link.is-active {
  color: #0a1e78;
  background: #0a1e781f;
  font-weight: 700;
}

.doc-modal-overlay {
  z-index: 250;
  background: #0512479e;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.doc-modal {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  flex-direction: column;
  width: min(1300px, 98vw);
  height: min(92vh, 980px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 70px #00000059;
}

.doc-modal-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.doc-modal-title {
  font-weight: 800;
}

.doc-modal-sub {
  color: var(--muted);
  font-size: 12px;
}

.doc-modal-body {
  background: #f2f5ff;
  flex: 1;
  min-height: 0;
}

.doc-modal-frame {
  background: #fff;
  border: 0;
  width: 100%;
  height: 100%;
}

.modal-overlay {
  z-index: 200;
  background: #11182773;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(1100px, 98vw);
  overflow: hidden;
  box-shadow: 0 30px 80px #00000040;
}

@media (min-width: 1400px) {
  .modal {
    width: 1200px;
  }
}

.modal-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-sub {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.modal-body {
  padding: 14px;
}

.field {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  display: flex;
}

.field > span {
  color: #6b7280f2;
  letter-spacing: .02em;
  font-size: 12px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.btn-row {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  display: flex;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .input-compact {
    width: 180px;
  }
}

@media (max-width: 980px) {
  .app-topbar-inner {
    padding: 10px;
  }

  .brand-tagline, .topbar-right {
    display: none;
  }

  .app-body {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 56px);
  }

  .app-sidebar, .app-toolbar {
    display: none;
  }

  .app-content {
    padding: 10px 10px 86px;
  }

  .table-wrap {
    max-height: none;
  }

  .page h1 {
    font-size: 20px;
  }

  .page-head {
    flex-direction: column;
  }

  .mobile-bottom-nav {
    z-index: 80;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #fffffff5;
    justify-content: space-around;
    align-items: center;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

.payslip-a4 {
  color: #000;
  background: #fff;
  border: 1px solid #d4d7df;
  border-radius: 6px;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 12mm 12mm 12mm 24mm;
  font-size: 12px;
  line-height: 1.3;
}

.payslip-top {
  min-height: 58mm;
  margin-bottom: 2mm;
  position: relative;
}

.payslip-company {
  max-width: 90mm;
  font-family: Georgia, Times New Roman, serif;
}

.payslip-company strong {
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
}

.payslip-recipient {
  text-align: left;
  width: 66mm;
  position: absolute;
  top: 38mm;
  right: 0;
}

.payslip-date {
  text-align: left;
  width: 66mm;
  margin-top: 10mm;
  margin-bottom: 7mm;
  margin-left: auto;
}

.payslip-meta {
  margin-top: 43.2mm;
  margin-bottom: 4mm;
}

.payslip-title {
  margin-bottom: 3mm;
  font-weight: 700;
  text-decoration: underline;
}

.payslip-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 110mm;
  margin-bottom: 1mm;
}

.payslip-table td {
  vertical-align: top;
  padding: 1px 0;
}

.payslip-table td:first-child {
  width: 60%;
}

.payslip-table td:nth-child(2) {
  width: 8%;
  padding-right: 3px;
  text-align: right !important;
}

.payslip-table td:nth-child(3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 32%;
  text-align: right !important;
}

.payslip-sep td {
  border-bottom: 1px solid #111;
  height: 3mm;
}

.payslip-total td {
  padding-top: 2mm;
  font-weight: 700;
}

.payslip-subtitle {
  margin: 9mm 0 1.5mm;
  font-weight: 700;
}

.payslip-table-ded {
  border-collapse: collapse;
  table-layout: fixed;
  width: 138mm;
  margin-bottom: 2mm;
}

.payslip-table-ded td {
  vertical-align: top;
  padding: 1px 0;
}

.payslip-table-ded td:first-child {
  width: 40%;
}

.payslip-table-ded td:nth-child(2) {
  width: 6%;
  padding-right: 1px;
  text-align: right !important;
}

.payslip-table-ded td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  width: 18%;
  text-align: right !important;
}

.payslip-table-ded td:nth-child(4) {
  width: 10%;
  padding-right: 3px;
  text-align: right !important;
}

.payslip-table-ded td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 26%;
  text-align: right !important;
}

.payslip-chf-amt {
  grid-template-columns: 26px 78px;
  justify-content: end;
  align-items: baseline;
  column-gap: 3px;
  width: 107px;
  display: inline-grid;
}

.payslip-chf-label {
  text-align: right;
}

.payslip-chf-amt span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.payslip-payment {
  margin-top: 5mm;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden;
  }

  .payslip-a4, .payslip-a4 * {
    visibility: visible;
  }

  .app-topbar, .app-sidebar, .app-toolbar, .mobile-bottom-nav, .no-print {
    display: none !important;
  }

  .app-body {
    min-height: auto !important;
    display: block !important;
  }

  .app-content {
    padding: 0 !important;
  }

  .print-area {
    box-shadow: none !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .payslip-a4 {
    box-sizing: border-box !important;
    border: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
  }
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/