/* Generated from the legacy stylesheet: page/component rules only.
   The app shell (sidebar, topbar, login, buttons) comes from /shared-theme.
   Colours resolve through /pharmalink-theme/pl-bridge.css -> tokens.css. */

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: .8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 9px 12px;
      font-size: 13px;
      outline: none;
      background: var(--surface);
      color: var(--ink);
      transition: border .13s;
      font-family: var(--ff-sans);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ghost);
}

.form-group small {
  color: var(--ghost);
      font-size: 11px;
      margin-top: 3px;
      display: block;
}

.stat-grid {
  display: grid;
      grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
      gap: 12px;
      margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-lg);
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
}

.stat-card .label {
  font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: var(--ghost);
      margin-bottom: 10px;
}

.stat-card .value {
  font-family: var(--ff-mono);
      font-size: 26px;
      font-weight: 600;
      line-height: 1;
      color: var(--ink);
}

.stat-card .sub {
  font-size: 12px;
      color: var(--muted);
      margin-top: 5px;
}

.stat-card.blue .value {
  color: var(--blue2);
}

.stat-card.green .value {
  color: var(--emerald);
}

.stat-card.orange .value {
  color: var(--amber);
}

.stat-card.red .value {
  color: var(--rose);
}

.stat-card.purple .value {
  color: var(--indigo);
}

.stat-card.teal .value {
  color: #1A5C5C;
}

.stat-card .sub-detail {
  font-size: 11px;
      color: var(--muted);
      margin-top: 3px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
}

.stat-card .sub-detail span {
  display: inline-flex;
      align-items: center;
      gap: 3px;
}

.dash-section-title {
  font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--ghost);
      margin: 20px 0 10px;
}

.dash-view-all {
  font-size: 12px;
      color: var(--blue3);
      cursor: pointer;
      font-weight: 500;
      background: none;
      border: none;
      padding: 0;
      text-decoration: underline;
      text-underline-offset: 2px;
}

.dash-view-all:hover {
  color: var(--blue2);
}

.product-thumb {
  width: 28px;
      height: 28px;
      border-radius: 4px;
      object-fit: cover;
      background: var(--cream2);
      display: inline-block;
      vertical-align: middle;
      border: 1px solid var(--cream3);
      cursor: zoom-in;
}

.product-image-wrap {
  display: inline-flex;
      align-items: center;
      justify-content: center;
      vertical-align: middle;
}

.product-image-zoom-preview {
  position: fixed;
      left: 0;
      top: 0;
      width: 260px;
      height: 260px;
      padding: 8px;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--cream3);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      pointer-events: none;
      transform: scale(.96);
      transition: opacity .12s ease, transform .12s ease;
      z-index: 3000;
}

.product-image-zoom-preview.show {
  opacity: 1;
      transform: scale(1);
}

.product-image-zoom-preview img {
  width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      border-radius: 5px;
      background: var(--cream2);
}

.product-no-img {
  width: 28px;
      height: 28px;
      border-radius: 4px;
      background: var(--cream2);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      vertical-align: middle;
      border: 1px solid var(--cream3);
}

#page-suppliers .inline-search {
  display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
}

.supplier-detail-row td {
  background: var(--cream2) !important;
      padding: 12px 16px !important;
      font-size: 12px;
      color: var(--muted);
}

.table-card {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      margin-bottom: 20px;
      width: 100%;
}

.table-header {
  padding: 14px 18px;
      border-bottom: 1px solid var(--cream3);
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
}

.table-header h3 {
  font-family: var(--ff-serif);
      font-size: 15px;
      font-weight: 600;
      flex: 1;
      color: var(--ink);
      letter-spacing: -.2px;
}

.table-header h4 {
  font-family: var(--ff-serif);
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -.2px;
}

table {
  width: 100%;
      border-collapse: collapse;
}

thead th {
  background: var(--cream2);
      padding: 9px 14px;
      text-align: left;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .8px;
      color: var(--ghost);
      border-bottom: 1px solid var(--cream3);
      white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--cream2);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--cream2);
}

tbody td {
  padding: 10px 14px;
      font-size: 13px;
      vertical-align: middle;
}

