/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss?ngGlobalStyle ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;700&family=Noto+Sans+Arabic:wght@400;500;700&display=swap);
/*!****************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/@ng-select/ng-select/themes/default.theme.css ***!
  \****************************************************************************************************************************************************************************************************************************************************/
.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:hsl(0,0%,70%) #ccc hsl(0,0%,85%)}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid hsl(0,0%,90%)}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:rgb(234.6,244.68,255);border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:rgb(209.1,231.78,255)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid rgb(183.6,218.88,255)}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid rgb(183.6,218.88,255);border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid rgb(183.6,218.88,255)}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid rgb(183.6,218.88,255)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,.06);left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:hsl(0,0%,90%);margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:hsl(0,0%,90%);margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:hsl(0,0%,90%);margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:hsl(0,0%,90%);margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,.54);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:rgb(244.8,249.84,255)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:rgba(0,0,0,.54);background-color:rgb(234.6,244.68,255);font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,.87);padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:rgb(234.6,244.68,255)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:rgb(244.8,249.84,255);color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}/*# sourceMappingURL=default.theme.css.map */

/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[6].rules[0].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[6].rules[1].use[0]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[6].rules[1].use[1]!./src/styles.scss?ngGlobalStyle (1) ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
:root {
  --ui-bg: #f4f7fb;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8faff;
  --ui-border: #e2e8f0;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-primary: #3b82f6;
  --ui-primary-hover: #2563eb;
  --ui-radius-control: 8px;
  --ui-control-height: 26px;
  --ui-control-px: 8px;
  --ui-control-font-size: 10px;
}

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto/NotoSansArabic-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto/NotoSansArabic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ui-bg: #f4f7fb;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8faff;
  --ui-border: #e2e8f0;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-primary: #3b82f6;
  --ui-primary-hover: #2563eb;
  --ui-radius-control: 8px;
  --ui-control-height: 26px;
  --ui-control-px: 8px;
  --ui-control-font-size: 10px;
}

body.theme-dark {
  --ui-bg: #2f3542;
  --ui-surface: #343a40;
  --ui-surface-soft: #3b424a;
  --ui-border: #495057;
  --ui-text: #f8f9fa;
  --ui-muted: #c2c7d0;
  --ui-primary: #3c8dbc;
  --ui-primary-hover: #367fa9;
}

html,
body {
  font-size: 13px;
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--ui-bg);
  color: var(--ui-text);
}

app-root {
  display: block;
  width: 100%;
  min-height: 100vh;
}

body {
  font-size: 12px;
}

/* Base typography */
body {
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Arabic UI */
html[lang=ar] body {
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

/* Kurdish (Sorani) UI: prefer Naskh-style shaping for clearer Kurdish glyphs */
html[lang=ku] body {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

html[lang=ku] body :is(h1, h2, h3, h4, h5, h6, p, span, a, div, label, button, input, textarea, select, th, td, li) {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

/* Keep Kurdish visual scale aligned with EN/AR */
html[lang=ku] body {
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--ui-text);
  margin-top: 0;
}

p {
  color: var(--ui-muted);
}

a {
  color: var(--ui-primary);
}

/* Global workspace look similar to modern builder/admin UIs. */
.reports-hub,
.form-container,
.page,
.list-container,
.table-card,
.card-grid > a,
.dashboard-card,
.hub-card,
.report-card,
.panel,
.tile {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* Module hubs (home, sales, …): no outer “card” — only inner tiles/cards are surfaced. */
.dashboard-container {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.reports-hub,
.form-container,
.page,
.list-container {
  padding: 12px 14px;
}

.page-header,
.hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.page-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.page-header h1,
.hub-header h1,
.dashboard-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1b2d45;
}

.page-header p,
.hub-header p,
.dashboard-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--ui-muted);
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 14px !important;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}

.hub-cards {
  gap: 10px !important;
}

.dashboard-card,
.hub-card,
.card-grid > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ui-text);
}

.card-description {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ui-muted);
}

.dashboard-card:hover,
.hub-card:hover,
.card-grid > a:hover {
  transform: translateY(-2px);
  border-color: #9ca3af;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.theme-dark .dashboard-card:hover,
body.theme-dark .hub-card:hover,
body.theme-dark .card-grid > a:hover {
  border-color: #6c757d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .card-icon {
  background-color: #495057 !important;
}

body.theme-dark .dashboard-title,
body.theme-dark .card-title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
  color: var(--ui-text) !important;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--ui-surface);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}

.list-container > table,
.list-container > .table-wrap > table {
  margin-top: 8px;
}

th,
td {
  border-color: #e4eaf2 !important;
}

th {
  background: var(--ui-surface-soft);
  color: var(--ui-text);
  font-weight: 700;
}

th,
td {
  padding: 10px 12px;
  font-size: 12px;
}

tbody tr:hover {
  background: var(--ui-surface-soft);
}

input,
select,
textarea {
  border: 1px solid var(--ui-border) !important;
  border-radius: 7px !important;
  background: var(--ui-surface);
  color: var(--ui-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8fb2dd !important;
  box-shadow: 0 0 0 3px rgba(62, 126, 203, 0.15);
}

/* UI contract for all modules:
   Prefer .btn-primary/.btn-secondary/.btn-danger and avoid per-page shape overrides.
   This keeps new modules visually consistent by default. */
button,
.btn,
.submit-button,
.add-line-button,
.primary,
.btn-primary {
  border-radius: var(--ui-radius-control) !important;
}

button[type=submit],
.submit-button,
.btn-primary,
.primary {
  background: var(--ui-primary) !important;
  border: 1px solid var(--ui-primary) !important;
  color: #fff !important;
}

button[type=submit]:hover,
.submit-button:hover,
.btn-primary:hover,
.primary:hover {
  background: var(--ui-primary-hover) !important;
  border-color: var(--ui-primary-hover) !important;
}

.action-button,
.add-line-button,
.btn-secondary,
.cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ui-control-height);
  padding: 6px var(--ui-control-px);
  border: 1px solid #cdd8e5;
  background: #fff;
  color: #24405f;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--ui-control-font-size);
  line-height: 1.25;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Match secondary/outline controls: primary was missing flex, so <a class="btn-primary"> grew taller */
