/* src/styles.css */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #eef8f6;
  --text: #172033;
  --muted: #637083;
  --line: #d7e1ed;
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
  --sidebar: #13233f;
  --sidebar-gradient:
    linear-gradient(
      160deg,
      rgba(19, 35, 63, .96) 0%,
      rgba(30, 58, 138, .94) 48%,
      rgba(15, 118, 110, .92) 100%);
  --sidebar-text: #eef6ff;
  --sidebar-small: #9bd7d1;
  --nav-text: #e7f0ff;
  --nav-hover-bg: rgba(255, 255, 255, .14);
  --button-shadow: rgba(15, 35, 70, .14);
  --secondary: #dbeafe;
  --secondary-hover: #bfdbfe;
  --secondary-text: #172554;
  --label: #263956;
  --focus-shadow: rgba(37, 99, 235, .22);
  --readonly-bg: #f1f7ff;
  --table-header-bg: #e0f2fe;
  --table-header-text: #174063;
  --row-hover: #f0fdfa;
  --status-bg: #dcfce7;
  --status-border: #86efac;
  --status-text: #14532d;
  --modal-backdrop: rgba(15, 23, 42, .48);
  --shadow-soft: rgba(15, 35, 70, .07);
  --shadow-strong: rgba(15, 35, 70, .18);
}
body[data-theme=classic] {
  --bg: #f7f5f0;
  --panel: #ffffff;
  --panel-soft: #fff8df;
  --text: #241817;
  --muted: #776763;
  --line: #ead9bf;
  --primary: #d92d20;
  --primary-dark: #a61d17;
  --accent: #f4b000;
  --accent-dark: #b26b00;
  --danger: #8f1d17;
  --sidebar: #3a1612;
  --sidebar-gradient:
    linear-gradient(
      160deg,
      rgba(58, 22, 18, .94) 0%,
      rgba(166, 29, 23, .92) 48%,
      rgba(244, 176, 0, .92) 100%);
  --sidebar-text: #fff8df;
  --sidebar-small: #ffd66b;
  --nav-text: #fff4cc;
  --nav-hover-bg: rgba(58, 22, 18, .32);
  --button-shadow: rgba(74, 23, 18, .14);
  --secondary: #ffe8a6;
  --secondary-hover: #ffd66b;
  --secondary-text: #4a2a00;
  --label: #54342e;
  --focus-shadow: rgba(244, 176, 0, .22);
  --readonly-bg: #fffaf0;
  --table-header-bg: #fff4cc;
  --table-header-text: #7a2d20;
  --row-hover: #fffaf0;
  --status-bg: #fff4cc;
  --status-border: #ffd66b;
  --status-text: #7a2d20;
  --modal-backdrop: rgba(36, 24, 23, .48);
  --shadow-soft: rgba(74, 23, 18, .06);
  --shadow-strong: rgba(74, 23, 18, .16);
}
body[data-theme=forest] {
  --bg: #f4f7ef;
  --panel: #ffffff;
  --panel-soft: #eef7df;
  --text: #172315;
  --muted: #65705b;
  --line: #d8e5c7;
  --primary: #15803d;
  --primary-dark: #14532d;
  --accent: #ca8a04;
  --accent-dark: #854d0e;
  --danger: #b42318;
  --sidebar: #102a1c;
  --sidebar-gradient:
    linear-gradient(
      160deg,
      rgba(16, 42, 28, .96) 0%,
      rgba(20, 83, 45, .94) 50%,
      rgba(202, 138, 4, .88) 100%);
  --sidebar-text: #f1f8e8;
  --sidebar-small: #fde68a;
  --nav-text: #ecfccb;
  --nav-hover-bg: rgba(255, 255, 255, .13);
  --button-shadow: rgba(20, 83, 45, .14);
  --secondary: #dcfce7;
  --secondary-hover: #bbf7d0;
  --secondary-text: #14532d;
  --label: #2f4724;
  --focus-shadow: rgba(21, 128, 61, .2);
  --readonly-bg: #f7fee7;
  --table-header-bg: #dcfce7;
  --table-header-text: #14532d;
  --row-hover: #f7fee7;
  --status-bg: #fef3c7;
  --status-border: #fcd34d;
  --status-text: #713f12;
  --modal-backdrop: rgba(20, 35, 20, .48);
  --shadow-soft: rgba(35, 75, 30, .07);
  --shadow-strong: rgba(35, 75, 30, .18);
}
body[data-theme=graphite] {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-soft: #eef2f7;
  --text: #151922;
  --muted: #667085;
  --line: #d9dee7;
  --primary: #2563eb;
  --primary-dark: #111827;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --danger: #b42318;
  --sidebar: #111827;
  --sidebar-gradient:
    linear-gradient(
      160deg,
      rgba(17, 24, 39, .98) 0%,
      rgba(31, 41, 55, .96) 55%,
      rgba(37, 99, 235, .86) 100%);
  --sidebar-text: #f8fafc;
  --sidebar-small: #93c5fd;
  --nav-text: #e5e7eb;
  --nav-hover-bg: rgba(255, 255, 255, .12);
  --button-shadow: rgba(17, 24, 39, .16);
  --secondary: #e5e7eb;
  --secondary-hover: #d1d5db;
  --secondary-text: #111827;
  --label: #334155;
  --focus-shadow: rgba(37, 99, 235, .2);
  --readonly-bg: #f8fafc;
  --table-header-bg: #e5e7eb;
  --table-header-text: #111827;
  --row-hover: #eff6ff;
  --status-bg: #ffedd5;
  --status-border: #fdba74;
  --status-text: #9a3412;
  --modal-backdrop: rgba(17, 24, 39, .52);
  --shadow-soft: rgba(17, 24, 39, .08);
  --shadow-strong: rgba(17, 24, 39, .2);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  box-shadow: 0 2px 0 var(--button-shadow);
}
button:hover,
.button:hover {
  background: var(--primary-dark);
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
button.secondary {
  background: var(--secondary);
  color: var(--secondary-text);
}
button.secondary:hover {
  background: var(--secondary-hover);
}
button.danger {
  background: var(--danger);
}
button.danger:hover {
  background: #6f1712;
}
.icon-button-text {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}
.button-icon {
  display: inline-grid;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-shadow);
  outline: 0;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
label {
  display: grid;
  gap: 6px;
  color: var(--label);
  font-size: 13px;
  font-weight: 700;
}
.shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .18s ease;
}
.shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}
.sidebar {
  background: var(--sidebar-gradient), var(--sidebar);
  color: var(--sidebar-text);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  transition: padding .18s ease;
}
.sidebar.is-collapsed {
  padding: 18px 10px;
}
.sidebar-header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand.compact {
  color: var(--text);
}
.brand strong {
  display: block;
  line-height: 1.2;
}
.brand small,
.muted {
  color: var(--muted);
}
.sidebar .brand small {
  color: var(--sidebar-small);
}
.brand-logo {
  flex: 0 0 auto;
  height: 58px;
  object-fit: contain;
  width: 58px;
}
.sidebar .brand-logo {
  filter: drop-shadow(0 4px 8px var(--button-shadow));
}
.sidebar-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: none;
  color: var(--sidebar-text);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}
