/* ============================================
   SMDirect Responsive Fixes -- 2026-03-05
   ============================================ */

/* FIX 1 (M7): Custom Items panel + button -- responsive on mobile */
@media (max-width: 767px) {
  #message-list { width: 100% !important; }
  .btn-message { bottom: 80px !important; padding: 8px 10px !important; font-size: 11px !important; }
}


/* FIX 4 (M2+T2+X3): Auto-hide non-critical table columns on mobile/tablet */
/* Column order: 1=checkbox 2=model 3=name 4=onhand 5=allocated 6=available 7=futureQty 8=futureDate 9=image 10=qty 11=cost 12=actions */
@media (max-width: 767px) {
  #products td:nth-child(4), #products thead td:nth-child(4),
  #products td:nth-child(5), #products thead td:nth-child(5),
  #products td:nth-child(7), #products thead td:nth-child(7),
  #products td:nth-child(8), #products thead td:nth-child(8),
  #products td:nth-child(9), #products thead td:nth-child(9) { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #products td:nth-child(7), #products thead td:nth-child(7),
  #products td:nth-child(8), #products thead td:nth-child(8) { display: none; }
}

/* FIX 5 (M6): Quantity input and controls sizing on mobile */
@media (max-width: 767px) {
  .quantity-input { width: 50px !important; min-width: 40px !important; }
  .quantity-adder { min-width: 70px; }
  .quantity-wrapper { margin-left: 5px !important; }
}

/* FIX 6 (M1+T1): Filter row -- add vertical spacing when stacked on mobile */
@media (max-width: 767px) {
  .product-filter > div[class*="col-"] { margin-bottom: 8px; }
  .product-filter .col-sm-6 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
}

/* FIX 7 (M5): Related products modal -- responsive on mobile */
@media (max-width: 767px) {
  .modal-dialog { width: 95% !important; max-width: 95% !important; margin: 10px auto !important; }
  .modal-body { overflow-x: auto; }
}

/* ============================================
   Order History Page Fixes -- 2026-03-05
   ============================================ */

/* Order list search filters: consistent sizing + wrap */
#content input[name="customer_po"],
#content input[name="customer_sap"],
#content input[name="customer_project"],
#content input[name="invoice_no"],
#content input[name="product_no"],
#content input[name="product_name"],
#content input[name="invoice_date"],
#content input[name="ship_date"],
#content input[name="delivery_date"],
#content select[name="order_status_id"],
#content select[name="main_store"] {
  padding: 5px 8px;
  margin: 3px 2px;
  border: 1px solid #ccc;
  border-radius: 3px;
  height: 34px;
  font-size: 13px;
  vertical-align: middle;
}

/* Location dropdown: cap width so long addresses don't blow out layout */
#content select[name="main_store"] {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Order history table: hide less-critical columns on mobile */
/* Columns: 1=OrderID 2=CustPO 3=SAP 4=InvoiceNo 5=CustProject 6=ProductModels 7=Status 8=Total 9=DateAdded 10=ActualShipDate 11=Tracking 12=View */
@media (max-width: 767px) {
  #content .table-responsive td:nth-child(3),
  #content .table-responsive td:nth-child(4),
  #content .table-responsive td:nth-child(5),
  #content .table-responsive td:nth-child(6),
  #content .table-responsive td:nth-child(8),
  #content .table-responsive td:nth-child(10),
  #content .table-responsive td:nth-child(11) { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #content .table-responsive td:nth-child(5),
  #content .table-responsive td:nth-child(6),
  #content .table-responsive td:nth-child(10),
  #content .table-responsive td:nth-child(11) { display: none; }
}

/* Action buttons row: proper spacing below heading */
#content h1 { display: inline-block; margin-right: 10px; }
#content #ship-today,
#content #ship-yesterday,
#content #export { margin-top: 5px; }

/* Cross-link banners between Order History and Order Review (store 652) */
.smd-crosslink-banner {
  display: flex;
  align-items: center;
  background: #e8f4fd;
  border-left: 4px solid #0a7abf;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.smd-crosslink-banner__icon {
  font-size: 22px;
  color: #0a7abf;
  margin-right: 14px;
  flex-shrink: 0;
}
.smd-crosslink-banner__text {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}
.smd-crosslink-banner__link {
  display: inline-block;
  margin-left: 10px;
  color: #0a7abf;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.smd-crosslink-banner__link:hover {
  color: #085a8a;
  text-decoration: underline;
}