.td-actions {
  display: flex;
      gap: 5px;
      flex-wrap: wrap;
}

code {
  font-family: var(--ff-mono);
      font-size: 12px;
      background: var(--cream2);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--ink3);
}

.badge {
  display: inline-block;
      padding: 2px 8px;
      border-radius: 3px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .4px;
      text-transform: uppercase;
      font-family: var(--ff-sans);
}

.badge-green {
  background: var(--emerald-light);
      color: var(--emerald);
}

.badge-red {
  background: var(--rose-light);
      color: var(--rose);
}

.badge-blue {
  background: var(--blue-pale);
      color: var(--blue2);
}

.badge-orange {
  background: var(--amber-light);
      color: var(--amber);
}

.badge-gray {
  background: var(--cream3);
      color: var(--muted);
}

.badge-purple {
  background: var(--indigo-light);
      color: var(--indigo);
}

.voucher-code {
  font-family: var(--ff-mono);
      font-size: 12px;
      cursor: help;
}

.voucher-tooltip {
  position: relative;
      overflow: visible;
}

.voucher-hover-tip {
  position: fixed;
      left: 0;
      top: 0;
      max-width: min(280px, calc(100vw - 24px));
      padding: 8px 10px;
      border-radius: 6px;
      background: #172033;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .12);
      box-shadow: 0 12px 30px rgba(17, 24, 39, .26);
      font-family: var(--ff-sans);
      font-size: 11px;
      font-weight: 600;
      line-height: 1.35;
      letter-spacing: 0;
      text-align: left;
      text-transform: none;
      white-space: normal;
      pointer-events: none;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity .12s ease, transform .12s ease;
      z-index: 5000;
}

.voucher-hover-tip.show {
  opacity: 1;
      transform: translateY(0);
}

.voucher-tooltip::before,
.voucher-tooltip::after {
  display: none;
}

.voucher-tooltip::before {
  content: attr(data-tooltip);
      bottom: calc(100% + 9px);
      width: max-content;
      max-width: min(260px, 70vw);
      padding: 7px 9px;
      border-radius: 6px;
      background: #172033;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .12);
      box-shadow: 0 10px 26px rgba(17, 24, 39, .22);
      font-family: var(--ff-sans);
      font-size: 11px;
      font-weight: 600;
      line-height: 1.35;
      letter-spacing: 0;
      text-align: left;
      text-transform: none;
      white-space: normal;
}

.voucher-tooltip::after {
  content: "";
      bottom: calc(100% + 4px);
      border: 5px solid transparent;
      border-top-color: #172033;
}

.voucher-tooltip:hover::before,
.voucher-tooltip:hover::after,
.voucher-tooltip:focus-visible::before,
.voucher-tooltip:focus-visible::after {
  opacity: 1;
      transform: translate(-50%, 0);
}

.cat-view-toggle {
  display: flex;
      gap: 5px;
}

.cat-view-toggle button {
  padding: 5px 12px;
      border-radius: var(--radius);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid var(--cream3);
      background: var(--surface);
      color: var(--muted);
      transition: all .13s;
      font-family: var(--ff-sans);
}

.cat-view-toggle button.active {
  background: var(--blue);
      color: var(--blue-light);
      border-color: var(--blue);
}

#cat-grouped-view {
  padding: 18px;
      display: none;
}

#cat-grouped-view.active {
  display: block;
}

#cat-table-view.active {
  display: block;
}

#cat-table-view {
  display: none;
}

.group-block {
  margin-bottom: 22px;
}

.group-header {
  display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--cream3);
}

.group-icon {
  font-size: 18px;
}

.group-title {
  font-family: var(--ff-serif);
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -.2px;
}

.group-count {
  font-size: 11px;
      color: var(--muted);
      background: var(--cream2);
      border: 1px solid var(--cream3);
      border-radius: 3px;
      padding: 1px 7px;
      font-family: var(--ff-mono);
}

.cat-grid {
  display: grid;
      grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
      gap: 8px;
}

.cat-card {
  background: var(--cream2);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      transition: border-color .13s;
}

.cat-card:hover {
  border-color: var(--blue3);
}

.cat-card-info {
  flex: 1;
      min-width: 0;
}

