/* FatouraPro Maroc — ERP workspace. Document templates keep their own styles. */
body.erp-ui {
  --ink: #253444;
  --muted: #77828f;
  --teal: #536e91;
  --line: #dfe4e9;
  --bg: #f4f5f7;
  --orange: #bc873a;
  margin: 0;
  background: var(--bg);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 13px;
}
.erp-ui button:focus-visible, .erp-ui a:focus-visible {
  outline: 3px solid #e5b24f;
  outline-offset: 2px;
}
.erp-ui .erp-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 66px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  color: #fff;
  background: #354b67;
  border: 0;
  border-bottom: 1px solid #243a56;
  box-shadow: 0 1px 4px #1e304018;
}
.erp-topbar .erp-brand {
  display: flex;
  align-items: center;
  width: 220px;
  min-width: 220px;
  align-self: stretch;
  padding: 0 17px;
  gap: 9px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 19px;
  letter-spacing: -.6px;
  border-inline-end: 1px solid #ffffff13;
}
.erp-topbar .erp-brand > span:last-child { line-height: 1.12; text-align: start; white-space: nowrap; }
.erp-topbar .erp-brand b { color: #b8d0ef; font-size: 10px; font-weight: 400; letter-spacing: .2px; }
.erp-topbar .erp-brand small {
  display: block;
  margin: 5px 0 0;
  color: #b8c7da;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .5px;
  white-space: nowrap;
}
.erp-topbar .erp-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 35px;
  flex: 0 0 32px;
  border: 1px solid #c1d3ea70;
  padding: 0 0 3px;
  background: #ffffff0b;
  color: #fff;
  border-radius: 4px;
  font-size: 26px;
}
.erp-modules {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #7589a3 transparent;
}
.erp-modules button {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 84px;
  padding: 8px 13px 7px;
  margin: 0;
  gap: 5px;
  color: #dbe4ef;
  background: transparent;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  transition: background .12s;
}
.erp-modules button > span:first-child, .erp-modules .icon {
  font-size: 22px;
  width: auto;
  height: 23px;
  line-height: 23px;
  color: #cbd8e8;
}
.erp-modules button:hover { background: #ffffff0c; }
.erp-modules button.active {
  color: #fff;
  background: #263e5b;
  border-bottom-color: #a9c4e4;
  font-weight: 600;
}
.erp-modules button.active > span:first-child { color: #fff; }
.erp-account {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 13px;
  padding: 0 20px 0 16px;
  flex: 0 0 auto;
  border-inline-start: 1px solid #ffffff13;
  font-size: 11px;
}
.erp-account .pill {
  padding: 5px 7px;
  background: #ffffff0a;
  border-color: #ffffff35;
  color: #eef3fa;
  font-size: 10px;
  border-radius: 3px;
}
.erp-account .avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  background: #6e839e;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
}
.erp-account .small { color: #d3deeb; font-size: 10px; line-height: 1.5; }
.erp-account b { color: #fff; font-weight: 600; }
.erp-ui .erp-sidebar {
  position: fixed;
  inset: 66px auto 0 0;
  z-index: 4;
  width: 220px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f0f2f5;
  border-inline-end: 1px solid #dce1e7;
}
.erp-company {
  padding: 21px 18px 18px;
  margin-bottom: 7px;
  border-bottom: 1px solid #dce1e7;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 83px;
}
.erp-company .avatar {
  padding: 9px;
  background: #dfe6ef;
  color: #526b8b;
  border: 1px solid #d1dbe7;
  border-radius: 4px;
  font-size: 12px;
}
.erp-company strong { font-size: 12px; line-height: 1.5; font-weight: 600; }
.erp-company small { display: block; font-size: 10px; margin-top: 4px; color: #8a96a6; }
.erp-section {
  margin: 20px 18px 8px;
  color: #7b8795;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.erp-subnav { display: block; padding: 0 9px; }
.erp-subnav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 35px;
  margin: 2px 0;
  padding: 9px 10px;
  color: #536175;
  background: transparent;
  border-radius: 3px;
  border-inline-start: 3px solid transparent;
  text-align: start;
  font-size: 12px;
}
.erp-subnav .icon { width: 16px; font-size: 15px; color: #8a97a8; }
.erp-subnav button:hover { background: #e6eaf0; color: #344d6c; }
.erp-subnav button.active {
  color: #36577f;
  background: #e0e7f0;
  border-inline-start-color: #58789e;
  font-weight: 600;
}
.erp-subnav button.active .icon { color: #536e91; }
.erp-subnav button .erp-tab-count { margin-inline-start: auto; }
.erp-subnav button > span { margin-inline-start: auto; padding: 2px 5px; border-radius: 3px; background: #e5e9ef; color: #92a0b1; font-size: 9px; }
.erp-sidebottom {
  margin-top: auto;
  padding: 24px 17px 18px;
  color: #8a95a3;
  font-size: 10px;
  line-height: 1.6;
}
.erp-sidebottom .trial {
  padding: 12px;
  margin: 0 0 13px;
  border: 1px solid #dbe2eb;
  border-radius: 3px;
  background: #e8edf4;
}
.erp-sidebottom .trial strong { font-size: 11px; color: #56687e; }
.erp-sidebottom .trial .small { font-size: 10px; }
.erp-sidebottom .trial button { font-size: 11px; }
.erp-sidebottom .dot { background: #b28c4a; width: 6px; height: 6px; }
.erp-sidebottom > .badge { margin-bottom: 10px; font-size: 9px; }
.erp-sidebottom > button { display: block; padding: 8px 0; color: #74849a; font-size: 10px; text-align: start; }
.erp-sidebottom > button.link { color: #5c7699; margin-bottom: 16px; }
.erp-sidebottom > p { margin-top: 18px; padding-top: 13px; border-top: 1px solid #dfe4eb; color: #9aa5b3; font-size: 9px; }
.erp-ui .erp-main { margin: 0 0 0 220px; padding-top: 66px; min-width: 0; }
.erp-utility {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e0e4e9;
}
.erp-breadcrumb { display: flex; align-items: center; gap: 9px; color: #8994a0; font-size: 11px; }
.erp-breadcrumb button, .erp-breadcrumb a { padding: 0; color: #67798f; font-size: 11px; }
.erp-breadcrumb strong { color: #4e5b6b; font-weight: 500; }
.erp-global-search { display: flex; align-items: center; gap: 7px; color: #8693a4; }
.erp-global-search input {
  width: 230px;
  padding: 7px 9px;
  border: 1px solid #e1e5eb;
  border-radius: 3px;
  background: #fafbfc;
  font-size: 11px;
}
.erp-global-search input:focus { background: #fff; border-color: #7f97b3; }
.erp-global-search kbd { color: #acb6c4; font: 11px Arial, sans-serif; }
.erp-content { max-width: 1600px; margin: 0 auto; padding: 22px 24px 28px; }
.erp-content h1, .erp-content h2, .erp-content h3 { font-family: Arial, "Segoe UI", sans-serif; }
.erp-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 1px 0 22px;
}
.erp-page-title > div:nth-child(2) { min-width: 0; flex: 1; }
.erp-page-title h1 { margin: 0; color: #37465a; font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.erp-page-title p { margin-top: 5px; font-size: 11px; color: #8994a1; }
.erp-title-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #7188a7;
  background: #e7ecf3;
  border: 1px solid #dbe3ed;
  border-radius: 4px;
  font-size: 25px;
}
.erp-content .btn, .erp-ui .dialog > .actions .btn, .erp-ui .dialog form .btn {
  min-height: 33px;
  padding: 9px 13px;
  border: 1px solid #4f6b8e;
  border-radius: 3px;
  background: #58759a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  gap: 6px;
  box-shadow: 0 1px 1px #20395408;
}
.erp-content .btn.secondary, .erp-ui .dialog > .actions .btn.secondary, .erp-ui .dialog form .btn.secondary {
  background: #fff;
  border-color: #d4dce5;
  color: #53667e;
}
.erp-content .btn:hover { filter: brightness(.96); }
.erp-content .actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.erp-content .link, .erp-ref { color: #436b9b; font-size: 12px; font-weight: 500; text-decoration: none; padding: 0; }
.erp-ref:hover, .erp-content .link:hover { text-decoration: underline; }
.erp-panel {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px #34485e03;
}
.erp-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 14px 17px;
  border-bottom: 1px solid #e2e6eb;
  color: #53657b;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 600;
}
.erp-panel-heading h2 { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.erp-panel-heading .small { color: #93a0b0; font-size: 10px; font-weight: 400; }
.erp-panel-note { margin: 0; padding: 15px 17px; border-top: 1px solid #e8edf2; color: #8b98a9; font-size: 11px; line-height: 1.7; background: #fbfcfd; }
.erp-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #d6dfe9;
  margin: 0 0 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.erp-tabs button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 43px;
  padding: 11px 16px;
  margin: 0;
  gap: 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #738195;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
.erp-tabs button:hover { color: #3d6089; background: #eaf0f6; }
.erp-tabs button.active { color: #3f638f; border-bottom-color: #617fa5; background: #fff; font-weight: 600; }
.erp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #e7ebf0;
  color: #7c8a9c;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 400;
}
.erp-tabs button.active .erp-tab-count { background: #e5ecf5; color: #4e719d; }
.erp-panel > .erp-tabs { margin-bottom: 0; }
.erp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 21px; }
.erp-mini-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 18px;
  min-height: 85px;
  background: #fff;
  border: 1px solid #e0e5eb;
  border-radius: 4px;
  border-inline-start: 3px solid #7b94b3;
}
.erp-mini-stat > span, .erp-mini-stat .label { display: block; margin: 0 0 8px; color: #7c8898; font-size: 10px; letter-spacing: 0; }
.erp-mini-stat strong, .erp-mini-stat .value { display: block; color: #4b6588; font-size: 21px; font-weight: 400; line-height: 1.2; }
.erp-mini-stat small { font-size: 10px; font-weight: 400; }
.erp-mini-stat:nth-child(2) { border-inline-start-color: #95a9c1; }
.erp-mini-stat:nth-child(3) { border-inline-start-color: #c39b5b; }
.erp-mini-stat:nth-child(4) { border-inline-start-color: #6a9c8d; }
.erp-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 64px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid #e3e7ec;
}
.erp-toolbar input, .erp-toolbar select { width: auto; min-height: 33px; padding: 8px 10px; border-color: #dbe1e8; border-radius: 3px; font-size: 11px; }
.erp-toolbar input { flex: 1; min-width: 170px; max-width: 360px; }
.erp-toolbar select { min-width: 145px; max-width: 200px; color: #617188; }
.erp-toolbar .small { margin-inline-start: auto; font-size: 10px; color: #8a96a5; }
.erp-table-wrap { width: 100%; overflow-x: auto; }
.erp-table { min-width: 650px; font-size: 12px; }
.erp-table th {
  padding: 11px 13px;
  background: #eef1f5;
  color: #708198;
  border-bottom: 1px solid #dce2e9;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}
.erp-table td { height: 49px; padding: 10px 13px; border-bottom: 1px solid #ebeff3; color: #56667b; vertical-align: middle; font-size: 11px; }
.erp-table tbody tr:nth-child(even) { background: #fbfcfd; }
.erp-table tbody tr:hover { background: #f0f5fa; }
.erp-table tbody tr:last-child td { border-bottom: 0; }
.erp-table td strong { color: #465970; font-weight: 500; }
.erp-table .small { margin-top: 3px; font-size: 10px; color: #919dab; }
.erp-table .erp-row-sub { display: block; margin-top: 4px; color: #a0aabb; font-size: 9px; }
.erp-table .erp-numeric { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.erp-table .erp-client-ref { color: #61758f; font-size: 11px; }
.erp-table .erp-ref { font-size: 11px; white-space: nowrap; }
.erp-table tfoot td { height: 43px; padding-block: 12px; background: #eef2f7; border-top: 1px solid #dbe3ec; color: #5c7493; font-size: 10px; font-weight: 600; }
.erp-table td.erp-empty { height: auto; padding: 48px 20px; color: #98a5b5; text-align: center; }
.erp-table input[type="checkbox"] { width: 13px; height: 13px; accent-color: #5c7ba4; cursor: pointer; vertical-align: middle; }
.erp-table td:first-child:has(input[type="checkbox"]), .erp-table th:first-child:has(input[type="checkbox"]) { width: 35px; padding-inline-end: 0; }
.erp-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; text-align: start; font-size: inherit; font-weight: inherit; color: inherit; white-space: nowrap; }
.erp-sort:hover { color: #355a87; }
.erp-sort span { color: #9caabd; font-size: 9px; }
.erp-pagination {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid #e3e7ed;
  background: #fbfcfd;
  color: #8d99a7;
  font-size: 10px;
}
.erp-pagination > div { display: flex; align-items: center; gap: 6px; }
.erp-pagination button { padding: 5px 8px; border: 1px solid #dce2ea; background: #fff; border-radius: 3px; color: #6b7d94; }
.erp-pagination button.active { border-color: #6a86aa; color: #fff; background: #6a86aa; }
.erp-pagination button:disabled { color: #b3bdc9; cursor: default; background: #f5f7f9; }
.erp-pagination select { width: auto; padding: 5px 7px; border-radius: 3px; border-color: #dce3eb; color: #8291a6; font-size: 10px; }
.erp-pagination .link { background: none; border: 0; color: #6c84a3; font-size: 10px; }
.erp-card-back { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.erp-card-back > div { display: flex; align-items: center; gap: 12px; color: #94a1b1; font-size: 10px; }
.erp-card-back > div button { width: 26px; height: 26px; background: #fff; color: #6a81a0; border: 1px solid #dbe3ed; border-radius: 3px; font-size: 18px; line-height: 1; }
.erp-card-back > div button:disabled { opacity: .35; cursor: default; }
.erp-object-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  gap: 20px;
  height: auto;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px 4px 0 0;
}
.erp-object-header > div:not(.erp-object-status) { flex: 1; min-width: 0; }
.erp-object-header + .erp-tabs { background: #fff; border-inline: 1px solid #dfe5ec; }
.erp-object-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 59px;
  color: #7d95b5;
  background: #edf1f6;
  border: 1px solid #dae3ee;
  border-radius: 5px;
  font-size: 32px;
}
.erp-object-title { color: #3e5878; font-size: 22px; font-weight: 500; letter-spacing: -.3px; overflow-wrap: anywhere; margin: 6px 0 8px; }
.erp-object-subtitle { color: #8591a0; margin: 0; font-size: 11px; }
.erp-object-status { display: flex; flex-direction: column; align-items: end; gap: 15px; margin-inline-start: auto; }
.erp-object-status > strong { color: #587598; font-size: 23px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.erp-object-status > strong small { color: #93a3b7; font-size: 9px; }
.erp-object-tabs { padding-inline-start: 16px; }
.erp-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 21px;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  list-style: none;
}
.erp-workflow > div, .erp-workflow > button, .erp-workflow > li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  padding: 12px 9px;
  border-inline-end: 1px solid #e3e8ee;
  color: #a0a9b5;
  font-size: 11px;
  position: relative;
}
.erp-workflow > :last-child { border-inline-end: 0; }
.erp-workflow .done { color: #5f897c; background: #f8fbf9; }
.erp-workflow .current { color: #496e9a; background: #edf3fa; font-weight: 600; box-shadow: inset 0 -3px #6c89ad; }
.erp-workflow span { font-size: 15px; }
.erp-completion { padding: 16px 19px; margin-bottom: 20px; border: 1px solid #e9dfcb; background: #fffaf0; color: #a18b62; border-radius: 4px; font-size: 11px; }
.erp-completion b { font-weight: 600; color: #a18b62; }
.erp-completion p { color: #a99b7f; font-size: 11px; margin-top: 5px; }
.erp-completion details { margin-top: 10px; color: #a89775; line-height: 1.8; }
.erp-completion summary { cursor: pointer; font-size: 10px; }
.erp-completion ul { margin: 8px 0 0; padding-inline-start: 18px; }
.erp-completion > div { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 11px; }
.erp-completion .link { font-size: 10px; }
.erp-object-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); align-items: start; gap: 20px; }
.erp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 18px; column-gap: 35px; }
.erp-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; min-height: 45px; padding: 13px 0; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.erp-fact > span:first-child, .erp-fact label { color: #8a96a5; font-size: 11px; }
.erp-fact > :last-child { text-align: end; font-weight: 400; color: #50647e; overflow-wrap: anywhere; }
.erp-fact:last-child, .erp-fact:nth-last-child(2) { border-bottom: 0; }
.erp-actions-bar { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 7px; margin: 18px 0 24px; }
.erp-kv { font-size: 12px; }
.erp-kv td, .erp-kv th { padding: 13px 17px; font-size: 11px; background: #fff; border-bottom: 1px solid #e9edf2; }
.erp-kv td:first-child { color: #8794a5; width: 45%; }
.erp-kv td:last-child { color: #53677f; text-align: end; }
.erp-kv tr:last-child td { font-weight: 600; color: #4d6b91; background: #f0f4f8; }
.erp-card-totals { width: 350px; max-width: 100%; padding: 12px 20px; margin-inline-start: auto; margin-block: 10px 14px; }
.erp-card-totals .erp-fact { min-height: 36px; padding: 10px 0; }
.erp-card-totals .erp-fact:nth-last-child(2) { border-bottom: 1px solid #edf0f4; }
.erp-card-totals .erp-fact:last-child { padding: 13px 10px; margin: 5px -10px 0; background: #eff4f9; }
.erp-card-totals .erp-fact:last-child > :last-child { font-weight: 600; color: #536f94; }
.erp-line-photo:empty { display: none; }
.erp-line-photo { margin-top: 10px; }
.erp-line-photo img { margin: 0; }
.erp-history { padding: 16px 22px; }
.erp-history > div { display: flex; align-items: start; gap: 15px; padding: 13px 0; }
.erp-history > div > span { color: #a7bdd6; font-size: 12px; line-height: 1.6; }
.erp-history p { color: #6f839e; font-size: 11px; }
.erp-history strong { display: block; font-weight: 400; }
.erp-history small { display: block; margin-top: 4px; color: #a0adbd; font-size: 10px; }
.erp-search-result { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px; border-bottom: 1px solid #edf0f5; color: #7186a1; font-size: 11px; }
.erp-search-result:last-child { border-bottom: 0; }
.erp-search-result > span { color: #8c9aad; font-size: 11px; }
.erp-notes { padding: 21px; }
.erp-notes h3 { margin: 0 0 10px; color: #6f839e; font-size: 12px; font-weight: 500; }
.erp-notes p { margin: 0 0 24px; color: #8897ab; font-size: 12px; white-space: pre-line; }
.erp-empty { padding: 50px 20px; color: #96a1af; text-align: center; font-size: 12px; line-height: 1.8; }
.erp-empty > span { display: block; color: #bbc7d6; font-size: 33px; margin-bottom: 9px; }
.erp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #edf1f5;
  color: #7f8c9c;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.erp-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.erp-status > i { display: none; }
.erp-status.draft { background: #f0f2f5; border-color: #e6e9ed; color: #8793a3; }
.erp-status.issued { background: #edf3fa; border-color: #dce7f4; color: #5c7fa7; }
.erp-status.paid { background: #edf6f1; border-color: #dcece3; color: #5c957d; }
.erp-status.partial { background: #fbf4e9; border-color: #eee1ca; color: #b38b49; }
.erp-status.refused { background: #fbefed; border-color: #f0dfdc; color: #bb8a82; }
.erp-content .pagehead { margin-bottom: 22px; }
.erp-content .pagehead h1 { font-size: 23px; font-weight: 400; letter-spacing: -.5px; margin-bottom: 6px; }
.erp-content .pagehead p { font-size: 11px; }
.erp-content .card { border-radius: 4px; padding: 19px; border-color: #dfe4eb; box-shadow: 0 1px 2px #34485e03; }
.erp-content .stats { gap: 14px; margin-bottom: 20px; }
.erp-content .statlabel { color: #8491a2; font-size: 11px; }
.erp-content .statlabel span { background: #edf1f7; color: #758fae; padding: 6px; border-radius: 3px; font-size: 16px; }
.erp-content .number { color: #506d94; font-family: Arial, sans-serif; font-size: 25px; font-weight: 400; letter-spacing: -.5px; margin: 14px 0 8px; }
.erp-content .number small { font-size: 10px; }
.erp-content .trend { font-size: 10px; color: #8196af; }
.erp-content .trend.orange { color: #b08a50; }
.erp-content .grid { gap: 20px; margin-bottom: 20px; }
.erp-content h2 { color: #596d87; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.erp-content .cardtitle { margin-bottom: 21px; }
.erp-content .banner { padding: 11px 15px; border-color: #dde5ef; background: #eaf0f7; color: #6b819d; border-radius: 3px; font-size: 11px; margin-bottom: 20px; }
.erp-content .banner b { color: #527296; }
.erp-content .banner button { color: #527296; font-size: 11px; white-space: nowrap; }
.erp-content .bar { background: #d8e3f0; border-radius: 3px 3px 0 0; }
.erp-content .bar:last-child { background: #7892b2; }
.erp-content .bar:hover::before { background: #4c6688; }
.erp-content .quick { gap: 10px; }
.erp-content .quick button { border-radius: 3px; color: #62758e; padding: 14px 11px; font-size: 11px; }
.erp-content .quick button span { font-size: 21px; color: #7892b3; margin-bottom: 9px; }
.erp-content .quick button:hover { background: #f1f5fa; }
.erp-content .tablecard { padding: 19px 0 0; }
.erp-content .tablecard .cardtitle { padding: 0 19px; }
.erp-content .tablecard table th { padding: 11px 13px; background: #f0f3f7; color: #7d8da2; }
.erp-content .tablecard table td { padding: 12px 13px; color: #5b6d84; border-color: #e9eef3; font-size: 11px; }
.erp-content .tablecard table td strong { font-weight: 500; }
.erp-content .badge { border-radius: 3px; font-size: 9px; }
.erp-content .badge.draft { background: #f0f2f5; color: #7d8ca0; }
.erp-content .rowitem { padding: 13px 0; }
.erp-content .itemname { color: #586d87; font-size: 11px; }
.erp-content .rowitem .small { font-size: 10px; }
.erp-content .filters input, .erp-content .filters select { border-radius: 3px; font-size: 11px; }
.erp-content .product { padding: 20px; border-radius: 4px; }
.erp-content .product .producticon { color: #7c95b3; }
.erp-content .product strong { color: #5b6f89; }
.erp-content .totals { background: #eff3f8; color: #526f94; }
.erp-content .company-form h2 { color: #506c91; font-size: 13px; }
.erp-content .company-form h3 { color: #637b9b; font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid #e6ebf1; }
.erp-content .company-form input, .erp-content .company-form select, .erp-content .company-form textarea { border-color: #dce3eb; border-radius: 3px; font-size: 12px; padding: 9px 11px; }
.erp-content .company-form .field { color: #7b899c; font-size: 11px; }
.erp-content .foot { border-top: 1px solid #e1e6ec; padding-top: 17px; color: #98a3b1; font-size: 9px; }
.erp-content .demo { color: #a29377; font-size: 9px; }
.erp-ui .overlay { background: #22344c77; z-index: 10; }
.erp-ui .dialog { border-radius: 5px; box-shadow: 0 16px 70px #1c304333; }
.erp-ui .dialog > .cardtitle { padding-bottom: 16px; border-bottom: 1px solid #e3e8ee; }
.erp-ui .dialog > .cardtitle h2 { color: #536d8f; font: 500 16px Arial, sans-serif; }
.erp-ui .dialog #docform > h3 { color: #5d7391; font-family: Arial, sans-serif; }
.erp-ui .dialog #docform .totals { background: #edf2f8; color: #536e91; }
.erp-mobile-nav { display: none; }
.erp-ui.rtl .erp-sidebar { inset: 66px 0 0 auto; }
.erp-ui.rtl .erp-main { margin: 0 220px 0 0; }

@media (max-width: 1200px) {
  .erp-modules button { min-width: 70px; padding-inline: 10px; }
  .erp-account { padding-inline: 12px; gap: 8px; }
  .erp-account .small { display: none; }
  .erp-facts { column-gap: 20px; }
}
@media (max-width: 1000px) {
  .erp-topbar .erp-brand { width: 200px; min-width: 200px; padding-inline: 13px; font-size: 18px; }
  .erp-modules button { min-width: 64px; padding-inline: 8px; font-size: 10px; }
  .erp-modules button > span:first-child { font-size: 20px; }
  .erp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .erp-object-columns { grid-template-columns: 1fr; gap: 0; }
  .erp-account { gap: 7px; }
  .erp-account .avatar { display: none; }
  .erp-ui .erp-sidebar { width: 200px; }
  .erp-ui .erp-main { margin-left: 200px; }
  .erp-ui.rtl .erp-main { margin: 0 200px 0 0; }
  .erp-content { padding-inline: 18px; }
  .erp-utility { padding-inline: 18px; }
  .erp-global-search input { width: 190px; }
  .erp-page-title h1 { font-size: 20px; }
  .erp-page-title .actions { max-width: 55%; justify-content: end; }
}
@media (max-width: 760px) {
  .erp-ui .erp-topbar { height: 112px; flex-wrap: wrap; align-content: stretch; }
  .erp-topbar .erp-brand { height: 51px; width: auto; min-width: 0; flex: 1; border-inline-end: 0; padding-inline: 15px; font-size: 18px; }
  .erp-topbar .erp-brand-mark { width: 29px; height: 30px; flex-basis: 29px; font-size: 23px; }
  .erp-topbar .erp-brand small { font-size: 7px; margin-top: 4px; }
  .erp-account { height: 51px; padding-inline: 12px; border-inline-start: 0; }
  .erp-account .avatar { display: inline-flex; height: 27px; width: 27px; }
  .erp-modules { flex: 0 0 100%; order: 3; height: 61px; border-top: 1px solid #ffffff12; }
  .erp-modules button { min-width: 75px; flex: 1 0 75px; padding: 7px 10px 6px; font-size: 10px; gap: 4px; }
  .erp-modules button > span:first-child { font-size: 20px; height: 22px; line-height: 22px; }
  .erp-ui .erp-sidebar { display: none; }
  .erp-ui .erp-main, .erp-ui.rtl .erp-main { margin: 0; padding-top: 112px; }
  .erp-utility { height: auto; min-height: 45px; padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .erp-breadcrumb { gap: 6px; font-size: 10px; }
  .erp-breadcrumb button, .erp-breadcrumb a { font-size: 10px; }
  .erp-global-search input { width: 135px; padding: 7px; font-size: 10px; }
  .erp-global-search > span { display: none; }
  .erp-content { padding: 19px 13px 22px; }
  .erp-page-title { flex-wrap: wrap; margin-bottom: 17px; gap: 14px; }
  .erp-page-title > div:nth-child(2) { flex-basis: calc(100% - 60px); }
  .erp-page-title h1 { font-size: 21px; }
  .erp-page-title .actions { max-width: 100%; width: 100%; justify-content: start; }
  .erp-page-title p { font-size: 10px; }
  .erp-title-icon { height: 34px; width: 34px; font-size: 22px; }
  .erp-summary { gap: 9px; margin-bottom: 17px; }
  .erp-mini-stat { padding: 12px; min-height: 78px; }
  .erp-mini-stat strong, .erp-mini-stat .value { font-size: 18px; }
  .erp-mini-stat > span, .erp-mini-stat .label { font-size: 9px; }
  .erp-toolbar { padding: 12px; }
  .erp-toolbar input { flex: 1 0 100%; max-width: none; min-width: 0; }
  .erp-toolbar select { min-width: 130px; flex: 1; max-width: none; }
  .erp-toolbar .small { padding-block: 3px; }
  .erp-tabs button { padding-inline: 13px; min-height: 41px; font-size: 11px; }
  .erp-object-header { padding: 17px; gap: 14px; flex-wrap: wrap; }
  .erp-object-header > div:not(.erp-object-status) { flex-basis: calc(100% - 80px); }
  .erp-object-status { flex-direction: row; width: 100%; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid #edf1f6; }
  .erp-object-status > strong { font-size: 19px; }
  .erp-object-title { font-size: 20px; }
  .erp-object-icon { width: 44px; height: 49px; font-size: 27px; }
  .erp-workflow > div, .erp-workflow > button, .erp-workflow > li { min-height: 51px; gap: 5px; flex-direction: column; font-size: 9px; padding: 8px 4px; text-align: center; }
  .erp-workflow span { font-size: 12px; }
  .erp-facts { grid-template-columns: 1fr; padding-inline: 14px; }
  .erp-fact { min-height: 42px; padding-block: 12px; }
  .erp-fact:nth-last-child(2) { border-bottom: 1px solid #edf0f4; }
  .erp-panel-heading { padding: 13px 14px; }
  .erp-actions-bar { justify-content: start; }
  .erp-pagination { padding-inline: 12px; }
  .erp-content .pagehead h1 { font-size: 22px; }
  .erp-content .card { padding: 16px; }
  .erp-content .tablecard { padding: 16px 0 0; }
  .erp-content .tablecard .cardtitle { padding-inline: 16px; }
  .erp-content .number { font-size: 22px; }
  .erp-content .banner { gap: 10px; flex-wrap: wrap; line-height: 1.5; }
  .erp-content .foot { flex-direction: column; gap: 7px; margin-top: 23px; }
  .erp-mobile-nav { display: block; width: 100%; padding: 7px 9px; font-size: 11px; border: 1px solid #d9e1eb; border-radius: 3px; background: #f9fbfd; color: #71849d; }
  .erp-pagination { flex-wrap: wrap; gap: 12px; }
  .erp-pagination > div { margin-inline-start: auto; }
  .erp-notes { padding: 17px; }
  .erp-completion { padding: 14px 16px; }
  .erp-ui .dialog { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .erp-modules button { transition: none; }
}
@media print {
  .erp-topbar, .erp-sidebar, .erp-utility, .erp-mobile-nav { display: none !important; }
  .erp-ui .overlay { background: #fff; }
  .erp-ui .dialog { box-shadow: none; }
}
.dashboard-company{display:flex;align-items:center;gap:20px;padding:20px 24px;margin-bottom:20px;background:var(--card,#fff);border:1px solid var(--line);border-radius:16px}.dashboard-company img{width:100px;height:72px;object-fit:contain;background:white;border-radius:8px;padding:6px}.dashboard-company strong{font-size:20px}.dashboard-company p{font-size:12px;color:var(--muted);margin:6px 0 0}.dashboard-company button{margin-inline-start:auto}@media(max-width:640px){.dashboard-company{flex-wrap:wrap}.dashboard-company button{margin-inline-start:0}}
.erp-brand .erp-own-logo{display:block;width:155px;height:52px;object-fit:contain;background:#fff;border-radius:8px;padding:5px}.erp-company-logo{width:42px;height:42px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}.print-photo-settings{scroll-margin-top:100px}