.smd-crosslink-text {
  font-size: 13px;
  color: #666;
  margin: 0 0 5px 0;
  padding: 0;
}
.smd-crosslink-text a {
  color: #0a7abf;
  font-weight: 500;
  text-decoration: none;
}
.smd-crosslink-text a:hover {
  text-decoration: underline;
}

/* ============================================================
   TI Orders / Order Review page (route=account/ti_orders)
   Added: 2026-03-06
   ============================================================ */

/* Page heading */
.ti-orders-heading {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  color: #333;
}

/* Form field layout — label + control inline */
.ti-orders-field label {
  display: inline-block;
  width: 150px;
  font-weight: 500;
}
.ti-orders-field select.form-control,
.ti-orders-field input.form-control {
  width: auto;
  display: inline-block;
  min-width: 150px;
}
.ti-orders-field {
  margin-bottom: 15px;
}

/* Year selector inline group */
.ti-orders-year-group .btn { vertical-align: middle; }
.ti-orders-year-input {
  width: 80px !important;
  display: inline-block !important;
  text-align: center;
  vertical-align: middle;
}

/* Datepicker z-index fixes */
#reqDate { position: relative !important; }
.datepicker-dropdown { z-index: 9999 !important; }
.datepicker { position: absolute !important; z-index: 1060 !important; }

/* Hide Ship Partial option */
#viewTypeSelect option[value="ship_partial"] { display: none; }

/* Loading overlay */
.ti-orders-loader {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.ti-orders-loader.active {
  display: block;
}
.ti-orders-loader-inner {
  display: inline-block;
  color: #666;
}
.ti-orders-loader-inner p {
  margin-top: 10px;
  font-size: 14px;
}

/* Order list header */
.ti-orders-list {
  margin-top: 30px;
}
.ti-orders-list-header {
  margin-bottom: 12px;
}
.ti-orders-list-header h3 {
  margin: 0;
  line-height: 34px;
}

/* Table styling */
.ti-orders-table {
  font-size: 13px;
}
.ti-orders-table thead th {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
  vertical-align: middle;
}
.ti-orders-table tbody tr:hover {
  background-color: #f0f7ff;
}

/* Sortable column styling */
th[data-sortable] {
  cursor: pointer;
  user-select: none;
}
th[data-sortable]:hover {
  background-color: #e8e8e8;
}
.sort-icon {
  margin-left: 4px;
  color: #aaa;
  font-size: 11px;
}
th.asc .sort-icon,
th.desc .sort-icon {
  color: #333;
}

/* In-stock status coloring */
.ti-stock-yes { color: #2e7d32; font-weight: 600; }
.ti-stock-no  { color: #c62828; font-weight: 600; }

/* Checkbox column narrow */
.ti-orders-col-check { width: 36px; text-align: center; }

/* Download icon column */
.ti-orders-table td:last-child,
.ti-orders-table th:last-child {
  text-align: center;
  width: 40px;
}
.ti-orders-table td:last-child a {
  color: #337ab7;
}
.ti-orders-table td:last-child a:hover {
  color: #23527c;
}

/* Empty state / welcome state */
.ti-orders-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 4px;
  margin-top: 20px;
}
.ti-orders-empty i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  color: #bbb;
}
.ti-orders-empty p {
  font-size: 14px;
  margin: 0;
}
.ti-orders-welcome {
  margin-top: 30px;
}

/* Responsive: stack form fields on mobile */
@media (max-width: 767px) {
  .ti-orders-field label {
    display: block;
    width: 100%;
    margin-bottom: 4px;
  }
  .ti-orders-field select.form-control,
  .ti-orders-field input.form-control {
    width: 100%;
  }
  .ti-orders-year-group .btn {
    margin-top: 6px;
  }
  .ti-orders-table {
    font-size: 12px;
  }
  /* Hide less-critical columns on mobile */
  .ti-orders-table td:nth-child(4),
  .ti-orders-table th:nth-child(4),
  .ti-orders-table td:nth-child(8),
  .ti-orders-table th:nth-child(8) {
    display: none;
  }
}

/* Tablet: tighten up */
@media (min-width: 768px) and (max-width: 1024px) {
  .ti-orders-table {
    font-size: 12px;
  }
}

/* ============================================================
   TI Orders — Phase 2 refinements (2026-03-06)
   ============================================================ */

/* Info notice styling */
.ti-orders-notice {
  font-size: 13px;
  padding: 10px 15px;
  margin-bottom: 12px;
}
.ti-orders-notice i { margin-right: 4px; }

/* Form card panel (Fix 5) */
.ti-orders-form-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px 24px 16px;
  margin-bottom: 20px;
}

