    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body {
      margin: 0;
      font-family: "Times New Roman", Times, serif;
      background: #f6f7f9;
      color: #171717;
      overflow-x: hidden;
    }
    body.auth-page {
      background: url('/assets/login-coins-bg.png') center / cover fixed no-repeat;
      min-height: 100vh;
    }
    body.auth-page::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.22), rgba(110, 0, 12, 0.1) 34%, rgba(70, 0, 6, 0.38));
    }
    body.auth-page main {
      position: relative;
      z-index: 1;
      color: white;
      max-width: 450px;
      padding-top: 25vh;
    }
    body.auth-page .table {
      border-color: #f4b6b6;
      box-shadow: 0 12px 36px rgba(84, 0, 0, 0.22);
    }
    body.auth-page .table td:first-child {
      color: #111;
      font-weight: 700;
    }
    body.auth-page #loginBtn {
      background: #d71920;
      border-color: #d71920;
      color: white;
    }
    body.auth-page #loginBtn:hover {
      background: #b80f1d;
    }
    body.auth-page #authEmail,
    body.auth-page #authPassword {
      background: white;
      border: 2px solid #f2b8b8;
      color: #171717;
      box-shadow: inset 0 1px 3px rgba(84, 0, 0, 0.12);
    }
    body.auth-page #authEmail:focus,
    body.auth-page #authPassword:focus {
      border-color: #d71920;
      outline: 3px solid rgba(255, 215, 102, 0.8);
    }
    main {
      max-width: min(1500px, 100vw);
      margin: 0 auto;
      padding: 32px 16px;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      margin: -32px -16px 16px;
      padding: 16px 16px 10px;
      background: rgba(246, 247, 249, 0.96);
      border-bottom: 1px solid #d8dde6;
    }
    .title-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    h1 {
      flex: 1;
      margin: 0;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 700;
    }
    .menu-toggle {
      width: 42px;
      min-width: 42px;
      padding: 6px;
      font-size: 22px;
      line-height: 1;
    }
    .user-badge {
      max-width: 260px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #475467;
      font-size: 12px;
      line-height: 1.2;
      padding: 3px 8px;
      border: 1px solid #d8dde6;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
    }
    .user-badge[hidden] { display: none; }
    nav {
      display: none;
      position: absolute;
      right: 16px;
      top: 56px;
      width: min(260px, calc(100vw - 32px));
      gap: 8px;
      padding: 8px;
      flex-direction: column;
      background: white;
      border: 1px solid #c8ced8;
      border-radius: 6px;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    }
    nav.open { display: flex; }
    nav a {
      border: 1px solid #c8ced8;
      border-radius: 4px;
      padding: 8px 12px;
      color: #171717;
      text-decoration: none;
      background: white;
    }
    nav a,
    nav button {
      width: 100%;
      text-align: center;
    }
    nav a.active {
      background: #2f6fed;
      border-color: #2f6fed;
      color: white;
    }
    .table {
      width: 100%;
      border-collapse: collapse;
      background: white;
      border: 1px solid #d8dde6;
    }
    .table-wrap {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .group {
      margin-bottom: 10px;
      border: 1px solid #d8dde6;
      background: white;
    }
    .group summary {
      cursor: pointer;
      padding: 12px 14px;
      font-weight: 700;
      background: #eef1f5;
    }
    .group-body { padding: 0; }
    .wide { min-width: 260px; }
    .sku { width: 110px; }
    .price { width: 120px; }
    .products-table {
      min-width: 1180px;
      table-layout: fixed;
    }
    .products-table .sku { width: 90px; }
    .products-table .product-name-col { width: 430px; }
    .products-table th:nth-child(4),
    .products-table td:nth-child(4) { width: 120px; }
    .products-table .product-unit-col { width: 100px; }
    .products-table .price { width: 118px; }
    .products-table .product-image-col { width: 250px; }
    .products-table .product-name-cell,
    .products-table .product-name-input {
      text-align: left;
      white-space: pre-line;
      line-height: 1.35;
    }
    .products-table .product-name-input {
      min-height: 92px;
      overflow: hidden;
    }
    .products-table .product-unit-cell input {
      min-width: 64px;
      padding-left: 4px;
      padding-right: 4px;
    }
    .products-table .product-image-cell input {
      text-align: left;
      font-size: 12px;
    }
    .account-table input,
    .account-table select,
    .general-info input {
      border-color: #9aa7b8;
      background: #fff;
    }
    .account-table input:focus,
    .account-table select:focus,
    .general-info input:focus {
      border-color: #2f6fed;
      background: #fff;
    }
    .product-image-preview {
      display: block;
      width: 100%;
      max-width: 190px;
      height: 96px;
      margin: 6px auto 0;
      object-fit: contain;
      border: 1px solid #d8dde6;
      border-radius: 8px;
      background: #fff;
    }
    .pricing-name { width: 120px; }
    .pricing-rows { width: 80px; }
    .pricing-skus { min-width: 92px; max-width: 112px; }
    .pricing-discount { width: 70px; }
    .phone { width: 16ch; min-width: 16ch; }
    .address-cell {
      white-space: normal;
      overflow-wrap: anywhere;
      line-height: 1.45;
    }
    .quote-products {
      white-space: pre-line;
      text-align: center;
      vertical-align: middle;
      line-height: 1.45;
    }
    .quote-table th,
    .quote-table td {
      text-align: center;
      vertical-align: middle;
    }
    .quote-stt { width: 44px; }
    .quote-dvt { width: 38px; min-width: 38px; max-width: 38px; text-align: center; white-space: nowrap; }
    .quote-quantity { width: 50px; }
    .quote-discount { width: 50px; }
    .quote-table td.quote-discount,
    .quote-table th.quote-discount {
      padding-left: 0;
      padding-right: 0;
    }
    .quote-table .quote-unit { width: 112px; }
    .quote-table .quote-total { width: 138px; }
    .quote-table td.quote-unit {
      text-align: center;
      white-space: nowrap;
    }
    .quote-table td.quote-total {
      text-align: right;
      white-space: nowrap;
    }
    .quote-subtotal-row td {
      border-top: 2px solid #4d5562;
    }
    .quote-table input {
      text-align: center;
    }
    .quote-image {
      width: 90px;
    }
    .quote-image img {
      width: 72px;
      height: 72px;
      object-fit: cover;
      border: 1px solid #d8dde6;
    }
    .quote-table input.quote-quantity {
      padding-left: 2px;
      padding-right: 2px;
    }
    .quote-discount-box {
      display: flex;
      gap: 0;
      align-items: center;
      justify-content: flex-end;
      width: 100%;
    }
    .quote-discount-box input {
      width: 28px;
      padding-left: 0;
      padding-right: 0;
      text-align: right;
    }
    .quote-discount-box input::-webkit-outer-spin-button,
    .quote-discount-box input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .quote-discount-box input {
      appearance: textfield;
      -moz-appearance: textfield;
    }
    .tabs {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
    .tabs button {
      background: white;
      border-color: #9aa7b8;
      color: #1f2937;
      font-weight: 700;
    }
    .tabs button.active {
      background: #2f6fed;
      border-color: #2f6fed;
      color: white;
    }
    select {
      width: 100%;
      min-width: 0;
      min-height: 36px;
      border: 1px solid #c8ced8;
      border-radius: 4px;
      padding: 7px 8px;
      font: inherit;
      text-align: center;
      background: white;
    }
    th, td {
      padding: 10px 12px;
      border-bottom: 1px solid #e7eaf0;
      text-align: center;
      vertical-align: middle;
    }
    th {
      background: #eef1f5;
      font-size: 13px;
      color: #4d5562;
      font-weight: 700;
    }
    tr:last-child td { border-bottom: 0; }
    input, textarea {
      width: 100%;
      min-width: 0;
      min-height: 36px;
      border: 1px solid transparent;
      border-radius: 4px;
      padding: 7px 8px;
      font: inherit;
      text-align: center;
      background: transparent;
      resize: none;
    }
    td input[type="checkbox"],
    td input[type="radio"] {
      width: 18px;
      min-height: 18px;
      margin: 0 auto;
      display: block;
    }
    .switch {
      position: relative;
      display: inline-block;
      width: 46px;
      height: 26px;
    }
    .switch input {
      opacity: 0;
      width: 0;
      min-height: 0;
    }
    .switch span {
      position: absolute;
      inset: 0;
      cursor: pointer;
      border-radius: 999px;
      background: #c8ced8;
      transition: background 0.15s;
    }
    .switch span::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      left: 3px;
      top: 3px;
      border-radius: 50%;
      background: white;
      transition: transform 0.15s;
    }
    .switch input:checked + span {
      background: #1f7a4d;
    }
    .switch input:checked + span::before {
      transform: translateX(20px);
    }
    input.product-check {
      width: 14px;
      min-height: 14px;
      padding: 0;
    }
    input:focus, textarea:focus {
      outline: 2px solid #2f6fed;
      border-color: #2f6fed;
      background: white;
    }
    .count {
      width: 120px;
      color: #5d6673;
      white-space: nowrap;
    }
    .actions {
      width: 88px;
      text-align: center;
    }
    button {
      max-width: 100%;
      min-height: 36px;
      border: 1px solid #c8ced8;
      border-radius: 4px;
      padding: 7px 10px;
      background: white;
      color: #171717;
      font: inherit;
      cursor: pointer;
    }
    button:hover { background: #f1f3f6; }
    .delete {
      color: #b42318;
      border-color: #e5b8b3;
    }
    .add-row td {
      background: #fbfcfd;
    }
    .add {
      width: 100%;
      background: #1f7a4d;
      border-color: #1f7a4d;
      color: white;
      font-weight: 700;
    }
    .add:hover { background: #17663f; }
    .status {
      min-height: 24px;
      margin-top: 12px;
      color: #5d6673;
      font-size: 14px;
    }
    .status.error { color: #b42318; font-weight: 700; }
    .status.ok { color: #1f7a4d; font-weight: 700; }
    .order-delivery-quantity-status { white-space: pre-line; }
    .search-box {
      margin-bottom: 12px;
    }
    .search-box input {
      background: white;
      border: 1px solid #c8ced8;
      text-align: left;
    }
    .link-cell {
      display: grid;
      gap: 6px;
    }
    .link-cell button {
      width: auto;
      justify-self: center;
    }
    .link-results {
      margin-top: 12px;
      display: grid;
      gap: 8px;
    }
    .contact-extra {
      margin-top: 8px;
      padding: 10px;
      border: 1px solid #d8dde6;
      background: #fbfcfd;
      display: grid;
      gap: 8px;
    }
    .method-row {
      display: grid;
      grid-template-columns: 42px 1fr 32px 28px;
      gap: 4px;
      align-items: center;
      margin-bottom: 8px;
    }
    .method-row.add-row {
      grid-template-columns: 120px 1fr;
      border: 1px dashed #2f9e44;
      padding: 6px;
    }
    .method-row button {
      min-width: 26px;
      padding: 2px 6px;
    }
    .method-row .primary-check {
      width: 14px;
      min-height: 14px;
      padding: 0;
      margin: 0 auto;
    }
    .method-row > strong,
    .method-row > span {
      text-align: center;
    }
    .method-row .editable-field {
      grid-template-columns: 1fr auto auto;
    }
    .method-row .delete {
      border-color: #e5b8b3;
      color: #b42318;
    }
    .address-row {
      display: grid;
      grid-template-columns: 120px 2fr 140px 120px 1.5fr 32px 68px;
      gap: 4px;
      align-items: center;
      margin-bottom: 8px;
    }
    .address-row.add-row {
      border: 1px dashed #2f9e44;
      padding: 6px;
    }
    .address-row .default-check {
      width: 14px;
      min-height: 14px;
      padding: 0;
      margin: 0 auto;
    }
    .address-row button {
      min-width: 26px;
      padding: 2px 6px;
    }
    .address-row .add {
      min-width: 64px;
      padding: 6px 10px;
    }
    .address-row textarea {
      text-align: center;
      line-height: 1.35;
      overflow: hidden;
    }
    .address-row textarea::placeholder {
      text-align: center;
      line-height: 2.2;
    }
    .address-row .delete {
      border-color: #e5b8b3;
      color: #b42318;
    }
    .info-box {
      border: 1px solid #c8ced8;
      margin: 0 0 14px;
      padding: 12px;
    }
    .info-box legend {
      padding: 0 8px;
      font-weight: 700;
      color: #4d5562;
    }
    .general-info {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 8px 10px;
      align-items: center;
      text-align: center;
    }
    .general-info .inline-fields {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: flex-start;
      text-align: left;
      flex-wrap: wrap;
    }
    .general-info .inline-fields input {
      width: 96px;
      text-align: center;
    }
    .rounding-panel {
      padding: 10px 12px;
    }
    .rounding-compact {
      display: grid;
      gap: 6px;
    }
    .rounding-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      min-height: 30px;
      text-align: left;
    }
    .rounding-row.manual-rounding-fields {
      flex-wrap: nowrap;
      white-space: nowrap;
      overflow-x: auto;
    }
    .rounding-row strong {
      min-width: 145px;
    }
    .rounding-row .status {
      margin: 0;
      font-size: 12px;
    }
    .rounding-row input.rounding-digits {
      width: 72px;
      min-height: 30px;
      text-align: center;
    }
    .rounding-row select.rounding-mode {
      min-height: 30px;
    }
    .view-field {
      min-height: 36px;
      padding: 8px;
      cursor: text;
      text-align: center;
    }
    .contact-link {
      color: #2f6fed;
      text-decoration: underline;
      overflow-wrap: anywhere;
    }
    .method-symbol {
      text-align: center;
      font-weight: 700;
      color: #4d5562;
    }
    .editable-field {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 4px;
      align-items: center;
    }
    .editable-field button {
      display: none;
      min-height: 28px;
      padding: 2px 7px;
    }
    .editable-field.dirty button {
      display: inline-block;
    }
    .auth-register {
      text-align: center;
    }
    .auth-register button {
      min-height: 0;
      border: 0;
      padding: 0;
      color: #2f6fed;
      background: transparent;
      text-decoration: underline;
    }
    .error { color: #b42318; }
    .toolbar {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    td.actions .toolbar {
      justify-content: center;
      margin-bottom: 0;
    }
    #content > .toolbar,
    #content > .customer-actions {
      position: sticky;
      top: 98px;
      z-index: 15;
      padding: 8px 0;
      background: rgba(246, 247, 249, 0.96);
    }
    #content > .account-actions {
      position: sticky;
      top: 98px;
      z-index: 15;
      padding: 8px 0;
      background: rgba(246, 247, 249, 0.96);
    }
    .group-tools {
      display: flex;
      justify-content: flex-end;
      padding: 10px 12px 0;
    }
    .upload-add {
      width: auto;
      background: white;
      border-color: #1f7a4d;
      color: #1f7a4d;
      font-weight: 700;
    }
    .upload-add span {
      display: inline-grid;
      place-items: center;
      width: 22px;
      height: 22px;
      margin-right: 6px;
      border-radius: 50%;
      background: #1f7a4d;
      color: white;
      font-size: 18px;
      line-height: 1;
    }
    dialog {
      width: min(900px, calc(100vw - 32px));
      border: 1px solid #c8ced8;
      padding: 16px;
    }
    .picker-list {
      max-height: 360px;
      overflow: auto;
      border: 1px solid #d8dde6;
      margin-top: 12px;
    }
    .picker-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 10px;
      border-bottom: 1px solid #e7eaf0;
    }
    .picker-item:last-child { border-bottom: 0; }
    .picker-item input {
      width: 18px;
      min-height: 18px;
      flex: 0 0 auto;
    }
    .config-collapsible > summary {
      cursor: pointer;
      font-weight: 700;
      padding: 2px 0;
    }
    .config-collapsible[open] > summary { margin-bottom: 14px; }
    .supplier-user-mapping { min-width: 180px; }
    .supplier-user-summary {
      margin-bottom: 6px;
      overflow-wrap: anywhere;
    }
    .supplier-picker-dialog { width: min(560px, calc(100vw - 32px)); }
    .supplier-picker-dialog .search-box { display: grid; gap: 6px; }
    .import-errors {
      max-height: 220px;
      overflow: auto;
      color: #b42318;
      margin: 12px 0;
    }
    .import-summary {
      margin: 12px 0;
      color: #17663f;
      font-weight: 700;
    }
    .import-actions {
      justify-content: center;
    }
    .money {
      white-space: nowrap;
      text-align: right;
    }
    .pricing-box {
      border: 1px solid #c8ced8;
      background: white;
      padding: 14px;
      margin-bottom: 14px;
    }
    .pricing-box .actions {
      width: 58px;
    }
    .pricing-box .delete {
      min-width: 0;
      padding: 7px 8px;
    }
    .pricing-box-title {
      margin: 0 0 12px;
      font-size: 16px;
      font-weight: 700;
    }
    .quote-customer {
      border: 1px solid #c8ced8;
      background: white;
      padding: 12px;
      margin-bottom: 14px;
    }
    .quote-customer-grid {
      display: grid;
      grid-template-columns: 140px 12px minmax(0, 1fr) 90px 12px minmax(0, 1fr);
      gap: 8px 12px;
      align-items: center;
      text-align: center;
    }
    .quote-customer-wide {
      grid-column: 3 / -1;
    }
    .quote-customer-grid strong {
      text-align: left;
    }
    .quote-customer-colon {
      text-align: center;
      font-weight: 700;
    }
    .quote-customer button {
      width: auto;
      justify-self: center;
    }
    .quote-config-preview-frame {
      width: 100%;
      overflow: hidden;
      border: 1px solid #b8c2cf;
      border-radius: 8px;
      background: #f7f9fc;
      display: grid;
      place-items: center;
    }
    .quote-config-preview-frame-header {
      width: 100%;
      height: 151px;
      max-width: 100%;
      margin-top: 8px;
    }
    .quote-config-preview-frame-box {
      width: 150px;
      height: 110px;
      margin: 0 auto;
    }
    .quote-config-preview-empty {
      color: #667085;
      font-size: 13px;
    }
    .quote-config-preview {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .quote-config-preview-frame-header .quote-config-preview {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: cover;
    }
    .quote-footer-editor {
      min-height: 160px;
      border: 1px solid #c8ced8;
      background: white;
      text-align: left;
    }
    .rich-toolbar {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }
    .rich-toolbar button,
    .rich-toolbar select {
      width: auto;
      min-height: 30px;
      padding: 4px 8px;
    }
    .rich-editor {
      width: 100%;
      min-height: 170px;
      border: 1px solid #c8ced8;
      background: white;
      padding: 10px;
      text-align: left;
      font-family: "Times New Roman", Times, serif;
      font-size: 10pt;
      line-height: 1.35;
      outline: none;
    }
    .quote-footer-editor-frame {
      max-width: 698px;
      background: white;
    }
    .quote-preview-dialog {
      width: min(860px, calc(100vw - 24px));
      max-width: calc(100vw - 24px);
      max-height: calc(100vh - 24px);
      overflow: auto;
      background: #eef1f5;
    }
    .quote-a4 {
      width: 794px;
      height: 1123px;
      margin: 0 auto 16px;
      padding: 29px;
      box-sizing: border-box;
      background: white;
      color: #111;
      font-family: "Times New Roman", Times, serif;
      font-size: 9.5pt;
      position: relative;
      overflow: hidden;
    }
    .quote-a4-content {
      height: 100%;
      overflow: hidden;
      padding-bottom: 4px;
      box-sizing: border-box;
    }
    .quote-a4-header-box {
      width: 100%;
      height: 30mm;
      margin-bottom: 8px;
      overflow: hidden;
      background: white;
    }
    .quote-a4-header {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .quote-a4-date {
      text-align: right;
      font-style: italic;
      font-size: 9.5pt;
      margin-bottom: 2px;
    }
    .quote-a4-title {
      margin: 10px 0 2px;
      text-align: center;
      font-size: 24pt;
      font-weight: 700;
      color: #00b0f0;
    }
    .quote-a4-code {
      min-height: 12px;
      margin-bottom: 8px;
      text-align: center;
      font-size: 9.5pt;
      font-weight: 700;
      font-style: italic;
    }
    .quote-a4-customer {
      display: grid;
      grid-template-columns: 125px 12px 1fr;
      gap: 3px 8px;
      margin-bottom: 10px;
      font-size: 9.5pt;
    }
    .quote-a4-intro {
      margin: 10px 0;
      font-size: 9.5pt;
    }
    .quote-a4 table {
      width: 100%;
      table-layout: auto;
      border-collapse: collapse;
      outline: 1px solid #222;
      outline-offset: -1px;
    }
    .quote-a4-col-stt { width: 32px; }
    .quote-a4-col-product { width: auto; }
    .quote-a4-col-image { width: 118px; }
    .quote-a4-col-dvt { width: 34px; }
    .quote-a4-col-sl { min-width: 34px; width: 1%; }
    .quote-a4-col-list-price { width: 58px; }
    .quote-a4-col-money { width: 58px; }
    .quote-a4-col-total { width: 96px; }
    .quote-a4 th,
    .quote-a4 td {
      border: 1px solid #222;
      padding: 3px 5px;
      text-align: center;
      vertical-align: middle;
    }
    .quote-a4 td.quote-a4-image {
      padding: 1px;
    }
    .quote-a4 .money {
      text-align: right;
      white-space: nowrap;
      font-size: 9pt;
      padding-left: 3px;
      padding-right: 3px;
    }
    .quote-a4 td.quote-unit {
      text-align: center;
    }
    .quote-a4 td.quote-total {
      text-align: right;
    }
    .quote-a4-product {
      white-space: pre-line;
      text-align: left;
      word-break: break-word;
    }
    .quote-a4-image {
      width: 118px;
    }
    .quote-a4 .quote-dvt {
      width: 34px;
      min-width: 34px;
      max-width: 34px;
      padding-left: 2px;
      padding-right: 2px;
    }
    .quote-a4 .quote-sl {
      min-width: 34px;
      width: auto;
      white-space: nowrap;
      padding-left: 2px;
      padding-right: 2px;
    }
    .quote-a4-image img {
      width: 100%;
      height: 96px;
      max-width: 116px;
      object-fit: contain;
      display: block;
      margin: 0 auto;
    }
    .quote-a4-total-final td {
      border-bottom: 2px solid #222 !important;
      box-shadow: inset 0 -1px #222;
      font-weight: 700;
    }
    .quote-a4-footer {
      margin-top: 10px;
      font-size: 9pt;
      white-space: pre-line;
    }
    .quote-a4 tbody tr { height: 100px; }
    .quote-a4 th { font-size: 9pt; }
    .quote-a4.fit-page1 tbody tr { height: var(--quote-row-fit-height, 100px); }
    .quote-a4.fit-page1 .quote-a4-image img {
      width: 100%;
      max-width: 116px;
      height: min(calc(var(--quote-row-fit-height, 100px) - 4px), 118px);
    }
    .quote-a4.fit-footer { padding: 22px 25px; font-size: 9.4pt; }
    .quote-a4.fit-footer tbody tr { height: 78px; }
    .quote-a4.fit-footer .quote-a4-image img { width: 100%; max-width: 116px; height: 76px; }
    .quote-a4.fit-footer .quote-a4-footer { margin-top: 5px; font-size: 8.4pt; line-height: 1.15; }
    .quote-a4.fit-one-page { padding: 18px 22px; font-size: 9pt; }
    .quote-a4.fit-one-page .quote-a4-header-box { height: 30mm; margin-bottom: 2px; }
    .quote-a4.fit-one-page .quote-a4-date { margin-bottom: 1px; }
    .quote-a4.fit-one-page .quote-a4-title { margin: 1px 0 2px; }
    .quote-a4.fit-one-page .quote-a4-code { margin-bottom: 4px; }
    .quote-a4.fit-one-page .quote-a4-customer { row-gap: 1px; margin: 4px 0; }
    .quote-a4.fit-one-page .quote-a4-intro { margin: 4px 0; }
    .quote-a4.fit-one-page tbody tr { height: 66px; }
    .quote-a4.fit-one-page .quote-a4-image img { width: 100%; max-width: 110px; height: 64px; }
    .quote-a4.fit-one-page .quote-a4-footer { margin-top: 4px; font-size: 8pt; line-height: 1.08; }
    .quote-page-number {
      position: absolute;
      right: 29px;
      bottom: 16px;
      font-size: 9pt;
      color: #5d6673;
    }
    .profit-total {
      margin-left: auto;
      color: #17663f;
      font-weight: 700;
      align-self: center;
      white-space: nowrap;
    }
    .profit-total-value {
      font-size: 2em;
      line-height: 1;
    }
    .clickable-row {
      cursor: pointer;
    }
    .clickable-row:hover td {
      background: #f6f8fb;
    }

    /* Wider desktop layout needs stronger spatial anchors. */
    .table,
    .group,
    .pricing-box,
    .quote-customer,
    .settings-group,
    dialog {
      border-width: 2px;
      border-color: #aeb8c6;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    }
    .group summary,
    th {
      border-bottom: 2px solid #c2ccd8;
    }
    th,
    td {
      border-bottom-color: #d3dae4;
    }
    .table-wrap {
      border-radius: 8px;
    }

    @media (max-width: 640px) {
      main {
        padding: 18px 10px;
      }
      body .topbar {
        margin: -18px -10px 12px;
        padding: 12px 10px 8px;
      }
      nav {
        right: 10px;
        top: 50px;
        width: min(260px, calc(100vw - 20px));
      }
      #content > .toolbar,
      #content > .customer-actions {
        top: 84px;
      }
      #content > .account-actions {
        top: 84px;
      }
      body.auth-page { min-height: 100dvh; }
      .title-row {
        position: relative;
      }
      h1 {
        font-size: 22px;
      }
      .user-badge {
        position: absolute;
        left: 50%;
        top: 50%;
        max-width: min(46vw, 210px);
        transform: translate(-50%, -50%);
        font-size: 11px;
        padding: 2px 7px;
      }
      nav, .tabs, .toolbar {
        gap: 6px;
      }
      nav a, .tabs button, button {
        flex: 1 1 auto;
        min-height: 40px;
        padding: 8px 10px;
      }
      .menu-toggle {
        flex: 0 0 42px;
        width: 42px;
        min-width: 42px;
        padding: 6px;
      }
      .table {
        min-width: 0;
        table-layout: fixed;
      }
      .pricing-box .table {
        min-width: 560px;
        table-layout: auto;
      }
      .pricing-list {
        min-width: 620px;
        table-layout: auto;
      }
      th, td {
        padding: 8px 8px;
        font-size: 13px;
      }
      input, select {
        min-height: 38px;
        padding: 7px 6px;
        font-size: 13px;
      }
      .wide {
        min-width: 0;
      }
      .sku {
        width: 92px;
      }
      .price, .count {
        width: 96px;
      }
      .pricing-name {
        width: 110px;
      }
      .pricing-rows {
        width: 70px;
      }
      .pricing-skus { min-width: 82px; max-width: 100px; }
      .pricing-discount {
        width: 64px;
      }
      .actions {
        width: 76px;
      }
      .pricing-box .actions {
        width: 50px;
      }
      .pricing-box .delete {
        padding: 7px 6px;
      }

      .profit-total {
        grid-column: 1 / -1;
        margin: 6px auto 0;
        text-align: center;
        white-space: normal;
      }
      .profit-total-value {
        display: block;
        margin-top: 4px;
      }
      .account-table,
      .account-table thead,
      .account-table tbody,
      .account-table tr,
      .account-table td {
        display: block;
        width: 100%;
      }
      .account-table thead { display: none; }
      .account-table tr {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #d8e2ec;
        border-radius: 10px;
        background: #fff;
      }
      .account-table td {
        border: 0;
        padding: 6px 0;
        overflow-wrap: anywhere;
      }
      .account-table td.actions {
        width: 100%;
      }
      .account-table .toolbar {
        justify-content: stretch;
      }
      .account-table .toolbar button,
      .account-table select,
      .account-table input {
        width: 100%;
      }

      .products-table,
      .products-table thead,
      .products-table tbody,
      .products-table tr,
      .products-table td {
        display: block;
        width: 100%;
      }
      .products-table thead { display: none; }
      .products-table tr {
        margin-bottom: 12px;
        padding: 10px;
        border: 1px solid #d8e2ec;
        border-radius: 12px;
        background: #fff;
      }
      .products-table td {
        border: 0;
        padding: 5px 0;
      }
      .products-table td:nth-child(2)::before { content: 'SKU'; }
      .products-table td:nth-child(3)::before { content: 'Tên sản phẩm'; }
      .products-table td:nth-child(4)::before { content: 'Trọng lượng'; }
      .products-table td:nth-child(5)::before { content: 'ĐVT'; }
      .products-table td:nth-child(6)::before { content: 'Giá'; }
      .products-table td:nth-child(7)::before { content: 'Image'; }
      .products-table td::before {
        display: block;
        margin-bottom: 3px;
        color: #5d6673;
        font-size: 12px;
        font-weight: 700;
      }
      .products-table input {
        width: 100%;
      }
      .products-table .actions,
      .products-table .toolbar,
      .products-table button {
        width: 100%;
      }
      .products-table tfoot,
      .products-table tfoot tr,
      .products-table tfoot td {
        display: block;
        width: 100%;
      }

  
    .settings-group {
      border: 2px solid #d8e2ec;
      border-radius: 16px;
      padding: 14px;
      margin: 14px 0;
      background: #f8fbff;
    }
    .settings-group > h2 {
      margin: 0 0 12px;
      color: #1f4e79;
      font-size: 18px;
    }
    .admin-settings-group { background: #fffaf2; border-color: #f0d49b; }
    .editable-config-field {
        grid-template-columns: 1fr;
        align-items: stretch;
      }
      .editable-config-field button,
      .editable-config-field input {
        width: 100%;
      }
      .config-section-label {
        margin-top: 8px;
        padding: 8px 10px;
        border-radius: 8px;
        background: #eef5fb;
        color: #1f4e79;
        font-weight: 800;
      }
      .group summary {
        padding: 11px 12px;
      }
      .pricing-box {
        padding: 10px;
      }
      dialog {
        width: calc(100vw - 4px);
        max-height: calc(100dvh - 48px);
        padding: 10px;
        margin-top: 28px;
      }
      dialog .toolbar {
        display: grid;
        grid-template-columns: 1fr;
      }
      .picker-list {
        max-height: 55vh;
      }
      .picker-item {
        align-items: flex-start;
        padding: 10px 8px;
      }
      .customer-table-wrap {
        overflow: visible;
      }
      .customer-table-wrap .table {
        border: 0;
        background: transparent;
      }
      .customer-table-wrap thead {
        display: none;
      }
      .customer-table-wrap tbody,
      .customer-table-wrap tr,
      .customer-table-wrap td {
        display: block;
        width: 100%;
      }
      .customer-table-wrap tr {
        border: 2px solid #2f9e44;
        border-radius: 6px;
        background: white;
        margin-bottom: 12px;
        padding: 8px 10px;
        overflow: hidden;
      }
      .customer-table-wrap td {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        border-bottom: 1px solid #eef1f5;
        padding: 7px 0;
      }
      .customer-table-wrap td:last-child {
        border-bottom: 0;
      }
      .customer-table-wrap td::before {
        content: attr(data-label);
        color: #5d6673;
        font-weight: 700;
        font-size: 13px;
      }
      .customer-table-wrap td.actions:has(.product-check) {
        display: none;
      }
      .customer-table-wrap .editable-field { min-width: 0; }
      .customer-table-wrap input { text-align: center; }
      .customer-table-wrap button { width: auto; }
      .customer-table-wrap .product-check,
      .customer-actions {
        display: none;
      }
      .address-cell {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.45;
      }
      .address-row {
        grid-template-columns: 1fr;
        border-bottom: 1px solid #eef1f5;
        padding-bottom: 8px;
      }
      .address-row .default-check {
        justify-self: center;
      }
      #content > .toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
      }
      #content > .toolbar button { width: 100%; min-width: 0; }
      .quote-customer { padding: 10px; border-radius: 8px; }
      .quote-customer-grid { grid-template-columns: 1fr; gap: 6px; text-align: left; }
      .quote-customer-grid strong { margin-top: 6px; }
      .quote-customer-colon { display: none; }
      .quote-customer-wide { grid-column: auto; }
      .quote-customer button { width: 100%; justify-self: stretch; margin-top: 6px; }
      .quote-table { min-width: 900px; table-layout: auto; }
      .quote-image { width: 78px; }
      .quote-image img { width: 58px; height: 58px; }
      .quote-products { min-width: 210px; text-align: left; }
      .quote-table .quote-unit { width: 112px; }
      .quote-table .quote-total { width: 138px; }
      .quote-discount { width: 64px; }
      .quote-source-line { line-height: 1.5; }
      .quote-footer-editor-frame { min-height: 220px; }
      .quote-preview-dialog {
        width: calc(100vw - 4px);
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
      }
      .quote-preview-dialog > button { position: sticky; top: 0; z-index: 3; width: 100%; margin-bottom: 10px; }
      body .quote-preview-dialog .quote-a4 { transform: scale(0.75); transform-origin: top left; margin-bottom: -265px; }
    }

    @media (max-width: 480px) {
      body .quote-preview-dialog .quote-a4 { transform: scale(0.57); margin-bottom: -467px; }
    }
    @media (max-width: 390px) {
      body .quote-preview-dialog .quote-a4 { transform: scale(0.46); margin-bottom: -590px; }
    }

    .export-progress {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: grid;
      place-items: center;
      background: rgba(12, 18, 28, 0.38);
    }
    .export-progress-card {
      min-width: 240px;
      max-width: calc(100vw - 32px);
      padding: 18px 20px;
      border-radius: 14px;
      background: white;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
      text-align: center;
      color: #1d2939;
      font-weight: 700;
    }
    .export-spinner {
      width: 34px;
      height: 34px;
      margin: 0 auto 12px;
      border: 4px solid #e6eef8;
      border-top-color: #1d75bd;
      border-radius: 50%;
      animation: export-spin 0.8s linear infinite;
    }
    @keyframes export-spin { to { transform: rotate(360deg); } }

    .editable-config-field {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) minmax(90px, auto) auto auto;
      gap: 8px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #e4ebf3;
    }
    .editable-config-field:last-child { border-bottom: 0; }

.order-source-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
}
.order-config-section {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #b7c6d8;
  border-radius: 12px;
  background: #fff;
}
.sales-order-history-list { display: grid; gap: 10px; }
.sales-order-history-item { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid #e3e9f0; }
.sales-order-history-item:last-child { border-bottom: 0; }
.sales-order-history-item span, .sales-order-history-item small { color: #526273; }
.order-seller-actions {
  margin-bottom: 10px;
}
.order-seller-info {
  padding: 12px 14px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #f8fbff;
  line-height: 1.55;
}
.order-seller-info p { margin: 4px 0; }
.order-info-gap { display: inline-block; width: min(18vw, 180px); }
.order-code-logic {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 15px;
}
.order-code-logic input {
  width: 96px;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}
#orderHook { width: 100%; }
.code-area {
  width: 100%;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .order-source-row { grid-template-columns: 1fr; }
  .order-info-gap { display: block; width: 0; }
  .order-detail { padding: 10px; }
  .order-detail h2 { font-size: 18px; overflow-wrap: anywhere; }
  .order-detail .toolbar,
  .order-detail .order-config-section .toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .order-detail .order-config-section { padding: 10px; margin: 10px 0; }
  .order-detail .order-seller-info { padding: 10px; }
  .order-detail .order-seller-info p { grid-template-columns: 98px 8px minmax(0, 1fr); font-size: 13px; overflow-wrap: anywhere; }
  .order-detail .general-info { grid-template-columns: 1fr; text-align: left; align-items: stretch; }
  .order-detail .general-info > strong { margin-top: 6px; color: #24435f; }
  .order-detail textarea,
  .order-detail input,
  .order-detail select { width: 100%; min-width: 0; }
  .order-detail .table-wrap { margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); max-width: calc(100% + 20px); border-radius: 0; }
  .order-detail .order-table { min-width: 760px; table-layout: fixed; }
  .order-detail .order-table td:nth-child(2) textarea { min-width: 280px; }
  .order-delivery-edit { min-width: 780px; table-layout: fixed; }
  .order-delivery-edit th:nth-child(1), .order-delivery-edit td:nth-child(1) { width: 240px; }
  .order-delivery-edit th:nth-child(2), .order-delivery-edit td:nth-child(2) { width: 90px; }
  .order-delivery-edit th:nth-child(3), .order-delivery-edit td:nth-child(3) { width: 120px; }
  .order-delivery-edit th:nth-child(4), .order-delivery-edit td:nth-child(4) { width: 260px; }
  .order-delivery-edit th:nth-child(5), .order-delivery-edit td:nth-child(5) { width: 70px; }
  #addOrderDeliveryRow { width: 100%; margin-top: 8px; }
  .related-orders-box, .quote-source-line { font-size: 13px; overflow-wrap: anywhere; }
}

.order-create-fieldset {
  border: 1px solid #b8c7d9;
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin: 12px 0;
  background: #fbfdff;
}
.order-create-fieldset legend {
  padding: 0 8px;
  font-weight: 700;
  color: #24435f;
}
.order-create-fieldset input,
.order-create-fieldset select {
  border: 1px solid #9fb3c8;
  background: #fff;
}
.order-create-fieldset input:focus,
.order-create-fieldset select:focus {
  outline: 2px solid rgba(29, 117, 189, 0.2);
  border-color: #1d75bd;
}

.hidden { display: none !important; }

.order-delivery-block-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-delivery-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.order-delivery-block-top {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(280px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.order-delivery-date-box,
.order-delivery-address-box,
.order-delivery-goods-box label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.order-delivery-goods-box label {
  align-items: center;
  justify-content: center;
}
.order-delivery-date-box > span,
.order-delivery-address-box span,
.order-delivery-goods-box span {
  font-weight: 700;
  color: #24435f;
}
.order-delivery-address-box {
  gap: 7px;
}
.order-delivery-address-box button {
  align-self: flex-start;
}
.order-delivery-goods-box {
  border: 1px solid #9fb3c8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.order-delivery-goods-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.65fr) minmax(100px, 0.25fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: center;
}
.order-delivery-goods-row + .order-delivery-goods-row {
  border-top: 1px solid #d5e0ec;
}
.order-delivery-goods-box select,
.order-delivery-goods-box input {
  text-align: center;
  text-align-last: center;
}
.order-delivery-goods-delete {
  white-space: nowrap;
}
.order-delivery-block-actions {
  text-align: right;
}

@media (max-width: 760px) {
  .order-delivery-block-top,
  .order-delivery-goods-row {
    grid-template-columns: 1fr;
  }
}

.order-rendered-text {
  white-space: pre-line;
  margin: 12px 0;
  line-height: 1.45;
}
.order-table .quote-a4-product {
  white-space: pre-line;
  text-align: center;
}
.order-table .quote-a4-product textarea {
  text-align: center;
}

.order-detail .order-seller-info p {
  display: grid;
  grid-template-columns: 150px 12px 1fr;
  gap: 4px;
  margin: 4px 0;
}
.order-detail .order-seller-info .label { font-weight: 700; }
.order-detail .order-table th:nth-child(3),
.order-detail .order-table td:nth-child(3),
.order-detail .order-table th:nth-child(4),
.order-detail .order-table td:nth-child(4) {
  width: 7ch;
  max-width: 7ch;
  text-align: center;
}
.order-detail .order-table th:nth-child(5),
.order-detail .order-table td:nth-child(5),
.order-detail .order-table th:nth-child(6),
.order-detail .order-table td:nth-child(6) {
  text-align: right;
}
.order-detail .order-table td:nth-child(2) textarea {
  min-width: 340px;
}
.order-payment-text {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #f8fbff;
  line-height: 1.55;
}
.order-payment-text p { margin: 6px 0; }

.order-detail .order-table {
  table-layout: fixed;
  width: 100%;
}
.order-detail .order-table th:nth-child(1),
.order-detail .order-table td:nth-child(1) { width: 42px; }
.order-detail .order-table th:nth-child(2),
.order-detail .order-table td:nth-child(2) { width: auto; }
.order-detail .order-table th:nth-child(3),
.order-detail .order-table td:nth-child(3),
.order-detail .order-table th:nth-child(4),
.order-detail .order-table td:nth-child(4) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  padding-left: 4px;
  padding-right: 4px;
}
.order-detail .order-table th:nth-child(5),
.order-detail .order-table td:nth-child(5),
.order-detail .order-table th:nth-child(6),
.order-detail .order-table td:nth-child(6) {
  width: 132px;
  min-width: 132px;
}
.order-detail .order-small-input,
.order-detail .order-table td:nth-child(3) input {
  width: 54px;
  min-width: 54px;
  text-align: center;
}
.order-detail .order-money-input {
  width: 122px;
  min-width: 122px;
  text-align: right;
}
.order-detail .order-table tfoot td {
  background: #f5f8fc;
  font-weight: 700;
}
.order-detail .order-table tfoot td:nth-child(2) {
  text-align: right;
}
.order-detail .order-table tfoot td:last-child {
  text-align: right;
  white-space: nowrap;
}

.order-document .quote-a4-content {
  color: #111;
  font-size: 13px;
  line-height: 1.45;
}
.order-doc-date {
  text-align: right;
  font-style: italic;
  margin-bottom: 10px;
}
.order-document .quote-a4-title {
  font-size: 22px;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.order-document .quote-a4-code {
  text-align: center;
  margin-bottom: 14px;
  font-style: italic;
}
.order-doc-party {
  margin: 8px 0 10px;
}
.order-doc-line {
  display: grid;
  grid-template-columns: 132px 10px 1fr;
  column-gap: 3px;
  margin: 2px 0;
}
.order-doc-hook {
  margin: 12px 0 8px;
}
.order-document-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 8px 0 12px;
}
.order-document-table th,
.order-document-table td {
  border: 1px solid #111;
  padding: 5px 6px;
  vertical-align: middle;
}
.order-document-table th {
  text-align: center;
  font-weight: 700;
  background: #fff;
}
.order-document-table th:nth-child(1), .order-document-table td:nth-child(1) { width: 38px; }
.order-document-table th:nth-child(3), .order-document-table td:nth-child(3),
.order-document-table th:nth-child(4), .order-document-table td:nth-child(4) { width: 48px; }
.order-document-table th:nth-child(5), .order-document-table td:nth-child(5),
.order-document-table th:nth-child(6), .order-document-table td:nth-child(6) { width: 105px; }
.order-document-table .center { text-align: center; }
.order-document-table .money { text-align: right; white-space: nowrap; }
.order-document.fit-order-page1 .order-document-table tbody tr {
  height: var(--order-row-fit-height, 44px);
}
.order-document.fit-order-page1 .order-document-table tbody td {
  height: var(--order-row-fit-height, 44px);
}
.order-document-table .total-label,
.order-document-table .total-value { font-weight: 700; }
.order-doc-payment p { margin: 5px 0; }
.order-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: center;
  margin-top: 34px;
  min-height: 90px;
}

.order-document.fit-order-one-page {
  padding: 14px 20px;
  font-size: 8.6pt;
}
.order-document.fit-order-one-page .quote-a4-content {
  line-height: 1.08;
}
.order-document.fit-order-one-page .order-doc-date,
.order-document.fit-order-one-page .order-doc-title,
.order-document.fit-order-one-page .order-doc-code,
.order-document.fit-order-one-page .order-doc-hook,
.order-document.fit-order-one-page .order-doc-party,
.order-document.fit-order-one-page .order-doc-payment-line,
.order-document.fit-order-one-page .order-doc-delivery {
  margin-top: 2px;
  margin-bottom: 3px;
}
.order-document.fit-order-one-page .order-document-table {
  margin: 4px 0 6px;
}
.order-document.fit-order-one-page .order-document-table th,
.order-document.fit-order-one-page .order-document-table td {
  padding: 3px 4px;
}
.order-document.fit-order-one-page .order-signatures {
  margin-top: 12px;
  min-height: 50px;
}
.order-document .quote-a4-header-box {
  width: 100%;
  height: 30mm;
  margin-bottom: 10px;
  overflow: hidden;
}
.order-document .quote-a4-header {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.order-doc-title {
  font-size: 25px !important;
  font-weight: 800;
}
.contract-document .order-doc-title {
  color: #111;
}
.order-doc-code {
  font-size: 12px !important;
}
.order-doc-party {
  margin: 10px 0 20px;
  font-weight: 700;
}
.order-doc-line {
  grid-template-columns: 132px 10px 1fr;
}
.order-doc-position {
  margin-left: 80px;
}
.order-document-table th {
  font-weight: 800;
}
.order-document-table td:nth-child(2) {
  white-space: pre-line;
}
.order-document-table .total-label,
.order-document-table .total-value {
  font-weight: 800;
}
.order-document-table .total-label {
  text-align: center !important;
}
.order-document-table .total-value {
  text-align: right !important;
}
.order-signatures {
  margin-top: 36px;
  align-items: start;
}
.order-sign-name {
  margin-top: 72px;
  font-weight: 800;
}

/* DDH document uses the same A4/header mechanics as quote preview. */
.order-document .quote-a4-content {
  font-family: "Times New Roman", Times, serif;
  font-size: 9.5pt;
}
.order-document .quote-a4-header-box {
  height: 30mm;
  margin-bottom: 8px;
  overflow: hidden;
  background: white;
}
.order-document .quote-a4-header {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.order-doc-title {
  font-size: 25pt !important;
}
.order-doc-code {
  font-size: 12pt !important;
  margin-bottom: 8px;
}
.order-doc-party {
  margin: 8px 0 18px;
  font-weight: 400;
}
.order-doc-main-line {
  font-weight: 700;
}
.order-doc-main-line span:last-child {
  font-weight: 700;
}
.order-doc-line strong:first-child {
  font-weight: 700;
}
.order-document-table td:nth-child(2) {
  text-align: center;
  white-space: pre-line;
}
.order-document-table .order-product-first-line,
.order-delivery-table .order-product-first-line {
  text-align: center;
  font-weight: 800;
}
.order-delivery-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 10px;
}
.order-delivery-table th,
.order-delivery-table td {
  border: 1px solid #111;
  padding: 4px 6px;
}
.order-delivery-table th { text-align: center; font-weight: 700; }
.order-delivery-table td:first-child { text-align: center; white-space: pre-line; }
.order-doc-delivery-block {
  margin: 6px 0 10px;
}
.order-doc-delivery-top {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 8px;
  margin-bottom: 5px;
}
.order-doc-delivery-top > div,
.order-doc-delivery-goods > div {
  padding: 3px 5px;
}
.order-doc-delivery-goods {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  border: 1px solid #111;
}
.order-doc-delivery-goods > div:nth-child(even) {
  border-left: 1px solid #111;
}
.order-doc-delivery-goods-cell {
  border-top: 1px solid #111;
  text-align: center;
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}
.order-doc-delivery-product-name {
  width: 100%;
}
.order-doc-delivery-goods .order-product-first-line {
  font-weight: 800;
  text-align: center;
}
.order-doc-delivery-goods-head {
  border-top: 0;
  text-align: center;
}
.order-doc-delivery-contact {
  margin-top: 3px;
}
.order-delivery-edit th:nth-child(2),
.order-delivery-edit td:nth-child(2),
.order-delivery-edit th:nth-child(3),
.order-delivery-edit td:nth-child(3) { width: 150px; }
.order-delivery-edit select,
.order-delivery-edit input,
.order-delivery-edit textarea { width: 100%; }
.order-delivery-address-cell { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }

.order-document,
.order-document .quote-a4-content,
.order-document-table,
.order-doc-party,
.order-doc-payment {
  font-family: "Times New Roman", Times, serif !important;
}
.order-document .quote-a4-content {
  font-size: 11pt;
}
.order-document .quote-a4-title,
.order-doc-title {
  font-family: "Times New Roman", Times, serif !important;
  color: #00b0f0;
}
/* Contract / Hợp Đồng document and editor styles. Keep DDH-shared rules above. */
.contract-document .quote-a4-title,
.contract-document .order-doc-title {
  color: #111 !important;
}
.contract-standard-header{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start;margin-bottom:16px;text-align:center}.contract-standard-header>div:first-child{text-align:left}.contract-document h3{font-size:15px;margin:12px 0 6px}.contract-legal p{margin:2px 0}.contract-document p{margin:5px 0;line-height:1.35}
.contract-fixed-heading {
  margin: 6px 0 10px;
  font-weight: 800;
  color: #1f2a44;
}
.contract-article-section summary {
  cursor: pointer;
  font-weight: 800;
  color: #24435f;
}
.contract-article-section textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .contract-detail .order-source-row { grid-template-columns: 1fr; }
  .contract-detail .general-info { grid-template-columns: 1fr; text-align: left; align-items: stretch; }
  .contract-detail .general-info > strong { margin-top: 6px; color: #24435f; }
  .contract-detail .general-info .inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px 6px; }
  .contract-detail .general-info .inline-fields input { width: 100%; min-width: 0; }
  .contract-detail .contract-article-section { padding: 10px; margin: 10px 0; }
  .contract-detail .contract-article-section summary { line-height: 1.35; }
  .contract-detail .contract-fixed-heading { font-size: 13px; overflow-wrap: anywhere; }
  .contract-detail #contractDeliveryScheduleWrap > button,
  .contract-detail #addContractDeliveryRow { width: 100%; margin-top: 8px; }
}

.sales-order-detail .general-info textarea { width: 100%; min-height: 70px; }
.sales-order-table textarea { min-width: 220px; }
.quote-preview-dialog .quote-preview-frame { width: min(100vw - 48px, 980px); height: min(80vh, 900px); border: 1px solid #ddd; background: #fff; }
@media print {
  .topbar, .toolbar, .status { display: none !important; }
}

.sales-order-detail input,
.sales-order-detail textarea,
.sales-order-detail select,
.order-delivery-block input,
.order-delivery-block textarea,
.order-delivery-block select {
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
}
.sales-order-table { table-layout: fixed; }
.sales-order-table th:nth-child(1), .sales-order-table td:nth-child(1) { width: 5ch; max-width: 5ch; }
.sales-order-table th:nth-child(2), .sales-order-table td:nth-child(2) { width: 15ch; max-width: 15ch; }
.sales-order-table th:nth-child(4), .sales-order-table td:nth-child(4),
.sales-order-table th:nth-child(5), .sales-order-table td:nth-child(5) { width: 7ch; max-width: 7ch; }
.sales-order-table th:nth-child(6), .sales-order-table td:nth-child(6),
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7) { width: 15ch; max-width: 15ch; }
.sales-order-table td:nth-child(2) input,
.sales-order-table td:nth-child(4) input,
.sales-order-table td:nth-child(5) input,
.sales-order-table td:nth-child(6) input { width: 100%; min-width: 0; }
.sales-order-table td:nth-child(3) textarea { width: 100%; min-width: 180px; }

/* Đơn Hàng editor refinements */
.sales-order-table th:nth-child(1), .sales-order-table td:nth-child(1) { width: 4ch; max-width: 4ch; }
.sales-order-table th:nth-child(2), .sales-order-table td:nth-child(2) { width: 23ch; max-width: 23ch; }
.sales-order-table th:nth-child(4), .sales-order-table td:nth-child(4),
.sales-order-table th:nth-child(5), .sales-order-table td:nth-child(5) { width: 15ch; max-width: 15ch; }
.sales-order-table th:nth-child(6), .sales-order-table td:nth-child(6),
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7) { width: 23ch; max-width: 23ch; }
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7) { text-align: right; }
.order-delivery-date-line { display: grid; grid-template-columns: 90px minmax(160px, 220px); gap: 8px; align-items: center; }
.order-delivery-address-box { display: grid; grid-template-columns: 1fr; gap: 10px; }
.order-delivery-address-box label { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; }
.order-delivery-address-box textarea { min-height: 42px; }
.sales-order-detail .order-delivery-goods-head,
.sales-order-detail .order-delivery-goods-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .9fr) minmax(90px, .35fr) max-content max-content; gap: 8px; align-items: center; }
.order-delivery-goods-head { font-weight: 700; color: #374151; margin-bottom: 6px; }
.order-delivery-goods-row select,
.order-delivery-goods-row input { width: 100%; }
.sales-order-detail .order-delivery-goods-row select { min-width: 0; text-overflow: ellipsis; }
.order-delivery-goods-error { grid-column: 1 / -1; color: #b91c1c; text-align: left; }
.order-delivery-goods-error:empty { display: none; }
.order-delivery-goods-row [aria-invalid] { border-color: #dc2626; }
.shipment-inline-readiness { display: flex; align-items: center; justify-content: center; }
.shipment-readiness-button { width: auto; min-width: 92px; white-space: nowrap; font-weight: 700; }
.shipment-readiness-button.status-pending { color: #713f12; background: #facc15; border-color: #eab308; }
.shipment-readiness-button.status-pending:hover:not(:disabled) { background: #eab308; }
.shipment-readiness-button.status-ready { color: white; background: #1f7a4d; border-color: #1f7a4d; }
.shipment-readiness-button.status-ready:hover:not(:disabled) { background: #17663f; }
.shipment-readiness-button:disabled { cursor: default; opacity: .72; }

@media (max-width: 760px) {
  .sales-order-detail .order-delivery-goods-head { display: none; }
  .sales-order-detail .order-delivery-goods-row { grid-template-columns: minmax(0, 1fr); }
}

.sales-order-detail #customerAddress { min-height: 38px; height: 42px; }

.sales-order-content-cell { white-space: pre-line; }

.sales-order-table th:nth-child(6), .sales-order-table td:nth-child(6),
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7),
.sales-order-table th:nth-child(8), .sales-order-table td:nth-child(8) { width: 23ch; max-width: 23ch; }
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7),
.sales-order-table th:nth-child(8), .sales-order-table td:nth-child(8) { text-align: right; }

.sales-order-table td.sales-order-name textarea,
.sales-order-table .sales-order-name textarea {
  width: 100%;
  min-width: 195px;
  min-height: 42px;
  height: auto;
  max-height: none;
  overflow-y: hidden;
  resize: vertical;
}
.sales-order-table td.sales-order-name,
.sales-order-table .sales-order-name {
  min-width: calc(180px + 15ch);
  white-space: normal;
  vertical-align: top;
}
.sales-order-table tr,
.sales-order-table td {
  height: auto;
  max-height: none;
}

/* Sales order product table should fit content instead of squeezing names */
.sales-order-table { table-layout: auto; width: max-content; min-width: 100%; }
.sales-order-table th:nth-child(3),
.sales-order-table td:nth-child(3),
.sales-order-table td.sales-order-name,
.sales-order-table .sales-order-name {
  width: auto;
  min-width: 45ch;
  max-width: none;
}
.sales-order-table textarea[data-field="name"] {
  overflow: hidden !important;
  resize: none;
  height: auto;
  min-height: 42px;
  max-height: none !important;
}

/* Compact sales-order editor columns; let product name take spare room, keep delete visible */
.sales-order-table { table-layout: auto; width: 100%; min-width: 0; }
.sales-order-table th:nth-child(1), .sales-order-table td:nth-child(1) { width: 4ch; min-width: 4ch; max-width: 4ch; }
.sales-order-table th:nth-child(2), .sales-order-table td:nth-child(2) { width: 14ch; min-width: 10ch; max-width: 16ch; }
.sales-order-table th:nth-child(3), .sales-order-table td:nth-child(3) { width: auto; min-width: 32ch; max-width: none; }
.sales-order-table th:nth-child(4), .sales-order-table td:nth-child(4),
.sales-order-table th:nth-child(5), .sales-order-table td:nth-child(5) { width: 9ch; min-width: 7ch; max-width: 10ch; }
.sales-order-table th:nth-child(6), .sales-order-table td:nth-child(6),
.sales-order-table th:nth-child(7), .sales-order-table td:nth-child(7),
.sales-order-table th:nth-child(8), .sales-order-table td:nth-child(8) { width: 14ch; min-width: 11ch; max-width: 16ch; }
.sales-order-table th:nth-child(9), .sales-order-table td:nth-child(9) { width: 6ch; min-width: 6ch; max-width: 7ch; }
.sales-order-table td:nth-child(2) input,
.sales-order-table td:nth-child(4) input,
.sales-order-table td:nth-child(5) input,
.sales-order-table td:nth-child(6) input { width: 100%; min-width: 0; }
.sales-order-table textarea[data-field="name"] { width: 100%; min-width: 0; }
.sales-order-delivery-note .order-doc-header {
  font-weight: 700;
  margin-bottom: 18px;
}
.sales-order-delivery-note .order-doc-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  font-weight: 700;
  margin-top: 28px;
}
.sales-order-delivery-note .order-doc-signatures div {
  min-height: 90px;
}
.sales-order-delivery-note .order-doc-total-words {
  margin: 10px 0;
}
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(1),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(1) { width: 42px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(2),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) { width: auto; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(3) { width: 90px; }
.sales-order-delivery-note .sales-order-delivery-table tbody tr { height: auto; }
.sales-order-delivery-note .sales-order-delivery-table td { vertical-align: top; }
.sales-order-delivery-note .quote-a4-header-box { margin-bottom: 10px; }
.sales-order-delivery-note .sales-order-slip-code {
  font-weight: 700;
  font-style: normal;
  margin-top: -4px;
  margin-bottom: 14px;
}
.sales-order-delivery-note .sales-order-delivery-table th {
  font-weight: 800;
  background: linear-gradient(#fff, #f1f5f9);
  border: 2px outset #9ca3af;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.9), inset -1px -1px 0 rgba(0,0,0,.08);
}
.sales-order-delivery-note .sales-order-delivery-table td {
  border: 2px inset #c7ccd1;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.06);
}
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(1),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(1) { width: 38px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(2),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) { width: auto; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(3) { width: 70px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(4),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(4) { width: 96px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(5),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(5) { width: 78px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(6),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(6) { width: 112px; }
.sales-order-delivery-note .sales-order-delivery-table th,
.sales-order-delivery-note .sales-order-delivery-table td {
  border: 2px ridge #9ca3af;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.75), inset -1px -1px 0 rgba(0,0,0,.12);
  vertical-align: middle;
}
.sales-order-delivery-note .sales-order-delivery-table th {
  font-weight: 800;
  background: linear-gradient(#fff, #f3f4f6);
}
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) {
  text-align: left;
}
.sales-order-delivery-note .order-doc-signatures {
  align-items: start;
}
.sales-order-delivery-note .sales-order-date-over-signature {
  text-align: center;
  font-style: normal;
  font-weight: 400;
  margin: 0 0 8px;
}
@media print {
  body:has(.quote-preview-dialog[open]) > :not(.quote-preview-dialog) { display: none !important; }
  .quote-preview-dialog[open] {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }
  .quote-preview-dialog[open] > button { display: none !important; }
}
.sales-order-products-section > summary.pricing-box-title {
  cursor: pointer;
  user-select: none;
  display: list-item;
}
.sales-order-products-section:not([open]) {
  padding-bottom: 10px;
}
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(1),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(1) { width: 36px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(2),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) { width: auto; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(4),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(4) { width: 54px; min-width: 54px; max-width: 54px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(5),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(5),
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(6),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(6) { width: 94px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(7),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(7) { width: 108px; }
.order-delivery-block-title {
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  border-radius: 6px;
}
.order-delivery-block > summary.order-delivery-block-title {
  cursor: pointer;
  list-style: disclosure-closed;
}
.order-delivery-block[open] > summary.order-delivery-block-title {
  list-style: disclosure-open;
}
.order-delivery-block:not([open]) {
  padding-bottom: 8px;
}
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(2),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) {
  text-align: center;
  vertical-align: middle;
}
.sales-order-delivery-note .sales-order-date-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  margin-bottom: 4px;
  text-align: center;
}
.sales-order-delivery-note .sales-order-date-row span:last-child {
  text-align: center;
}
.sales-order-delivery-note .order-doc-signatures {
  margin-top: 0;
  align-items: start;
}
@media print {
  html:has(.quote-preview-dialog[open]),
  body:has(.quote-preview-dialog[open]) {
    width: 794px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body:has(.quote-preview-dialog[open]) > :not(.quote-preview-dialog) {
    display: none !important;
  }
  .quote-preview-dialog[open] {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 794px !important;
    max-width: 794px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }
  .quote-preview-dialog[open]::backdrop { display: none !important; }
  .quote-preview-dialog[open] > button { display: none !important; }
  .quote-preview-dialog[open] .quote-a4 {
    transform: none !important;
    width: 794px !important;
    min-height: 1123px !important;
    height: 1123px !important;
    margin: 0 !important;
    overflow: hidden !important;
    page-break-after: always;
    break-after: page;
  }
  .quote-preview-dialog[open] .quote-a4:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .quote-preview-dialog[open] .quote-a4-content {
    height: 100% !important;
    overflow: hidden !important;
  }
}
.sales-order-delivery-note .sales-order-delivery-table {
  font-size: 9.2pt;
  table-layout: fixed;
}
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(1),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(1) { width: 32px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(2),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(2) { width: auto; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(3),
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(4),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(4) { width: 42px; min-width: 42px; max-width: 42px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(5),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(5),
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(6),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(6) { width: 82px; }
.sales-order-delivery-note .sales-order-delivery-table th:nth-child(7),
.sales-order-delivery-note .sales-order-delivery-table td:nth-child(7) { width: 96px; }
@media print {
  .sales-order-delivery-note .sales-order-delivery-table { font-size: 9pt; }
}
.sales-order-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.sales-order-tabs button.active {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}
.sales-order-schedule-title {
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 17px;
}
.sales-order-schedule-table th:first-child,
.sales-order-schedule-table td:first-child {
  width: 48px;
  text-align: center;
}
.sales-order-status-stt {
  color: #111827;
  font-weight: 700;
}
.sales-order-status-stt.status-pending-process { background: #ef4444; color: #fff; }
.sales-order-status-stt.status-processing { background: #f97316; color: #fff; }
.sales-order-status-stt.status-delivering { background: #facc15; }
.sales-order-status-stt.status-delivered { background: #22c55e; }
.sales-order-status-stt.status-completed { background: #3b82f6; color: #fff; }

.shipment-page-intro { color: #475569; }
.shipment-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
}
.shipment-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipment-card-heading h2 { margin: 0; font-size: 18px; }
.shipment-status { padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e2e8f0; }
.shipment-status.status-ready { background: #dcfce7; color: #166534; }
.shipment-status.status-delivering { background: #fef3c7; color: #92400e; }
.shipment-status.status-delivered { background: #dbeafe; color: #1e40af; }
.shipment-meta, .shipment-delivery { margin: 8px 0 0; color: #475569; }
.shipment-items-table { margin-top: 12px; }
.shipment-items-table td:last-child { white-space: nowrap; }
.shipment-reason-dialog { width: min(460px, calc(100vw - 32px)); }
.shipment-reason-dialog textarea { width: 100%; min-height: 100px; box-sizing: border-box; }
@media (max-width: 700px) {
  .shipment-card { overflow-x: auto; }
  .shipment-items-table { min-width: 660px; }
}