.sidebar-toggle:hover {
  background: var(--nav-hover-bg);
}
.sidebar.is-collapsed .brand {
  justify-content: center;
}
.sidebar.is-collapsed .brand-logo {
  height: 50px;
  width: 50px;
}
.sidebar.is-collapsed .brand-copy,
.sidebar.is-collapsed .sidebar-toggle-text,
.sidebar.is-collapsed .nav-group-text,
.sidebar.is-collapsed .nav-link-text {
  display: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #32120f;
  font-weight: 900;
}
nav {
  display: grid;
  gap: 14px;
}
.nav-section {
  display: grid;
  gap: 4px;
}
.nav-section + .nav-section {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 12px;
}
.nav-section-toggle {
  align-items: center;
  background: transparent;
  box-shadow: none;
  color: var(--sidebar-small);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  letter-spacing: .08em;
  min-height: 32px;
  padding: 0 12px 4px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}
.nav-section-toggle:hover {
  background: var(--nav-hover-bg);
  color: #ffffff;
}
.nav-chevron {
  display: inline-grid;
  flex: 0 0 18px;
  font-size: 14px;
  line-height: 1;
  place-items: center;
}
.nav-section-links {
  display: grid;
  gap: 4px;
}
nav a {
  align-items: center;
  border-radius: 6px;
  color: var(--nav-text);
  display: flex;
  gap: 9px;
  min-height: 40px;
  padding: 10px 12px;
}
nav a:hover {
  background: var(--nav-hover-bg);
  color: #ffffff;
}
.nav-link-mark {
  display: none;
}
.sidebar.is-collapsed .nav-section {
  justify-items: center;
}
.sidebar.is-collapsed .nav-section-toggle {
  justify-content: center;
  padding: 8px 6px;
}
.sidebar.is-collapsed .nav-chevron {
  flex-basis: auto;
}
.sidebar.is-collapsed nav a {
  justify-content: center;
  padding: 9px 6px;
  width: 100%;
}
.sidebar.is-collapsed .nav-link-mark {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  display: inline-grid;
  font-size: 11px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  letter-spacing: 0;
  width: 36px;
}
.content {
  min-width: 0;
  padding: 22px;
}
.topbar {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px var(--shadow-soft);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px var(--shadow-strong);
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}
.page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
h3 {
  font-size: 15px;
  margin: 14px 0 8px;
}
.page-header p {
  color: var(--muted);
  margin-top: 4px;
}
.page-header h1 {
  color: var(--primary-dark);
}
.panel,
.metric-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 30px var(--shadow-soft);
}
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}
.metric-grid strong {
  color: var(--primary);
  display: block;
  font-size: 30px;
  margin-top: 4px;
}
.split {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.record-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.record-form .wide {
  grid-column: span 2;
}
.record-form.requisition-form {
  grid-template-columns: repeat(15, minmax(0, 1fr));
}
.record-form.sample-register-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.record-form.tender-register-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.record-form.emd-register-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.requisition-form .span-3 {
  grid-column: span 3;
}
.requisition-form .span-5 {
  grid-column: span 5;
}
.requisition-form .span-15 {
  grid-column: 1 / -1;
}
.requisition-form .form-actions {
  grid-column: 1 / -1;
}
.tender-register-form .span-3 {
  grid-column: span 3;
}
.tender-register-form .span-6 {
  grid-column: span 6;
}
.tender-register-form .span-12 {
  grid-column: 1 / -1;
}
.tender-register-form .form-actions {
  grid-column: 1 / -1;
}
.emd-register-form .span-3 {
  grid-column: span 3;
}
.emd-register-form .span-6 {
  grid-column: span 6;
}
.emd-register-form .form-actions {
  grid-column: 1 / -1;
}
.sample-register-form .span-3 {
  grid-column: span 3;
}
.sample-register-form .span-4 {
  grid-column: span 4;
}
.sample-register-form .span-12 {
  grid-column: 1 / -1;
}
.sample-register-form .form-actions {
  grid-column: 1 / -1;
}
.form-actions {
  align-self: end;
  display: flex;
  gap: 8px;
}
.items-editor {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.sender-editor {
  grid-column: 1 / -1;
}
.sender-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.sender-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.sender-grid input,
.sender-grid select {
  min-height: 42px;
}
input[readonly] {
  background: var(--readonly-bg);
  color: var(--muted);
}
.lookup-select,
.lookup-filters {
  display: grid;
  gap: 8px;
}
.lookup-filters {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .6fr);
}
.item-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(72px, .45fr) minmax(260px, 2fr) minmax(140px, .9fr) minmax(108px, .7fr) minmax(108px, .7fr) minmax(140px, .9fr) minmax(96px, auto);
}
.item-row input,
.item-row select,
.item-row button {
  min-height: 42px;
}
.item-row button {
  padding-left: 12px;
  padding-right: 12px;
}
.item-head {
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-height: auto;
  text-transform: uppercase;
}
.item-entry {
  display: grid;
  gap: 10px;
}
.item-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(72px, .45fr) minmax(240px, 1.8fr) minmax(140px, .9fr) minmax(108px, .7fr) minmax(108px, .7fr) minmax(140px, .9fr) minmax(96px, auto);
}
.item-grid input,
.item-grid button {
  min-height: 42px;
}
.tender-item-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(72px, .45fr) minmax(260px, 1.7fr) minmax(140px, .9fr) minmax(108px, .7fr) minmax(108px, .7fr) minmax(96px, auto);
}
.tender-item-grid input,
.tender-item-grid button {
  min-height: 42px;
}
.sample-item-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(72px, .45fr) minmax(240px, 1.5fr) minmax(150px, .9fr) minmax(150px, .9fr) minmax(108px, .7fr) minmax(108px, .7fr) minmax(96px, auto);
}
.sample-item-grid input,
.sample-item-grid button {
  min-height: 42px;
}
.item-action {
  align-self: end;
}
.add-item {
  justify-self: start;
}
.table-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: 12px;
  text-transform: uppercase;
}
tbody tr:hover {
  background: var(--row-hover);
}
td {
  min-width: 132px;
}
td:first-child {
  min-width: 64px;
}
.select-column {
  min-width: 72px;
  text-align: center;
  width: 72px;
}
.row-selector {
  cursor: pointer;
  height: 18px;
  padding: 0;
  width: 18px;
}
.actions {
  display: flex;
  gap: 8px;
}
.modal-backdrop {
  align-items: start;
  background: var(--modal-backdrop);
  display: grid;
  inset: 0;
  overflow: auto;
  padding: 36px 18px;
  position: fixed;
  z-index: 20;
}
.view-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px var(--shadow-strong);
  justify-self: center;
  max-width: 920px;
  padding: 18px;
  width: min(920px, 100%);
}
.view-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.view-modal-header p {
  color: var(--muted);
  margin-top: 4px;
}
.view-actions {
  display: flex;
  gap: 8px;
}
.view-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  margin: 0;
}
.view-grid dt,
.view-grid dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 10px;
}
.view-grid dt {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-weight: 800;
}
.status {
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  border-radius: 999px;
  color: var(--status-text);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}
