/**
 * Embroidery Quote Builder Styles
 * ================================
 * Extracted from inline styles - January 6, 2026
 * Part of Quote Builder CSS Unification project
 *
 * This file was extracted from embroidery-quote-builder.html to enable:
 * 1. Easier maintenance and updates
 * 2. Browser caching of CSS
 * 3. Future consolidation into universal quote builder CSS
 *
 * Sections marked with SHARED are candidates for quote-builder-universal.css
 * Sections marked with EMBROIDERY-SPECIFIC should remain separate
 */

/* CSS Variables, Reset, Min Order Warning, Header, Main Layout — moved to quote-builder-common.css (2026-03-23) */

/* EMBROIDERY-SPECIFIC: Sidebar overrides (resizable) */
.power-sidebar {
    min-width: 260px;
    max-width: 500px;
    position: relative;
}

/* ============================================
   SIDEBAR IMPROVEMENTS (2026)
   - Scrollable content area
   - Sticky TOTAL at bottom
   - Resizable width via drag handle
   ============================================ */

/* Scrollable inner content */
.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Remove padding from panels inside scroll container */
.sidebar-scroll-container .pricing-panel,
.sidebar-scroll-container .additional-charges-panel,
.sidebar-scroll-container .save-quote-panel,
.sidebar-scroll-container .action-panel {
    margin-bottom: 16px;
}

/* Sticky TOTAL - Always visible at bottom */
.pricing-total-sticky {
    background: #fff;
    padding: 12px 16px;
    border-top: 2px solid #22c55e;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-total-sticky .pricing-row.total {
    margin: 0;
    padding: 0;
}

/* Resizable handle on left edge */
.sidebar-resize-handle {
    width: 8px;
    cursor: col-resize;
    background: transparent;
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    z-index: 10;
    transition: background 0.2s;
}

.sidebar-resize-handle:hover {
    background: rgba(59, 130, 246, 0.15);
}

.sidebar-resize-handle.dragging {
    background: rgba(59, 130, 246, 0.25);
}

/* Visual indicator for resize handle - always visible */
.sidebar-resize-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 50px;
    background: #94a3b8;
    border-radius: 2px;
    opacity: 0.5;
    transition: opacity 0.2s, height 0.2s, background 0.2s;
}

.sidebar-resize-handle:hover::after,
.sidebar-resize-handle.dragging::after {
    opacity: 1;
    height: 80px;
    background: #3b82f6;
}

/* ============================================
   EMBROIDERY-SPECIFIC: Logo/Stitch Configuration
   ============================================ */

/* ============================================
   2026 MODERNIZED CARD-BASED LOGO CONFIG
   ============================================ */

/* Main container - two column layout */
.logo-config-container {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Logo cards row — side-by-side when both visible */
.logo-cards-column {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 16px;
    min-width: 0;
    align-items: flex-start;
}

/* Right column - Artwork services */
.artwork-services-column {
    width: 280px;
    flex-shrink: 0;
}

/* Individual logo card */
.logo-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    flex: 1;
    min-width: 0;
}

.logo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card header — clickable to collapse/expand */
.logo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    user-select: none;
}

.logo-card-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
}

.logo-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.logo-card-icon.garment {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.logo-card-icon.cap {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
}

.logo-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* Card body */
.logo-card-body {
    padding: 12px 16px;
}

/* Collapse chevron indicator */
.logo-card-collapse-icon {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.logo-card.collapsed .logo-card-collapse-icon {
    transform: rotate(-90deg);
}

.logo-card.collapsed .logo-card-body {
    display: none;
}

.logo-card.collapsed .logo-card-header {
    border-bottom: none;
}

/* Form row within card */
.logo-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.logo-form-row:last-child {
    margin-bottom: 0;
}

/* Form field */
.logo-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-form-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-form-field select,
.logo-form-field input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-form-field select:focus,
.logo-form-field input[type="number"]:focus {
    outline: none;
    border-color: var(--nwca-blue);
    box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.1);
}

.logo-form-field select {
    min-width: 140px;
    cursor: pointer;
}

.logo-form-field input[type="number"] {
    width: 85px;
}

/* Modern digitizing checkbox */
.digitizing-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.digitizing-checkbox:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.digitizing-checkbox.checked {
    background: #22c55e;
    border-color: #22c55e;
}

.digitizing-checkbox.checked .digitizing-checkbox-label {
    color: white;
}

.digitizing-checkbox.checked .digitizing-checkbox-price {
    color: rgba(255, 255, 255, 0.9);
}

.digitizing-checkbox input[type="checkbox"] {
    display: none;
}

.digitizing-checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #22c55e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.digitizing-checkbox.checked .digitizing-checkbox-indicator {
    background: white;
    border-color: white;
}

