/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/styles.css ***!
  \************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --erp-bg: #eef3f8;
  --erp-surface: #ffffff;
  --erp-surface-soft: #f8fafc;
  --erp-border: #d7e1ec;
  --erp-text: #132238;
  --erp-muted: #64748b;
  --erp-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --company-primary: #1d4ed8;
  --company-accent: #f97316;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--erp-bg);
  color: var(--erp-text);
}

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

button, input, select, textarea {
  font: inherit;
}

.erpShell49 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, .12), transparent 32rem),
    linear-gradient(180deg, #f8fbff, var(--erp-bg));
}

.erpSidebar49 {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #0f172a;
  color: #e5edf7;
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.erpBrand49 {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 14px;
}

.erpLogo49 {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--company-primary), var(--company-accent));
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

.erpBrand49 strong {
  display: block;
  font-size: 16px;
}

.erpBrand49 span {
  display: block;
  color: #aab7ca;
  font-size: 12px;
  margin-top: 3px;
}

.erpNav49 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.erpNavGroup49 {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.erpNavGroupButton49 {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d7e3f2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px;
  font-weight: 700;
  text-align: left;
}

.erpNavGroupButton49:hover,
.erpNavGroupButton49.active49 {
  background: rgba(255,255,255,.07);
  color: #ffffff;
}

.erpChevron49 {
  font-size: 22px;
  transform: rotate(0deg);
  transition: transform .18s ease;
  line-height: 1;
}

.erpChevron49.open49 {
  transform: rotate(90deg);
}

.erpNavItems49 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 10px;
}

.erpNavItem49 {
  min-height: 38px;
  border-radius: 11px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #c8d4e5;
  border: 1px solid transparent;
}

.erpNavItem49:hover {
  color: white;
  background: rgba(255,255,255,.07);
}

.erpNavItem49.active49 {
  color: white;
  background: linear-gradient(135deg, var(--company-primary), #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}

.erpNavItem49.disabled49 {
  opacity: .5;
  cursor: not-allowed;
}

.erpNavItem49 small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255,255,255,.12);
}