.cat-card-name {
  font-size: 13px;
      font-weight: 500;
      margin-bottom: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--ink);
}

.cat-card-desc {
  font-size: 11px;
      color: var(--muted);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
}

.cat-card-actions {
  display: flex;
      flex-direction: column;
      gap: 4px;
      flex-shrink: 0;
}

.cat-card-actions button {
  padding: 3px 8px;
      font-size: 11px;
      font-weight: 500;
      border-radius: 4px;
      cursor: pointer;
      border: 1px solid var(--cream3);
      background: var(--surface);
      color: var(--muted);
      transition: all .13s;
      white-space: nowrap;
      font-family: var(--ff-sans);
}

.cat-card-actions button:hover {
  background: var(--blue);
      color: var(--blue-light);
      border-color: var(--blue);
}

.cat-card-actions button.danger:hover {
  background: var(--rose);
      border-color: var(--rose);
      color: var(--rose-light);
}

.cat-card-actions button.success-btn:hover {
  background: var(--emerald);
      border-color: var(--emerald);
      color: var(--emerald-light);
}

.cat-card.inactive {
  opacity: .55;
}

.cat-card.inactive .cat-card-name {
  text-decoration: line-through;
      color: var(--muted);
}

.modal-overlay {
  position: fixed;
      inset: 0;
      background: rgba(13, 17, 23, .6);
      backdrop-filter: blur(3px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 500;
}

.modal-overlay.open {
  display: flex;
}

.pl-modal {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-lg);
      width: 460px;
      max-width: 95vw;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
      animation: modalIn .2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modalIn {
      from {
        transform: translateY(16px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

.modal-head {
  padding: 18px 20px 14px;
      border-bottom: 1px solid var(--cream3);
      display: flex;
      align-items: center;
}

.modal-head h4 {
  flex: 1;
      font-family: var(--ff-serif);
      font-size: 16px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -.2px;
}

.modal-close {
  background: var(--cream2);
      border: none;
      cursor: pointer;
      font-size: 16px;
      color: var(--muted);
      width: 28px;
      height: 28px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .13s;
}

.modal-close:hover {
  background: var(--cream3);
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  padding: 14px 20px;
      border-top: 1px solid var(--cream3);
      display: flex;
      gap: 8px;
      justify-content: flex-end;
}

.modal-box {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-lg);
      width: 480px;
      max-width: 95vw;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
      animation: modalIn .2s cubic-bezier(.4, 0, .2, 1);
}

.modal-header {
  padding: 18px 20px 14px;
      border-bottom: 1px solid var(--cream3);
      display: flex;
      align-items: center;
      gap: 10px;
}

.modal-header span {
  flex: 1;
      font-family: var(--ff-serif);
      font-size: 16px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -.2px;
}

.modal-header .modal-close {
  background: var(--cream2);
      border: none;
      cursor: pointer;
      font-size: 16px;
      color: var(--muted);
      width: 28px;
      height: 28px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .13s;
}

.modal-header .modal-close:hover {
  background: var(--cream3);
      color: var(--ink);
}

.cs-modal-info-box {
  background: var(--cream);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 11px 14px;
      margin-bottom: 16px;
      font-size: 13px;
      color: var(--ink);
      line-height: 1.6;
}

.cs-modal-info-box strong {
  color: var(--ink);
      font-weight: 600;
}

.cs-modal-footer {
  padding: 14px 20px;
      border-top: 1px solid var(--cream3);
      display: flex;
      gap: 8px;
      justify-content: flex-end;
}

#toast {
  position: fixed;
      top: 16px;
      right: 16px;
      z-index: 999;
      display: flex;
      flex-direction: column;
      gap: 7px;
}

.toast-item {
  padding: 10px 16px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 500;
      box-shadow: var(--shadow-lg);
      animation: slideIn .2s ease;
      min-width: 220px;
      font-family: var(--ff-sans);
      letter-spacing: .1px;
}

.toast-success {
  background: var(--emerald);
      color: var(--emerald-light);
}

.toast-error {
  background: var(--rose);
      color: var(--rose-light);
}

.toast-info {
  background: var(--blue);
      color: var(--blue-light);
}

.toast-warning {
  background: var(--amber-light);
      color: var(--amber);
      border: 1px solid var(--amber);
}

@keyframes slideIn {
      from {
        transform: translateX(30px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

.page {
  display: none;
      width: 100%;
      flex: 1;
      animation: fadeIn .2s ease;
}

@keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(4px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

.page.active {
  display: block;
}

.empty-state {
  text-align: center;
      padding: 40px 20px;
      color: var(--muted);
      font-size: 13px;
}

.loading {
  text-align: center;
      padding: 30px;
      color: var(--ghost);
      font-size: 13px;
}

.row-2 {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
}

.inline-search {
  display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: wrap;
}

.inline-search input,
.inline-search select {
  border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 7px 10px;
      font-size: 13px;
      outline: none;
      background: var(--surface);
      color: var(--ink);
      transition: border .13s;
      font-family: var(--ff-sans);
}

.inline-search input:focus,
.inline-search select:focus {
  border-color: var(--blue3);
}

.inline-search input::placeholder {
  color: var(--ghost);
}

.dash-row {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
}

.section-label {
  font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--ghost);
      padding: 0 2px;
      margin-bottom: 8px;
      margin-top: 18px;
}

.section-label:first-child {
  margin-top: 0;
}

.pag-row {
  display: flex;
      align-items: center;
      gap: 8px;
      padding: 11px 16px;
      border-top: 1px solid var(--cream3);
}

.pag-info {
  font-size: 12px;
      color: var(--muted);
      flex: 1;
      font-family: var(--ff-mono);
}

.color-reference {
  margin-top: 8px;
      padding: 12px;
      background: var(--cream2);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
}

.color-reference-title {
  font-size: 10px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: .8px;
}

.color-swatches {
  display: grid;
      grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
      gap: 5px;
}

.color-swatch {
  width: 30px;
      height: 30px;
      border-radius: 5px;
      border: 2px solid var(--cream3);
      cursor: pointer;
      transition: all .13s;
      position: relative;
}

.color-swatch:hover {
  transform: scale(1.12);
      border-color: var(--blue3);
}

.color-swatch.selected {
  border-color: var(--blue2);
      box-shadow: 0 0 0 2px var(--blue-pale);
}

.color-preview {
  display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-left: 8px;
}

.color-preview-box {
  width: 20px;
      height: 20px;
      border-radius: 4px;
      border: 1px solid var(--cream3);
}

.dropdown-menu {
  box-shadow: var(--shadow);
}

.dropdown-option {
  display: flex;
      align-items: center;
      gap: 8px;
      transition: background .13s;
}

.dropdown-option:hover {
  background: var(--cream2);
}

.dropdown-option.selected {
  background: var(--blue-pale);
      color: var(--blue2);
}

.approve-block {
  background: var(--blue-pale);
      border: 1px solid var(--blue-light);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      margin-bottom: 12px;
}

.approve-label {
  font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--blue3);
      margin-bottom: 8px;
}

.bc-status-avail {
  background: var(--emerald-light);
      color: var(--emerald);
}

.bc-status-used {
  background: var(--amber-light);
      color: var(--amber);
}

@media (max-width: 768px) {
  .pl-modal {
    width: 95% !important;
        max-width: 95% !important;
        left: 2.5% !important;
  }
  table {
    font-size: 12px;
  }
  .table-card {
    overflow-x: auto;
  }
  .table-card table {
    min-width: 600px;
  }
  #grn-detail-panel>div,
#siv-detail-panel>div,
#stv-detail-panel>div,
#sri-detail-panel>div {
    flex-direction: column;
  }
  #grn-products-section,
#siv-products-section,
#stv-products-section,
#sri-products-section {
    min-width: 100%;
        margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .pl-modal {
    width: 98% !important;
        left: 1% !important;
  }
}

.table-card {
  overflow-x: auto;
}

.bs-bc-barcode-value {
  font-family: var(--ff-mono);
      font-size: 22px;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: 1.5px;
      padding: 14px 16px;
      background: var(--cream2);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      text-align: center;
      margin: 10px 0;
      word-break: break-all;
}

.bs-bc-meta-row {
  display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 4px;
}

.bs-bc-meta-row span:last-child {
  color: var(--ink3);
      font-family: var(--ff-mono);
      font-size: 11px;
}

.bc-svg-preview {
  width: 100%;
      max-height: 80px;
      margin: 8px 0 4px;
      display: block;
}

.grn-filter-select {
  min-width: 130px;
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 7px 10px;
      font-size: 13px;
      outline: none;
      background: var(--surface);
      color: var(--ink);
      font-family: var(--ff-sans);
      transition: border-color .14s;
}

.grn-filter-select:focus {
  border-color: var(--blue3);
}

.grn-table-scroll {
  overflow-x: auto;
      overflow-y: auto;
      max-height: calc(100vh - 260px);
}

.grn-table-scroll table {
  min-width: 680px;
}

.grn-row-clickable {
  cursor: pointer;
      transition: background .13s;
}

.grn-row-clickable:hover {
  background: var(--blue-pale) !important;
}

.grn-row-clickable:hover .grn-view-link {
  color: var(--blue2);
      font-weight: 600;
}

.grn-view-link {
  font-size: 12px;
      color: var(--blue3);
      font-family: var(--ff-mono);
      letter-spacing: .3px;
      transition: color .13s;
}

.grn-item-count {
  display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      padding: 1px 6px;
      background: var(--cream2);
      border: 1px solid var(--cream3);
      border-radius: 10px;
      font-family: var(--ff-mono);
      font-size: 12px;
      font-weight: 600;
      color: var(--ink3);
}

.grn-detail-topbar {
  display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 0 14px 0;
      flex-wrap: wrap;
}

.grn-back-btn {
  display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 500;
      color: var(--ink3);
      cursor: pointer;
      transition: all .14s;
      font-family: var(--ff-sans);
      text-decoration: none;
      box-shadow: var(--shadow-sm);
}

.grn-back-btn:hover {
  background: var(--cream);
      border-color: var(--blue3);
      color: var(--blue2);
      transform: translateX(-2px);
}

.grn-back-arrow {
  font-size: 15px;
      line-height: 1;
}

.grn-detail-breadcrumb {
  display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--muted);
      flex: 1;
}

.grn-breadcrumb-parent {
  color: var(--blue3);
      cursor: pointer;
      transition: color .13s;
}

.grn-breadcrumb-parent:hover {
  color: var(--blue2); text-decoration: underline;
}

.grn-breadcrumb-sep {
  color: var(--ghost);
}

.grn-breadcrumb-current {
  font-family: var(--ff-mono);
      font-weight: 600;
      font-size: 13px;
      color: var(--ink);
}

.grn-detail-actions {
  display: flex;
      gap: 7px;
      align-items: center;
      flex-wrap: wrap;
}

.grn-detail-meta-strip {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 10px 16px;
      margin-bottom: 14px;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      overflow-x: auto;
      box-shadow: var(--shadow-sm);
}

.grn-meta-item {
  font-size: 13px;
      color: var(--ink3);
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
}

.grn-meta-label {
  font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
}

.grn-meta-sep {
  color: var(--cream3);
      font-size: 14px;
      font-weight: 300;
      flex-shrink: 0;
}

#grn-detail-meta,
#siv-detail-meta,
#stv-detail-meta,
#sri-detail-meta,
#wov-detail-meta {
  display: flex;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      width: 100%;
}

.grn-detail-body {
  display: flex;
      gap: 0;
      align-items: flex-start;
}

.grn-products-card {
  flex: none;
      width: 541px;
      min-width: 220px;
      max-width: 70%;
}

.grn-products-scroll {
  overflow-x: auto;
      overflow-y: auto;
      max-height: calc(100vh - 340px);
}

.grn-products-scroll table {
  min-width: 540px;
}

.grn-search-input {
  width: 190px;
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      padding: 6px 10px;
      font-size: 13px;
      outline: none;
      font-family: var(--ff-sans);
      background: var(--surface);
      color: var(--ink);
      transition: border-color .14s;
}

.grn-search-input:focus {
  border-color: var(--blue3);
}

.grn-search-input::placeholder {
  color: var(--ghost);
}

.panel-resizer {
  flex: none;
      width: 8px;
      position: relative;
      align-self: stretch;
      cursor: col-resize;
      display: grid;
      place-items: center;
      z-index: 30;
      margin: 0 -1px;
      user-select: none;
}

.panel-resizer-line {
  position: absolute;
      top: 0; bottom: 0; right: 3px;
      width: 1px;
      background: var(--cream3);
      transition: width .15s, background .15s, transform .15s;
}

.panel-resizer:hover .panel-resizer-line,
.panel-resizer.dragging .panel-resizer-line {
  width: 2px;
      background: var(--blue3);
      transform: translateX(0.5px);
}

.panel-resizer-handle {
  height: 28px;
      width: 8px;
      border-radius: 99px;
      background: var(--surface);
      border: 1px solid var(--cream3);
      box-shadow: 0 1px 4px rgba(0,0,0,.10);
      position: relative;
      z-index: 1;
      transition: background .15s, border-color .15s, box-shadow .15s;
      display: flex;
      align-items: center;
      justify-content: center;
}

.panel-resizer-handle::before {
  content: "";
      display: block;
      width: 2px;
      height: 14px;
      border-radius: 1px;
      background: var(--cream3);
      transition: background .15s;
}

.panel-resizer:hover .panel-resizer-handle,
.panel-resizer.dragging .panel-resizer-handle {
  background: var(--blue3);
      border-color: var(--blue3);
      box-shadow: 0 1px 8px rgba(59,76,202,.25);
}

.panel-resizer:hover .panel-resizer-handle::before,
.panel-resizer.dragging .panel-resizer-handle::before {
  background: #fff;
}

.grn-items-card {
  flex: 1; min-width: 320px;
}

.grn-items-scroll {
  overflow-x: auto;
      overflow-y: auto;
      max-height: calc(100vh - 340px);
}

.grn-items-scroll table {
  min-width: 620px;
}

#page-wov,
#wov-list-view,
#wov-detail-panel {
  width: 100%;
}