/* Submit button (Fix 5) */
.ti-orders-submit {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Contextual help text (Fix 3) */
.ti-orders-help {
  color: #6c757d;
  font-size: 13px;
  margin: 0 0 6px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-left: 3px solid #89b4fa;
  border-radius: 0 4px 4px 0;
}
.ti-orders-help i.fa-info-circle {
  color: #89b4fa;
  margin-right: 4px;
}

/* Order summary bar (Fix 4) */
.ti-orders-summary {
  font-size: 13px;
  color: #555;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 12px;
}
.ti-orders-summary strong {
  color: #333;
}
.ti-orders-summary-sep {
  margin: 0 8px;
  color: #ccc;
}

/* Stock status icons (Fix 6) */
.ti-stock-yes i.fa-check { margin-right: 2px; }
.ti-stock-no i.fa-times { margin-right: 2px; }

/* ============================================================
   Sticky Release Bar (Fix 7)
   ============================================================ */
.ti-release-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: #fff;
  padding: 0;
  z-index: 1040;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.ti-release-bar.active {
  transform: translateY(0);
}
.ti-release-bar-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ti-release-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.ti-release-count {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.ti-release-count i { margin-right: 4px; }
.ti-release-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ti-release-actions label {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  color: #bdc3c7;
}
.ti-release-actions #reqDate {
  width: 130px;
  height: 32px;
  font-size: 13px;
}
.ti-release-btn {
  padding: 6px 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.ti-release-warning {
  width: 100%;
  margin: 4px 0 0;
  font-size: 12px;
}

/* Shipping display in release bar */
.ti-shipping-cost {
  color: #f1c40f;
  font-size: 13px;
  font-weight: 500;
}
.ti-shipping-free {
  color: #2ecc71;
  font-size: 13px;
}
.ti-shipping-hint {
  font-size: 12px;
}

/* Body padding when release bar is visible (prevent overlap) */
.ti-release-bar.active ~ .footer,
.ti-release-bar.active ~ footer {
  padding-bottom: 70px;
}

/* Responsive: release bar on mobile (Fix 8) */
@media (max-width: 767px) {
  .ti-release-bar-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .ti-release-info {
    width: 100%;
    justify-content: space-between;
  }
  .ti-release-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
  .ti-release-actions label { display: none; }
  .ti-release-actions #reqDate { flex: 1; min-width: 120px; }
  .ti-release-btn { flex: 1; }
}

/* Account Manager "Help?" button — ensure it stays above the sticky release bar */
#AccountManager {
  z-index: 9998 !important;
}
#AccountManagerpopup {
  z-index: 9999 !important;
}

/* ===== Reorder All Items Button — Order Detail (store 652) ===== */
.reorder-all-wrap {
  margin: 16px 0 20px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.reorder-all-btn {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  line-height: 1.4;
  text-align: center;
}
.reorder-all-btn .reorder-all-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}
.reorder-all-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.reorder-all-btn .fa-spinner {
  margin-right: 4px;
}
@media (max-width: 767px) {
  .reorder-all-wrap {
    margin: 12px 0 16px;
    padding: 12px;
  }
  .reorder-all-btn {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* ===== Store 652 — Order Detail B2B Redesign (2026-03-05) ===== */

/* Header */
.oi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}
.oi-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.oi-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}
.oi-date {
  color: #777;
  font-size: 14px;
}
.oi-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Status badges */
.oi-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.oi-status-Processed, .oi-status-processed {
  background: #e3f2fd;
  color: #1565c0;
}
.oi-status-Complete, .oi-status-complete, .oi-status-Shipped, .oi-status-shipped {
  background: #e8f5e9;
  color: #2e7d32;
}
.oi-status-Pending, .oi-status-pending {
  background: #fff3e0;
  color: #e65100;
}
.oi-status-Canceled, .oi-status-canceled, .oi-status-Denied, .oi-status-denied {
  background: #fce4ec;
  color: #c62828;
}