.erpMain49 {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.erpTopbar49 {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--erp-border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
}

.erpMobileMenu49 {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--erp-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-size: 22px;
}

.erpTopbarTitle49 {
  flex: 1 1;
  min-width: 0;
}

.erpTopbarTitle49 strong {
  display: block;
  font-size: 18px;
}

.erpTopbarTitle49 span {
  display: block;
  color: var(--erp-muted);
  font-size: 13px;
  margin-top: 3px;
}

.erpCompanyBox49 {
  border: 1px solid var(--erp-border);
  background: white;
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 210px;
}

.erpCompanyBox49 span {
  display: block;
  font-size: 11px;
  color: var(--erp-muted);
}

.erpCompanyBox49 strong {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.erpContent49 {
  width: 100%;
  max-width: 1420px;
  padding: 24px;
}

.erpPageHeader49 {
  margin-bottom: 20px;
}

.erpEyebrow49 {
  color: var(--company-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 8px;
}

.erpPageHeader49 h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.erpLead49 {
  max-width: 880px;
  color: var(--erp-muted);
  line-height: 1.6;
  margin: 10px 0 0;
}

.erpGrid49 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.erpCard49 {
  grid-column: span 4;
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--erp-shadow);
  min-width: 0;
}

.erpCard49.wide49 { grid-column: span 8; }
.erpCard49.full49 { grid-column: 1 / -1; }

.erpCard49 h2,
.erpCard49 h3 {
  margin: 0 0 8px;
}

.erpCard49 p {
  color: var(--erp-muted);
  line-height: 1.55;
}

.erpMetric49 {
  font-size: 34px;
  font-weight: 800;
  margin-top: 10px;
}

.erpActions49 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.erpButton49 {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--company-primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.erpButton49.secondary49 {
  background: white;
  color: var(--erp-text);
  border-color: var(--erp-border);
}

.erpTableWrap49 {
  overflow-x: auto;
  border: 1px solid var(--erp-border);
  border-radius: 16px;
  background: white;
}

.erpTable49 {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.erpTable49 th,
.erpTable49 td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--erp-border);
  text-align: left;
  vertical-align: top;
}

.erpTable49 th {
  background: var(--erp-surface-soft);
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.erpStatus49 {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
}

.erpFormGrid49 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.erpField49 label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.erpField49 input,
.erpField49 select,
.erpField49 textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--erp-border);
  border-radius: 12px;
  background: white;
  padding: 10px 12px;
  font-size: 16px;
}

.erpMuted49 { color: var(--erp-muted); }
.erpList49 { margin: 0; padding-left: 20px; line-height: 1.8; }

@media (max-width: 1100px) {
  .erpShell49 { grid-template-columns: 1fr; }
  .erpMobileMenu49 { display: inline-grid; place-items: center; }
  .erpSidebar49 {
    position: fixed;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(88vw, 320px);
  }
  .erpSidebar49.isOpen49 { transform: translateX(0); }
  .erpContent49 { padding: 18px; }
  .erpCompanyBox49 { display: none; }
}

@media (max-width: 820px) {
  .erpCard49, .erpCard49.wide49 { grid-column: 1 / -1; }
  .erpFormGrid49 { grid-template-columns: 1fr; }
  .erpTopbarTitle49 span { display: none; }
}

@media (max-width: 480px) {
  .erpContent49 { padding: 14px; }
  .erpTopbar49 { padding: 10px 12px; }
  .erpCard49 { border-radius: 16px; padding: 14px; }
}

/* HOTFIX 05.0 - ERP finance/admin shell */
.erp-shell-v50 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background: #f3f6fb;
  color: #172033;
}
.erp-sidebar-v50 {
  background: #101827;
  color: #e9eef9;
  min-height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;
}
.erp-brand-v50 { display:flex; gap:12px; align-items:center; padding:10px 8px 18px; }
.erp-brand-mark-v50 { width:42px; height:42px; border-radius:14px; background:linear-gradient(135deg,#2f6bff,#56d5ff); display:grid; place-items:center; font-weight:800; color:white; }
.erp-brand-v50 strong { display:block; font-size:15px; }
.erp-brand-v50 span { display:block; color:#94a3b8; font-size:12px; margin-top:2px; }
.erp-company-v50 { margin:0 4px 16px; padding:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:16px; }
.erp-company-v50 span { display:block; color:#9fb0c9; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.erp-company-v50 strong { display:block; margin-top:4px; font-size:14px; }
.erp-nav-v50 { display:flex; flex-direction:column; gap:10px; }
.erp-nav-group-v50 { display:block; }
.erp-nav-group-button-v50 { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; color:#b8c6dd; cursor:pointer; padding:10px 10px; border-radius:12px; font-weight:700; text-align:left; }
.erp-nav-group-button-v50:hover, .erp-nav-group-button-v50.active { background:rgba(255,255,255,.08); color:#fff; }
.erp-chevron-v50 { opacity:.75; font-size:18px; }
.erp-nav-items-v50 { display:flex; flex-direction:column; gap:4px; padding:4px 0 0 8px; }
.erp-nav-link-v50 { display:block; text-decoration:none; color:#d8e1f0; padding:10px 12px; border-radius:12px; font-size:14px; line-height:1.2; }
.erp-nav-link-v50:hover { background:rgba(255,255,255,.08); color:#fff; }
.erp-nav-link-v50.active { background:#2f6bff; color:#fff; box-shadow:0 10px 24px rgba(47,107,255,.25); }
.erp-main-v50 { min-width:0; }
.erp-header-v50 { position:-webkit-sticky; position:sticky; top:0; z-index:10; min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; background:rgba(255,255,255,.88); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid #dfe6f1; }
.erp-header-v50 strong { display:block; font-size:16px; }
.erp-header-v50 span { display:block; color:#66758d; font-size:13px; margin-top:2px; }
.erp-header-actions-v50 { display:flex; gap:10px; align-items:center; }
.erp-header-actions-v50 button, .erp-mobile-menu-v50 { border:1px solid #d8e1ee; background:#fff; color:#172033; border-radius:12px; padding:10px 12px; cursor:pointer; font-weight:700; }
.erp-content-v50 { padding:24px; max-width:1500px; margin:0 auto; }
.v47-page-section { display:flex; flex-direction:column; gap:20px; }
.v47-page-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; background:#fff; border:1px solid #dde6f2; border-radius:22px; padding:22px; box-shadow:0 18px 40px rgba(15,23,42,.06); }
.v47-page-head h1 { margin:4px 0 8px; font-size:30px; line-height:1.1; }
.v47-page-head p { margin:0; color:#66758d; line-height:1.55; }
.v47-kicker { margin:0 !important; color:#2f6bff !important; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.v47-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); grid-gap:18px; gap:18px; }
.v47-card { background:#fff; border:1px solid #dde6f2; border-radius:20px; padding:20px; box-shadow:0 14px 32px rgba(15,23,42,.05); }
.v47-card h2 { margin:0 0 10px; font-size:18px; }
.v47-card p { color:#66758d; line-height:1.55; }
.v47-clean-list { margin:0; padding-left:18px; color:#334155; line-height:1.85; }
.erp-mobile-menu-v50 { display:none; }
.erp-backdrop-v50 { display:none; }
@media (max-width: 980px) {
  .erp-shell-v50 { grid-template-columns:1fr; }
  .erp-sidebar-v50 { position:fixed; inset:0 auto 0 0; width:min(86vw,320px); z-index:50; transform:translateX(-105%); transition:transform .2s ease; }
  .erp-sidebar-v50.is-open { transform:translateX(0); }
  .erp-backdrop-v50 { display:block; position:fixed; inset:0; z-index:40; background:rgba(15,23,42,.48); border:0; }
  .erp-mobile-menu-v50 { display:inline-flex; }
  .erp-header-v50 { padding:12px 14px; }
  .erp-header-actions-v50 { display:none; }
  .erp-content-v50 { padding:14px; }
  .v47-page-head { border-radius:18px; padding:18px; }
  .v47-page-head h1 { font-size:24px; }
}
/* ERP HOTFIX 05.6 - clean sidebar repair */
:root {
  --erpfix-bg: #eef3f8;
  --erpfix-sidebar: #0f172a;
  --erpfix-sidebar-2: #111c33;
  --erpfix-text: #0f172a;
  --erpfix-muted: #64748b;
  --erpfix-card: #ffffff;
  --erpfix-line: #d7e0ea;
  --erpfix-primary: #2563eb;
  --erpfix-primary-dark: #1d4ed8;
  --erpfix-primary-soft: #dbeafe;
}

html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--erpfix-bg);
  color: var(--erpfix-text);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.erpfix-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background: linear-gradient(180deg, #f8fafc 0%, var(--erpfix-bg) 100%);
}

.erpfix-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--erpfix-sidebar);
  color: #e5edf7;
  padding: 18px 14px;
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.16);
  z-index: 30;
}

.erpfix-brand { display: flex; gap: 12px; align-items: center; padding: 8px 8px 18px; }
.erpfix-logo {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: white; font-weight: 800; letter-spacing: .04em;
}
.erpfix-brand-title { font-size: 17px; font-weight: 800; }
.erpfix-brand-subtitle { margin-top: 2px; color: #93a4bb; font-size: 12px; }

.erpfix-company-box {
  margin: 0 4px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.erpfix-company-box span { color: #a7b5c8; font-size: 12px; }
.erpfix-company-box strong { color: #fff; }

.erpfix-nav { display: flex; flex-direction: column; gap: 10px; }
.erpfix-nav-group {
  border: 1px solid rgba(148, 163, 184, .17);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.erpfix-nav-heading {
  width: 100%; border: 0; background: transparent; color: #e5edf7;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 13px; cursor: pointer; font-weight: 800; text-align: left;
}
.erpfix-nav-heading:hover { background: rgba(255,255,255,.06); }
.erpfix-chevron { color: #93c5fd; font-size: 18px; line-height: 1; }
.erpfix-nav-items { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.erpfix-nav-link {
  display: block; width: 100%; padding: 10px 12px; border-radius: 12px;
  color: #cbd5e1; font-size: 14px; line-height: 1.25;
}
.erpfix-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.erpfix-nav-link.active {
  background: linear-gradient(135deg, var(--erpfix-primary), var(--erpfix-primary-dark));
  color: white;
  box-shadow: 0 10px 20px rgba(37,99,235,.25);
}

.erpfix-main-wrap { min-width: 0; display: flex; flex-direction: column; }
.erpfix-topbar {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--erpfix-line);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 20;
}
.erpfix-page-kicker { font-size: 12px; color: var(--erpfix-muted); text-transform: uppercase; letter-spacing: .08em; }
.erpfix-page-title { margin-top: 2px; font-size: 18px; font-weight: 800; color: var(--erpfix-text); }
.erpfix-top-actions { display: flex; gap: 10px; align-items: center; }
.erpfix-pill { padding: 7px 10px; border-radius: 999px; background: var(--erpfix-primary-soft); color: var(--erpfix-primary-dark); font-weight: 800; font-size: 12px; }
.erpfix-user { color: var(--erpfix-muted); font-weight: 700; }
.erpfix-menu-btn { display: none; border: 1px solid var(--erpfix-line); background: white; border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.erpfix-content { min-width: 0; padding: 28px; }

.page, .erp-page { max-width: 1220px; margin: 0 auto; }
.hero, .erp-hero {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white; border-radius: 24px; padding: 28px;
  box-shadow: 0 18px 44px rgba(37,99,235,.22);
}
.grid, .erp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-gap: 18px; gap: 18px; margin-top: 20px; }
.card, .erp-card {
  background: var(--erpfix-card); border: 1px solid var(--erpfix-line); border-radius: 20px;
  padding: 20px; box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.card h2, .erp-card h2 { margin-top: 0; }
.card pre, .erp-card pre {
  max-width: 100%; overflow: auto; background: #0b1220; color: #dbeafe; padding: 14px; border-radius: 14px; font-size: 12px;
}

.erpfix-backdrop { display: none; }

@media (max-width: 980px) {
  .erpfix-shell { grid-template-columns: 1fr; }
  .erpfix-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%); width: min(86vw, 320px);
    transition: transform .2s ease;
  }
  .erpfix-sidebar.is-open { transform: translateX(0); }
  .erpfix-backdrop { display: block; position: fixed; inset: 0; border: 0; background: rgba(15,23,42,.48); z-index: 25; }
  .erpfix-menu-btn { display: inline-flex; }
  .erpfix-topbar { padding: 12px 16px; }
  .erpfix-content { padding: 18px 14px; }
  .erpfix-top-actions { display: none; }
}

@media (max-width: 560px) {
  .hero, .erp-hero { border-radius: 18px; padding: 20px; }
  .hero h1, .erp-hero h1 { font-size: 28px; }
  .grid, .erp-grid { grid-template-columns: 1fr; }
}

/* HOTFIX_05_7_FINANCE_FORMS */
.erp-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.erp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-field label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.erp-field input,
.erp-field select,
.erp-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7dee9;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}

.erp-field textarea {
  min-height: 88px;
  resize: vertical;
}

.erp-col-2 { grid-column: span 2; }
.erp-col-3 { grid-column: span 3; }
.erp-col-4 { grid-column: span 4; }
.erp-col-5 { grid-column: span 5; }
.erp-col-6 { grid-column: span 6; }
.erp-col-8 { grid-column: span 8; }
.erp-col-12 { grid-column: span 12; }

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

.erp-btn {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #0f62fe;
  color: #fff;
}

.erp-btn.secondary {
  background: #eef2f7;
  color: #0f172a;
}

.erp-alert {
  border: 1px solid #d7dee9;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #334155;
  margin: 14px 0;
}

.erp-alert.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.erp-alert.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.erp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.erp-table th,
.erp-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.erp-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  background: #f8fafc;
}

.erp-muted {
  color: #64748b;
  font-size: 13px;
}

.erp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2ff;
  color: #3730a3;
}

@media (max-width: 900px) {
  .erp-form-grid { grid-template-columns: 1fr; }
  .erp-col-2,
  .erp-col-3,
  .erp-col-4,
  .erp-col-5,
  .erp-col-6,
  .erp-col-8,
  .erp-col-12 { grid-column: span 1; }
}

/* Hotfix 05.9 - finance forms/table polish, intentionally scoped */
.finance-form-v59 { display: block; }
.finance-grid-v59 {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}
.finance-form-card-v59, .finance-list-card-v59 { min-width: 0; }
.finance-form-card-v59 h2, .finance-list-card-v59 h2 { margin: 0 0 14px; }
.finance-form-card-v59 label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}
.finance-form-card-v59 input,
.finance-form-card-v59 select,
.finance-form-card-v59 textarea {
  width: 100%;
  border: 1px solid #d8e0ec;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #0f172a;
  outline: none;
}
.finance-form-card-v59 textarea { min-height: 82px; resize: vertical; }
.finance-form-card-v59 input:focus,
.finance-form-card-v59 select:focus,
.finance-form-card-v59 textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.erp-btn-v59 {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  min-height: 42px;
}
.erp-btn-v59.secondary { background: #eef4ff; color: #1e40af; border: 1px solid #c9d8ff; }
.erp-btn-v59:disabled { opacity: .65; cursor: not-allowed; }
.erp-ok-v59 { color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; padding: 10px 12px; border-radius: 12px; }
.erp-error-v59 { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 12px; }
.erp-muted-v59 { color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; padding: 14px; border-radius: 12px; }
.finance-list-head-v59 { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.finance-list-head-v59 span { color:#64748b; font-size: 13px; font-weight: 700; }
.erp-table-wrap-v59 { overflow-x:auto; border:1px solid #e2e8f0; border-radius:14px; }
.erp-table-v59 { width:100%; border-collapse: collapse; min-width: 680px; background:#fff; }
.erp-table-v59 th, .erp-table-v59 td { text-align:left; padding: 12px 14px; border-bottom:1px solid #e2e8f0; font-size: 14px; }
.erp-table-v59 th { background:#f8fafc; color:#475569; font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.erp-table-v59 tr:last-child td { border-bottom:0; }
@media (max-width: 900px) { .finance-grid-v59 { grid-template-columns: 1fr; } .finance-list-head-v59 { align-items:flex-start; flex-direction:column; } }

/* === Hotfix 06.0 finance CRUD styles === */
.finance-crud-page { width: 100%; }
.finance-grid { display: grid; grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.35fr); grid-gap: 18px; gap: 18px; align-items: start; }
.finance-card { background: #fff; border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 18px; padding: 18px; box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06); }
.finance-card h2 { margin: 0 0 14px; font-size: 18px; color: #0f172a; }
.finance-card label { display: grid; grid-gap: 7px; gap: 7px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: #334155; }
.finance-card input, .finance-card select, .finance-card textarea, .finance-search { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 11px 12px; min-height: 44px; font-size: 15px; background: #fff; color: #0f172a; outline: none; }
.finance-card textarea { min-height: 84px; resize: vertical; }
.finance-card input:focus, .finance-card select:focus, .finance-card textarea:focus, .finance-search:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.finance-form-row { display: grid; grid-gap: 12px; gap: 12px; }
.finance-form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.finance-check { display: inline-flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 8px !important; margin: 0 !important; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; font-weight: 700; }
.finance-check input { width: 16px; min-height: 16px; height: 16px; padding: 0; }
.finance-success { margin: 12px 0 0; padding: 10px 12px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 12px; }
.finance-error { margin: 12px 0 0; padding: 10px 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; }
.finance-muted { color: #64748b; margin: 0 0 12px; }
.finance-list-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; }
.finance-search { max-width: 260px; }
.finance-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; }
.finance-table { width: 100%; border-collapse: collapse; min-width: 720px; background: white; }
.finance-table th, .finance-table td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; font-size: 14px; }
.finance-table th { background: #f8fafc; color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.finance-table tr:last-child td { border-bottom: 0; }
.finance-table tr.is-inactive td { color: #94a3b8; background: #f8fafc; }
.finance-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.finance-pill.ok { background: #dcfce7; color: #166534; }
.finance-pill.muted { background: #e2e8f0; color: #475569; }
.finance-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.finance-actions button { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 10px; padding: 7px 10px; font-weight: 800; cursor: pointer; }
.finance-actions button:hover { background: #eff6ff; border-color: #93c5fd; }
@media (max-width: 1100px) { .finance-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .finance-form-row.two { grid-template-columns: 1fr; } .finance-list-head { flex-direction: column; } .finance-search { max-width: none; } .finance-card { padding: 14px; } }
/* HOTFIX_06_1_EXPORT_PRINT */
.export-toolbar-v61 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.export-toolbar-v61__left,
.export-toolbar-v61__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.export-toolbar-v61__right {
  color: #64748b;
  font-size: 13px;
}

.export-toolbar-v61__right strong {
  color: #0f766e;
}

.btn-v61 {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-v61:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-v61:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.btn-v61--secondary {
  color: #0f172a;
  background: #e2e8f0;
}

.btn-v61--ghost {
  color: #334155;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

@media print {
  .app-sidebar-v47,
  .mobile-menu-v47,
  .export-toolbar-v61,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .app-main-v47,
  .page-shell-v47,
  main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
  }
}

@media (max-width: 720px) {
  .export-toolbar-v61 {
    align-items: stretch;
  }

  .export-toolbar-v61__left,
  .export-toolbar-v61__right {
    width: 100%;
  }

  .btn-v61 {
    flex: 1 1 140px;
  }
}

/* Hotfix 06.2 - Export toolbar */
.erp-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
}
.erp-export-toolbar button {
  border: 1px solid rgba(15, 23, 42, .14);
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}
.erp-export-toolbar button:hover {
  background: #f8fafc;
}
@media print {
  .no-print, .erp-sidebar, .erp-header, .v47-sidebar, .v47-header { display: none !important; }
  body { background: white !important; }
  main, .erp-main, .v47-main { margin: 0 !important; padding: 0 !important; }
}

/* HOTFIX_06_3_FINANCE_FORMS */
.erp-form-card { margin-bottom: 18px; }
.erp-form-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); grid-gap: 14px; gap: 14px; align-items: end; }
.erp-form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; }
.erp-form-grid input, .erp-form-grid select { width: 100%; min-height: 40px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 9px 11px; background: #fff; color: #0f172a; font-size: 14px; }
.erp-checkbox-line { flex-direction: row !important; align-items: center; gap: 8px !important; min-height: 40px; }
.erp-checkbox-line input { width: auto; min-height: auto; }
.erp-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.erp-form-actions button, .erp-actions-cell button, .erp-export-toolbar button { border: 0; border-radius: 12px; padding: 10px 13px; background: #0f62fe; color: #fff; font-weight: 800; cursor: pointer; }
.erp-form-actions button.secondary, .erp-actions-cell button.secondary { background: #e2e8f0; color: #0f172a; }
.erp-message { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #eef6ff; color: #0f172a; border: 1px solid #bfdbfe; }
.erp-list-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.erp-list-head input { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 9px 11px; min-width: 240px; }
.erp-table-wrap { width: 100%; overflow-x: auto; }
.erp-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.erp-table th, .erp-table td { border-bottom: 1px solid #e2e8f0; padding: 10px 9px; text-align: left; vertical-align: top; }
.erp-table th { font-size: 12px; color: #475569; text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.erp-actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.erp-export-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .erp-form-grid { grid-template-columns: 1fr; } .erp-list-head { align-items: stretch; flex-direction: column; } .erp-list-head input { min-width: 0; width: 100%; } }
@media print { .no-print, .erp-export-toolbar { display: none !important; } }

/* === ERP UI v1 foundation: modern, clean, quiet === */
:root {
  --erp-bg: #f6f8fb;
  --erp-surface: #ffffff;
  --erp-surface-soft: #f9fbfd;
  --erp-border: #dbe4ef;
  --erp-border-strong: #c8d3e1;
  --erp-text: #111827;
  --erp-muted: #64748b;
  --erp-muted-2: #94a3b8;
  --erp-primary: #1f6feb;
  --erp-primary-strong: #1d4ed8;
  --erp-primary-soft: #eaf2ff;
  --erp-success: #17803d;
  --erp-success-soft: #e9f8ef;
  --erp-warning: #a16207;
  --erp-warning-soft: #fff7dc;
  --erp-danger: #b42318;
  --erp-danger-soft: #fff0ee;
  --erp-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  --erp-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
  --erp-radius: 16px;
  --erp-radius-sm: 10px;
  --erp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  background: var(--erp-bg);
  color: var(--erp-text);
  font-family: var(--erp-font);
}

.erp-page,
.erp-page-v1 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.erp-page-header,
.erp-page-head-v47 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 6px;
}

.erp-kicker,
.erp-kicker-v47 {
  margin: 0 0 6px;
  color: var(--erp-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.erp-title,
.erp-page-header h1,
.erp-page-head-v47 h1 {
  margin: 0;
  color: var(--erp-text);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.erp-subtitle,
.erp-page-header p,
.erp-page-head-v47 p:not(.erp-kicker-v47) {
  margin: 7px 0 0;
  max-width: 860px;
  color: var(--erp-muted);
  font-size: 14px;
  line-height: 1.55;
}

.erp-card,
.erp-panel-v47,
.erp-card-v47,
.card,
.v47-card {
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  box-shadow: var(--erp-shadow-soft);
  padding: 18px;
}

.erp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.erp-card-title {
  margin: 0;
  color: var(--erp-text);
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.01em;
}

.erp-card-description {
  margin: 5px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.erp-form,
.erp-form-grid,
.finance-form-card-v59 form,
.erp-panel-v47 form,
form.erp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.erp-field,
.erp-panel-v47 label,
.erp-card label,
.card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--erp-text);
  font-size: 13px;
  font-weight: 650;
}

.erp-input,
.erp-select,
.erp-textarea,
.erp-panel-v47 input,
.erp-panel-v47 select,
.erp-panel-v47 textarea,
.erp-card input,
.erp-card select,
.erp-card textarea,
.card input,
.card select,
.card textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--erp-border-strong);
  border-radius: 11px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.erp-textarea,
.erp-panel-v47 textarea,
.erp-card textarea,
.card textarea { min-height: 88px; resize: vertical; }

.erp-input:focus,
.erp-select:focus,
.erp-textarea:focus,
.erp-panel-v47 input:focus,
.erp-panel-v47 select:focus,
.erp-panel-v47 textarea:focus,
.erp-card input:focus,
.erp-card select:focus,
.erp-card textarea:focus,
.card input:focus,
.card select:focus,
.card textarea:focus {
  border-color: var(--erp-primary);
  box-shadow: 0 0 0 3px var(--erp-primary-soft);
}

.erp-toolbar,
.erp-actions,
.erp-form-actions,
.erp-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.erp-button,
button.erp-button,
.erp-panel-v47 button,
.erp-card button,
.card button,
.v47-card button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 40px;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
  background: var(--erp-surface);
  color: var(--erp-text);
  box-shadow: none;
}

.erp-button:hover,
.erp-panel-v47 button:hover,
.erp-card button:hover,
.card button:hover,
.v47-card button:hover { transform: translateY(-1px); }

.erp-button-primary,
.erp-panel-v47 button[type="submit"],
.erp-card button[type="submit"],
.card button[type="submit"] {
  background: var(--erp-primary);
  border-color: var(--erp-primary);
  color: #fff;
}

.erp-button-primary:hover,
.erp-panel-v47 button[type="submit"]:hover,
.erp-card button[type="submit"]:hover,
.card button[type="submit"]:hover {
  background: var(--erp-primary-strong);
  border-color: var(--erp-primary-strong);
  box-shadow: 0 10px 20px rgba(31, 111, 235, .18);
}

.erp-button-secondary,
.erp-panel-v47 button:not([type="submit"]),
.erp-card button:not([type="submit"]),
.card button:not([type="submit"]) {
  background: var(--erp-surface);
  border-color: var(--erp-border-strong);
  color: var(--erp-text);
}

.erp-button-secondary:hover,
.erp-panel-v47 button:not([type="submit"]):hover,
.erp-card button:not([type="submit"]):hover,
.card button:not([type="submit"]):hover {
  background: var(--erp-surface-soft);
  border-color: var(--erp-primary);
}

.erp-button-danger {
  background: var(--erp-danger-soft);
  border-color: #ffd0ca;
  color: var(--erp-danger);
}

.erp-button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--erp-muted);
}

.erp-button-sm { min-height: 34px; padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.erp-button-lg { min-height: 46px; padding: 11px 18px; font-size: 15px; }

.erp-table-wrap,
.erp-table-wrap-v59 {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  background: var(--erp-surface);
}

.erp-table,
.erp-table-v59,
table.erp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--erp-text);
  font-size: 13px;
}

.erp-table th,
.erp-table-v59 th,
table.erp-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #334155;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 13px;
  border-bottom: 1px solid var(--erp-border);
  white-space: nowrap;
}

.erp-table td,
.erp-table-v59 td,
table.erp-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.erp-table tbody tr:hover,
.erp-table-v59 tbody tr:hover,
table.erp-table tbody tr:hover { background: #f9fbfd; }

.erp-table tbody tr:last-child td,
.erp-table-v59 tbody tr:last-child td,
table.erp-table tbody tr:last-child td { border-bottom: 0; }

.erp-empty-cell { color: var(--erp-muted); text-align: center; padding: 22px !important; }

.erp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--erp-border);
  background: #f8fafc;
  color: #475569;
  white-space: nowrap;
}

.erp-badge-success { background: var(--erp-success-soft); border-color: #bde9cb; color: var(--erp-success); }
.erp-badge-warning { background: var(--erp-warning-soft); border-color: #f4daa3; color: var(--erp-warning); }
.erp-badge-danger { background: var(--erp-danger-soft); border-color: #ffd0ca; color: var(--erp-danger); }
.erp-badge-neutral { background: #f8fafc; border-color: var(--erp-border); color: #475569; }

.finance-grid-v59,
.erp-grid-v1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
}

@media (max-width: 760px) {
  .erp-page-header,
  .erp-page-head-v47,
  .erp-card-header { flex-direction: column; align-items: stretch; }
  .erp-form,
  .erp-form-grid,
  .finance-form-card-v59 form,
  .erp-panel-v47 form { grid-template-columns: 1fr; }
}
/* === /ERP UI v1 foundation === */

/* ERP UI hard checkbox compact override 08.4 START */
/* Compact checkbox/radio styling. This block is intentionally at the end of styles.css. */
input[type="checkbox"],
input[type="radio"],
.erp-checkbox input[type="checkbox"],
.erp-checkbox input[type="radio"],
label input[type="checkbox"],
label input[type="radio"],
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
  border-radius: 4px !important;
  vertical-align: middle !important;
  accent-color: #2563eb !important;
  box-shadow: none !important;
  transform: none !important;
}

.erp-checkbox,
.erp-check,
.form-check,
label.erp-checkbox,
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 24px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #334155 !important;
}

.erp-checkbox strong,
.erp-check strong,
.form-check strong,
label:has(input[type="checkbox"]) strong,
label:has(input[type="radio"]) strong {
  font-weight: 500 !important;
}

.erp-form input[type="checkbox"],
.erp-form input[type="radio"],
.erp-card input[type="checkbox"],
.erp-card input[type="radio"],
.erp-panel-v47 input[type="checkbox"],
.erp-panel-v47 input[type="radio"],
.finance-form-card-v59 input[type="checkbox"],
.finance-form-card-v59 input[type="radio"] {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
}
/* ERP UI hard checkbox compact override 08.4 END */

/* === ERP Hotfix 08.5: checkbox stack cleanup === */
.erp-check-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-gap: 10px !important;
  gap: 10px !important;
  align-items: start !important;
  justify-items: start !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.erp-check-row label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--erp-text) !important;
  margin: 0 !important;
  white-space: normal !important;
}

.erp-check-row input[type='checkbox'] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  vertical-align: middle !important;
}

.erp-check-row .erp-field,
.erp-check-row .erp-label {
  display: contents !important;
}
/* === /ERP Hotfix 08.5 === */



/* === ERP Hotfix 09.1 HR settings helpers === */
.erp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.erp-info-box {
  border: 1px solid var(--erp-border);
  background: var(--erp-surface-soft);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.erp-info-box strong {
  font-size: 14px;
  color: var(--erp-text);
}
.erp-info-box span,
.erp-muted-text {
  color: var(--erp-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.erp-table td .erp-input,
.erp-table td .erp-select,
.erp-table-v59 td .erp-input,
.erp-table-v59 td .erp-select {
  min-width: 150px;
}
/* === /ERP Hotfix 09.1 === */



/* === ERP Hotfix 09.2 Attendance kiosk helpers === */
.erp-kiosk-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.erp-kiosk-actions .erp-button {
  min-height: 58px;
  font-size: 15px;
}
.erp-kiosk-last {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.erp-kiosk-recent {
  margin-top: 14px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.erp-kiosk-recent-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--erp-border);
  border-radius: 12px;
  padding: 9px 11px;
  background: var(--erp-surface-soft);
}
.erp-kiosk-recent-row span,
.erp-kiosk-recent-row small {
  color: var(--erp-muted);
}
/* === /ERP Hotfix 09.2 === */



/* === ERP Hotfix 09.8 sector colors === */
.erp-sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--erp-border);
  border-radius: 999px;
  background: var(--erp-surface-soft);
  color: var(--erp-text);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.erp-sector-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .15);
}
.erp-color-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
}
.erp-color-field input[type='color'] {
  width: 44px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 4px !important;
  border: 1px solid var(--erp-border-strong);
  border-radius: 10px;
  background: var(--erp-surface);
}
/* === /ERP Hotfix 09.8 === */



/* === ERP Hotfix 09.9 attendance reports === */
.erp-report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.erp-report-toolbar {
  align-items: end;
}
.erp-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.erp-report-stat {
  border: 1px solid var(--erp-border);
  background: var(--erp-surface-soft);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.erp-report-stat span {
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.erp-report-stat strong {
  color: var(--erp-text);
  font-size: 20px;
  line-height: 1.15;
}
/* === /ERP Hotfix 09.9 === */



/* === ERP Hotfix 09.11 pause variance === */
.erp-danger-text {
  color: #b91c1c;
  font-weight: 700;
}
/* === /ERP Hotfix 09.11 === */



/* === ERP Hotfix 09.12 employee portal === */
.erp-employee-portal {
  max-width: 980px;
  margin: 0 auto;
}
.erp-employee-portal .erp-kiosk-actions .erp-button {
  min-height: 56px;
}
/* === /ERP Hotfix 09.12 === */



/* === ERP Hotfix 09.14 standalone employee portal === */
.erp-standalone-root {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--erp-text, #0f172a);
}

.erp-standalone-root .erp-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.erp-standalone-root .erp-page-header,
.erp-standalone-root .erp-card {
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.erp-standalone-root .erp-card {
  border-radius: 22px;
}

.erp-standalone-root .erp-kiosk-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.erp-standalone-root .erp-button {
  min-height: 44px;
}

@media (max-width: 720px) {
  .erp-standalone-root .erp-page {
    padding: 14px 10px 32px;
  }

  .erp-standalone-root .erp-form-grid {
    grid-template-columns: 1fr;
  }

  .erp-standalone-root .erp-kiosk-actions {
    grid-template-columns: 1fr;
  }

  .erp-standalone-root .erp-report-summary {
    grid-template-columns: 1fr 1fr;
  }
}
/* === /ERP Hotfix 09.14 === */



/* === ERP Hotfix 09.15 employee portal flow === */
.erp-portal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin: 10px 0 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 250, 252, .94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 8px 0;
}
.erp-portal-tabs button {
  border: 1px solid var(--erp-border);
  background: var(--erp-surface);
  color: var(--erp-muted);
  border-radius: 14px;
  min-height: 42px;
  font-weight: 750;
  cursor: pointer;
}
.erp-portal-tabs button.active {
  background: var(--erp-primary);
  color: white;
  border-color: var(--erp-primary);
}
@media (max-width: 720px) {
  .erp-portal-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* === /ERP Hotfix 09.15 === */



/* === ERP Hotfix 09.16 monthly geo === */
.erp-report-stat strong {
  word-break: keep-all;
}
.erp-geo-note {
  font-size: 12px;
  color: var(--erp-muted);
}
/* === /ERP Hotfix 09.16 === */



/* === ERP Hotfix 09.17 attendance timeline === */
.erp-day-timeline {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 8px 0 14px;
}
.erp-day-timeline-track {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  border: 1px solid var(--erp-border);
}
.erp-day-timeline-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
}
.erp-day-timeline-hours {
  display: flex;
  justify-content: space-between;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}
.erp-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.erp-timeline-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
  color: var(--erp-text);
  font-size: 13px;
}
.erp-timeline-legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
}
.erp-timeline-card-grid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}
.erp-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--erp-muted);
  font-size: 13px;
  font-weight: 650;
}
/* === /ERP Hotfix 09.17 === */



/* === ERP Hotfix 09.18 partial time correction === */
.erp-correction-hint {
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.5;
}
/* === /ERP Hotfix 09.18 === */



/* === ERP Hotfix 09.19 request reasons === */
.erp-rejection-reason {
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-weight: 700;
  line-height: 1.35;
}
/* === /ERP Hotfix 09.19 === */


/* === ERP Hotfix 09.20 break paid/unpaid === */
.erp-report-stat strong { white-space: nowrap; }
.erp-day-timeline-segment[title^="Neplaćena"] { box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .25); }
.erp-break-policy-note { color: var(--erp-muted); font-size: 12px; line-height: 1.45; }
/* === /ERP Hotfix 09.20 === */


/* === ERP Hotfix 09.20.3 break monthly totals === */
.erp-report-stat strong {
  white-space: nowrap;
}
.erp-day-timeline-segment[title^="Neplaćena"] {
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, .25);
}
/* === /ERP Hotfix 09.20.3 === */


/* === ERP Hotfix 09.22 attendance event editor === */
.erp-day-timeline {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 10px 0 14px;
}
.erp-day-timeline-track {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  border: 1px solid var(--erp-border);
}
.erp-day-timeline-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 2px;
}
.erp-day-timeline-hours {
  display: flex;
  justify-content: space-between;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}
.erp-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 8px 0 14px;
}
.erp-timeline-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
  color: var(--erp-text);
  font-size: 13px;
}
.erp-timeline-legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
}
/* === /ERP Hotfix 09.22 === */


/* === ERP Hotfix 09.24 attendance analysis === */
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}
.erp-kpi-grid strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 4px;
}
@media (max-width: 1200px) {
  .erp-kpi-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 700px) {
  .erp-kpi-grid { grid-template-columns: 1fr; }
}
/* === /ERP Hotfix 09.24 === */


/* === ERP Hotfix 09.25 employee portal work rules === */
.erp-report-stat strong {
  overflow-wrap: anywhere;
}
.erp-work-rule-hint {
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.45;
}
/* === /ERP Hotfix 09.25 === */


/* === ERP Hotfix 09.25.2 employee portal quick status tab === */
.erp-quick-status-tab {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}
.erp-quick-status-tab .erp-report-grid,
.erp-quick-status-tab .erp-status-grid,
.erp-quick-status-tab .erp-kpi-grid {
  margin-top: 0;
}
.erp-portal-short-help {
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.45;
}
/* === /ERP Hotfix 09.25.2 === */


/* === ERP Hotfix 09.26 check action permissions === */
.erp-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin: 12px 0;
}
.erp-check-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
.erp-check-card input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.erp-check-card strong {
  display: block;
  font-size: 13px;
}
.erp-check-card small {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
}
.erp-action-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.erp-muted {
  color: var(--erp-muted);
}
/* === /ERP Hotfix 09.26 === */


/* === ERP Hotfix 09.27 employee portal clean preview === */
.erp-employee-clean {
  max-width: 980px;
  margin: 0 auto;
}

.erp-portal-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin: 12px 0 14px;
}

.erp-portal-tabs button {
  border: 1px solid var(--erp-border);
  background: #fff;
  border-radius: 14px;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 800;
  color: var(--erp-muted);
  cursor: pointer;
}

.erp-portal-tabs button.active {
  background: var(--erp-primary);
  border-color: var(--erp-primary);
  color: #fff;
}

.erp-clean-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.erp-clean-status-grid .erp-report-stat strong {
  overflow-wrap: anywhere;
}

.erp-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.erp-action-grid button {
  min-height: 58px;
  font-size: 15px;
}

.erp-clean-help {
  margin-top: 12px;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .erp-portal-tabs {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
/* === /ERP Hotfix 09.27 === */


/* === ERP Hotfix 09.27.9 request status === */
.erp-section-subtitle {
  margin: 18px 0 10px;
  font-weight: 900;
  color: var(--erp-text);
  letter-spacing: .02em;
}
.erp-request-status-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid var(--erp-border);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}
.erp-request-status-card span,
.erp-request-row span {
  display: block;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.35;
}
.erp-request-status-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.erp-request-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 10px;
}
.erp-request-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
.erp-request-row strong {
  display: block;
}
@media (max-width: 700px) {
  .erp-request-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* === /ERP Hotfix 09.27.9 === */


/* === ERP Hotfix 09.28.1 vacation request days === */
.erp-field-hint {
  display: block;
  margin-top: 2px;
  color: var(--erp-muted);
  font-size: 11px;
  line-height: 1.35;
}
/* === /ERP Hotfix 09.28.1 === */


/* === ERP Hotfix 09.28.6.1 vacation status === */
.erp-danger-text {
  color: #b42318;
}
/* === /ERP Hotfix 09.28.6.1 === */

/* === ERP Hotfix 09.28.7 request actions === */
.erp-request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.erp-danger-text {
  color: #b42318;
}
@media (max-width: 700px) {
  .erp-request-actions {
    justify-content: flex-start;
  }
}
/* === /ERP Hotfix 09.28.7 === */