.btn-primary,
a.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.25;
  box-sizing: border-box;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

button,
.btn,
.submit-button,
.add-line-button,
.primary,
.btn-primary,
.btn-secondary,
.btn-danger,
.action-button {
  min-height: var(--ui-control-height) !important;
  padding: 4px var(--ui-control-px) !important;
  font-size: var(--ui-control-font-size) !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Modern action affordances across pages */
.action-button.add::before,
.add-line-button::before {
  content: "+";
  font-weight: 800;
  line-height: 1;
}

.action-button.edit::before {
  content: "✎";
  font-size: 12px;
  line-height: 1;
}

.action-button.delete::before,
.btn-danger::before {
  content: "🗑";
  font-size: 12px;
  line-height: 1;
}

.action-button.add {
  background: #eaf7ef;
  border-color: #b8dfc4;
  color: #17663b;
}

.action-button.statement,
.action-button.edit {
  background: #edf4ff;
  border-color: #caddfb;
  color: #1f4f8f;
}

.action-button.download {
  background: #0f766e;
  border-color: #0d9488;
  color: #fff;
}

.action-button.delete,
.btn-danger {
  background: #fff1f0;
  border-color: #ffc1bb;
  color: #b42318;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 1px solid #cfdae8;
  background: #fff;
  color: #425b78;
  border-radius: 999px;
  min-height: var(--ui-control-height) !important;
  padding: 2px 9px !important;
  font-size: var(--ui-control-font-size) !important;
  font-weight: 600;
}

.filter-buttons button.active {
  background: #edf4ff;
  border-color: #b7cdf1;
  color: #1e5ca8;
}

.form-container {
  max-width: none;
  margin: 0;
  padding: 24px;
}

.form-container h2,
.form-container h3 {
  color: #1f334d;
}

.header-grid,
.grid {
  display: grid;
  gap: 18px 20px;
}

.header-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.form-group,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.field label {
  font-size: 13px;
  font-weight: 700;
  color: #3b516d;
}

.items-table {
  overflow: hidden;
  border-radius: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e1e8f0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3368a6;
  text-decoration: none;
  font-weight: 600;
}

.card,
.so-container,
.po-container,
.soa-page {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card {
  padding: 16px;
}

.so-container,
.po-container {
  max-width: none;
  margin: 0;
  padding: 20px 22px;
}

.so-header,
.po-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7f0;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.so-details,
.po-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  background: #f8fbfe;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
}

.so-container .section-title,
.po-container .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f334d;
  margin: 0 0 12px;
}

.so-container .total-row,
.po-container .total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  background: #f8fbfe;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  font-size: 1rem;
}

.so-container .total-row strong,
.po-container .total-row strong {
  color: #62748b;
  font-weight: 600;
}

.so-container .total-row span,
.po-container .total-row span {
  font-weight: 700;
  color: #1f334d;
}

.so-container .notes-section,
.po-container .notes-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fffcf0;
  border: 1px solid #f0e6c8;
  border-radius: 10px;
  font-size: 14px;
}

.so-container .notes-section p,
.po-container .notes-section p {
  margin: 8px 0 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.alert-error,
.error {
  color: #b42318;
}

.alert-error {
  background: #fff1f0;
  border: 1px solid #ffc1bb;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.sum-card {
  min-width: 200px;
  background: #f8fbfe;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  padding: 14px 16px;
}

.sum-card .lbl {
  display: block;
  font-size: 12px;
  color: #62748b;
  margin-bottom: 4px;
}

.sum-card .val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f334d;
}

.data-table .num,
.num {
  text-align: right;
  white-space: nowrap;
}

.stock-in {
  color: #17663b;
  font-weight: 700;
}

.stock-out {
  color: #b42318;
  font-weight: 700;
}

@media print {
  body.receipt-print-root app-sidebar,
  body.receipt-print-root .sidebar,
  body.receipt-print-root app-header,
  body.installment-receipt-print-root app-sidebar,
  body.installment-receipt-print-root .sidebar,
  body.installment-receipt-print-root app-header,
  body.doc-print-root app-sidebar,
  body.doc-print-root .sidebar,
  body.doc-print-root app-header {
    display: none !important;
  }
  body.receipt-print-root .main-container,
  body.installment-receipt-print-root .main-container,
  body.doc-print-root .main-container {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.receipt-print-root .page-wrapper,
  body.installment-receipt-print-root .page-wrapper,
  body.doc-print-root .page-wrapper {
    width: 100% !important;
  }
  body.receipt-print-root .content,
  body.installment-receipt-print-root .content,
  body.doc-print-root .content {
    padding: 10mm !important;
    background: #fff !important;
    overflow: visible !important;
  }
  body.doc-print-root .no-print {
    display: none !important;
  }
  body.doc-print-root .print-only {
    display: block !important;
  }
  body.doc-print-root .reports-dashboard {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.doc-print-root .chart-wrap {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.doc-print-root .month-block,
  body.doc-print-root .table-panel,
  body.doc-print-root .panel {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
}

.erp-formatted-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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