/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* CTOS UI Foundation — one language */
:root,
[data-theme="light"] {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --border: #d0d7de;
  --text: #0f1419;
  --muted: #57606a;
  --faint: #8b949e;
  --accent: #0969da;
  --good: #1a7f37;
  --bad: #cf222e;
  --warn: #9a6700;
  --info: #0969da;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --sidebar-w: 168px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius: 12px;
  --fs-page: 22px;
  --fs-section: 15px;
  --fs-body: 13px;
  --fs-meta: 11px;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #15202b;
  --surface-2: #1b2836;
  --border: #38444d;
  --text: #e7e9ea;
  --muted: #8b98a5;
  --faint: #657786;
  --accent: #1d9bf0;
  --good: #00ba7c;
  --bad: #f4212e;
  --warn: #ffad1f;
  --info: #1d9bf0;
  --nav-bg: rgba(21, 32, 43, 0.94);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  transition: background 0.15s ease, color 0.15s ease;
}

a {
  color: var(--accent);
}

h1 {
  font-size: var(--fs-page);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2,
.ctos-section-title {
  font-size: var(--fs-section);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

/* Tables */
.ctos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.ctos-table th {
  color: var(--muted);
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: color-mix(in srgb, var(--text) 4.5%, var(--surface));
}

.ctos-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.ctos-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.ctos-table tfoot td,
.ctos-table .ctos-total td {
  font-weight: 700;
}

.ctos-statement {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.ctos-statement td {
  border: none;
  vertical-align: baseline;
}
.ctos-statement-paper {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Buttons — four kinds */
.ctos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
}
.ctos-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ctos-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ctos-btn-primary:hover {
  filter: brightness(1.05);
}
.ctos-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.ctos-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.ctos-btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.ctos-btn-outline:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.ctos-btn-danger {
  background: var(--bad);
  color: #fff;
  border-color: var(--bad);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

@media (min-width: 901px) {
  .ctos-sidebar {
    transform: none !important;
  }
}

.batch-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.batch-ledger {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.batch-actions {
  grid-column: 2;
  grid-row: 1;
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
}
.batch-actions > section,
.batch-ledger > section {
  margin-bottom: 0;
}

.batch-side-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.supply-lines-table {
  width: 100%;
}
.supply-lines-table th,
.supply-lines-table td {
  padding: 8px 10px;
}
.supply-lines-table th.col-actions,
.supply-lines-table td.col-actions {
  width: 120px;
  white-space: nowrap;
}
.supply-lines-table td.col-assay {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .batch-workspace {
    grid-template-columns: 1fr;
  }
  .batch-actions,
  .batch-ledger {
    grid-column: auto;
    grid-row: auto;
  }
  .batch-actions {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .ctos-sidebar {
    transform: translateX(-105%);
    width: 168px !important;
    transition: transform 0.2s ease;
  }
  .ctos-shell[data-drawer="open"] .ctos-sidebar {
    transform: translateX(0);
  }
  .ctos-main-column {
    margin-left: 0 !important;
  }
  .ctos-mobile-menu {
    display: inline-flex !important;
  }
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-body);
  padding: 8px 10px;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  font-family: inherit;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2357606a' d='M1.2 1.4 6 6.2 10.8 1.4 12 2.6 6 8.6 0 2.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  padding-right: 28px !important;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b98a5' d='M1.2 1.4 6 6.2 10.8 1.4 12 2.6 6 8.6 0 2.6z'/%3E%3C/svg%3E");
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.65;
}

input[type="date"] {
  width: 148px;
  max-width: 100%;
  min-width: 132px;
}

.ctos-page-slot > * {
  width: 100%;
  box-sizing: border-box;
}

.ctos-main-column main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ctos-main-column main.ctos-page-center {
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ctos-main-column main.ctos-page-form {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ctos-main-column main.ctos-page-form-wide {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ctos-desk-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.ctos-desk-status-kpis {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}

.ctos-desk {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
  flex: 1 1;
  min-height: 0;
}
.ctos-desk-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.ctos-desk-right > .ctos-desk-panel {
  flex: 1 1;
  min-height: 0;
}
.ctos-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  flex-shrink: 0;
}
.ctos-desk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  min-height: 0;
}
.ctos-desk-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.ctos-desk-scroll {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
}
.ctos-desk-scroll thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
@media (max-width: 1100px) {
  .ctos-desk { grid-template-columns: 1fr; min-height: 0; }
  .ctos-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ctos-kpi-row, .ctos-desk-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ctos-receive-top,
  .ctos-form-row-3,
  .ctos-form-row-2,
  .ctos-form-row-quick {
    grid-template-columns: 1fr !important;
  }
}

@keyframes ctos-shimmer {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}
.ctos-skeleton {
  animation: ctos-shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--border) 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
}

.ctos-scorecard {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.ctos-scorecard > div:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.ctos-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ctos-hint {
  color: var(--faint);
  font-size: var(--fs-meta);
  margin: 8px 0 0;
  line-height: 1.4;
}

@media print {
  .no-print,
  .ctos-sidebar,
  .ctos-mobile-menu,
  header {
    display: none !important;
  }
  .ctos-main-column {
    margin-left: 0 !important;
  }
  .batch-workspace {
    display: block !important;
  }
  .batch-actions {
    display: none !important;
  }
  .batch-ledger {
    display: block !important;
  }
  body,
  .ctos-shell {
    background: #fff !important;
    color: #111 !important;
  }
  .slip-pos {
    width: 80mm !important;
    border: none !important;
    box-shadow: none !important;
  }
  .slip-a4 {
    width: auto !important;
    border: none !important;
    box-shadow: none !important;
  }
}