#page-wov .table-card {
  width: 100%;
}

#page-wov .grn-table-scroll table {
  min-width: 680px;
}

#wov-products-section .grn-products-scroll table {
  min-width: 620px;
}

#order-detail-panel {
  max-width: 1120px;
      margin: 0 auto;
      width: 100%;
}

.order-report-meta-strip {
  background: var(--surface);
      border: 1px solid var(--cream3);
      border-radius: var(--radius-lg);
      padding: 0;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
}

.order-report-header {
  display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      padding: 22px 24px;
      border-bottom: 1px solid var(--cream3);
      background: #fff;
}

.order-report-kicker {
  font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      margin-bottom: 5px;
}

.order-report-title {
  font-family: var(--ff-mono);
      font-size: 24px;
      font-weight: 700;
      color: var(--ink);
      letter-spacing: 0;
}

.order-report-subtitle {
  margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
}

.order-report-stamp {
  display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      min-width: 160px;
}

.order-report-stamp strong {
  font-family: var(--ff-mono);
      font-size: 18px;
      color: var(--ink);
}

.order-report-grid {
  display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--cream2);
      background: var(--cream2);
      gap: 1px;
}

.order-report-field {
  background: var(--surface);
      padding: 14px 16px;
      min-width: 0;
}

.order-report-label {
  font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .07em;
      margin-bottom: 5px;
}