.ledger {
  display: grid;
  gap: 10px;
  margin: 0;
}
.ledger div {
  display: flex;
  justify-content: space-between;
}
.ledger dt {
  color: var(--muted);
}
.ledger dd {
  font-weight: 800;
  margin: 0;
}
.pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.error {
  color: var(--danger);
  font-weight: 700;
  margin-top: 10px;
}
.report-block + .report-block {
  margin-top: 12px;
}
.report-page-header {
  margin-bottom: 16px;
}
.report-selector {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.report-choice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  box-shadow: 0 10px 24px var(--shadow-soft);
  color: var(--text);
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 13px;
  text-align: left;
}
.report-choice:hover,
.report-choice.active {
  background: var(--panel);
  border-left-color: var(--primary);
  color: var(--text);
}
.report-choice.active {
  box-shadow: 0 12px 28px var(--shadow-strong);
}
.report-choice strong {
  color: var(--primary-dark);
  font-size: 14px;
}
.report-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.report-controls {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.report-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.report-filter-fields label {
  min-width: 142px;
}
.report-filter-fields select,
.report-filter-fields input {
  min-height: 40px;
  padding: 8px 10px;
}
.report-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}
.report-control-actions .download.excel {
  background: #15803d;
}
.report-control-actions .download.excel:hover {
  background: #14532d;
}
.report-control-actions .download.pdf {
  background: #b42318;
}
.report-control-actions .download.pdf:hover {
  background: #7a271a;
}
.official-report {
  background: #fff;
  border: 1px solid #ccd6e1;
  border-radius: 4px;
  box-shadow: 0 14px 35px var(--shadow-soft);
  color: #1f2937;
  font-family:
    Arial,
    "Segoe UI",
    sans-serif;
  margin-bottom: 20px;
  padding: 24px 26px 18px;
}
.official-report-header {
  align-items: center;
  border-bottom: 2px solid #163b63;
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-bottom: 11px;
  position: relative;
}
.official-report-header img {
  height: 58px;
  left: 0;
  object-fit: contain;
  position: absolute;
  width: 58px;
}
.official-report-header div {
  text-align: center;
}
.official-report-header h2 {
  color: #163b63;
  font-size: 20px;
  letter-spacing: .01em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.official-report-header p {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.official-report-title {
  padding: 15px 0 12px;
  text-align: center;
}
.official-report-title h3 {
  color: #163b63;
  font-size: 16px;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.official-report-title p {
  color: #475569;
  font-size: 11px;
  line-height: 1.6;
}
.report-summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}
.report-summary-cards div {
  background: #e8f1f8;
  border: 1px solid #ccd6e1;
  border-radius: 4px;
  display: grid;
  gap: 5px;
  min-width: 185px;
  padding: 9px 12px;
}
.report-summary-cards span {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.report-summary-cards strong {
  color: #163b63;
  font-size: 17px;
}
.report-table-scroll {
  overflow-x: auto;
  width: 100%;
}
.formal-report-table th {
  background: #163b63;
  color: #fff;
  font-family:
    Arial,
    "Segoe UI",
    sans-serif;
  font-size: 11px;
  line-height: 1.3;
  padding: 10px 9px;
}
.formal-report-table td {
  border-bottom: 1px solid #d6e0ea;
  font-family:
    Arial,
    "Segoe UI",
    sans-serif;
  font-size: 11px;
  line-height: 1.45;
  min-width: 100px;
  padding: 9px;
}
.formal-report-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.formal-report-table tbody tr:hover {
  background: #edf5fb;
}
.formal-report-table .numeric-cell {
  text-align: right;
  white-space: nowrap;
}
.formal-report-table .report-empty {
  color: #64748b;
  padding: 22px;
  text-align: center;
}
.official-report-footer {
  border-top: 1px solid #cbd5e1;
  color: #64748b;
  display: flex;
  font-size: 10px;
  font-style: italic;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 9px;
}
.dashboard-header {
  align-items: flex-start;
}
.dashboard-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.dashboard-actions label {
  min-width: 140px;
}
.dashboard-actions input {
  min-height: 38px;
  padding: 8px 10px;
}
.dashboard-tabs,
.mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dashboard-tabs button,
.mini-tabs button {
  background: var(--secondary);
  box-shadow: none;
  color: var(--secondary-text);
  padding: 8px 12px;
}
.dashboard-tabs button.active,
.mini-tabs button.active {
  background: var(--primary);
  color: #fff;
}
.dashboard-module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}
.module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 14px;
}
.module-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 16px 34px var(--shadow-strong);
}
.module-card span,
.bar-meta span,
.activity-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.module-card strong {
  color: var(--primary);
  font-size: 32px;
  line-height: 1;
}
.module-card small,
.panel-heading p,
.activity-list small {
  color: var(--muted);
  line-height: 1.4;
}
.utility-card {
  border-left-color: var(--accent-dark);
}
.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}
.chart-panel {
  display: grid;
  gap: 14px;
}
.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.panel-heading a {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}
.finance-bars,
.dual-chart,
.status-list,
.activity-list {
  display: grid;
  gap: 10px;
}
.dual-chart {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bar-row {
  display: grid;
  gap: 7px;
}
.bar-row.slim {
  gap: 6px;
}
.bar-meta,
.status-list div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.bar-meta strong,
.status-list strong {
  color: var(--primary-dark);
}
.bar-track,
.stacked-bar {
  background: var(--table-header-bg);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.bar-row.slim .bar-track {
  height: 9px;
}
.bar-track span {
  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent));
  display: block;
  height: 100%;
}
.stacked-bar {
  display: flex;
  height: 18px;
}
.stacked-bar span {
  display: block;
  min-width: 4px;
}
.dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}
.status-list.compact div {
  justify-content: flex-start;
}
.status-list.compact strong {
  margin-left: auto;
}
.donut-wrap {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 150px minmax(0, 1fr);
}
.donut {
  align-items: center;
  border-radius: 50%;
  display: grid;
  height: 140px;
  justify-items: center;
  position: relative;
  width: 140px;
}
.donut::after {
  background: var(--panel);
  border-radius: 50%;
  content: "";
  height: 82px;
  position: absolute;
  width: 82px;
}
.donut span {
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.activity-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}
.activity-list a:hover {
  background: var(--row-hover);
}
.activity-list strong {
  color: var(--text);
}
.overview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  margin-bottom: 22px;
  padding: 16px;
}
.overview-heading,
.section-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.overview-heading p,
.section-heading p {
  color: var(--muted);
  margin-top: 4px;
}
.total-entries {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: end;
  min-width: 130px;
  padding: 10px 14px;
}
.total-entries strong {
  color: var(--primary);
  font-size: 32px;
  line-height: 1;
}
.total-entries span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
  text-transform: uppercase;
}
.module-analytics-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.analytics-card {
  display: grid;
  gap: 16px;
}
.analytics-card-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.analytics-card-heading h2 {
  color: var(--primary-dark);
  margin: 4px 0 0;
}
.analytics-card-heading a {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}
.card-kicker,
.indicator-label {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-filter {
  align-items: end;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}
.card-filter label {
  min-width: 150px;
}
.card-filter input,
.card-filter select {
  min-height: 40px;
  padding: 8px 10px;
}
.card-filter-actions {
  display: flex;
  gap: 8px;
}
.indicator-primary {
  align-items: stretch;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
}
.indicator-primary > div:first-of-type {
  flex: 1 1 240px;
}
.indicator-primary > div:first-of-type strong {
  color: var(--primary);
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 6px 0;
}
.indicator-primary p {
  color: var(--muted);
  font-weight: 700;
}
.metric-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-width: 180px;
  padding: 12px;
}
.metric-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.metric-chip strong {
  color: var(--primary-dark);
  font-size: 20px;
}
.indicator-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.indicator-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 14px;
}
.indicator-panel h3 {
  color: var(--primary-dark);
  margin: 0;
}
.dashboard-pie {
  grid-template-columns: 128px minmax(0, 1fr);
}
.dashboard-pie .donut {
  height: 120px;
  width: 120px;
}
.dashboard-pie .donut::after {
  height: 70px;
  width: 70px;
}
.dashboard-pie .donut span {
  font-size: 24px;
}
.empty-state,
.loading-text {
  color: var(--muted);
  font-size: 13px;
}
.recent-panel {
  margin-top: 18px;
}
.new-dashboard-title {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.new-dashboard-title h1 {
  color: var(--primary-dark);
  margin: 7px 0 6px;
}
.new-dashboard-title p,
.cards-intro p {
  color: var(--muted);
}
.new-page-tag {
  color: var(--accent-dark);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.entry-summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  margin-bottom: 22px;
  padding: 18px;
}
.entry-summary-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.entry-summary-head h2,
.cards-intro h2 {
  color: var(--primary-dark);
  margin: 7px 0 0;
}
.grand-entry-count {
  background: var(--primary-dark);
  border-radius: 10px;
  color: #fff;
  display: grid;
  justify-items: end;
  min-width: 170px;
  padding: 12px 18px;
}
.grand-entry-count strong {
  font-size: 38px;
  line-height: 1;
}
.grand-entry-count span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 5px;
  text-transform: uppercase;
}
.entry-count-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.entry-count-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 12px;
}
.entry-count-card:hover {
  border-color: var(--accent);
}
.entry-count-card strong {
  color: var(--primary);
  font-size: 28px;
}
.entry-count-card span {
  color: var(--label);
  font-size: 12px;
  font-weight: 800;
}
.cards-intro {
  margin: 24px 0 16px;
}
.new-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(440px, 1fr));
}
.new-module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  display: grid;
  gap: 14px;
  padding: 16px;
}
.new-module-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.new-module-head h2 {
  color: var(--primary-dark);
  margin: 0 0 4px;
}
.new-module-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.new-module-head a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.module-filter-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 11px;
}
.module-filter-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.module-filter-fields label {
  font-size: 11px;
}
.module-filter-fields select,
.module-filter-fields input {
  min-height: 38px;
  padding: 7px 8px;
}
.module-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.module-filter-buttons button {
  font-size: 12px;
  padding: 8px 10px;
}
.module-filter-buttons button.current-filter {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.indicator-one {
  align-items: stretch;
  background: var(--panel-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 12px;
}
.indicator-one > div:first-child {
  flex: 1 1 210px;
}
.indicator-one > div:first-child span,
.indicator-tag {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.indicator-one > div:first-child strong {
  color: var(--primary);
  display: block;
  font-size: 38px;
  line-height: 1;
  margin: 6px 0;
}
.indicator-one p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.card-value-list {
  display: grid;
  gap: 7px;
  min-width: 160px;
}
.card-value-list div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 8px;
}
.card-value-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.card-value-list strong {
  color: var(--primary-dark);
  font-size: 15px;
}
.visual-indicators {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.visual-indicator {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 215px;
  padding: 11px;
}
.visual-indicator h3 {
  color: var(--primary-dark);
  font-size: 14px;
  margin: 0;
}
.new-bar {
  display: grid;
  gap: 5px;
}
.new-bar div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.new-bar div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.new-bar div:first-child strong {
  color: var(--primary-dark);
  font-size: 12px;
}
.new-bar-track {
  background: var(--table-header-bg);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.new-bar-track span {
  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent));
  display: block;
  height: 100%;
}
.pie-and-legend {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 94px minmax(0, 1fr);
}
.status-pie {
  border-radius: 50%;
  display: grid;
  height: 90px;
  place-items: center;
  position: relative;
  width: 90px;
}
.status-pie::after {
  background: var(--panel);
  border-radius: 50%;
  content: "";
  height: 54px;
  position: absolute;
  width: 54px;
}
.status-pie div {
  display: grid;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.status-pie strong {
  color: var(--primary-dark);
  font-size: 18px;
}
.status-pie small {
  color: var(--muted);
  font-size: 10px;
}
.pie-legend {
  display: grid;
  gap: 7px;
}
.pie-legend div {
  align-items: center;
  display: flex;
  gap: 5px;
}
.pie-legend span:not(.legend-dot) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pie-legend strong {
  color: var(--primary-dark);
  font-size: 11px;
  margin-left: auto;
}
.legend-dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 9px;
  height: 9px;
  width: 9px;
}
.dashboard-recent {
  margin-top: 20px;
}
.theme-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow-soft);
  display: grid;
  gap: 14px;
  padding: 16px;
}
.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 16px 34px var(--shadow-strong);
}
.theme-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.theme-card h2 {
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.theme-card p {
  color: var(--muted);
  line-height: 1.45;
}
.theme-swatches {
  display: flex;
  gap: 8px;
}
.theme-swatches span {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: block;
  height: 28px;
  width: 28px;
}
.theme-preview {
  border: 1px solid var(--theme-preview-line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 126px;
  overflow: hidden;
}
.theme-preview-sidebar {
  background: var(--theme-preview-sidebar);
}
.theme-preview-content {
  background: var(--theme-preview-bg);
  display: grid;
  gap: 10px;
  padding: 14px;
}
.theme-preview-content span {
  background: var(--theme-preview-panel);
  border: 1px solid var(--theme-preview-line);
  border-left: 4px solid var(--theme-preview-primary);
  border-radius: 6px;
  display: block;
}
.theme-preview-content span:nth-child(2) {
  border-left-color: var(--theme-preview-accent);
}
.theme-preview-content span:nth-child(3) {
  width: 70%;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
  }
  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar.is-collapsed nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid,
  .split,
  .record-form {
    grid-template-columns: 1fr;
  }
  .report-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .report-control-actions {
    justify-content: start;
  }
  .dashboard-module-grid,
  .dashboard-grid,
  .indicator-grid,
  .new-dashboard-grid,
  .visual-indicators,
  .entry-count-grid,
  .theme-grid,
  .dual-chart,
  .activity-list,
  .donut-wrap {
    grid-template-columns: 1fr;
  }
  .record-form .wide {
    grid-column: auto;
  }
  .requisition-form .span-3,
  .requisition-form .span-5,
  .requisition-form .span-15,
  .requisition-form .form-actions,
  .tender-register-form .span-3,
  .tender-register-form .span-6,
  .tender-register-form .span-12,
  .tender-register-form .form-actions,
  .emd-register-form .span-3,
  .emd-register-form .span-6,
  .emd-register-form .form-actions,
  .sample-register-form .span-3,
  .sample-register-form .span-4,
  .sample-register-form .span-12,
  .sample-register-form .form-actions {
    grid-column: auto;
  }
  .item-row {
    grid-template-columns: 1fr;
  }
  .item-grid {
    grid-template-columns: 1fr;
  }
  .tender-item-grid {
    grid-template-columns: 1fr;
  }
  .sample-item-grid {
    grid-template-columns: 1fr;
  }
  .sender-grid {
    grid-template-columns: 1fr;
  }
  .view-modal-header {
    display: grid;
  }
  .view-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-actions {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .dashboard-actions label {
    min-width: min(100%, 180px);
  }
  .overview-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .total-entries {
    justify-items: start;
  }
  .card-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .card-filter label {
    min-width: 0;
  }
  .new-dashboard-title,
  .entry-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .grand-entry-count {
    justify-items: start;
  }
  .new-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .module-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .indicator-one {
    flex-direction: column;
  }
  .item-head {
    display: none;
  }
}
@media (max-width: 560px) {
  nav,
  .sidebar.is-collapsed nav {
    grid-template-columns: 1fr;
  }
  .report-selector {
    grid-template-columns: 1fr;
  }
  .official-report {
    padding: 16px 12px;
  }
  .official-report-header {
    align-items: center;
    flex-direction: column;
  }
  .official-report-header img {
    position: static;
  }
  .official-report-header h2 {
    font-size: 16px;
  }
  .official-report-footer {
    flex-direction: column;
    gap: 5px;
  }
  .module-filter-fields,
  .pie-and-legend {
    grid-template-columns: 1fr;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
