/* 印记后台 · 单一设计系统。通用组件定义在本文件；响应式规则只调整布局。 */
:root {
  --bg: #f4f5f7;
  --white: #fff;
  --ink: #20242d;
  --muted: #707681;
  --line: #e5e7eb;
  --yellow: #ffdb55;
  --yellow-soft: #fff9df;
  --sidebar: #171b24;
  --red: #bd3c39;
  --blue: #32619b;
  --green: #20835b;
  --radius: 12px;
  font-size: 16px;
  color-scheme: light;
  --control-height: 44px;
  --control-radius: 8px;
  --control-border: #d8dde5;
  --focus: #a08018;
  --focus-ring: 0 0 0 3px #e8bb332e;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

[hidden] {
  display: none!important;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.03em;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
}

h3 {
  font-size: .9375rem;
  font-weight: 650;
}

.oa-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.small,.subline {
  font-size: .8125rem;
}

.muted {
  color: var(--muted);
}

.late {
  color: var(--red)!important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.sidebar {
  width: 206px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #d1d5df;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 29px 16px 23px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px;
  margin-bottom: 45px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  border-radius: 10px;
  background: var(--yellow);
  color: #181b22;
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
}

.brand small {
  display: block;
  color: #828b9d;
  font-size: .75rem;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: .05em;
}

.nav-caption {
  color: #737d90;
  font-size: .75rem;
  padding: 0 15px;
  margin-bottom: 13px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 8px;
  margin: 5px 0;
  font-size: .9375rem;
  min-height: 48px;
}

.nav-item>.oa-icon {
  color: #8e98ab;
}

.nav-item:hover {
  background: #252a36;
  color: #fff;
}

.nav-item.active {
  background: var(--yellow);
  color: #1c2028;
  font-weight: 700;
}

.nav-item.active>.oa-icon {
  color: #343529;
}

.nav-item b {
  margin-left: auto;
  font-size: .75rem;
  background: #333b4d;
  border-radius: 5px;
  min-width: 20px;
  text-align: center;
  color: #dbe0ec;
}

.nav-item.active b {
  background: #242832;
  color: #fff;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #343a46;
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: .875rem;
}

.sidebar-foot small {
  display: block;
  font-size: .75rem;
  color: #838d9e;
  margin-top: 3px;
}

.shop-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--yellow);
}

.workspace {
  margin-left: 206px;
  min-width: 0;
}

.topbar {
  height: 75px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  color: #565e6b;
}

.separator {
  margin: 0 12px;
  color: #c2c6cd;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.today {
  color: #797f89;
  font-size: .8125rem;
  margin-right: 12px;
}

.avatar {
  width: 35px;
  height: 35px;
  background: #f1f0eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .875rem;
  font-weight: 650;
  flex-shrink: 0;
}

.role-control {
  display: block;
}

.role-control>span {
  font-size: .75rem;
  color: #818791;
  display: block;
  line-height: 1.3;
}

.mode-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf4;
  border-bottom: 1px solid #ece6ce;
  padding: 9px 28px;
  font-size: .8125rem;
  color: #776842;
}

.mode-strip>.oa-icon {
  width: 15px;
  height: 15px;
}

.mode-strip>a {
  margin-left: auto;
  white-space: nowrap;
}

.mode-strip>a>.oa-icon {
  width: 13px;
  height: 13px;
}

.mobile-menu {
  display: none!important;
}

main {
  padding: 29px 28px 48px;
  max-width: 1900px;
  margin: auto;
  outline: none!important;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-head p {
  font-size: .875rem;
  color: var(--muted);
  margin-top: 8px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce0e5;
  background: #fff;
  border-radius: var(--control-radius);
  font-size: .875rem;
  font-weight: 550;
  padding: 9px 13px;
  min-height: var(--control-height);
  white-space: nowrap;
  transition: background .12s,border-color .12s;
}

.btn>.oa-icon {
  width: 17px;
  height: 17px;
}

.btn:hover:not(:disabled) {
  background: #f4f5f6;
  border-color: #bec4ce;
}

.btn.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #22251f;
}

.btn.primary:hover:not(:disabled) {
  background: #f4cd3f;
  border-color: #f4cd3f;
}

.btn.subtle {
  background: #f9fafb;
}

.btn.danger-text {
  color: var(--red);
  border-color: #f0dbd9;
  background: #fff;
}

.btn.small-btn {
  min-height: 31px;
  padding: 5px 10px;
  font-size: .8125rem;
}

.btn.full {
  width: 100%;
  margin-top: 15px;
}

.btn.icon-btn {
  width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 5px;
  border-color: transparent;
  background: transparent;
}

.text-link {
  font-size: .875rem;
  color: #53627a;
  white-space: nowrap;
}

.text-link>.oa-icon {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  color: #171b24;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 24px;
}

.metric {
  text-align: left;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .15s,border-color .15s;
}

.metric:hover {
  border-color: #bfb58f;
  transform: translateY(-2px);
}

.metric:first-child {
  border-top: 3px solid var(--yellow);
  padding-top: 19px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9375rem;
  color: #4b535e;
}