/* Cards */
.oi-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #fff;
}
.oi-card-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 6px 6px 0 0;
}
.oi-card-body {
  padding: 16px;
}

/* Detail items in summary card */
.oi-detail-item {
  margin-bottom: 12px;
}
.oi-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.oi-detail-value {
  display: block;
  font-size: 14px;
  color: #333;
  word-break: break-word;
}

/* Addresses */
.oi-addresses {
  margin-bottom: 0;
}
.oi-addresses address {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}
.oi-addr-same-note {
  font-weight: 400;
  font-size: 12px;
  color: #888;
}

/* Products table */
.oi-products-table {
  margin-bottom: 0;
}
.oi-products-table thead th {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e0e0e0;
  padding: 10px 12px;
}
.oi-products-table tbody td {
  vertical-align: middle;
  padding: 10px 12px;
  font-size: 13px;
}
.oi-products-table tfoot td {
  padding: 8px 12px;
  font-size: 13px;
}
.oi-product-name {
  font-weight: 500;
  color: #333;
}
.oi-model-code {
  font-size: 12px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  color: #555;
}

/* Order comment */
.oi-comment-text {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* History card (collapsible) */
.oi-history-card {
  margin-top: 8px;
}
.oi-history-toggle:hover {
  background: #eef0f2;
}
.oi-toggle-icon {
  transition: transform 0.2s;
  margin-top: 2px;
}

/* Bottom actions */
.oi-bottom-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

/* Tracking section */
#tracking:not(:empty) {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
#tracking a {
  font-weight: 600;
}

/* Mobile */
@media (max-width: 767px) {
  .oi-header {
    flex-direction: column;
  }
  .oi-header-actions {
    width: 100%;
  }
  .oi-header-actions .btn {
    flex: 1;
  }
  .oi-title {
    font-size: 20px;
  }
  .oi-bottom-actions {
    flex-direction: column;
  }
  .oi-bottom-actions .btn {
    width: 100%;
  }
  .oi-products-table thead th,
  .oi-products-table tbody td {
    font-size: 12px;
    padding: 8px 6px;
  }
  .oi-detail-item {
    margin-bottom: 10px;
  }
}

/* FIX 4: Clean code tag display for model numbers */
.oi-model-code {
  font-family: inherit;
  font-size: 12px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  color: #555;
  border: 1px solid #e8e8e8;
  white-space: nowrap;
}

/* FIX 1: Subtle back link for order detail header */
.oi-back-link {
  color: #777;
  font-size: 13px;
  text-decoration: none;
}
.oi-back-link:hover {
  color: #333;
  text-decoration: none;
}
.oi-back-link .fa {
  margin-right: 3px;
}

/* ============================================
   Project Lists — Store 652 (SMDirect)
   ============================================ */

/* Create Project form card */
.pl-create-form {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.pl-create-form h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}
.pl-form-row {
  margin-bottom: 10px;
}
.pl-form-row label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
  display: block;
}

/* Project details card (items view) */
.pl-project-card {
  background: #f7f8fa;
  border: 1px solid #e2e5ea;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 10px;
}

/* Tables */
.pl-table {
  margin-bottom: 0;
}
.pl-table thead th {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  padding: 10px 8px;
}
.pl-table tbody td {
  vertical-align: middle;
  padding: 10px 8px;
}
.pl-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.pl-table tbody tr:hover {
  background: #f0f4f8;
}

/* Quantity input */
.pl-qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 14px;
}
.pl-qty-input:focus {
  border-color: #5cb85c;
  outline: none;
  box-shadow: 0 0 3px rgba(92,184,92,0.3);
}

/* Line total */
.pl-line-total {
  font-weight: 600;
  white-space: nowrap;
}

/* Grand total */
.pl-grand-total {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  white-space: nowrap;
}

/* Add All to Cart button */
.pl-add-all-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-top: 15px;
  margin-bottom: 20px;
  background: #5cb85c;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.pl-add-all-btn:hover,
.pl-add-all-btn:focus {
  background: #449d44;
  color: #fff;
  text-decoration: none;
}
.pl-add-all-btn .fa {
  margin-right: 8px;
}