.order-report-value {
  color: var(--ink);
      font-size: 13px;
      line-height: 1.4;
      word-break: break-word;
}

.order-report-value span {
  display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 2px;
}

.order-report-body {
  display: block;
      margin-top: 14px;
}

.order-report-card {
  border-radius: var(--radius-lg);
      overflow: hidden;
}

.order-report-table {
  font-size: 12px;
}

.order-report-table th {
  background: var(--cream2);
      color: var(--muted);
      font-size: 10px;
      letter-spacing: .07em;
      text-transform: uppercase;
      white-space: nowrap;
}

.order-report-table td {
  vertical-align: top;
}

.order-report-index {
  width: 40px;
      text-align: center;
      color: var(--muted);
      font-family: var(--ff-mono);
      font-weight: 700;
}

.order-report-product {
  font-weight: 700;
      color: var(--ink);
      font-size: 13px;
}

.order-report-product-meta {
  margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
}

.order-report-total-row {
  background: var(--cream2);
      border-top: 2px solid var(--cream3);
      font-weight: 700;
}

.order-report-total-row td {
  padding-top: 10px;
      padding-bottom: 10px;
}

.order-report-summary {
  display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      background: var(--cream3);
      border-top: 1px solid var(--cream3);
      text-align: left;
}

.order-report-summary > div {
  background: var(--surface);
      padding: 14px 16px;
}