.metric-label>span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #f4f5f7;
  color: #697487;
}

.metric:first-child .metric-label>span {
  background: #fff5c9;
  color: #95801c;
}

.metric>strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 9px 0 7px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.metric>strong>small {
  font-size: .8125rem;
  font-weight: 400;
  margin-left: 9px;
  color: #9499a1;
  letter-spacing: 0;
}

.metric>p {
  font-size: .8125rem;
  color: #8a909a;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 22px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 21px;
  border-bottom: 1px solid #eef0f3;
  min-height: 63px;
}

.panel-body {
  padding: 22px;
}

.attention-list {
  padding: 6px 19px;
}

.attention-list>button,.attention-list>a {
  display: flex;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  width: 100%;
  gap: 12px;
  padding: 19px 0;
}

.attention-list>:last-child {
  border-bottom: 0;
}

.attention-list>button:hover strong,.attention-list>a:hover strong {
  color: #947914;
}

.attention-icon {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: #fff0ef;
  color: #c3574f;
  border-radius: 8px;
  flex-shrink: 0;
}

.attention-icon.amber {
  background: #fff4de;
  color: #b17a2d;
}

.attention-icon.blue {
  background: #edf3fd;
  color: #5075a7;
}

.attention-icon>.oa-icon {
  width: 18px;
  height: 18px;
}

.attention-list strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
}

.attention-list div>span {
  display: block;
  font-size: .75rem;
  color: #8b919b;
  margin-top: 3px;
}

.attention-list b {
  margin-left: auto;
  font-size: 1.125rem;
}

.calm-state {
  text-align: center;
  padding: 29px 17px;
  color: #7b8492;
}

.calm-state>.oa-icon {
  display: block;
  background: #edf5f0;
  border-radius: 50%;
  color: #398562;
  padding: 7px;
  width: 37px;
  height: 37px;
  margin: 0 auto 11px;
}

.calm-state strong {
  color: #626d7b;
  font-size: .875rem;
  display: block;
}

.calm-state p {
  font-size: .8125rem;
  margin-top: 7px;
}

.tiny-note {
  display: flex;
  gap: 8px;
  font-size: .75rem;
  color: #8e959f;
  align-items: flex-start;
  padding: 0 4px;
}

.tiny-note>.oa-icon {
  width: 15px;
  height: 15px;
}

.small-list>a {
  display: block;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}

.small-list strong {
  font-size: .875rem;
}

.small-list p {
  font-size: .8125rem;
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
  font-size: .875rem;
}

th {
  font-size: .8125rem;
  color: #787f8c;
  font-weight: 500;
  background: #fafbfc;
  white-space: nowrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 17px 18px;
  border-bottom: 1px solid #eef0f3;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fdfcf8;
}

td>strong {
  font-size: .8755rem;
  font-weight: 600;
}

.order-number {
  font-size: .75rem;
  color: #7c8593;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-number:hover {
  color: #252a34;
  text-decoration: underline;
}

.product-name {
  display: block!important;
  margin: 5px 0 2px;
  font-size: .9375rem!important;
  color: #272d37;
}

.product-name small {
  font-size: .8125rem;
  color: #8b939f;
  font-weight: 400;
  margin-left: 3px;
}

.subline {
  display: block;
  color: #828995;
  font-size: .75rem;
  margin-top: 5px;
  white-space: normal;
  max-width: 235px;
  line-height: 1.55;
}

.urgent {
  color: #b8592f;
  background: #fff0e3;
  font-size: .75rem;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 7px;
  white-space: nowrap;
}

.money {
  font-variant-numeric: tabular-nums;
}

.money.outstanding {
  color: #b46d32;
}

.deadline {
  font-size: .875rem;
  white-space: nowrap;
}

.btn.table-next {
  color: #6e5b22;
  font-size: .8125rem;
}

.oa-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .75rem;
  line-height: 1.4;
  white-space: nowrap;
  background: #f0f2f5;
  color: #6f7887;
  font-weight: 500;
}

.oa-badge.is-yellow {
  background: #fff4c9;
  color: #9a7512;
}

.oa-badge.is-orange {
  background: #fff0df;
  color: #b17431;
}

.oa-badge.is-blue {
  background: #eef3fc;
  color: #5173a4;
}

.oa-badge.is-purple {
  background: #f1eefa;
  color: #7a61a2;
}

.oa-badge.is-green {
  background: #ebf6ee;
  color: #3c895c;
}

.oa-badge.is-cyan {
  background: #e9f5f5;
  color: #398389;
}

.oa-badge.is-red {
  background: #ffefed;
  color: #bc5952;
}

.empty {
  padding: 55px 24px;
  text-align: center;
  color: #9ba2ae;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.empty>.oa-icon {
  width: 34px;
  height: 34px;
  color: #b8c0cc;
}

.empty>strong {
  font-size: .9375rem;
  color: #77808d;
}