/* Badge for item count */
.pl-table .badge {
  background: #5bc0de;
  font-size: 12px;
}

/* Responsive: stack form fields on mobile */
@media (max-width: 767px) {
  .pl-create-form .col-sm-3,
  .pl-create-form .col-sm-4,
  .pl-create-form .col-sm-6,
  .pl-project-card .col-sm-4 {
    margin-bottom: 8px;
  }
  .pl-items-table {
    font-size: 13px;
  }
  .pl-qty-input {
    width: 50px;
  }
}


/* ===== Phase 4: Quick Ref. List Features (Store 652) ===== */

/* Feature 1: Heart button on product cards */
.btn-qrl-heart {
  background: #fff;
  border: 1px solid #ddd;
  color: #e74c3c;
  transition: all 0.2s;
}
.btn-qrl-heart:hover, .btn-qrl-heart:focus {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.btn-qrl-heart .fa-heart { font-size: 14px; }
.qrl-popover-content .list-group { margin-bottom: 0; }
.qrl-popover-content .list-group-item {
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.qrl-popover-content .list-group-item:hover {
  background: #f0f7ff;
  color: #337ab7;
}

/* Feature 2: Add to Job button in grid */
.add-to-quote {
  background: #fff;
  border: 1px solid #ddd;
  color: #f0ad4e;
  padding: 4px 8px;
}
.add-to-quote:hover {
  background: #f0ad4e;
  color: #fff;
  border-color: #f0ad4e;
}

/* Feature 3: Print/PDF button */
.pl-print-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}
.pl-print-btn:hover {
  background: #e8e8e8;
}

/* Feature 4: Share button */
.pl-share-btn.btn-warning {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}
.pl-share-btn.btn-sm {
  padding: 4px 8px;
}

/* Shared view page */
.pl-shared-details {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}
.pl-shared-details strong {
  display: inline-block;
  min-width: 110px;
}
.pl-shared-details div {
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .btn-qrl-heart {
    margin-left: 0;
    margin-top: 5px;
    display: block;
    width: 100%;
  }
  .pl-print-btn, .pl-share-btn.btn-warning {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* CSV Export button */
.pl-csv-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}
.pl-csv-btn:hover {
  background: #e8e8e8;
}


/* ===== Selective Reorder Checkboxes — Order Detail (Store 652) ===== */
/* Added: 2026-03-10 */

/* Checkbox column sizing */
.oi-reorder-check-col {
  width: 36px;
  min-width: 36px;
  text-align: center;
  vertical-align: middle !important;
  padding: 8px 4px !important;
}

/* Checkbox sizing */
.oi-reorder-check,
#oi-select-all {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #337ab7;
  vertical-align: middle;
}

/* Dimmed row when unchecked */
.oi-reorder-row.oi-row-dimmed td {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.oi-reorder-row.oi-row-dimmed td.oi-reorder-check-col {
  opacity: 1;
}

/* Disabled reorder button state */
#btn-reorder-selected:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #8cb8d8;
  border-color: #8cb8d8;
}

/* Mobile: ensure checkboxes are tap-friendly */
@media (max-width: 767px) {
  .oi-reorder-check-col {
    width: 32px;
    min-width: 32px;
    padding: 6px 2px !important;
  }
  .oi-reorder-check,
  #oi-select-all {
    width: 20px;
    height: 20px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .oi-reorder-check,
  #oi-select-all {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   BLANCO Landing Page v2 — SMDirect
   Page: /blanco (information_id=190)
   Scope: .blanco-* classes only — no global side effects
   ============================================================ */

/* --- Break out of OpenCart's .container on the BLANCO page ---
   The information.tpl wraps everything in:
     .container > .row > #content.col-sm-12
   We expand those wrappers to full viewport width, then let
   each section control its own inner padding/max-width.        */
.container:has(.blanco-hero),
.container:has(.blanco-hero) > .row,
.container:has(.blanco-hero) > .row > #content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide breadcrumb & page H1 on BLANCO page */
.container:has(.blanco-hero) > ul.breadcrumb,
.container:has(.blanco-hero) h1 {
  display: none !important;
}

/* --- Shared inner width limiter (reused by most sections) --- */
.blanco-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* -- HERO --------------------------------------------------- */
.blanco-hero {
  background: #252525;
  color: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.blanco-wordmark {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1;
}
.blanco-hero-tagline {
  font-size: 1rem;
  color: #7bc317;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 40px;
}
.blanco-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.blanco-stat-item {
  padding: 0 36px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.blanco-stat-item:first-child { border-left: none; }
.blanco-stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #7bc317;
  line-height: 1;
  margin-bottom: 4px;
}
.blanco-stat-item span {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
}
@media (max-width: 600px) {
  .blanco-wordmark { font-size: 2rem; }
  .blanco-stat-item { padding: 12px 18px; }
  .blanco-stats-row { flex-direction: row; }
}

/* -- SECTION WRAPPER ---------------------------------------- */
.blanco-section {
  padding: 56px 0 48px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.blanco-section-alt { background: #f8f8f6; }
.blanco-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #252525;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.blanco-section-sub {
  text-align: center;
  color: #666;
  font-size: .93rem;
  margin: 0 auto 36px;
  max-width: 600px;
  line-height: 1.6;
}

/* -- COLLECTION GRID ---------------------------------------- */
.blanco-coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .blanco-coll-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575px)  { .blanco-coll-grid { grid-template-columns: 1fr; } }

.blanco-coll-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
}
.blanco-coll-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transform: translateY(-3px);
}
.blanco-coll-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}
.blanco-coll-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.blanco-coll-card:hover .blanco-coll-img { transform: scale(1.05); }