.order-report-summary span,
.order-report-payment h5 {
  display: block;
      margin: 0 0 5px;
      font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .07em;
}

.order-report-summary strong {
  font-family: var(--ff-mono);
      font-size: 15px;
      color: var(--ink);
}

.order-report-discount {
  color: var(--rose) !important;
}

.order-report-grand-total strong {
  color: var(--blue3);
      font-size: 18px;
}

.order-report-payment {
  margin-top: 14px;
      border: 1px solid var(--cream3);
      border-radius: var(--radius-md);
      overflow: hidden;
      background: var(--surface);
}

.order-report-payment h5 {
  padding: 12px 16px;
      border-bottom: 1px solid var(--cream3);
      background: var(--cream2);
}

.order-report-payment table {
  width: 100%;
      border-collapse: collapse;
      font-size: 13px;
}

.order-report-payment td {
  padding: 11px 16px;
      border-bottom: 1px solid var(--cream2);
}

.order-report-payment tr:last-child td {
  border-bottom: none;
}

.order-report-payment td:last-child {
  text-align: right;
      font-family: var(--ff-mono);
      font-weight: 700;
}

.order-report-credit {
  color: #d97706;
}

@media (max-width: 900px) {
  .order-report-header,
.order-report-stamp {
    align-items: flex-start;
  }
  .order-report-header {
    flex-direction: column;
  }
  .order-report-grid,
.order-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grn-total-footer {
  padding: 11px 16px;
      text-align: right;
      font-family: var(--ff-mono);
      font-weight: 600;
      font-size: 13px;
      color: var(--ink);
      border-top: 2px solid var(--cream3);
      background: var(--cream);
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.grn-total-badge {
  display: inline-block;
      padding: 3px 10px;
      background: var(--indigo-light);
      color: var(--indigo);
      border-radius: 20px;
      font-family: var(--ff-mono);
      font-size: 12px;
      font-weight: 600;
}

@media (max-width: 900px) {
  .grn-detail-body {
    flex-direction: column;
  }
  .grn-products-card {
    max-width: 100%; min-width: 100%;
  }
  .grn-items-card {
    min-width: 100%;
  }
  .grn-products-scroll,
.grn-items-scroll {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .grn-detail-topbar {
    flex-direction: column; align-items: flex-start;
  }
  .grn-detail-breadcrumb {
    display: none;
  }
  .grn-detail-actions {
    width: 100%;
  }
}

.bulk-gen-section {
  display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      background: var(--blue-pale);
      border: 1px solid var(--blue-light);
      border-radius: var(--radius-md);
      font-size: 12px;
      color: var(--blue2);
      margin-top: 10px;
}

.cs-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px 0;
}

.cs-kpi-card {
  background: var(--surface, #fff);
  border: 1px solid var(--cream3, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.cs-kpi-label {
  font-size: 12px;
  color: var(--ink-light, #6b7280);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.cs-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #111);
  letter-spacing: -.3px;
}

.cs-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--cream3, #e5e7eb);
}

.cs-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light, #6b7280);
  cursor: pointer;
  border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
  transition: color .15s, border-color .15s;
}

.cs-tab:hover {
  color: var(--ink, #111);
}

.cs-tab.active {
  color: var(--primary, #2563eb);
  border-bottom-color: var(--primary, #2563eb);
  background: var(--surface, #fff);
}

.cs-tab-pane {
  display: none;
}

.cs-tab-pane.active {
  display: block;
}

.badge-info {
  background: #dbeafe; color: #1d4ed8;
}

.badge-warning {
  background: #fef3c7; color: #92400e;
}

.badge-success {
  background: #dcfce7; color: #166534;
}

.badge-danger {
  background: #fee2e2; color: #991b1b;
}

.badge-secondary {
  background: #f1f5f9; color: #475569;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