.empty p {
  font-size: .875rem;
  max-width: 400px;
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: 23px;
  padding: 0 21px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.tabs>button,.tabs>a {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 17px 0 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #7a818d;
  font-size: .875rem;
  min-height: 56px;
}

.tabs .selected {
  color: #282c32;
  border-bottom-color: #e6bf2d;
  font-weight: 650;
}

.tabs span {
  font-size: .75rem;
  color: #9b9fa6;
}

.tabs .selected span {
  color: #9b8226;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 21px;
  border-bottom: 1px solid #f0f1f3;
}

.search-input {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 240px;
  flex: 1;
}

.search-input>.oa-icon {
  position: absolute;
  left: 11px;
  color: #99a0ac;
  width: 17px;
  height: 17px;
}

.search-input input {
  padding-left: 36px;
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 21px;
  font-size: .8125rem;
  color: #88909b;
}

.pagination>div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination .btn {
  font-weight: 400;
  font-size: .8125rem;
  padding: 6px 12px;
  min-height: 31px;
}

.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #7b828e;
  font-size: .8125rem;
  margin-bottom: 16px;
}

.back-link .oa-icon {
  width: 15px;
  height: 15px;
}

.order-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -9px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.order-status-row>span:last-child {
  font-size: .8125rem;
  color: #8b929c;
}

.pipeline {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
  gap: 10px;
}

.pipeline>div {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a4aab3;
  position: relative;
  font-size: .875rem;
}

.pipeline>div:not(:last-child):after {
  content: "";
  height: 1px;
  background: #e5e8ed;
  flex: 1;
  margin: 0 11px;
}

.pipeline>div>span {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f3f5;
  font-size: .8125rem;
}

.pipeline strong {
  font-weight: 500;
}

.pipeline>div.reached {
  color: #6b663f;
}

.pipeline>div.reached>span {
  background: #fff5cc;
  color: #9b832f;
}

.pipeline>div.current {
  color: #272b34;
}

.pipeline>div.current>span {
  background: var(--yellow);
  color: #282a24;
}

.pipeline>div>span>.oa-icon {
  width: 14px;
  height: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 302px;
  gap: 22px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  font-size: .875rem;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.detail-row>span {
  color: #848b95;
  flex-shrink: 0;
  font-size: .8125rem;
  padding-top: 1px;
}

.detail-row>div {
  text-align: right;
  max-width: 75%;
  line-height: 1.65;
}

.customer-title {
  font-size: 1rem;
}

.customer-title+p {
  font-size: .875rem;
  margin-top: 6px;
}

.customer-remark {
  background: #faf9f4;
  padding: 12px;
  border-radius: 7px;
  margin: 15px 0;
}

.customer-remark>span {
  font-size: .75rem;
  color: #9d906e;
}

.customer-remark>p {
  font-size: .875rem;
  color: #696357;
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.balance {
  padding: 15px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.balance>span {
  font-size: .875rem;
}

.balance>strong {
  font-size: 1.3rem;
  color: #bb7734;
}

.next-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fffbeb;
  border: 1px solid #f0e3b5;
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 24px;
}

.next-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffedb0;
  color: #826e27;
  flex-shrink: 0;
}

.next-card>div:nth-child(2) {
  flex: 1;
}

.eyebrow {
  font-size: .75rem;
  color: #a99354;
}

.next-card h2 {
  font-size: 1.0625rem;
  margin: 2px 0 6px;
}

.next-card p {
  color: #92845f;
  font-size: .8125rem;
  max-width: 520px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.next-card>.btn {
  flex-shrink: 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 26px 0 13px;
}

.section-title.first {
  margin-top: 0;
}

.section-title p {
  font-size: .875rem;
  margin-top: 8px;
  font-weight: 400;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
}

.inset {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  background: #fdfdfe;
}

.inset>.actions:not(:empty) {
  margin-top: 10px;
}

.note-list article {
  background: #f8f9fb;
  border-left: 3px solid #e8ebef;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 0 6px 6px 0;
}

.note-list p {
  font-size: .9375rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-list span {
  color: #9198a2;
  font-size: .75rem;
  margin-top: 7px;
  display: block;
}

.note-list>p {
  font-size: .875rem;
}

.bottom-action {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 25px;
}

.pickup-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.pickup-code span {
  font-size: .8125rem;
  color: #89919b;
}

.pickup-code strong {
  font-size: 1.625rem;
  letter-spacing: .15em;
  color: #585a4e;
}

.history {
  font-size: .875rem;
  margin-top: 15px;
}

.history summary,.proof-history summary {
  cursor: pointer;
  color: #707b8a;
  padding: 6px 0;
}

.history a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.history a>span {
  display: block;
  font-size: .75rem;
  color: #8a929e;
  margin-top: 5px;
}

.proof-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8f7fc;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 15px;
}

.proof-summary>div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.proof-summary>div>span:last-child {
  font-size: .8125rem;
  color: #8b829b;
}

.file-row {
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px;
  gap: 14px;
  margin-bottom: 15px;
}

.file-row.chosen {
  border-color: #dbdfc9;
  background: #fffffc;
}

.file-glyph {
  width: 45px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f1f4f8;
  border-radius: 7px;
  color: #8591a3;
  flex-shrink: 0;
  gap: 3px;
}

.file-glyph>small {
  font-size: .75rem;
}

.file-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-copy>strong {
  font-size: .9375rem;
}

.file-meta {
  font-size: .75rem;
  color: #98a0ab;
  margin-top: 5px;
}

.file-copy>p {
  font-size: .8125rem;
  color: #747e8c;
  margin: 7px 0 10px;
}

.file-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.file-actions .btn {
  font-size: .8125rem;
  min-height: 32px;
  padding: 6px 10px;
}

.selected-file {
  font-size: .75rem;
  color: #898027;
}

.proof-history {
  font-size: .875rem;
  margin-top: 25px;
}

.proof-history>div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.proof-history>div>span:last-child {
  font-size: .75rem;
  color: #959aa4;
}

.ledger article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.ledger article>div:nth-child(2) {
  flex: 1;
  overflow-wrap: anywhere;
}

.ledger article>div:nth-child(2)>span,.ledger small {
  display: block;
  color: #8e96a2;
  font-size: .75rem;
  margin-top: 5px;
}

.ledger article>div:last-child {
  text-align: right;
}

.ledger strong {
  font-size: .875rem;
}

.ledger p {
  font-size: .8125rem;
  color: #8b929e;
  margin-top: 5px;
}

.ledger-icon {
  background: #edf6ee;
  color: #729d79;
  padding: 8px;
  border-radius: 8px;
}

.ledger-icon.refund {
  background: #fff0e7;
  color: #bb927a;
}

.timeline {
  padding: 5px 0;
}

.timeline>article {
  display: flex;
  gap: 15px;
  position: relative;
  padding-bottom: 24px;
}

.timeline>article:not(:last-child):after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: #e6e9ed;
}

.timeline>article>span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8c270;
  flex-shrink: 0;
  margin-top: 7px;
  z-index: 1;
}