.blanco-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .06em;
}
.blanco-badge-award { background: #c8a84b; color: #fff; }
.blanco-badge-new   { background: #7bc317; color: #fff; }

.blanco-coll-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blanco-coll-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #252525;
  margin: 0 0 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.blanco-coll-tagline {
  font-size: .78rem;
  color: #7bc317;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.blanco-coll-desc {
  font-size: .85rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.blanco-coll-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.blanco-material-tag {
  font-size: .68rem;
  padding: 3px 9px;
  border-radius: 12px;
  background: #252525;
  color: #fff;
  font-weight: 600;
  letter-spacing: .06em;
}
.blanco-count-tag { color: #999; font-size: .76rem; }

/* -- BUTTONS ------------------------------------------------ */
.blanco-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s, color .2s;
  border: 2px solid transparent;
  line-height: 1.4;
}
.blanco-btn-green {
  background: #7bc317;
  color: #fff !important;
  border-color: #7bc317;
}
.blanco-btn-green:hover { background: #68a810; border-color: #68a810; color: #fff !important; }
.blanco-btn-outline {
  background: transparent;
  color: #7bc317 !important;
  border-color: #7bc317;
}
.blanco-btn-outline:hover { background: #7bc317; color: #fff !important; }
.blanco-btn-lg { padding: 13px 28px; font-size: 1rem; }
.blanco-btn-white {
  background: #fff;
  color: #252525 !important;
  border-color: #fff;
}
.blanco-btn-white:hover { background: #eee; color: #252525 !important; }

.blanco-browse-all { text-align: center; padding-top: 24px; }

/* -- SILGRANIT SECTION -------------------------------------- */
.blanco-silgranit-section {
  background: #f8f8f6;
  padding: 64px 0;
  width: 100%;
  box-sizing: border-box;
}
.blanco-silgranit-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 767px) { .blanco-silgranit-inner { flex-direction: column; } }
.blanco-silgranit-text { flex: 1 1 50%; }
.blanco-material-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7bc317;
  margin: 0 0 10px;
}
.blanco-silgranit-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #252525;
  margin: 0 0 16px;
  line-height: 1.2;
}
.blanco-silgranit-body {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 24px;
}
.blanco-sg-features {
  list-style: none;
  padding: 0; margin: 0 0 28px;
}
.blanco-sg-features li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: .88rem;
  color: #444;
  border-bottom: 1px solid #e8e8e8;
}
.blanco-sg-features li::before {
  content: '¹3';
  position: absolute; left: 0;
  color: #7bc317; font-weight: 700;
}
.blanco-silgranit-right { flex: 1 1 44%; }
.blanco-sg-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 24px;
  display: block;
}
.blanco-color-head {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 14px;
}
.blanco-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 400px) { .blanco-color-grid { grid-template-columns: repeat(3,1fr); } }
.blanco-swatch-item { text-align: center; }
.blanco-swatch-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,.12);
  margin: 0 auto 6px;
  cursor: pointer;
  transition: transform .2s;
}
.blanco-swatch-circle:hover { transform: scale(1.12); }
.blanco-swatch-circle.blanco-swatch-light { border-color: #ccc; }
.blanco-swatch-name {
  display: block;
  font-size: .62rem;
  color: #555;
  line-height: 1.2;
}

/* -- BLANCO UNIT BAR ---------------------------------------- */
.blanco-unit-bar {
  background: #1a1a1a;
  padding: 48px 0;
  width: 100%;
  box-sizing: border-box;
}
.blanco-unit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 767px) {
  .blanco-unit-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .blanco-unit-inner .blanco-btn { white-space: normal; }
}
.blanco-unit-copy,
.blanco-unit-text { flex: 1; }
.blanco-unit-label,
.blanco-unit-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7bc317;
  margin: 0 0 8px;
}
.blanco-unit-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
}
.blanco-unit-body,
.blanco-unit-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin: 0;
}