.digitizing-checkbox-indicator i {
    font-size: 12px;
    color: #22c55e;
    opacity: 0;
    transition: opacity 0.2s;
}

.digitizing-checkbox.checked .digitizing-checkbox-indicator i {
    opacity: 1;
}

.digitizing-checkbox-label {
    font-size: 13px;
    font-weight: 500;
    color: #166534;
}

.digitizing-checkbox-price {
    font-size: 12px;
    color: #16a34a;
    margin-left: auto;
}

/* Vertical divider between primary and AL fields */
.logo-form-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
    flex-shrink: 0;
    align-self: center;
}

/* AL toggle inline in the form row */
.al-inline-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.al-inline-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.al-inline-label.active {
    color: #166534;
}

/* AL config fields — inline, hidden until toggle is on */
.al-inline-fields {
    display: none;
    align-items: center;
    gap: 12px;
}

.al-inline-fields.visible {
    display: flex;
}

/* AL inline digitizing checkbox */
.al-inline-digitizing {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    padding: 8px 10px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 6px;
    white-space: nowrap;
}

.al-inline-digitizing input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #059669;
    cursor: pointer;
}

.al-inline-digitizing .digitizing-price {
    font-weight: 600;
    color: #059669;
    margin-left: 2px;
}

/* Cap embellishment type row — compact */
.cap-embellishment-row {
    margin-bottom: 8px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* Modern toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #22c55e;
}

.toggle-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.toggle-switch.active .toggle-switch-handle {
    transform: translateX(20px);
}

/* Artwork Services Card */
.artwork-services-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.artwork-services-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fcd34d;
}