.timeline strong {
  font-size: .875rem;
}

.timeline p {
  color: #8b929c;
  font-size: .8125rem;
  margin: 4px 0;
}

.timeline small {
  font-size: .75rem;
  color: #a1a7b0;
}

.audit-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.audit-line>span {
  display: block;
  color: #8992a0;
  font-size: .75rem;
  margin: 5px 0;
}

.audit-line p {
  font-size: .8125rem;
  color: #7e8998;
  overflow-wrap: anywhere;
}

.message-layout {
  display: grid;
  grid-template-columns: 306px minmax(0,1fr);
  min-height: 660px;
}

.thread-sidebar {
  border-right: 1px solid var(--line);
  background: #fcfcfd;
  min-width: 0;
}

.thread-search {
  padding: 18px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.thread-list {
  max-height: 730px;
  overflow: auto;
}

.thread {
  background: none;
  border: 0;
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 11px;
  text-align: left;
  padding: 19px 15px;
  border-bottom: 1px solid #eceef2;
  border-left: 3px solid transparent;
}

.thread.selected {
  background: #fff9e4;
  border-left-color: #dec254;
}

.thread-avatar {
  width: 35px;
  height: 35px;
  background: #e9edf2;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: .875rem;
  flex-shrink: 0;
}

.thread>div {
  min-width: 0;
  flex: 1;
}

.thread strong {
  font-size: .875rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread p {
  font-size: .8125rem;
  color: #8892a0;
  margin: 7px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread small {
  font-size: .75rem;
  color: #a0a7b1;
}

.thread>b {
  font-size: .75rem;
  background: #c66356;
  color: white;
  border-radius: 5px;
  padding: 0 5px;
}

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

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 25px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.chat-head span {
  font-size: .8125rem;
  color: #929aa6;
  margin-top: 5px;
  display: block;
}

.chat-order {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ebf0;
  padding: 17px 25px;
}

.chat-order>div {
  flex: 1;
  min-width: 0;
}

.chat-order strong {
  font-size: .875rem;
}

.chat-order span {
  display: block;
  font-size: .75rem;
  color: #959dab;
  margin-top: 4px;
}

.chat-messages {
  padding: 24px;
  min-height: 230px;
  max-height: 500px;
  overflow: auto;
  background: #f5f6f8;
  flex: 1;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 21px;
  overflow-wrap: anywhere;
}

.message>span {
  font-size: .75rem;
  color: #9ba3af;
  margin-bottom: 8px;
}

.message>p {
  background: #fff;
  border: 1px solid #e8ebef;
  padding: 12px 15px;
  border-radius: 4px 12px 12px 12px;
  font-size: .9375rem;
  max-width: 85%;
  white-space: pre-wrap;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
}

.message-attachments {
  display: grid;
  gap: 8px;
  max-width: min(440px,85%);
  margin-top: 6px;
}

.message-image {
  position: relative;
  display: block;
  width: fit-content;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e3e6eb;
  background: #fff;
}

.message-image img {
  display: block;
  width: auto;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  background: #eef1f4;
}

.message-image>span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(17,24,39,.72);
  font-size: .75rem;
}

.message-image .oa-icon {
  width: 14px;
  height: 14px;
}

.message-video {
  overflow: hidden;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fff;
}

.message-video video {
  display: block;
  width: min(380px,100%);
  max-height: 300px;
  background: #151922;
}

.message-video>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: .75rem;
}

.message-video a {
  color: #697586;
}

.message-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 18px;
  align-items: center;
  gap: 11px;
  width: min(380px,100%);
  padding: 12px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
}

