@font-face {
  font-family: Vazirmatn;
  src: url("/static/office/vazirmatn.f6d31671339d.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --navy: #153650;
  --navy-deep: #102c46;
  --teal: #098f95;
  --teal-dark: #08777c;
  --text: #233d53;
  --muted: #587083;
  --border: #dce7ee;
  --bg: #f3f7fb;
  --radius: 14px;
  --sidebar: 220px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.85;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  direction: rtl;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #19a6a0;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 23px;
  line-height: 1.7;
  margin-bottom: 5px;
}
h2 {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: white;
  padding: 9px 12px;
  min-height: 40px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #72c5c0;
  box-shadow: 0 0 0 3px #0b99980d;
}
input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
}
textarea {
  resize: vertical;
  line-height: 2;
}
input[type="file"] {
  padding: 9px;
  font-size: 12px;
}
input:read-only {
  background: #f6f8fb;
  color: #7b8b98;
}
.latin {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.inline,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actions {
  justify-content: flex-start;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  color: #2c536e;
  background: white;
  line-height: 1.65;
  white-space: normal;
  transition:
    background 0.15s,
    border-color 0.15s;
  cursor: pointer;
}
.btn:hover {
  background: #f4f9fc;
  border-color: #b8d5df;
}
.btn.primary {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 3px 8px #008d9010;
}
.btn.primary:hover {
  background: var(--teal-dark);
}
.btn.small {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 11px;
  gap: 5px;
}
.btn.danger {
  color: #a43a3d;
  border-color: #edcccc;
  background: #fff5f5;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid transparent;
  color: #7b96a8;
  border-radius: 8px;
  padding: 0;
}
.icon-btn:hover {
  background: #edf5f8;
  color: var(--navy);
}
.danger-text {
  color: #b64e56 !important;
}
.success-text {
  color: #218779 !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
  color: #7d8c9b;
  background: #f0f4f8;
  white-space: nowrap;
}
.badge i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: #258b70;
  background: #eaf8f1;
}
.badge.blue {
  color: #3a83ae;
  background: #eef6fc;
}
.badge.amber {
  color: #ac8934;
  background: #fff7df;
}
.badge.red {
  color: #b64f56;
  background: #fff0f0;
}
.empty {
  padding: 30px 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #a4b7c4;
  text-align: center;
}
.empty p {
  margin: 0;
  font-size: 12px;
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 25px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* One shared shell: compact branding and a non-scrolling desktop menu. */
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar);
  height: 100dvh;
  background: linear-gradient(180deg, var(--navy-deep), #163750);
  color: #dce8ef;
  display: flex;
  flex-direction: column;
  padding: 0 13px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 21px 12px;
  color: white;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  border-radius: 9px;
}
.brand span {
  display: grid;
  gap: 0;
}
.brand strong {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}
.brand small {
  font-size: 10px;
  color: #9db7c9;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid #ffffff10;
  overflow: visible;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #c4d5e2;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
}
.sidebar nav button:hover {
  background: #ffffff08;
}
.sidebar nav button.selected {
  background: #078f96;
  color: white;
  box-shadow: 0 4px 13px #041a2815;
}
.sidebar-foot {
  margin-top: auto;
}
.sidebar-version {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #86a8ba;
  padding: 16px 12px 12px;
}
.sidebar-version > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #46c3b5;
}
.operator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 5px 18px;
  border-top: 1px solid #ffffff16;
}
.person-avatar {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border-radius: 50%;
  color: #246276;
  background: #e7f3f6;
  font-size: 14px;
  font-weight: 700;
}
.operator > div {
  min-width: 0;
  flex: 1;
}
.operator strong {
  display: block;
  font-size: 10px;
  color: #e1edf4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator small {
  font-size: 9px;
  color: #a6bfce;
}
.operator > button {
  border: 0;
  background: transparent;
  color: #bbd0de;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.workspace {
  margin-right: var(--sidebar);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 58px;
  flex: 0 0 58px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7c92a3;
  min-width: 0;
}
.breadcrumb strong {
  color: #2e4c61;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #859baa;
  font-size: 10px;
  white-space: nowrap;
}
main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 27px 29px 40px;
  flex: 1;
  min-width: 0;
}
footer {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #8fa4b3;
  padding: 16px 29px;
}
.mobile-menu,
.scrim {
  display: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.page-heading p {
  margin: 0;
  color: #879baa;
  font-size: 11px;
}
.workspace-tag {
  font-size: 10px;
  color: #7495a7;
  border: 1px solid #dae8ef;
  border-radius: 8px;
  padding: 5px 10px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 19px;
  min-width: 0;
  overflow: visible;
}
.panel-head {
  padding: 17px 19px;
  border-bottom: 1px solid #edf2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.panel-title p {
  margin: 3px 0 0;
  font-size: 10px;
  color: #8ca2b2;
}
.section-icon {
  display: inline-flex;
  color: #3d6b86;
}
.panel-body {
  padding: 18px 19px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}
.field > span {
  font-size: 11px;
  color: #7f919e;
}
.field b {
  color: #bd6872;
  font-weight: 400;
}
.field.wide,
.wide {
  grid-column: 1/-1;
}
.field small {
  font-size: 10px;
  line-height: 1.9;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.filter-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-form > .field {
  flex: 1 1 145px;
}
.filter-form > .wide {
  flex-basis: 100%;
}
.filter-disclosure {
  border: 1px solid #e1eaf0;
  border-radius: 10px;
  background: #fbfdff;
  padding: 9px 12px;
  margin-bottom: 17px;
}
.filter-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #476d84;
  font-size: 11px;
  min-height: 25px;
}
.filter-disclosure > summary::-webkit-details-marker {
  display: none;
}
.filter-disclosure > summary:after {
  content: "⌄";
  margin-inline-start: auto;
  font-size: 15px;
}
.filter-disclosure[open] > summary:after {
  content: "⌃";
}
.filter-disclosure .filter-form {
  border-top: 1px solid #e7eef3;
  padding-top: 13px;
  margin-top: 7px;
}
.filter-disclosure .pagination {
  padding-top: 6px;
  border: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.check-list > label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.check-list .bank-logo {
  width: 24px;
  height: 24px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf2f5;
  padding-top: 14px;
  margin-top: 15px;
  font-size: 10px;
  color: #8398a8;
}
.inline-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ac4e59;
  background: #fff3f3;
  border: 1px solid #efcfd2;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  margin-top: 12px;
}
.inline-error > svg {
  flex: 0 0 18px;
  margin-top: 3px;
}
.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: #7995a7;
  font-size: 12px;
}
.info-box {
  background: #f3f9fc;
  color: #577b90;
  padding: 12px;
  border-radius: 9px;
  font-size: 12px;
}
.form-section-label {
  border-top: 1px solid #e8eef2;
  color: #2f7c80;
  font-size: 12px;
  font-weight: 600;
  padding-top: 13px;
}
/* Lists and cards share the same density and action treatment. */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.stat {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  min-height: 113px;
  gap: 5px;
}
.stat > span:not(.stat-icon) {
  font-size: 11px;
  color: #899caa;
  padding-inline-end: 35px;
}
.stat > strong {
  font-size: 27px;
  font-weight: 600;
  color: #264a60;
  line-height: 1.5;
}
.stat-icon {
  position: absolute;
  left: 15px;
  top: 18px;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #6e9db9;
  background: #f0f6fb;
}
.stat.teal .stat-icon,
.stat.green .stat-icon {
  color: #279b8d;
  background: #eaf9f2;
}
.stat.amber .stat-icon {
  color: #b59a58;
  background: #fdf7e9;
}
.amount-stat > strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.amount-stat > strong small {
  font-size: 10px;
  font-weight: 400;
}
.taxpayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 15px;
}
.payer-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.payer-symbol,
.job-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  background: #edf7fb;
  color: #5c92ae;
  border-radius: 12px;
}
.payer-symbol.gold,
.job-symbol.gold {
  color: #aa8b4a;
  background: #faf6e9;
}
.payer-card-title {
  flex: 1;
  min-width: 100px;
}
.payer-card-title h3 {
  font-size: 13px;
  margin: 0;
}
.payer-card-title p {
  font-size: 10px;
  color: #8ba0af;
  margin: 3px 0 0;
}
.payer-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
  border-top: 1px solid #edf2f6;
  padding-top: 12px;
  margin-top: 5px;
}
.payer-bottom > .btn {
  margin-inline-end: auto;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 16px;
}
.job-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px;
}
.job-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.job-card-top > div {
  flex: 1;
}
.job-card-top h3 {
  font-size: 13px;
}
.job-card-top small {
  font-size: 10px;
}
.job-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.job-card .form-footer {
  border-top: 1px solid #edf2f5;
  padding-top: 13px;
}
.table-wrap {
  overflow-x: auto;
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
thead {
  background: #f1f6fa;
  font-size: 10px;
  color: #8aa0af;
  text-align: right;
}
th {
  font-weight: 500;
  padding: 10px 11px;
  white-space: nowrap;
}
td {
  padding: 14px 11px;
  border-bottom: 1px solid #eaf0f4;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}
td .actions {
  flex-wrap: wrap;
}
.bank-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bank-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
  background: white;
  border: 1px solid #e7edf1;
  border-radius: 9px;
  padding: 2px;
}
.bank-fallback {
  display: inline-grid;
  place-items: center;
  background: #f1f7fa;
  color: #7b9cae;
}
.bank-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bank-identity strong {
  font-size: 12px;
  display: block;
}
.bank-identity small {
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.bank-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bank-picker select {
  flex: 1;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.account-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
}
.account-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.account-numbers {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 9px;
  border-bottom: 1px solid #edf2f5;
  margin-top: 13px;
  padding-bottom: 12px;
}
.account-numbers > span {
  font-size: 10px;
  color: #8c9eab;
}
.account-numbers > strong {
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
  user-select: text;
}
.account-dates {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  justify-content: space-between;
}
.account-dates div {
  display: grid;
  gap: 4px;
}
.account-dates span {
  font-size: 10px;
  color: #8c9eab;
}
.account-dates strong {
  font-size: 11px;
  font-weight: 500;
}
.next-date {
  margin-top: 12px;
  border-radius: 7px;
  background: #f0f9f6;
  color: #64998c;
  padding: 6px 9px;
  font-size: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.next-date strong {
  color: #2e8d7e;
  font-size: 11px;
}
.account-card .form-footer {
  margin-top: 13px;
}
.case-identity {
  padding: 21px 22px;
}
.identity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.identity-top h1 {
  font-size: 22px;
  margin-bottom: 6px;
}
.identity-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}
.identity-meta > div {
  border-inline-end: 1px solid #e4edf2;
  padding-inline: 15px;
  min-width: 0;
}
.identity-meta > div:first-child {
  padding-inline-start: 0;
}
.identity-meta > div:last-child {
  border: 0;
}
.identity-meta span {
  display: block;
  font-size: 10px;
  color: #8da1ae;
  margin-bottom: 6px;
}
.identity-meta strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.case-section {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  margin-bottom: 19px;
  overflow: hidden;
}
.case-section > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 19px;
  list-style: none;
  cursor: pointer;
}
.case-section > summary::-webkit-details-marker {
  display: none;
}
.case-section > summary > strong {
  font-size: 14px;
  font-weight: 600;
}
.case-section > summary > span {
  margin-inline-start: auto;
  font-size: 10px;
  color: #8ca0ad;
}
.case-section > summary > svg:last-child {
  margin-inline-start: auto;
  color: #7e9daf;
  transition: transform 0.2s;
}
.case-section[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
.case-section[open] > summary {
  border-bottom: 1px solid #e9f0f4;
}
.case-section .panel {
  border: 0;
  margin: 0;
  border-radius: 0;
}
.case-section .panel-head {
  padding-top: 13px;
}
.rules-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  background: #f7fafc;
  padding: 14px 16px;
  border-radius: 10px;
}
.rules-overview > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.rules-overview span {
  font-size: 10px;
  color: #8a9fac;
}
.rules-overview strong,
.rules-overview a {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.goods-grid {
  display: grid;
  gap: 12px;
}
.good-row {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
}
.good-row.selected {
  border-color: #b5ddd2;
  background: #fcfffe;
}
.good-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.good-title {
  flex: 1;
  min-width: 120px;
  display: grid;
  gap: 3px;
}
.good-title strong {
  font-size: 12px;
}
.good-title small {
  font-size: 10px;
}
.good-price {
  display: grid;
  gap: 3px;
  min-width: 100px;
}
.good-price strong {
  font-size: 11px;
  color: #49758b;
}
.good-price small {
  font-size: 10px;
}
.good-rules {
  margin-top: 11px;
  border-top: 1px solid #edf2f5;
  padding-top: 8px;
}
.good-rules summary {
  font-size: 10px;
  color: #7c98a7;
  cursor: pointer;
}
.good-rules > .form-grid {
  margin-top: 12px;
}
.season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.season-pills label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce8ed;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
}
.sticky-save {
  position: sticky;
  bottom: 10px;
  background: #f0faf7;
  border: 1px solid #acd8ce;
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  font-size: 11px;
  z-index: 3;
}
.file-list,
.history-list,
.activity-list,
.delivery-list {
  display: grid;
}
.file-row,
.history-list > article,
.delivery-list > article {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f5;
  min-width: 0;
}
.file-row:last-child,
.history-list > article:last-child,
.delivery-list > article:last-child {
  border-bottom: 0;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 43px;
  flex: 0 0 41px;
  background: #f0f6fb;
  color: #7a9eb4;
  border-radius: 11px;
}
.file-icon.green {
  color: #289c70;
  background: #edf9f1;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.file-info small,
.history-list small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.file-info p {
  font-size: 11px;
  color: #6c8799;
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.activity-list > article {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f5;
}
.activity-list > article:last-child {
  border: 0;
}
.activity-list > article > div {
  flex: 1;
}
.activity-list strong {
  font-size: 12px;
  font-weight: 600;
}
.activity-list p {
  font-size: 11px;
  color: #8ca0af;
  margin: 3px 0 0;
}
.activity-list time {
  font-size: 10px;
  color: #8fa2af;
  white-space: nowrap;
  display: grid;
  justify-items: end;
  gap: 2px;
}
.activity-list time small {
  font-size: 9px;
}
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.buyer-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
}
.buyer-grid article strong {
  font-size: 12px;
}
.buyer-grid small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.price-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f5;
}
.price-current > span {
  font-size: 12px;
}
.price-current strong {
  font-size: 16px;
}
.archive-type {
  max-width: 250px;
  margin-bottom: 15px;
}
/* Settings forms keep their own controlled state; polling only updates job lists. */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.settings-grid > .check-row {
  grid-column: 1/-1;
  margin-bottom: 3px;
}
.storage-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 17px;
}
.storage-metrics > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7fafc;
  border-radius: 10px;
  padding: 13px 15px;
}
.storage-metrics span {
  font-size: 11px;
  color: #7a94a5;
  flex: 1;
}
.storage-metrics strong {
  font-size: 12px;
  font-weight: 600;
}
.storage-metrics small {
  font-size: 10px;
}
.storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 13px;
  margin-top: 17px;
}
.storage-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 15px;
}
.selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.selection-heading strong {
  font-size: 13px;
}
.storage-card code {
  display: block;
  margin: 10px 0;
  font-size: 10px;
}
.storage-card > small {
  display: block;
  margin: 5px 0;
  font-size: 10px;
}
.storage-card p {
  font-size: 11px;
  color: #7a96a7;
  margin: 9px 0;
}
.storage-card .actions {
  margin-top: 12px;
}
.move-section {
  margin-top: 22px;
  border-top: 1px solid #e4edf2;
  padding-top: 18px;
}
.move-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.move-section > p {
  font-size: 11px;
  margin: 7px 0 14px;
}
progress {
  accent-color: var(--teal);
  width: 120px;
  height: 7px;
  border-radius: 5px;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.connection-row > div {
  display: grid;
  gap: 10px;
}
.connection-row code {
  direction: ltr;
  color: #6e91aa;
  font-size: 11px;
}
/* Dialogs use the same controls and spacing as the reference application. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #16334970;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 80px #17354b22;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8eff4;
  flex: 0 0 auto;
}
.dialog-head h2 {
  font-size: 16px;
}
.dialog > form,
.dialog > div:not(.dialog-head) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dialog-content {
  padding: 21px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid #e8eff4;
  flex: 0 0 auto;
  background: white;
}
.dialog-footer .btn {
  min-height: 37px;
}
.dialog .filter-form > .field {
  flex-basis: 130px;
}
.dialog .file-row {
  flex-wrap: wrap;
}
.dialog .file-info {
  min-width: 160px;
}
.draft-saved {
  padding: 11px 13px;
  border: 1px solid #e7d6a3;
  background: #fffbef;
  border-radius: 9px;
  margin-bottom: 15px;
  font-size: 11px;
}
.draft-saved summary {
  cursor: pointer;
  font-weight: 600;
  color: #947c40;
}
.draft-saved p {
  margin: 8px 0;
  color: #8b7a51;
}
.draft-saved article {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e9e2ca;
}
.draft-saved article span {
  flex: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 23px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(460px, calc(100vw - 30px));
  background: #eaf8f3;
  border: 1px solid #b0dacd;
  border-radius: 11px;
  padding: 11px 14px;
  color: #287a69;
  box-shadow: 0 8px 25px #18394d12;
  font-size: 12px;
  z-index: 250;
}
.toast > svg {
  flex: 0 0 19px;
}
.toast > button {
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.toast.error {
  color: #a44755;
  background: #fff3f3;
  border-color: #e8c4cc;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #eadcad;
  background: #fffaf0;
  color: #9e8a55;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 20px;
  font-size: 10px;
}
.demo-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-bar select {
  font-size: 10px;
  min-height: 30px;
  padding: 4px 7px;
  background: #fffdf7;
  border-color: #e8d9b0;
  max-width: 200px;
}
/* Persian calendar is rendered in a portal and stays inside the viewport. */
.date-input {
  display: flex;
  align-items: center;
  position: relative;
}
.date-input input {
  width: 100%;
  padding-left: 43px !important;
  padding-right: 12px !important;
  text-align: center;
}
.date-input > button {
  position: absolute;
  inset-inline-end: 7px;
  background: #edf7f6;
  color: #17897e;
  border: 0;
  border-radius: 7px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.jalali-picker {
  position: fixed;
  width: 300px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: white;
  border: 1px solid #dce7ec;
  border-radius: 14px;
  box-shadow: 0 18px 65px #14293b30;
  padding: 13px;
  z-index: 1000;
  font-family: inherit;
}
.calendar-head {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-head select {
  font: inherit;
  font-size: 12px;
  border: 1px solid #e0e7ee;
  border-radius: 7px;
  padding: 5px 3px;
  background: #f8fafc;
  max-width: 104px;
  min-height: 34px;
}
.calendar-head button,
.calendar-foot button {
  border: 0;
  background: #eef6f5;
  border-radius: 7px;
  color: #158478;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  min-height: 30px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.calendar-days > span {
  color: #8694a3;
  font-size: 11px;
  padding: 4px;
}
.calendar-days button {
  font: inherit;
  font-size: 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  height: 32px;
  cursor: pointer;
  color: #304358;
}
.calendar-days button:hover {
  background: #e7f7f3;
}
.calendar-days button.chosen {
  background: #16887c;
  color: white;
}
.calendar-foot {
  border-top: 1px solid #edf0f4;
  margin-top: 11px;
  padding-top: 9px;
  display: flex;
  gap: 8px;
}
.calendar-foot button {
  font: inherit;
  font-size: 11px;
}
.calendar-foot button:last-child {
  margin-inline-start: auto;
}
/* Sign-in keeps configured identity and has no separate fake mockup layer. */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}
.login-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #143650, #0d304b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 45px;
}
.login-art > img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 21px;
}
.login-art h1 {
  font-size: 29px;
  font-weight: 600;
}
.login-art p {
  font-size: 13px;
  color: #aac6d5;
}
.login-lines {
  position: absolute;
  bottom: -60px;
  left: -90px;
  width: 420px;
  height: 420px;
  opacity: 0.14;
}
.login-lines span {
  position: absolute;
  inset: 0;
  border: 1px solid #83d4cd;
  border-radius: 30%;
  transform: rotate(30deg);
}
.login-lines span:nth-child(2) {
  inset: 25px;
  transform: rotate(45deg);
}
.login-lines span:nth-child(3) {
  inset: 50px;
  transform: rotate(60deg);
}
.login-card {
  width: min(420px, calc(100% - 60px));
  align-self: center;
  justify-self: center;
  padding: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}