/* -- WHY CHOOSE BLANCO -------------------------------------- */
.blanco-why {
  background: #fff;
  padding: 56px 0 48px;
  width: 100%;
  box-sizing: border-box;
}
.blanco-why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .blanco-why-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 575px)  { .blanco-why-grid { grid-template-columns: repeat(2,1fr); } }
.blanco-why-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: #fafafa;
}
.blanco-why-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.blanco-why-item h4 {
  font-size: .88rem;
  font-weight: 700;
  color: #252525;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.blanco-why-item p {
  font-size: .8rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* -- FINAL CTA BAR ------------------------------------------ */
.blanco-cta-bar {
  background: #252525;
  padding: 56px 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.blanco-cta-bar h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.blanco-cta-bar p {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin: 0 0 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* BLANCO patch: unit bar explicit text colors */
/* HTML classes: blanco-unit-text, blanco-unit-label, blanco-unit-heading, blanco-unit-desc */
.blanco-unit-bar,
.blanco-unit-bar * {
  color: inherit;
}
.blanco-unit-label,
.blanco-unit-eyebrow { color: #7bc317 !important; }
.blanco-unit-heading { color: #ffffff !important; }
.blanco-unit-desc,
.blanco-unit-body    { color: rgba(255,255,255,.7) !important; }
.blanco-unit-text    { color: #fff !important; }

/* BLANCO patch: swatch circles -- prevent flex from squishing height */
.blanco-swatch-circle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.blanco-swatch-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* BLANCO patch: why-grid items align top */
.blanco-why-item { align-self: start; }
/* END BLANCO patches */


/* BLANCO font-size & CTA alignment fixes */
.blanco-wordmark        { font-size: 3.8rem !important; }
.blanco-hero-tagline    { font-size: 1.05rem !important; }
.blanco-stat-item strong{ font-size: 2.4rem !important; }
.blanco-stat-item span  { font-size: .88rem !important; }
.blanco-section-title   { font-size: 1.9rem !important; }
.blanco-section-sub     { font-size: 1.05rem !important; }
.blanco-coll-name       { font-size: 1.25rem !important; }
.blanco-coll-tagline    { font-size: .88rem !important; }
.blanco-coll-desc       { font-size: .95rem !important; }
.blanco-silgranit-heading{ font-size: 1.9rem !important; }
.blanco-silgranit-body  { font-size: 1rem !important; }
.blanco-sg-features li  { font-size: 1rem !important; }
.blanco-why-item h4     { font-size: 1rem !important; }
.blanco-why-item p      { font-size: .92rem !important; }

/* CTA bar: center everything including the p tag */
.blanco-cta-bar .blanco-inner { text-align: center !important; }
.blanco-cta-bar p {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1rem !important;
}

/* UNIT bar: keep text left, button right; increase text size */
.blanco-unit-inner p { font-size: 1rem !important; }
/* END BLANCO font fixes */

/* END BLANCO LANDING PAGE v2 */


/* ================================================
   PRICE-OLD HIDE - Show dealer price only
   Date: 2026-03-17
   Ticket: Requested by management
   Revert: Remove this block OR run rollback script
   ================================================ */
span.price-old { display: none !important; }