.message-file-card>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #7b6413;
  background: #fff4bf;
}

.message-file-card>div {
  min-width: 0;
}

.message-file-card strong,.message-file-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file-card strong {
  font-size: .8125rem;
}

.message-file-card small {
  margin-top: 4px;
  color: #8992a0;
  font-size: .75rem;
}

.message-file-card>.oa-icon {
  width: 17px;
  color: #8b94a2;
}

.message.outgoing {
  align-items: flex-end;
}

.message.outgoing>p {
  background: #ffefaa;
  border-color: #ead78b;
  border-radius: 12px 4px 12px 12px;
}

.message.outgoing .message-attachments {
  justify-items: end;
}

.message.system {
  align-items: center;
}

.message.system>p {
  color: #9199a4;
  font-size: .8125rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.chat-form {
  border-top: 1px solid var(--line);
  padding: 12px 18px 16px;
  background: #fff;
}

.chat-compose-tools,.chat-send-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-compose-tools {
  margin-bottom: 8px;
}

.chat-compose-tools>span {
  margin-left: auto;
}

.chat-compose-tools>span,.chat-send-row>span {
  font-size: .75rem;
  color: #a0a6b0;
}

.chat-tool {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5f6876;
  font-size: .8125rem;
}

.chat-tool:hover,.chat-tool[aria-expanded="true"] {
  background: #f1f3f6;
  color: #151922;
}

.chat-tool .oa-icon {
  width: 17px;
  height: 17px;
}

.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 360px;
  padding: 9px;
  margin-bottom: 9px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.emoji-panel button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 1.125rem;
}

.emoji-panel button:hover {
  background: #f3f4f6;
}

.message-file-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.message-file-queue>div {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 26px;
  align-items: center;
  gap: 8px;
  width: min(260px,100%);
  padding: 7px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #f8f9fb;
}

.message-file-queue>div>span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff3b5;
  color: #7b6413;
}

.message-file-queue>div>div {
  min-width: 0;
}

.message-file-queue strong,.message-file-queue small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}

.message-file-queue small {
  margin-top: 2px;
  color: #929aa6;
}

.message-file-queue button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b94a2;
}

.message-upload-progress {
  position: relative;
  height: 28px;
  overflow: hidden;
  margin: 8px 0;
  border-radius: 7px;
  background: #f0f2f5;
}

.message-upload-progress>span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #ffe16b;
  transition: width .15s ease;
}

.message-upload-progress>p {
  position: relative;
  padding: 5px 9px;
  font-size: .75rem;
  color: #5e6570;
}

.chat-form>.ui-textarea {
  min-height: 86px;
  max-height: 180px;
  margin-bottom: 12px;
  resize: none;
  border-color: #e0e4e9;
  background: #fafbfc;
}

.chat-send-row {
  justify-content: space-between;
  margin-top: 9px;
}








.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.field>span {
  font-size: .875rem;
  color: #697383;
}

.field em {
  font-style: normal;
  color: #bb7664;
}

.wide {
  grid-column: 1/-1;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 15px;
  grid-column: 1/-1;
  margin-top: 4px;
  flex-wrap: wrap;
}

.form-foot>span {
  font-size: .8125rem;
}