.login-card > img {
  width: 145px;
  max-height: 65px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 9px;
}
.login-card h2 {
  font-size: 25px;
  margin: 0;
}
.login-card > p {
  font-size: 11px;
  color: #94a5b1;
  margin: -7px 0 9px;
}
.login-card > .btn {
  margin-top: 7px;
  min-height: 42px;
}
@media (min-width: 1500px) {
  :root {
    --sidebar: 230px;
  }
  main {
    padding-inline: 36px;
  }
  .topbar {
    padding-inline: 36px;
  }
}
@media (max-height: 650px) and (min-width: 901px) {
  .brand {
    min-height: 70px;
    padding-block: 12px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .sidebar nav {
    padding-top: 8px;
    gap: 3px;
  }
  .sidebar nav button {
    min-height: 34px;
    padding-block: 6px;
    font-size: 11px;
  }
  .operator {
    padding-block: 9px;
  }
  .sidebar-version {
    padding-block: 8px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 195px;
  }
  main {
    padding: 22px 20px 30px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat {
    padding: 15px 13px;
  }
  .stat > span:not(.stat-icon) {
    font-size: 10px;
  }
  .account-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
  .file-row {
    flex-wrap: wrap;
  }
  .file-row > .actions {
    margin-inline-start: auto;
  }
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .storage-metrics > div {
    flex-wrap: wrap;
  }
  .storage-metrics span {
    flex-basis: 100%;
  }
  .good-price {
    min-width: 95px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.2s;
    width: 220px;
    max-width: 80vw;
  }
  .drawer-open .sidebar {
    transform: translateX(0);
  }
  .workspace {
    margin-right: 0;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .scrim {
    position: fixed;
    inset: 0;
    border: 0;
    background: #18334666;
    z-index: 35;
  }
  .drawer-open .scrim {
    display: block;
  }
  .topbar {
    height: 53px;
    flex-basis: 53px;
  }
  .header-date {
    font-size: 10px;
  }
  .sidebar nav button {
    min-height: 42px;
  }
  .brand {
    min-height: 83px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    min-height: 104px;
  }
  .identity-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .identity-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  .identity-meta > div {
    padding-inline: 10px;
  }
  .identity-meta > div:nth-child(odd) {
    padding-inline-start: 0;
  }
  .identity-meta > div:nth-child(even) {
    border: 0;
  }
  .identity-top h1 {
    font-size: 21px;
  }
  .case-identity {
    padding: 19px;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .rules-overview {
    gap: 12px;
  }
  .activity-list time {
    font-size: 9px;
  }
  .toast {
    bottom: 17px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-card {
    width: min(440px, calc(100% - 36px));
    padding: 27px;
  }
  .login-card > img {
    width: 160px;
    max-height: 72px;
  }
  .login-card h2 {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 12px;
  }
  .topbar {
    padding-inline: 14px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 5px;
  }
  .header-date {
    font-size: 9px;
    gap: 4px;
  }
  .header-date svg {
    width: 14px;
  }
  main {
    padding: 20px 13px 28px;
  }
  footer {
    padding: 14px 15px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 17px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .page-heading > .actions {
    width: 100%;
  }
  .page-heading > .actions > .btn {
    flex: 1;
  }
  .page-heading h1 {
    font-size: 21px;
  }
  .workspace-tag {
    display: none;
  }
  .panel {
    margin-bottom: 15px;
    border-radius: 12px;
  }
  .panel-head {
    padding: 14px;
  }
  .panel-body {
    padding: 14px;
  }
  .panel-title h2 {
    font-size: 14px;
  }
  .panel-head > .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .panel-head > .actions .btn {
    flex: 1;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat {
    padding: 13px;
    min-height: 99px;
    border-radius: 11px;
  }
  .stat > strong {
    font-size: 23px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
    left: 12px;
    top: 13px;
    border-radius: 8px;
  }
  .stat-icon svg {
    width: 19px;
  }
  .stat > span:not(.stat-icon) {
    font-size: 10px;
    padding-inline-end: 27px;
  }
  .amount-stat > strong {
    font-size: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .field > span {
    font-size: 11px;
  }
  input,
  select,
  textarea {
    min-height: 42px;
    font-size: 12px;
  }
  .btn {
    min-height: 39px;
    padding: 8px 11px;
  }
  .btn.small {
    min-height: 34px;
  }
  .icon-btn {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }
  .case-identity {
    padding: 17px;
  }
  .identity-top > .actions {
    width: 100%;
    gap: 8px;
  }
  .identity-meta {
    margin-top: 19px;
    gap: 15px;
  }
  .identity-meta strong {
    font-size: 11px;
  }
  .case-section {
    margin-bottom: 15px;
  }
  .case-section > summary {
    padding: 15px;
  }
  .case-section > summary > strong {
    font-size: 13px;
  }
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .account-card {
    padding: 14px;
  }
  .account-numbers .latin {
    font-size: 11px;
  }
  .rules-overview {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }
  .rules-overview > div:last-child {
    grid-column: 1/-1;
  }
  .account-card-head .bank-identity {
    gap: 8px;
  }
  .good-overview {
    gap: 9px;
  }
  .good-overview .good-title {
    min-width: 130px;
  }
  .good-price {
    flex: 1;
  }
  .good-overview > .actions {
    margin-inline-start: auto;
  }
  .good-overview > .check-row {
    align-self: flex-start;
  }
  .good-row {
    padding: 12px;
  }
  .sticky-save {
    bottom: 8px;
    flex-wrap: wrap;
  }
  .filter-form {
    gap: 11px;
  }
  .filter-form > .field {
    flex-basis: 100%;
  }
  .filter-form > .actions {
    width: 100%;
  }
  .filter-form > .actions > .btn {
    flex: 1;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 9px;
  }
  .pagination > .actions {
    margin-inline-start: auto;
  }
  .table-wrap {
    overflow: visible;
  }
  .table-wrap table,
  .table-wrap tbody {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    display: block;
    border: 1px solid #e1eaf0;
    border-radius: 10px;
    padding: 7px 11px;
    margin-bottom: 10px;
  }
  .table-wrap td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #eef3f6;
    padding: 9px 0;
    font-size: 11px;
    text-align: left;
  }
  .table-wrap td:before {
    content: attr(data-label);
    font-size: 10px;
    color: #8ba0ad;
    flex: 0 0 66px;
    text-align: right;
  }
  .table-wrap td:last-child {
    border: 0;
  }
  .table-wrap td .actions {
    justify-content: flex-end;
  }
  .table-wrap td strong {
    font-size: 11px;
  }
  .table-wrap td > .bank-name {
    flex: 1;
    justify-content: flex-end;
  }
  .file-row,
  .delivery-list > article,
  .history-list > article {
    flex-wrap: wrap;
    gap: 9px;
  }
  .file-info {
    min-width: 160px;
  }
  .file-row > .badge {
    margin-inline-start: auto;
  }
  .file-row > .actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .delivery-list > article > .actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .file-icon {
    width: 34px;
    height: 37px;
    flex-basis: 34px;
  }
  .activity-list > article {
    gap: 9px;
    padding: 12px 0;
  }
  .activity-list .person-avatar {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 12px;
  }
  .activity-list strong {
    font-size: 11px;
  }
  .activity-list p {
    font-size: 10px;
  }
  .activity-list time {
    font-size: 9px;
  }
  .activity-list time small {
    font-size: 9px;
  }
  .storage-metrics {
    gap: 10px;
  }
  .storage-metrics > div {
    padding: 11px;
    gap: 4px;
  }
  .storage-metrics strong {
    font-size: 12px;
  }
  .storage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .connection-row {
    flex-wrap: wrap;
  }
  .connection-row code {
    font-size: 10px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 13px;
  }
  .dialog-head {
    padding: 15px;
  }
  .dialog-head h2 {
    font-size: 15px;
  }
  .dialog-content {
    padding: 17px 15px;
  }
  .dialog-footer {
    padding: 12px 15px;
  }
  .dialog-footer > .btn {
    flex: 1;
    min-height: 40px;
  }
  .demo-bar {
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px;
    font-size: 9px;
  }
  .demo-bar > label {
    width: 100%;
    justify-content: space-between;
  }
  .demo-bar select {
    width: 185px;
    max-width: 100%;
  }
  .price-current {
    flex-wrap: wrap;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .login-card {
    width: calc(100% - 30px);
    padding: 25px 23px;
    gap: 16px;
  }
  .login-card > img {
    width: 165px;
    max-height: 78px;
  }
  .login-card .field {
    gap: 8px;
  }
  .login-card .field input {
    min-height: 46px;
  }
  .login-card > .btn {
    min-height: 45px;
  }
  .draft-saved article {
    flex-wrap: wrap;
  }
  .draft-saved article strong {
    width: 100%;
  }
}

/* Price review, reconciliation and evidence reports share the office UI. */
.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 12px;
}
.workspace-toolbar p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 20px;
}
.inline-editor {
  background: #f6fafb;
  border: 1px solid #c9e1e4;
  border-radius: 14px;
  padding: 20px;
  margin-block: 16px;
}
.inline-editor h3 {
  margin-block: 0 16px;
  font-size: 15px;
}
.price-select {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-select input {
  width: 20px;
  height: 20px;
  accent-color: #15989c;
}
.price-details {
  display: grid;
  gap: 5px;
  flex: 1 1 210px;
}
.price-details small {
  color: #526574;
  overflow-wrap: anywhere;
}
.success-message {
  padding: 12px 16px;
  background: #eaf8f1;
  color: #176448;
  border-radius: 10px;
}
.report-warnings {
  padding: 16px 20px;
  border: 1px solid #e6ce95;
  background: #fffaf0;
  color: #6e5217;
  border-radius: 12px;
  margin-block: 18px;
  line-height: 2;
}
.report-warnings ul {
  margin-bottom: 0;
  padding-inline-start: 22px;
}
.report-reasons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.report-reference {
  overflow-wrap: anywhere;
  direction: ltr;
  unicode-bidi: plaintext;
  max-width: 100%;
}
.processing-review {
  padding: 20px;
}
.candidate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  border-top: 1px solid #e4ebef;
}
@media (max-width: 680px) {
  .workspace-tabs .btn,
  .price-workspace .btn,
  .processing-review .btn,
  .btn.small {
    min-height: 44px;
  }
  .workspace-tabs {
    gap: 6px;
  }
  .workspace-tabs .btn {
    flex: 1 1 130px;
  }
  .inline-editor,
  .processing-review {
    padding: 14px;
  }
  .price-workspace .history-list article > .actions {
    width: 100%;
  }
}

/* Public intake is independent of the authenticated office navigation. */
.send-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 16px;
  background: #f3f7fb;
}
.send-card {
  width: 100%;
  max-width: 580px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 45px #15365012;
}
.send-brand {
  background: var(--navy);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.send-brand img {
  width: 100px;
  max-height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 5px;
}
.send-content {
  padding: 26px;
}
.send-content h1 {
  font-size: 22px;
  margin: 0 0 6px;
}
.send-content form {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.send-identified {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #edf9f0;
  border: 1px solid #9bcfaf;
  color: #245f3d;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
}
.send-identified strong,
.send-identified span {
  display: block;
}
.send-identified strong {
  font-size: 18px;
}
.send-content .field {
  margin-bottom: 16px;
}
.send-single {
  background: #f6f9fb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.send-upload {
  border: 1px dashed var(--teal);
  background: #f4fbfb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block: 18px;
}
.send-upload .field {
  width: 100%;
  margin: 0;
}
.send-upload input {
  max-width: 100%;
}
.send-files {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.send-files article {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
}
.send-files article div {
  flex: 1;
  min-width: 0;
}
.send-files strong {
  display: block;
  overflow-wrap: anywhere;
}
.send-files small {
  display: block;
  color: var(--muted);
}
.send-content > .btn {
  width: 100%;
  min-height: 46px;
}
.send-success {
  display: flex;
  gap: 10px;
  background: #edf9f0;
  color: #245f3d;
  padding: 16px;
  border-radius: 12px;
  margin-block: 18px;
}
.send-footer {
  color: var(--muted);
  text-align: center;
  margin: 20px 0 0;
  font-size: 12px;
}
@media (max-width: 600px) {
  .send-page {
    padding: 16px 10px;
  }
  .send-content {
    padding: 20px;
  }
  .send-brand {
    padding: 16px 20px;
  }
  .send-card {
    border-radius: 15px;
  }
  .send-page .btn {
    min-height: 44px;
  }
}
.send-upload .field {
  position: relative;
  border: 1px solid #97c9cc;
  border-radius: 10px;
  padding: 12px;
  background: white;
  cursor: pointer;
}
.send-upload .field > span {
  font-weight: 600;
  color: var(--teal-dark);
}
.send-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.send-upload .field:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.send-upload .field:has(input:disabled) {
  opacity: 0.55;
  cursor: wait;
}