.artwork-services-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.artwork-services-title {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.artwork-services-body {
    padding: 16px;
}

.artwork-field {
    margin-bottom: 16px;
}

.artwork-field:last-child {
    margin-bottom: 0;
}

.artwork-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.artwork-field-input-wrapper {
    position: relative;
}

.artwork-field-input-wrapper .currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.artwork-field input[type="number"] {
    width: 100%;
    padding: 10px 12px 10px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.artwork-field input[type="number"]:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Graphic design hours field */
.graphic-design-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.graphic-design-field input {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.graphic-design-field input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.graphic-design-field .hours-label {
    font-size: 13px;
    color: #6b7280;
}

.graphic-design-field .hours-total {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

/* Artwork checkbox toggle row */
.artwork-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.artwork-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.artwork-toggle input[type="checkbox"] {
    display: none;
}

.artwork-toggle-indicator {
    width: 40px;
    height: 22px;
    background: #e5e7eb;
    border-radius: 11px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.artwork-toggle-indicator::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.artwork-toggle input:checked + .artwork-toggle-indicator {
    background: #22c55e;
}

.artwork-toggle input:checked + .artwork-toggle-indicator::after {
    transform: translateX(18px);
}

.artwork-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.artwork-checkbox-row .artwork-field-input-wrapper {
    transition: opacity 0.2s;
}

.artwork-checkbox-row .artwork-field-input-wrapper input:disabled {
    background: #f9fafb;
    cursor: not-allowed;
}

/* Legacy Logo Section - kept for backwards compatibility */
/* Logo Preset Bar */
/* Logo Configuration Section */
.logo-section {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.primary-logo-config {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.logo-section-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    min-width: 120px;
}

.logo-section-label i {
    margin-right: 6px;
    color: var(--nwca-green);
}

.logo-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.logo-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.stitch-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.stitch-input-group input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.digitizing-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.digitizing-label input {
    cursor: pointer;
}

/* Additional Logos Section */
.additional-logos-section {
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.al-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.add-logo-btn {
    padding: 6px 14px;
    background: var(--nwca-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.add-logo-btn:hover {
    background: #3da344;
}

.additional-logos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-logos {
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 8px;
}

.additional-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.additional-logo-row select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.additional-logo-row .stitch-input-group input {
    width: 70px;
    padding: 5px 8px;
    font-size: 12px;
}

.additional-logo-row .stitch-input-group span {
    font-size: 11px;
    color: #666;
}

.al-digitizing {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.al-price {
    font-weight: 600;
    color: var(--nwca-green);
    min-width: 75px;
    font-size: 13px;
}

.remove-al-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: color 0.2s;
}

.remove-al-btn:hover {
    color: #a71d2a;
}

/* Legacy preset-btn kept for any remaining uses */
.preset-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-btn:hover {
    border-color: var(--nwca-blue);
    background: #f0f7ff;
}

.preset-btn.active {
    border-color: var(--nwca-blue);
    background: var(--nwca-blue);
    color: white;
}

.preset-btn i {
    font-size: 12px;
}

.logo-config-display {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.logo-config-display strong {
    color: #333;
}

.digitizing-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.digitizing-toggle input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Product Grid, Search, Product Table, Child Rows — moved to quote-builder-common.css (2026-03-23) */

/* Variant-only parent: hidden when all standard sizes are empty (only child rows have data) */
.product-table tr.variant-only-parent {
    display: none;
}

/* Standalone child: promoted child row when parent is hidden (looks like a normal product row) */
.product-table tr.standalone-child {
    border-left: none;
    background: #fff;
}

.product-table tr.standalone-child td:first-child {
    padding-left: 8px;
}

.product-table tr.standalone-child td:first-child::before {
    content: none;
}

.product-table tr.standalone-child .desc-display {
    color: #333;
    font-size: 14px;
}

.product-table tr.standalone-child .style-display {
    color: #333;
    font-size: 14px;
}

/* Size badges, Cell inputs, Cell select, Cell qty/price base — moved to quote-builder-common.css (2026-03-23) */

/* Color picker styles in /shared_components/css/color-picker-shared.css */

/* EMBROIDERY-SPECIFIC: Price override UI (clickable price cells) */
.cell-price {
    cursor: pointer;
    position: relative;
}

.cell-price:hover {
    background: #c8e6c9;
}

.cell-price.price-overridden {
    background: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.cell-price.price-overridden:hover {
    background: #fde68a;
}

.cell-price .price-override-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cell-price .btn-clear-override {
    background: none;
    border: none;
    color: #b45309;
    cursor: pointer;
    padding: 0 2px;
    font-size: 11px;
    line-height: 1;
    opacity: 0.6;
}

.cell-price .btn-clear-override:hover {
    opacity: 1;
    color: #dc2626;
}

.cell-price .price-override-input {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 4px;
    border: 2px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    background: #fffbeb;
    color: #92400e;
    outline: none;
}

.cell-price .price-override-input::-webkit-outer-spin-button,
.cell-price .price-override-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cell-price .price-override-input {
    -moz-appearance: textfield;
}

.cell-price .price-override-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

/* cell-total, cell-actions, btn-delete-row, add-row-btn — moved to quote-builder-common.css (2026-03-23) */

/* Pricing Sidebar, LTM Toggle, Customer Panel — moved to quote-builder-common.css (2026-03-23) */

/* Action Buttons — moved to quote-builder-common.css (2026-03-23) */

/* Coming Soon Accordion — moved to quote-builder-common.css (2026-03-23) */

/* Modal — moved to quote-builder-common.css (2026-03-23) */

/* Toast Notifications — moved to quote-builder-common.css (2026-03-23) */

/* OSFA, Cap Badge, Desc Cell, Pricing Breakdown — moved to quote-builder-common.css (2026-03-23) */

/* ============================================
   EMBROIDERY-SPECIFIC: Per-Product Additional Logo
   ============================================ */
/* Per-Product Additional Logo (AL) Button and Config */
.al-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 12px;
    font-size: 11px;
    color: #16a34a;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s ease;
}

.al-btn:hover {
    background: #22c55e;
    color: white;
}

.al-btn.has-al {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.al-btn.has-al:hover {
    background: #3b82f6;
    color: white;
}

.al-btn .al-badge {
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
}

.al-btn.has-al .al-label {
    display: none;
}

.al-btn:not(.has-al) .al-badge {
    display: none;
}

/* AL Configuration Row */
.al-config-row {
    background: #fffbeb !important;
    border-left: 3px solid #f59e0b;
}

.al-config-row td {
    padding: 8px !important;
    vertical-align: middle;
}

.al-indicator {
    color: #d97706;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    font-weight: 600;
}

.al-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.al-position-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    min-width: 120px;
}

.al-stitch-input {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    text-align: right;
}

.al-stitch-label {
    font-size: 11px;
    color: #6b7280;
}

.al-price-cell {
    text-align: right;
}

.al-unit-price {
    font-weight: 600;
    color: #059669;
}

.al-total {
    font-size: 11px;
    color: #6b7280;
    margin-left: 8px;
}

.remove-al-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.remove-al-btn:hover {
    background: #fee2e2;
}

.add-al-row {
    background: #fefce8 !important;
}

.add-al-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    border-radius: 4px;
    font-size: 11px;
    color: #16a34a;
    cursor: pointer;
}

.add-al-btn:hover {
    background: #dcfce7;
    border-style: solid;
}

.add-al-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Size label override for non-standard columns */
.size-label-override {
    display: block;
    font-size: 9px;
    color: #666;
    text-align: center;
    margin-bottom: 2px;
    font-weight: 600;
}

/* Visual indicator for non-standard products */
tr[data-size-category="osfa-only"] {
    background-color: #f8f9fa;
}

tr[data-size-category="combo-only"],
tr[data-size-category="youth-only"],
tr[data-size-category="toddler-only"],
tr[data-size-category="tall-only"] {
    background-color: #fff9e6;
}

/* Size-disabled cells */
td.size-disabled input {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Animations (slideIn) — moved to quote-builder-common.css (2026-03-23) */

/* ============================================
   EMBROIDERY-SPECIFIC: Keyboard Hint (Extended Hover Reveal)
   ============================================ */
/* Keyboard Hints - Hover Reveal (UX Improvement) */
.keyboard-hint-container {
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 8px;
    background: #f5f5f5;
    border-top: 1px solid var(--border-color);
}

.keyboard-hint-trigger {
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.keyboard-hint-trigger:hover {
    background: #e2e8f0;
    color: #475569;
}

.keyboard-hint-trigger i {
    margin-right: 4px;
}

.keyboard-hint-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 100;
    margin-bottom: 8px;
}

.keyboard-hint-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.keyboard-hint-container:hover .keyboard-hint-content {
    display: block;
}

.keyboard-hint-content kbd {
    background: #334155;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-right: 2px;
}

/* Keyboard Hint (base) — moved to quote-builder-common.css (2026-03-23) */

/* Size Picker Popup — moved to quote-builder-common.css (2026-03-23) */

/* Loading State — moved to quote-builder-common.css (2026-03-23) */

/* ============================================
   RESPONSIVE - Mobile Breakpoints
   ============================================ */
@media (max-width: 1024px) {
    .power-main {
        flex-direction: column;
        height: auto;
    }

    .power-sidebar {
        width: 100%;
        position: static;
        border-left: none;
        border-top: 1px solid var(--border-color, #dee2e6);
        max-height: none;
    }

    .power-content {
        padding: 16px;
    }

    /* 2026 Card Layout - Stack on tablet */
    .logo-config-container {
        flex-direction: column;
        padding: 16px;
    }

    .logo-cards-column {
        flex-direction: column;
    }

    .artwork-services-column {
        width: 100%;
    }

    .logo-form-row {
        flex-wrap: wrap;
    }

    .logo-section {
        flex-direction: column;
    }

    .logo-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .al-toggle-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #garment-al-config,
    #cap-al-config {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .power-header {
        padding: 8px 12px;
    }

    .power-header .logo {
        max-width: 100px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn-header {
        padding: 6px 10px;
        font-size: 12px;
    }

    .product-table th.desc-col,
    .product-table td:nth-child(2) {
        display: none;
    }

    .product-table th,
    .product-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .size-input {
        width: 40px;
        padding: 4px 2px;
    }

    .search-row {
        flex-direction: column;
        gap: 8px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .pricing-section {
        padding: 12px;
    }

    .logo-section {
        padding: 12px;
    }

    .logo-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .stitch-input-group {
        width: 100%;
    }

    /* Extended size popup responsive */
    .size-popup {
        min-width: 95%;
        max-width: 95%;
        margin: 10px;
    }

    .size-popup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .power-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .power-header .logo {
        order: 1;
        margin-bottom: 8px;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .product-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-table th,
    .product-table td {
        padding: 4px 2px;
        font-size: 11px;
    }

    .size-input {
        width: 35px;
        padding: 3px 1px;
        font-size: 11px;
    }

    .customer-field input,
    .customer-field textarea {
        padding: 8px;
        font-size: 14px;
    }

    .sidebar-actions {
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-actions button {
        width: 100%;
    }

    /* Embroidery-specific: stitch inputs */
    .stitch-input-group input {
        width: 100%;
    }

    .digitizing-label {
        font-size: 12px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .power-header,
    .sidebar-actions,
    .search-row,
    .keyboard-hint {
        display: none !important;
    }

    .power-main {
        height: auto;
        display: block;
    }

    .power-sidebar {
        width: 100%;
        border: none;
    }
}

/* ============================================
   NOTES SECTION (Special Notes / ShopWorks Import)
   ============================================ */
.notes-section {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.notes-header {
    padding: 8px 10px;
    background: #fefce8;
    cursor: pointer;
}

.notes-header:hover {
    background: #fef9c3;
}

.notes-badge {
    background: #f59e0b;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

/* ============================================================
   DESIGN NUMBER LOOKUP / SEARCH
   ============================================================ */

.design-number-row {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.design-number-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.design-number-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    min-width: 56px;
}

.design-number-input {
    width: 110px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.design-number-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
    outline: none;
}

.design-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    background: #fff;
    color: #374151;
}

.design-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.design-btn-lookup {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.design-btn-lookup:hover {
    background: #dbeafe;
}

.design-btn-search {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

.design-btn-search:hover {
    background: #dcfce7;
}

.design-btn-clear {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    padding: 5px 8px;
}

.design-btn-clear:hover {
    background: #fee2e2;
}

/* Design info badge */
.design-info-badge {
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.design-info-badge i {
    font-size: 13px;
    flex-shrink: 0;
}

.design-info-found {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.design-info-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.design-info-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.design-info-loading {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ============================================================
   DESIGN GALLERY CARD ENHANCEMENTS
   ============================================================ */

.design-gallery-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.design-placement-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #e2e8f0;
}

.design-thread-info {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.design-order-count {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ============================================================
   DESIGN SEARCH RESULT ENHANCEMENTS
   ============================================================ */

.design-result-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

.design-result-extra i {
    font-size: 10px;
    margin-right: 2px;
    opacity: 0.7;
}

.design-order-info {
    color: #6366f1;
    font-weight: 500;
}

.design-date-info {
    color: #64748b;
}

.design-art-notes {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.design-art-notes i {
    font-size: 10px;
    margin-right: 3px;
    opacity: 0.7;
}

/* DST filename display */
.design-dst-files {
    font-size: 10px;
    color: #6366f1;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.design-dst-files i {
    font-size: 9px;
    margin-right: 2px;
    opacity: 0.7;
}

/* ============================================================
   IMPORT REVIEW DESIGN THUMBNAIL
   ============================================================ */

.spr-design-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.spr-thread-info {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* ============================================================
   DESIGN SEARCH MODAL
   ============================================================ */

.design-search-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.design-search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.design-search-field:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    outline: none;
}

.design-search-hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.design-search-hint i {
    color: #3b82f6;
}

.design-search-results {
    max-height: 420px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    padding: 4px;
}

.design-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.design-search-result-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.design-result-number {
    font-weight: 700;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 14px;
    color: #1d4ed8;
}

.design-result-company {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.design-result-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    flex-shrink: 0;
}

.design-result-stitch {
    color: #6b7280;
    white-space: nowrap;
}

.design-tier-badge {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.design-tier-badge.tier-standard {
    background: #dcfce7;
    color: #166534;
}

.design-tier-badge.tier-mid {
    background: #fef3c7;
    color: #92400e;
}

.design-tier-badge.tier-large {
    background: #fee2e2;
    color: #991b1b;
}

.design-tier-badge.tier-full-back {
    background: #fce7f3;
    color: #9d174d;
}

.design-result-variants {
    color: #9ca3af;
    font-size: 10px;
}

/* Design name (from ShopWorks or thumbnail table) */
.design-result-name {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}

/* Placement info from ArtRequests */
.design-result-placement {
    color: #8b5cf6;
    font-size: 10px;
    white-space: nowrap;
}

.design-result-placement::before {
    content: '📍 ';
    font-size: 9px;
}

/* Source badges showing which tables matched */
.design-source-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.design-source-badge.source-master {
    background: #dbeafe;
    color: #1e40af;
}

.design-source-badge.source-art {
    background: #ede9fe;
    color: #6d28d9;
}

.design-source-badge.source-image {
    background: #d1fae5;
    color: #065f46;
}

.design-source-badge.source-customer {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Fuzzy search indicator */
.design-search-fuzzy-note {
    font-size: 11px;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.design-search-fuzzy-note i {
    font-size: 12px;
}

/* Relevance score badge */
.design-relevance-score {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

.design-search-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.design-search-empty i {
    font-size: 32px;
}

.design-search-loading {
    text-align: center;
    padding: 24px;
    color: #3b82f6;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.design-search-error {
    padding: 12px;
    color: #dc2626;
    font-size: 13px;
}

.design-search-more {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* ---- Design Search Filter Chips ---- */
.design-search-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.design-search-chip {
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.design-search-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.design-search-chip.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ---- Company Filter Chips (inside search modal) ---- */
.design-search-company-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    max-height: 64px;
    overflow-y: auto;
}

.design-search-company-chip {
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design-search-company-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.design-search-company-chip.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.design-search-company-chip .chip-count {
    font-weight: 400;
    opacity: 0.8;
    margin-left: 2px;
}

/* ---- Results Count Header ---- */
.design-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

.design-search-results-header .results-count {
    font-weight: 700;
    color: #374151;
}

/* ---- Show More Button (inside search modal) ---- */
.design-search-show-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
}

.design-search-show-more button {
    padding: 8px 24px;
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.design-search-show-more button:hover {
    background: #e2e8f0;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* ---- Gallery/Search Modal Width ---- */
.design-search-content {
    max-width: 820px;
}

.design-gallery-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid #93c5fd;
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.gallery-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e40af;
}

.gallery-header-info i {
    color: #2563eb;
}

.gallery-design-count {
    background: #2563eb;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* gallery-mode now inherits grid from .design-search-results */
.gallery-mode .design-search-results {
    max-height: 480px;
    padding: 12px 4px;
}

.design-gallery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    background: #fff;
}

.design-gallery-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #93c5fd;
}

.design-gallery-thumb {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.design-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.design-gallery-thumb i {
    font-size: 32px;
    color: #cbd5e1;
}

.design-gallery-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.design-gallery-number {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

.design-gallery-name {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design-gallery-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.design-gallery-no-match {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.design-gallery-no-match i {
    margin-right: 6px;
    color: #cbd5e1;
}

/* Responsive: stack design number row on small screens */
@media (max-width: 640px) {
    .design-number-input-group {
        flex-wrap: wrap;
    }
    .design-number-input {
        width: 100%;
        flex: 1;
    }
    .design-search-results {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ============================================================
   CUSTOMER INFO SECTION (Sidebar Top)
   ============================================================ */

.customer-info-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.section-header-compact {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header-compact i {
    font-size: 14px;
    color: #6366f1;
}

.customer-info-body {
    padding: 12px 14px;
}

.customer-info-body label {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}

.customer-info-body input,
.customer-info-body select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-info-body input:focus,
.customer-info-body select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    outline: none;
}

.customer-lookup-divider {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin: 8px 0;
    position: relative;
}

.customer-lookup-divider::before,
.customer-lookup-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background: #e2e8f0;
}

.customer-lookup-divider::before {
    left: 0;
}

.customer-lookup-divider::after {
    right: 0;
}

/* ============================================================
   DESIGN CONFIGURATION SECTION (Sidebar, below Customer)
   ============================================================ */

.design-config-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.design-config-body {
    padding: 10px 14px;
}

.design-lookup-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.design-lookup-row:last-child {
    margin-bottom: 0;
}

.design-row-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.design-row-label i {
    font-size: 12px;
    color: #6366f1;
    width: 16px;
    text-align: center;
}

/* Make design buttons smaller in sidebar context */
.design-config-section .design-btn {
    padding: 4px 8px;
    font-size: 11px;
}

.design-config-section .design-number-input {
    width: 90px;
    padding: 4px 8px;
    font-size: 12px;
}

.design-config-section .design-info-badge {
    margin-top: 4px;
    padding: 4px 8px;
    font-size: 11px;
}

/* ============================================
   DESIGN THUMBNAILS
   ============================================ */

/* Thumbnail preview below design info badge (logo cards) */
.design-thumbnail-preview {
    margin-top: 8px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.design-thumbnail-preview:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: #93c5fd;
}

.design-thumbnail-preview .design-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.design-thumbnail-preview .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #d1d5db;
    font-size: 24px;
}

/* Thumbnail in design search results */
.design-search-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
}

.design-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* SPR modal design thumbnail */
.spr-design-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    margin-right: 8px;
}

/* Full-size thumbnail modal overlay */
.thumb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.thumb-modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    background: #fff;
}

/* Quote view design thumbnail */
.quote-view-design-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================
   DECG STITCH COUNT MODAL (extracted from inline <style> 2026-03-23)
   ============================================ */
.decg-stitch-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.decg-stitch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.decg-stitch-item .item-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.decg-stitch-item .badge-decg { background: #fef3c7; color: #92400e; }
.decg-stitch-item .badge-decc { background: #dbeafe; color: #1e40af; }
.decg-stitch-item .item-info { flex: 1; }
.decg-stitch-item .item-desc { font-size: 13px; color: #334155; margin-bottom: 2px; }
.decg-stitch-item .item-qty { font-size: 11px; color: #64748b; }
.decg-stitch-item .stitch-input-group { display: flex; align-items: center; gap: 4px; }
.decg-stitch-item input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}
.decg-stitch-item .stitch-unit { font-size: 12px; color: #64748b; }
.decg-stitch-item .item-price { min-width: 70px; text-align: right; font-weight: 600; color: #059669; }

/* ============================================
   SERVICE PRICING REVIEW MODAL (extracted from inline <style> 2026-03-23)
   ============================================ */
.spr-table-wrapper { overflow-x: auto; margin-top: 8px; }
.spr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spr-table th {
    background: #f1f5f9;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spr-table th:nth-child(n+4) { text-align: center; }
.spr-table td { padding: 10px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.spr-table tbody tr:hover { background: #f8fafc; }
.spr-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.spr-type-al { background: #dbeafe; color: #1e40af; }
.spr-type-fb { background: #fce7f3; color: #9d174d; }
.spr-type-monogram { background: #f3e8ff; color: #6b21a8; }
.spr-type-decg { background: #fef3c7; color: #92400e; }
.spr-type-decc { background: #cffafe; color: #155e75; }
.spr-type-cb { background: #dbeafe; color: #1e40af; }
.spr-type-cs { background: #dbeafe; color: #1e40af; }
.spr-delta-badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.spr-delta-badge.ok { background: #dcfce7; color: #166534; }
.spr-delta-badge.review { background: #fef3c7; color: #92400e; }
.spr-delta-badge.mismatch { background: #fee2e2; color: #991b1b; }
.spr-delta-warning {
    padding: 8px 12px; margin-bottom: 10px; border-radius: 6px;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 12px; color: #92400e;
    display: flex; align-items: center; gap: 8px;
}
.spr-delta-warning i { color: #f59e0b; }
.spr-decg-detail { font-size: 11px; color: #64748b; padding: 4px 10px 4px 28px; }
.spr-decg-detail td { padding: 3px 8px; border-bottom: none; font-size: 11px; }
.spr-decg-detail .detail-label { color: #94a3b8; }
.spr-stitch-input {
    width: 75px; padding: 5px 6px; border: 1px solid #cbd5e1;
    border-radius: 4px; font-size: 13px; text-align: right;
}
.spr-stitch-input:focus { border-color: #0ea5e9; outline: none; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); }
.spr-radio-cell { text-align: center; white-space: nowrap; }
.spr-radio-cell label { display: flex; align-items: center; gap: 4px; cursor: pointer; justify-content: center; }
.spr-radio-cell input[type="radio"] { margin: 0; cursor: pointer; }
.spr-price-label { font-weight: 500; color: #334155; }
.spr-price-label.disabled { color: #94a3b8; text-decoration: line-through; }
.spr-custom-input {
    width: 70px; padding: 4px 6px; border: 1px solid #cbd5e1;
    border-radius: 4px; font-size: 13px; text-align: right;
}
.spr-custom-input:disabled { background: #f1f5f9; color: #94a3b8; }
.spr-custom-input.spr-muted { background: #f1f5f9; color: #94a3b8; opacity: 0.6; }
.spr-custom-input:focus { border-color: #0ea5e9; outline: none; box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2); }
.spr-unavailable { font-size: 11px; color: #94a3b8; font-style: italic; }
.spr-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: #64748b;
    border-bottom: 2px solid #e2e8f0; padding-bottom: 4px; margin: 14px 0 8px;
}
#spr-products-section .spr-section-label { margin-top: 0; }
.spr-product-card { border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.spr-product-header { padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.spr-product-title { font-weight: 600; font-size: 13px; color: #1e293b; }
.spr-product-sizes { padding: 0; }
.spr-product-table th:nth-child(n+2) { text-align: center; }
.spr-size-label-cell { font-weight: 500; font-size: 12px; color: #475569; }

/* ============================================
   NON-SANMAR PRODUCT MODAL (extracted from inline <style> 2026-03-23)
   ============================================ */
.ns-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ns-full-width { grid-column: 1 / -1; }
.ns-form-group label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.ns-form-group label small { font-weight: 400; color: #94a3b8; }
.ns-required { color: #ef4444; }
.ns-input {
    width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.ns-input:focus { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); }
.ns-input-readonly { background: #f1f5f9; color: #64748b; }
.btn-add-nonsanmar {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    background: #7c3aed; color: white; border: none; border-radius: 5px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-add-nonsanmar:hover { background: #6d28d9; }
.btn-add-nonsanmar i { font-size: 12px; }
.non-sanmar-badge {
    display: inline-block; padding: 1px 6px; margin-left: 4px;
    background: #ede9fe; color: #7c3aed; border-radius: 3px;
    font-size: 10px; font-weight: 600; text-transform: uppercase; vertical-align: middle;
}
.import-summary-banner {
    margin: 8px 0; padding: 12px 16px; border-radius: 8px;
    border: 1px solid #d1d5db; font-size: 13px; line-height: 1.5;
    position: relative; animation: bannerSlideIn 0.3s ease-out;
}
@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.import-summary-banner.banner-success { background: #f0fdf4; border-color: #86efac; }
.import-summary-banner.banner-warning { background: #fffbeb; border-color: #fcd34d; }
.import-summary-banner .banner-title { font-weight: 700; margin-bottom: 4px; color: #1e293b; }
.import-summary-banner .banner-detail { color: #475569; font-size: 12px; }
.import-summary-banner .banner-ns-item { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; }
.import-summary-banner .banner-ns-item:hover { text-decoration: underline; }
.import-summary-banner .banner-ns-item .ns-price-ok { color: #16a34a; }
.import-summary-banner .banner-ns-item .ns-price-warn { color: #dc2626; }
.import-summary-banner .btn-dismiss-banner {
    position: absolute; top: 8px; right: 12px; background: none;
    border: none; color: #94a3b8; cursor: pointer; font-size: 12px;
    padding: 4px 8px; border-radius: 4px;
}
.import-summary-banner .btn-dismiss-banner:hover { background: rgba(0,0,0,0.05); color: #475569; }
.ns-more-options-toggle {
    display: flex; align-items: center; gap: 6px; background: none;
    border: none; color: #7c3aed; font-size: 12px; font-weight: 600;
    cursor: pointer; padding: 8px 0 4px; margin-top: 4px;
}
.ns-more-options-toggle:hover { color: #5b21b6; }
.ns-more-options-toggle i { transition: transform 0.2s; }
.ns-more-options-toggle.expanded i { transform: rotate(90deg); }
.ns-more-options-section { display: none; padding-top: 8px; }
.ns-more-options-section.visible { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ns-price-display { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.ns-price-display .fa-pencil-alt { font-size: 10px; color: #94a3b8; opacity: 0; transition: opacity 0.15s; }
.ns-price-display:hover .fa-pencil-alt { opacity: 1; color: #7c3aed; }
.ns-price-zero { background: #fef2f2 !important; }
.ns-price-zero .ns-price-display { color: #dc2626; font-weight: 600; }
.btn-add-nonsanmar-block { display: block; margin-top: 6px; }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0); }
}
.btn-add-nonsanmar.pulse { animation: btnPulse 1.5s ease-in-out 3; }