.rules>p {
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rules>.oa-icon,.rules p>.oa-icon {
  width: 17px;
  height: 17px;
  color: #9b965e;
}

.staff-list>div {
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid #eef0f3;
  padding: 12px 0;
}

.staff-list>div>div {
  flex: 1;
}

.staff-list strong {
  font-size: .875rem;
}

.staff-list>div>div>span {
  display: block;
  color: #9aA2ae;
  font-size: .8125rem;
}

.staff-list>p {
  margin-top: 20px;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0;
  gap: 15px;
  font-size: .875rem;
}

.dialog {
  width: min(620px,calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid #e0e4e9;
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 90px #07132835;
  background: #fff;
  overflow: auto;
  position: fixed;
  inset: 0;
  margin: auto;
  overscroll-behavior: contain;
}

.dialog.wide-dialog {
  width: min(750px,calc(100vw - 32px));
}

.dialog::backdrop {
  background: #151b296b;
  backdrop-filter: blur(2px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.dialog-head>h2 {
  font-size: 1.125rem;
}

.dialog-body {
  padding: 23px 24px;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  background: #fcfcfd;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.dialog-foot>.primary {
  min-width: 120px;
}

.form-hint {
  padding: 13px 15px;
  border-radius: 7px;
  background: #f9f8f2;
  border: 1px solid #eeeadb;
  font-size: .875rem;
  color: #8e825f;
  line-height: 1.7;
}

.form-error {
  border: 1px solid #ebcbc7;
  border-radius: 7px;
  padding: 12px 15px;
  background: #fff4f1;
  color: #b2564c;
  font-size: .875rem;
  margin-top: 20px;
}

.upload-zone {
  border: 1px dashed #d1c17d;
  background: #fffdf3;
  border-radius: 8px;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  cursor: default;
  text-align: center;
}

.upload-zone>.oa-icon {
  width: 29px;
  height: 29px;
  color: #b39c44;
}

.upload-zone>strong {
  font-size: .9375rem;
}

.upload-zone>span {
  font-size: .8125rem;
  color: #9a937e;
}

.checklist {
  background: #f8f9fb;
  border-radius: 7px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oa-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%,20px);
  max-width: min(550px,calc(100vw - 35px));
  background: #242b37;
  color: #fff;
  padding: 13px 23px;
  border-radius: 9px;
  box-shadow: 0 9px 34px #121e2b24;
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s,transform .15s;
  z-index: 100;
}

.oa-toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

.oa-toast.error {
  background: #a65347;
}

.oa-boot,.boot-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.boot-error {
  flex-direction: column;
}

.oa-boot-mark {
  background: var(--yellow);
  padding: 18px;
  border-radius: 10px;
  font-size: 1.5rem;
}

.oa-boot p {
  color: #959ba6;
  font-size: .875rem;
  margin-top: 5px;
}

#printArea {
  display: none;
}

.sidebar-shade {
  display: none;
}

button,input,textarea {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

input,textarea {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  margin: 0;
}

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

.ui-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: #fff;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  outline: none;
  transition: border-color .12s,box-shadow .12s;
}

.ui-input::placeholder {
  color: #959ca7;
  opacity: 1;
}

.ui-input:hover:not(:disabled) {
  border-color: #b1bac7;
}

.ui-input:focus,.ui-input:focus-visible,.is-open>.ui-input {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
  outline: none;
}

.ui-input:disabled {
  color: #7e8795;
  background: #f3f4f6;
  cursor: not-allowed;
}

.ui-textarea {
  display: block;
  height: auto;
  min-height: 104px;
  max-height: 240px;
  line-height: 1.7;
  resize: none;
  overflow: auto;
}

.ui-select,.ui-date {
  min-width: 0;
  width: 100%;
}

.ui-select-trigger,.ui-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ui-select-trigger>span,.ui-date-trigger>span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-select-trigger>.oa-icon,.ui-date-trigger>.oa-icon {
  width: 17px;
  height: 17px;
  color: #8d96a5;
}

.ui-select-trigger[aria-expanded="true"]>.oa-icon {
  transform: rotate(180deg);
}

.ui-select-compact>.ui-input {
  height: 32px;
  min-height: 32px;
  padding: 3px 7px;
  font-size: .8125rem;
  border-color: transparent;
  background: transparent;
}

.role-control>.ui-select {
  max-width: 186px;
}

.filter-bar>.ui-select {
  flex: 0 0 162px;
}

.ui-popup {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  box-shadow: 0 10px 36px #15243d24;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: .875rem;
}

.ui-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px 11px;
  min-height: 40px;
  text-align: left;
  font-size: .875rem;
  line-height: 1.5;
}

.ui-option>.oa-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.ui-option:hover:not(:disabled),.ui-option:focus-visible {
  background: #f3f5f8;
  outline: none;
  box-shadow: inset 0 0 0 1px #a4aebf;
}

.ui-option[aria-selected="true"] {
  background: var(--yellow-soft);
  color: #745e11;
  font-weight: 600;
}

.ui-option[aria-selected="true"]>.oa-icon {
  opacity: 1;
}

.ui-number {
  display: flex;
  width: 100%;
  height: var(--control-height);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  overflow: hidden;
  background: #fff;
}

.ui-number:focus-within {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}

.ui-number>.ui-input {
  flex: 1;
  height: calc(var(--control-height) - 2px);
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 9px 6px;
  box-shadow: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ui-step {
  display: grid;
  place-items: center;
  width: 42px;
  flex: 0 0 42px;
  border: 0;
  background: #f8f9fb;
  color: #586478;
}

.ui-step:first-child {
  border-right: 1px solid var(--line);
}

.ui-step:last-child {
  border-left: 1px solid var(--line);
}

.ui-step:hover {
  background: var(--yellow-soft);
}

.ui-step:focus-visible {
  outline-offset: -4px;
}

.ui-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.6;
}

.ui-check-input,.ui-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.ui-check-box {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  border: 1px solid #b8c1ce;
  border-radius: 5px;
  background: #fff;
}

.ui-check-box>.oa-icon {
  width: 14px;
  height: 14px;
  visibility: hidden;
}

.ui-check-input:checked+.ui-check-box {
  border-color: #c8a52c;
  background: var(--yellow);
  color: #292815;
}

.ui-check-input:checked+.ui-check-box>.oa-icon {
  visibility: visible;
}

.ui-check-input:focus-visible+.ui-check-box {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.ui-checkbox:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.ui-file-name {
  overflow-wrap: anywhere;
  color: #53627a;
}

.ui-field-error {
  display: block;
  color: var(--red);
  font-size: .8125rem;
  line-height: 1.5;
  margin-top: 2px;
}

.has-error .ui-input,.has-error .ui-number,.has-error .ui-check-box {
  border-color: var(--red);
}

.has-error.upload-zone {
  border-color: var(--red);
}

.ui-checkbox.has-error {
  flex-wrap: wrap;
}

.ui-checkbox>.ui-field-error {
  flex-basis: 100%;
  padding-left: 29px;
}

.ui-calendar {
  padding: 14px;
}

.ui-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ui-calendar-head>strong {
  font-size: .9375rem;
}

.ui-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f4f5f8;
  color: #5c687a;
}

.ui-icon-button:hover {
  background: var(--yellow-soft);
}

.ui-icon-button>.oa-icon {
  width: 17px;
  height: 17px;
}

.ui-calendar-week,.ui-calendar-row {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 3px;
}

.ui-calendar-week {
  color: #8a94a3;
  text-align: center;
  font-size: .75rem;
  padding-bottom: 8px;
}

.ui-calendar-grid {
  display: grid;
  gap: 3px;
}

.ui-calendar-day {
  display: grid;
  place-items: center;
  width: 100%;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.ui-calendar-day.outside {
  color: #b5bdc8;
}

.ui-calendar-day.today {
  border-color: #d9c471;
}

.ui-calendar-day:hover {
  background: #f3f5f8;
}

.ui-calendar-day[aria-selected="true"] {
  background: var(--yellow);
  color: #292815;
  font-weight: 700;
}

.ui-calendar-day:focus-visible {
  outline-offset: -2px;
}

.ui-calendar-time {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.ui-calendar-time>span:first-child {
  margin-right: auto;
  color: #6b778a;
  font-size: .8125rem;
}

.ui-calendar-time .ui-input {
  text-align: center;
  width: 43px;
  min-height: 34px;
  height: 34px;
  padding: 5px;
}

.ui-time-format {
  font-size: .75rem;
  color: #8b94a2;
}

.ui-calendar-error {
  font-size: .8125rem;
  color: var(--red);
  margin-top: 8px;
}

.ui-calendar-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.thread-search>.ui-input {
  flex: 1;
}

.conditional-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}

.form-section {
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.dialog-order-context {
  font-size: .8125rem;
  color: #6f7887;
  background: #f6f7fa;
  padding: 10px 12px;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.table-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.table-actions>.btn {
  min-height: 34px;
  padding: 6px 10px;
}

.table-actions>.text-link {
  font-size: .8125rem;
}

.preparation {
  margin: 20px 0 8px;
}

.preparation-items {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preparation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}

.preparation-item:last-child {
  border-bottom: 0;
}

.preparation-item>.oa-icon {
  width: 17px;
  height: 17px;
  color: #9c8952;
}

.preparation-item>span {
  flex: 1;
}

.preparation-item>small {
  color: var(--green);
}

.preparation-item.is-done>.oa-icon {
  color: var(--green);
}

[aria-busy="true"] .dialog-foot>.primary {
  cursor: wait;
}

summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  outline: none;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: solid #8a94a3;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  margin-right: 3px;
}
details[open]>summary::before { transform: rotate(45deg); }
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.flow-guide { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: .875rem; }
.flow-guide p { margin: 12px 0; color: var(--muted); }
.flow-guide ol { padding-left: 21px; margin: 12px 0; }
.flow-guide li { margin-bottom: 9px; }
.discard-prompt { padding: 17px 24px; background: #fff9e4; border-top: 1px solid #eee0b1; }
.discard-prompt p { margin-bottom: 12px; font-size: .875rem; }

.delivery-issue { margin: 12px 0; padding: 10px 12px; border-radius: 7px; background: #fff4e3; color: #a16829; font-size: .875rem; }
.production-history { margin-top: 20px; }

@media(min-width:1600px) {
  .metrics {
    gap: 22px;
  }

  .metric {
    padding: 24px 27px;
  }

  .metric:first-child {
    padding-top: 22px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0,1fr) 305px;
  }

  td {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}

@media(max-width:1280px) {
  .dashboard-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .dashboard-grid>.stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid .tiny-note {
    grid-column: 1/-1;
  }

  .detail-grid {
    grid-template-columns: minmax(0,1fr) 280px;
  }

  .next-card {
    flex-wrap: wrap;
  }

  .next-card>.btn {
    margin-left: 57px;
  }

  .file-row {
    flex-wrap: wrap;
  }

  .file-actions {
    flex-direction: row;
    width: 100%;
    margin-left: 59px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head>.actions {
    justify-content: flex-end;
  }
}

@media(max-width:1050px) {
  .sidebar {
    width: 184px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    padding: 0 7px;
    font-size: 1rem;
    gap: 9px;
  }

  .workspace {
    margin-left: 184px;
  }

  .topbar {
    padding: 0 20px;
  }

  .mode-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  main {
    padding: 24px 20px;
  }

  .metrics {
    gap: 10px;
  }

  .metric {
    padding: 17px;
  }

  .metric:first-child {
    padding-top: 15px;
  }

  .metric>p {
    font-size: .75rem;
  }

  .today {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid>aside {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
  }

  .panel-body {
    padding: 18px;
  }

  .panel-head {
    padding: 18px;
  }

  .detail-grid>aside .detail-row {
    display: block;
  }

  .detail-grid>aside .detail-row>div {
    text-align: left;
    max-width: 100%;
    margin-top: 5px;
  }

  .message-layout {
    grid-template-columns: 260px minmax(0,1fr);
  }

  .settings-grid {
    gap: 17px;
  }

  .page-head>.actions .btn {
    font-size: .8125rem;
  }

}

@media(max-width:760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .16s;
    width: 225px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: #11192769;
    border: 0;
  }

  .workspace {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-flex!important;
    border: 0;
    padding: 5px;
    min-height: 30px;
  }

  .topbar {
    padding: 0 16px;
    height: 67px;
    gap: 8px;
  }

  .topbar-left {
    gap: 5px;
  }

  .separator {
    margin: 0 5px;
  }

  .topbar-right {
    gap: 7px;
  }

  .topbar-right>.avatar {
    display: none;
  }

  .role-control>span {
    font-size: .75rem;
  }

  .mode-strip {
    padding: 9px 16px;
    font-size: .75rem;
    align-items: flex-start;
  }

  .mode-strip>a {
    display: none;
  }

  main {
    padding: 22px 16px 35px;
  }

  .page-head {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .page-head h1 {
    font-size: 1.5rem;
  }

  .page-head p {
    font-size: .8125rem;
  }

  .page-head>.actions {
    justify-content: flex-start;
  }

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

  .metric>strong {
    font-size: 2rem;
  }

  .metric-label {
    font-size: .875rem;
  }

  .metric>p {
    font-size: .75rem;
  }

  .dashboard-grid>.stack {
    grid-template-columns: 1fr;
  }

  .tabs {
    padding: 0 17px;
    gap: 21px;
  }

  .tabs>button,.tabs>a {
    font-size: .8125rem;
  }

  .filter-bar {
    padding: 15px;
    gap: 9px;
  }

  .filter-bar .search-input {
    flex-basis: 100%;
  }

  .panel-head {
    padding: 16px;
  }

  .panel-body {
    padding: 17px;
  }

  .order-status-row {
    gap: 7px;
  }

  .order-status-row>span:last-child {
    flex-basis: 100%;
    font-size: .75rem;
  }

  .pipeline {
    padding: 18px 10px;
    gap: 1px;
  }

  .pipeline>div {
    font-size: .75rem;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .pipeline>div:not(:last-child):after {
    display: none;
  }

  .detail-grid>aside {
    display: flex;
  }

  .detail-grid>aside .detail-row {
    display: flex;
  }

  .detail-grid>aside .detail-row>div {
    text-align: right;
    margin: 0;
  }

  .next-card {
    padding: 16px;
  }

  .next-icon {
    width: 33px;
    height: 33px;
  }

  .next-card>.btn {
    margin-left: 48px;
  }

  .next-card p {
    font-size: .8125rem;
  }

  .file-actions {
    margin-left: 0;
  }

  .file-row {
    padding: 14px;
  }

  .section-title {
    flex-wrap: wrap;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    gap: 15px;
  }

  .dialog-body {
    padding: 20px;
  }

  .dialog-head {
    padding: 17px 20px;
  }

  .dialog-foot {
    padding: 15px 20px;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .thread-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thread-list {
    max-height: 210px;
  }

  .thread {
    padding: 13px 15px;
  }

  .thread-search {
    padding: 14px;
  }

  .chat-head {
    padding: 17px;
  }

  .chat-head .actions {
    justify-content: flex-end;
  }

  .chat-order {
    padding: 15px 17px;
  }

  .chat-messages {
    padding: 20px 17px;
  }

  .chat-form {
    padding: 15px 17px;
  }

  .chat-send-row {
    align-items: flex-end;
  }

  .chat-send-row>span {
    max-width: 50%;
  }

  .message>p {
    max-width: 94%;
  }

  .message-attachments {
    max-width: 94%;
  }

  .message-image img {
    max-width: min(260px,72vw);
    max-height: 260px;
  }

  .connection-row {
    align-items: flex-start;
  }

  .pagination {
    padding: 15px;
    font-size: .75rem;
  }

  .pagination>div {
    gap: 9px;
  }


  .form-grid .field {
    grid-column: 1/-1;
  }

  .dialog {
    max-height: calc(100dvh - 20px);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .filter-bar>.ui-select {
    flex: 1;
    min-width: 140px;
  }

  .role-control>.ui-select {
    max-width: 148px;
  }

  .role-control .ui-select-trigger {
    font-size: .75rem;
  }

  .conditional-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

@media print {
  body {
    background: white;
  }

  .oa-app,#oaModalRoot,#oaToast,#oaDrawerRoot {
    display: none!important;
  }

  #printArea {
    display: block;
    padding: 25px;
    color: #000;
  }

  #printArea>h1 {
    font-size: 23px;
    margin-bottom: 9px;
  }

  #printArea>p {
    font-size: 13px;
    margin-bottom: 25px;
  }

  #printArea .detail-row {
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
    font-size: 15px;
    break-inside: avoid;
  }

  #printArea .detail-row>span {
    color: #333;
    font-size: 14px;
  }

  #printArea .detail-row>div {
    max-width: 80%;
  }
}
