/* ============================================
   PROJECT METADATA FORM - MAIN STYLESHEET
   ============================================ */

/* Import Base Styles (Variables, Reset, Typography, Animations) */
@import url('base.css');

/* Import Layout Styles (Page Structure, Header, Container) */
@import url('layout.css');

/* Import Component Styles (All UI Components) */
@import url('components.css');

/* ============================================
   PAGE OVERRIDES & UTILITIES
   ============================================ */

/* Generic Wrappers */
.input-wrapper {
   position: relative;
}

/* ============================================
   DECORATION TYPES
   ============================================ */
#decorationTypesContainer {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1rem;
   margin-top: 0.5rem;
}

.decoration-checkbox-label {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

/* ============================================
   TOTAL QUANTITY DISPLAY
   ============================================ */
#totalQuantityDisplay {
   margin-top: 1rem;
   display: none;
}

#totalQuantityValue {
   padding: 0.875rem 1rem;
   background: var(--bg-page);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--text-strong);
}

/* ============================================
   ADDITIONAL INFO SECTION
   ============================================ */
#shipToAddressContainer {
   display: none;
   margin-top: 0.5rem;
}

.checkbox-label-regular {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

.checkbox-group-wrapper {
   margin-bottom: 0.5rem;
}

.client-checkbox-row {
   min-height: 48px;
   display: flex;
   align-items: center;
}

/* ============================================
   CLIENT SECTION - COMPACT LAYOUT
   ============================================ */

.form-section--client {
   /* Slightly tighten vertical rhythm for the top section */
   margin-bottom: 1.75rem;
}

.form-section--client .form-group {
   /* Reduce spacing between fields to make section feel denser */
   margin-bottom: 0.85rem;
}

.form-section--client .field-hint {
   font-size: 0.78rem;
}

.client-primary-row {
   display: grid;
   grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
   gap: 0.85rem;
   align-items: flex-start;
   margin-top: 0.4rem;
}

@media (max-width: 840px) {
   .client-primary-row {
      grid-template-columns: 1fr;
   }
}

.sales-intake-row {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 1rem;
   align-items: flex-start;
   margin-top: 0.75rem;
}

@media (max-width: 840px) {
   .sales-intake-row {
      grid-template-columns: 1fr;
   }
}

/* Tighter spacing for Important Dates so it matches other sections */
.form-section:nth-of-type(2) .form-row {
   margin-bottom: 1rem;
}

.client-mode-actions {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   margin: -0.15rem 0 0.95rem;
   flex-wrap: wrap;
}

.client-mode-actions__button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 40px;
   padding: 0.6rem 1rem;
   border: 1px solid rgba(14, 116, 144, 0.2);
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.96);
   color: var(--text-strong);
   font-size: 0.78rem;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   cursor: pointer;
   transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.client-mode-actions__button:hover {
   transform: translateY(-1px);
   border-color: rgba(14, 116, 144, 0.32);
}

.client-mode-actions__button.is-active {
   background: rgba(14, 116, 144, 0.1);
   border-color: rgba(14, 116, 144, 0.28);
   color: #155e75;
}

.client-mode-actions__hint {
   font-size: 0.8rem;
   line-height: 1.4;
   color: var(--text-muted);
}

.client-summary-card {
   margin: 1rem 0 1.25rem;
   padding: 1rem 1rem 0.95rem;
   background:
      linear-gradient(135deg, rgba(8, 47, 73, 0.06), rgba(14, 116, 144, 0.02)),
      var(--bg-card);
   border: 1px solid rgba(14, 116, 144, 0.16);
   border-radius: calc(var(--radius-md) + 2px);
   box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.55);
}

.client-summary-card.hidden,
.client-details-form.hidden {
   display: none;
}

.client-summary-card__header {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 1rem;
   margin-bottom: 0.9rem;
}

.client-summary-card__eyebrow {
   margin-bottom: 0.2rem;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   color: #0f766e;
}

.client-summary-card__title {
   font-size: 1.08rem;
   font-weight: 700;
   line-height: 1.25;
   color: var(--text-strong);
}

.client-summary-card__action {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 38px;
   padding: 0.55rem 0.95rem;
   border: 1px solid rgba(15, 23, 42, 0.12);
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.82);
   color: var(--text-strong);
   font-size: 0.77rem;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   cursor: pointer;
   transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.client-summary-card__action:hover {
   transform: translateY(-1px);
   border-color: rgba(14, 116, 144, 0.28);
   background: rgba(255, 255, 255, 0.96);
}

.client-summary-card__grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 0.75rem;
}

.client-summary-card__section {
   padding: 0.8rem 0.85rem;
   background: rgba(255, 255, 255, 0.82);
   border: 1px solid rgba(148, 163, 184, 0.2);
   border-radius: var(--radius-sm);
   display: flex;
   flex-direction: column;
   gap: 0.45rem;
   min-width: 0;
}

.client-summary-card__section-title {
   margin-bottom: 0.1rem;
   font-size: 0.69rem;
   font-weight: 700;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--text-muted);
}

.client-summary-card__item {
   display: grid;
   grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
   gap: 0.55rem;
   align-items: start;
}

.client-summary-card__item-label {
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: var(--text-muted);
}

.client-summary-card__item-value {
   min-width: 0;
   font-size: 0.8rem;
   line-height: 1.4;
   color: var(--text-strong);
   word-break: break-word;
}

.client-details-form {
   display: grid;
   gap: 0.85rem;
   margin: 1rem 0 1.25rem;
   padding: 1rem;
   background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
   border: 1px solid rgba(148, 163, 184, 0.18);
   border-radius: calc(var(--radius-md) + 2px);
}

.client-details-form .form-group {
   margin-bottom: 0;
}

.client-details-form input,
.client-details-form select,
.client-details-form textarea {
   background: rgba(255, 255, 255, 0.96);
}

.client-form-row {
   gap: 0.85rem;
}

.client-form-row--2,
.client-form-row--3 {
   display: grid;
   gap: 0.85rem;
}

.client-form-row--2 {
   grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-form-row--3 {
   grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-details-form textarea {
   min-height: 88px;
   resize: vertical;
}

@media (max-width: 920px) {
   .client-form-row--3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
}

@media (max-width: 720px) {
   .client-mode-actions {
      align-items: stretch;
   }

   .client-mode-actions__button {
      width: 100%;
   }

   .client-summary-card {
      padding: 0.9rem;
   }

   .client-summary-card__header {
      flex-direction: column;
      align-items: stretch;
   }

   .client-summary-card__action {
      width: 100%;
      justify-content: center;
   }

   .client-form-row--2,
   .client-form-row--3 {
      grid-template-columns: 1fr;
   }
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-title-custom {
   text-align: left;
   margin-bottom: 0.25rem;
}

.product-modal-header-wrapper {
   margin-bottom: 1rem;
}

.color-selection-label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   /* Override base label styles from components.css */
   text-transform: none;
   letter-spacing: normal;
   margin-bottom: 0;
}

.color-preview-box {
   display: inline-block;
   width: 24px;
   height: 24px;
   border: 1px solid var(--border-soft);
   border-radius: 3px;
   overflow: hidden;
   background: var(--bg-page);
   flex-shrink: 0;
}

.color-preview-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: none;
}

.color-preview-fallback {
   width: 100%;
   height: 100%;
   background: #f1f5f9;
}

.selected-color-text {
   font-weight: 500;
   color: var(--text-strong);
}

.inventory-section-title {
   font-size: 1rem;
   margin-bottom: 0.5rem;
   margin-top: 0.5rem;
}

.warehouse-title {
   margin-top: 0.75rem;
   margin-bottom: 0.5rem;
   font-size: 1rem;
}

.table-responsive {
   overflow-x: auto;
   max-width: 100%;
   /* Default overflow-x: auto for wrapper div */
}

/* JS Dynamic Classes */
.inventory-loading-text {
   padding: 2rem;
   text-align: center;
   color: var(--text-muted);
}

.inventory-error-text {
   padding: 2rem;
   text-align: center;
   color: #dc2626;
}

.row-special-pricing {
   background: #fef3c7;
   color: #92400e;
}

.text-price-highlight {
   font-weight: 600;
   color: #dc2626;
}

.color-fallback-box {
   width: 100%;
   min-height: 60px;
}

.modal-total-wrapper {
   margin-top: 0.5rem;
   padding: 0.5rem;
   background: var(--bg-page);
   border-radius: 4px;
   text-align: right;
   font-size: 0.875rem;
}

.modal-total-quantity-text {
   font-size: 1rem;
   color: var(--accent);
}

/* ============================================
   CUSTOM PRODUCT MODAL
   ============================================ */
.custom-product-modal {
   max-width: 720px;
   /* Slightly wider for the 2-col layout */
}

.custom-product-modal--pdf-import {
   max-width: 920px;
}

.custom-product-form {
   padding: 0.5rem 0;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.custom-product-editor.hidden,
.pdf-import-editor.hidden {
   display: none;
}

/* Layout Grid */
.custom-product-layout {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
   align-items: start;
}

@media (max-width: 600px) {
   .custom-product-layout {
      grid-template-columns: 1fr;
      gap: 1rem;
   }
}

.custom-col-left,
.custom-col-right {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

/* Color Presets - Compact & Sexy */
.color-preset-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
   gap: 8px;
   margin-bottom: 1rem;
}

.color-preset-option {
   width: 32px;
   height: 32px;
   border-radius: 4px;
   cursor: pointer;
   border: 2px solid var(--border-soft);
   position: relative;
   transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.color-preset-option:hover {
   transform: scale(1.15);
   z-index: 2;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-preset-option.selected {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
   transform: scale(1.1);
}

/* Custom Tooltip for Colors */
.color-preset-option::after {
   content: attr(title);
   position: absolute;
   bottom: 110%;
   left: 50%;
   transform: translateX(-50%) translateY(5px);
   background: #1e293b;
   color: white;
   padding: 6px 10px;
   border-radius: 6px;
   font-size: 0.75rem;
   font-weight: 500;
   white-space: nowrap;
   opacity: 0;
   pointer-events: none;
   transition: all 0.2s;
   z-index: 10;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-preset-option:hover::after {
   opacity: 1;
   transform: translateX(-50%) translateY(0);
}

/* Custom Color Input Wrapper */
.custom-color-input-wrapper {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   background: var(--bg-surface);
   padding: 0.5rem 0.75rem;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border-soft);
   transition: border-color 0.2s;
}

.custom-color-input-wrapper:focus-within {
   border-color: var(--primary);
}

.custom-color-input-wrapper .radio-wrapper {
   margin: 0;
   font-size: 0.85rem;
}

.custom-color-input-wrapper input[type="text"] {
   border: none;
   background: transparent;
   padding: 0.25rem;
   height: auto;
   font-size: 0.9rem;
   box-shadow: none;
   /* Remove default input shadow/border */
}

.custom-color-input-wrapper input[type="text"]:focus {
   box-shadow: none;
   outline: none;
}

.custom-color-input-wrapper input[type="text"]:disabled {
   background: transparent;
   cursor: default;
   color: var(--text-muted);
}

/* Size Grid - Clean & Table-like */
.size-section label {
   margin-bottom: 0.75rem;
}

.size-grid-wrapper {
   background: var(--bg-surface);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-md);
   padding: 1.25rem;
}

.size-grid-container {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
   gap: 1rem 0.75rem;
}

.size-grid-item {
   display: flex;
   flex-direction: column;
   gap: 0.25rem;
   align-items: center;
}

.size-grid-item label {
   font-size: 0.75rem;
   font-weight: 600;
   text-align: center;
   color: var(--text-muted);
   margin: 0;
   text-transform: uppercase;
}

.size-grid-item input {
   text-align: center;
   padding: 0.5rem 0.25rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   font-weight: 500;
   font-size: 0.95rem;
   transition: all 0.2s;
}

.size-grid-item input:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.1);
   transform: translateY(-1px);
}

.size-grid-item input:not(:placeholder-shown) {
   border-color: var(--border-strong);
   background: #fff;
}

.size-grid-item.custom-added-size {
   grid-column: span 2;
}

.btn-text-action.small {
   font-size: 0.8rem;
   margin-top: 1rem;
   display: inline-flex;
   align-items: center;
   gap: 0.25rem;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
}

.btn-text-action.small:hover {
   background: var(--bg-surface-hover);
   text-decoration: none;
}

.pdf-import-editor {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.pdf-import-editor__grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 1rem;
}

.pdf-import-editor textarea {
   min-height: 84px;
}

.pdf-import-editor__sizes-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   margin-bottom: 0.75rem;
}

.pdf-import-editor__sizes-header label {
   margin-bottom: 0;
}

.pdf-import-size-rows {
   display: flex;
   flex-direction: column;
   gap: 0.65rem;
}

.pdf-import-size-row {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr) minmax(0, 1.2fr) auto;
   gap: 0.65rem;
   align-items: center;
   padding: 0.75rem;
   border: 1px solid rgba(148, 163, 184, 0.2);
   border-radius: var(--radius-sm);
   background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
}

.pdf-import-size-row__input {
   min-width: 0;
}

.pdf-import-size-row__remove {
   width: 36px;
   height: 36px;
   min-height: 36px;
   padding: 0;
   border: 1px solid rgba(239, 68, 68, 0.18);
   border-radius: 10px;
   background: rgba(254, 242, 242, 0.9);
   color: #b91c1c;
   font-size: 1.1rem;
   line-height: 1;
}

.pdf-import-size-row__remove:hover {
   background: #fee2e2;
   border-color: rgba(239, 68, 68, 0.28);
}

@media (max-width: 820px) {
   .pdf-import-editor__grid {
      grid-template-columns: 1fr;
   }

   .pdf-import-size-row {
      grid-template-columns: 1fr;
   }

   .pdf-import-editor__sizes-header {
      flex-direction: column;
      align-items: stretch;
   }
}

/* Secondary Button Style */
.btn-secondary {
   background: white;
   color: var(--primary);
   border: 1px solid var(--primary);
   padding: 0.5rem 1rem;
   border-radius: var(--radius-sm);
   font-weight: 600;
   font-size: 0.85rem;
   cursor: pointer;
   transition: all 0.2s;
}

.btn-secondary:hover {
   background: #f0f9ff;
   transform: translateY(-1px);
}

/* ============================================
   PRODUCT SEARCH & CUSTOM BUTTON
   ============================================ */

/* Product Search Row Layout */
.product-search-row {
   display: flex;
   gap: 0.5rem;
   align-items: stretch;
}

.product-search-container {
   flex: 1;
}

.product-search-actions {
   display: flex;
   gap: 0.5rem;
   align-items: stretch;
}

/* Ensure input fills height */
.product-search-container input {
   height: 100%;
}

/* Custom Product Button - Compact & Styled */
.btn-custom-product {
   background: var(--bg-card);
   color: var(--text-strong);
   border: 1px solid var(--border-soft);
   padding: 0 1rem;
   border-radius: var(--radius-sm);
   font-weight: 600;
   font-size: 0.85rem;
   cursor: pointer;
   transition: all 0.2s;
   white-space: nowrap;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   margin-top: 0 !important;
   /* Override default button margin */
   width: auto !important;
   /* Override default button width */
}

.btn-custom-product:hover {
   background: var(--bg-page);
   border-color: var(--accent);
   color: var(--accent);
   transform: translateY(-1px);
}

.work-order-import-status {
   margin-top: 0.75rem;
   padding: 0.75rem 0.875rem;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border-soft);
   background: var(--bg-page);
   color: var(--text-strong);
   font-size: 0.875rem;
}

.work-order-import-status[data-state="success"] {
   border-color: #86efac;
   background: #f0fdf4;
   color: #166534;
}

.work-order-import-status[data-state="error"] {
   border-color: #fca5a5;
   background: #fef2f2;
   color: #991b1b;
}

.work-order-import-status[data-state="loading"] {
   border-color: #bfdbfe;
   background: #eff6ff;
   color: #1d4ed8;
}

.work-order-file-input {
   display: none;
}

.work-order-dropzone {
   width: 100%;
   min-height: 132px;
   margin-top: 0.9rem;
   padding: 1rem 1.1rem;
   border: 1px dashed rgba(14, 116, 144, 0.32);
   border-radius: calc(var(--radius-sm) + 4px);
   background:
      radial-gradient(circle at top left, rgba(14, 116, 144, 0.1), transparent 44%),
      linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
   display: grid;
   grid-template-columns: auto minmax(0, 1fr) auto;
   align-items: center;
   gap: 1rem;
   cursor: pointer;
   transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.work-order-dropzone:hover,
.work-order-dropzone:focus-visible,
.work-order-dropzone.drag-over {
   border-color: rgba(14, 116, 144, 0.52);
   box-shadow: 0 18px 40px -30px rgba(8, 47, 73, 0.55);
   transform: translateY(-1px);
}

.work-order-dropzone:focus-visible {
   outline: none;
}

.work-order-dropzone.drag-over {
   background:
      radial-gradient(circle at top left, rgba(14, 116, 144, 0.14), transparent 44%),
      linear-gradient(180deg, rgba(240, 249, 255, 1), rgba(255, 255, 255, 1));
}

.work-order-dropzone.is-loading {
   pointer-events: none;
   opacity: 0.9;
}

.work-order-dropzone.has-file {
   border-style: solid;
   border-color: rgba(14, 116, 144, 0.4);
}

.work-order-dropzone__icon-wrap {
   width: 52px;
   height: 52px;
   border-radius: 16px;
   background: rgba(14, 116, 144, 0.12);
   color: #0f766e;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.work-order-dropzone__icon {
   font-size: 28px;
   line-height: 1;
}

.work-order-dropzone__content,
.work-order-dropzone__meta {
   min-width: 0;
}

.work-order-dropzone__title {
   font-size: 0.96rem;
   font-weight: 700;
   color: var(--text-strong);
   line-height: 1.3;
}

.work-order-dropzone__subtitle {
   margin-top: 0.2rem;
   font-size: 0.82rem;
   line-height: 1.45;
   color: var(--text-muted);
}

.work-order-dropzone__meta {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 0.45rem;
   text-align: right;
}

.work-order-dropzone__badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 26px;
   padding: 0.2rem 0.55rem;
   border-radius: 999px;
   background: rgba(15, 23, 42, 0.08);
   color: var(--text-strong);
   font-size: 0.68rem;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

.work-order-dropzone__file-name {
   max-width: 220px;
   font-size: 0.76rem;
   font-weight: 600;
   line-height: 1.35;
   color: var(--text-muted);
   word-break: break-word;
}

@media (max-width: 640px) {
   .product-search-row {
      flex-direction: column;
   }

   .product-search-actions {
      width: 100%;
   }

   .product-search-actions .btn-custom-product {
      flex: 1;
   }

   .work-order-dropzone {
      grid-template-columns: 1fr;
      justify-items: start;
      min-height: 148px;
      gap: 0.8rem;
   }

   .work-order-dropzone__meta {
      align-items: flex-start;
      text-align: left;
   }

   .work-order-dropzone__file-name {
      max-width: none;
   }
}

/* ============================================
   CUSTOM COLOR PICKER BUTTON
   ============================================ */
.custom-color-picker-btn {
   width: 32px;
   height: 32px;
   border-radius: 4px;
   cursor: pointer;
   border: 2px dashed #94a3b8;
   background: #f8fafc;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   flex-shrink: 0;
}

.custom-color-picker-btn:hover {
   transform: scale(1.15);
   border-color: var(--primary);
   background: var(--bg-card);
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-color-picker-btn.has-color {
   border-style: solid;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}

.custom-color-picker-btn .custom-color-plus {
   font-size: 1.25rem;
   font-weight: 300;
   color: var(--text-muted);
   line-height: 1;
}

.custom-color-picker-btn:hover .custom-color-plus {
   color: var(--primary);
}

.custom-color-picker-btn.selected {
   border-style: solid;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
   transform: scale(1.1);
}

/* ============================================
   COLOR PICKER MODAL
   ============================================ */
.color-picker-modal-overlay {
   z-index: 1100;
}

.color-picker-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 380px;
   width: 90%;
   max-height: 90vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.color-picker-modal-content {
   padding: 1.5rem;
}

.color-picker-form {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
   margin-top: 1rem;
}

.color-picker-container {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   background: var(--bg-surface);
   padding: 0.75rem;
   border-radius: var(--radius-md);
   border: 1px solid var(--border-soft);
}

.color-input-native {
   width: 48px;
   height: 48px;
   padding: 0;
   border: none;
   border-radius: var(--radius-sm);
   cursor: pointer;
   -webkit-appearance: none;
   appearance: none;
   background: transparent;
}

.color-input-native::-webkit-color-swatch-wrapper {
   padding: 0;
}

.color-input-native::-webkit-color-swatch {
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-sm);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-input-native::-moz-color-swatch {
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-sm);
}

.color-preview-large {
   width: 48px;
   height: 48px;
   border-radius: var(--radius-sm);
   border: 2px solid var(--border-soft);
   background: #6366f1;
   box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
   transition: background-color 0.2s;
}

.color-hex-input {
   flex: 1;
   font-family: 'SF Mono', Monaco, Consolas, monospace;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   padding: 0.5rem 0.75rem;
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
}

.color-hex-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.1);
}

/* ============================================
   PRODUCT PRINT LOCATIONS
   ============================================ */

/* Hide the main Print Locations form group */
.print-locations-form-group-hidden {
   display: none !important;
}

/* Print Locations Section in Product Widget */
.product-print-locations-section {
   margin-top: 0.75rem;
   padding-top: 0.75rem;
   border-top: 1px solid var(--border-soft);
}

.product-print-locations-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.75rem;
   margin-bottom: 0.75rem;
   flex-wrap: nowrap;
}

.product-print-locations-label {
   font-size: 11px;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   flex-shrink: 0;
   white-space: nowrap;
}

.btn-print-locations {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   padding: 6px 12px;
   font-size: 11px;
   font-weight: 600;
   background: var(--accent);
   color: var(--bg-card);
   border: 1px solid var(--accent);
   border-radius: var(--radius-sm);
   cursor: pointer;
   transition: all 0.2s;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   box-shadow: none;
   white-space: nowrap;
   flex-shrink: 0;
   width: auto;
   min-width: auto;
   max-width: none;
}

.btn-print-locations:hover {
   background: var(--accent-soft);
   border-color: var(--accent-soft);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.btn-print-locations svg {
   width: 14px;
   height: 14px;
}

.product-print-locations-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   min-height: 1.5rem;
   align-items: flex-start;
}

.product-location-tag {
   display: inline-flex;
   align-items: center;
   padding: 0.3rem 0.6rem;
   background: linear-gradient(135deg, #ecfdf5, #d1fae5);
   color: #047857;
   font-size: 0.7rem;
   font-weight: 600;
   border-radius: 4px;
   border: 1px solid #a7f3d0;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.no-locations-text {
   font-size: 11px;
   color: var(--text-muted);
   font-style: italic;
}

/* ============================================
   PRODUCT PRINT LOCATIONS MODAL
   ============================================ */
.product-pl-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1050;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.product-pl-modal-overlay.show {
   opacity: 1;
   visibility: visible;
}

.product-pl-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 520px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   transform: scale(0.95) translateY(20px);
   transition: transform 0.3s ease;
}

.product-pl-modal-overlay.show .product-pl-modal {
   transform: scale(1) translateY(0);
}

.product-pl-modal-close {
   position: absolute;
   top: 0.75rem;
   right: 0.75rem;
   background: none;
   border: none;
   font-size: 1.75rem;
   color: var(--text-muted);
   cursor: pointer;
   line-height: 1;
   padding: 0.5rem;
   border-radius: 4px;
   transition: all 0.2s;
   z-index: 10;
   width: auto;
   height: auto;
   min-width: 2rem;
   min-height: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.product-pl-modal-close:hover {
   color: var(--text-strong);
   background: var(--bg-surface);
}

.product-pl-modal-content {
   padding: 1.5rem;
   overflow-y: auto;
   max-height: calc(85vh - 80px);
}

.product-pl-modal-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--text-strong);
   margin: 0 0 1.25rem 0;
   padding-right: 3.5rem;
   /* Increased padding to prevent overlap with close button */
   line-height: 1.4;
}

.product-pl-checkboxes {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.product-pl-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-section h5 {
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
   margin: 0 0 0.75rem 0;
   padding-bottom: 0.5rem;
   border-bottom: 1px solid var(--border-soft);
}

.product-pl-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 0.5rem;
}

@media (max-width: 480px) {
   .product-pl-grid {
      grid-template-columns: 1fr;
   }
}

.product-pl-option {
   display: flex;
   align-items: center;
   gap: 0.6rem;
   padding: 0.6rem 0.75rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   cursor: pointer;
   transition: all 0.2s;
}

.product-pl-option:hover {
   border-color: var(--primary);
   background: #f0f9ff;
}

.product-pl-option input[type="checkbox"] {
   width: 18px;
   height: 18px;
   accent-color: var(--primary);
   cursor: pointer;
   flex-shrink: 0;
}

.product-pl-option span {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-strong);
}

.product-pl-option:has(input:checked) {
   border-color: var(--primary);
   background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.product-pl-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   margin-top: 1.5rem;
   padding-top: 1rem;
   border-top: 1px solid var(--border-soft);
}

/* Custom Locations Section */
.product-pl-custom-section {
   margin-top: 0.75rem;
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-custom-input-group {
   display: flex;
   flex-direction: row;
   gap: 0.75rem;
   margin-bottom: 0.75rem;
   align-items: center;
   width: 100%;
}

.product-pl-custom-input {
   flex: 1 1 auto;
   min-width: 200px;
   width: 100%;
   height: 42px;
   padding: 0 1rem;
   font-size: 0.9rem;
   border: 1px solid #e2e8f0;
   border-radius: var(--radius-sm);
   background: #ffffff;
   color: #1e293b;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   box-sizing: border-box;
}

.product-pl-custom-input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.product-pl-custom-input::placeholder {
   color: #94a3b8;
   opacity: 1;
}

.btn-add-custom-location {
   flex: 0 0 auto;
   min-width: 80px;
   width: auto;
   height: 42px;
   padding: 0 1.5rem;
   font-size: 0.9rem;
   font-weight: 600;
   color: #ffffff !important;
   background-color: #3b82f6 !important;
   border: none;
   border-radius: var(--radius-sm);
   cursor: pointer;
   white-space: nowrap;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   box-sizing: border-box;
}

.btn-add-custom-location:hover {
   background-color: #2563eb !important;
   transform: translateY(-1px);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-add-custom-location:active {
   transform: translateY(0);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-pl-custom-list {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   max-height: 200px;
   overflow-y: auto;
}

.product-pl-custom-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.6rem 0.75rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   font-size: 0.85rem;
   color: var(--text-strong);
}

.product-pl-custom-item span {
   flex: 1;
   font-weight: 500;
}

.product-pl-custom-remove {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 24px;
   height: 24px;
   padding: 0;
   background: transparent;
   border: none;
   border-radius: var(--radius-sm);
   color: var(--text-muted);
   cursor: pointer;
   transition: all 0.2s;
   flex-shrink: 0;
}

.product-pl-custom-remove:hover {
   background: var(--error-light);
   color: var(--error);
}

.product-pl-custom-remove svg {
   width: 14px;
   height: 14px;
}

/* ============================================
   PRODUCT PRINT LOCATION DETAILS MODAL
   ============================================ */
.product-pl-details-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1100;
   opacity: 1;
   visibility: visible;
   transition: all 0.3s ease;
}

.product-pl-details-modal-overlay.hidden {
   opacity: 0;
   visibility: hidden;
}

.product-pl-details-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 480px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
}

.product-pl-details-subtitle {
   font-size: 1rem;
   font-weight: 600;
   color: var(--accent);
   margin: 0 0 1.25rem 0;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--border-soft);
}

.product-pl-details-modal-content {
   overflow-y: auto;
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.product-pl-details-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-details-section-title {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.85rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-strong);
   margin: 0 0 1rem 0;
}

.product-pl-details-section-title svg {
   color: var(--accent);
}

/* Imprint Size Inputs */
.product-pl-imprint-size-inputs {
   display: flex;
   align-items: flex-end;
   gap: 0.75rem;
}

.product-pl-imprint-size-field {
   flex: 1;
}

.product-pl-imprint-size-field label {
   display: block;
   font-size: 0.75rem;
   font-weight: 600;
   color: var(--text-muted);
   margin-bottom: 0.35rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.product-pl-imprint-size-input-wrapper {
   display: flex;
   align-items: center;
   background: var(--bg-card);
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   overflow: hidden;
   transition: border-color 0.2s;
}

.product-pl-imprint-size-input-wrapper:focus-within {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-pl-imprint-size-input-wrapper input {
   flex: 1;
   border: none;
   padding: 0.6rem 0.75rem;
   font-size: 1rem;
   font-weight: 500;
   background: transparent;
   text-align: center;
   min-width: 0;
   height: auto;
   box-shadow: none;
}

.product-pl-imprint-size-input-wrapper input:focus {
   outline: none;
   box-shadow: none;
}

.product-pl-imprint-size-unit {
   padding: 0 0.75rem 0 0;
   font-size: 0.9rem;
   color: var(--text-muted);
   font-weight: 500;
}

.product-pl-imprint-size-separator {
   font-size: 1.25rem;
   color: var(--text-muted);
   font-weight: 300;
}

/* Ink Color Search */
.product-pl-ink-color-search-container {
   position: relative;
   margin-bottom: 0.75rem;
}

.product-pl-ink-color-search-input {
   width: 100%;
   padding: 0.65rem 1rem;
   font-size: 0.9rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
   transition: border-color 0.2s, box-shadow 0.2s;
}

.product-pl-ink-color-search-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-pl-ink-color-dropdown {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
   max-height: 200px;
   overflow-y: auto;
   z-index: 100;
   margin-top: 4px;
}

.product-pl-ink-color-dropdown.hidden {
   display: none;
}

.product-pl-ink-color-dropdown-item {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.65rem 1rem;
   cursor: pointer;
   transition: background 0.15s;
}

.product-pl-ink-color-dropdown-item:hover {
   background: var(--bg-surface);
}

.product-pl-ink-color-dropdown-item__swatch {
   width: 20px;
   height: 20px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-pl-ink-color-dropdown-item__name {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-strong);
}

.product-pl-ink-color-dropdown-empty {
   padding: 1rem;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
}

.product-pl-ink-color-dropdown-add-custom {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.75rem 1rem;
   background: #f0f9ff;
   border-top: 1px solid var(--border-soft);
   cursor: pointer;
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--primary);
   transition: background 0.15s;
}

.product-pl-ink-color-dropdown-add-custom:hover {
   background: #dbeafe;
}

/* Selected Ink Colors List */
.product-pl-ink-colors-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   min-height: 2rem;
}

.product-pl-ink-colors-empty {
   font-size: 0.85rem;
   color: var(--text-muted);
   font-style: italic;
   padding: 0.5rem 0;
}

.product-pl-ink-color-chip {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.4rem 0.6rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: 999px;
   font-size: 0.8rem;
   font-weight: 500;
   transition: all 0.2s;
}

.product-pl-ink-color-chip:hover {
   border-color: var(--border-medium);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-pl-ink-color-chip__number {
   min-width: 18px;
   height: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.7rem;
   font-weight: 700;
   background: var(--accent);
   color: var(--bg-card);
   border-radius: 50%;
}

.product-pl-ink-color-chip__swatch {
   width: 16px;
   height: 16px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-pl-ink-color-chip__name {
   color: var(--text-strong);
}

.product-pl-ink-color-chip__remove {
   background: none;
   border: none;
   padding: 0;
   margin: 0;
   width: 18px;
   height: 18px;
   min-width: 18px;
   min-height: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   cursor: pointer;
   color: var(--text-muted);
   transition: all 0.15s;
}

.product-pl-ink-color-chip__remove:hover {
   background: #fee2e2;
   color: #dc2626;
}

.product-pl-ink-color-chip__remove svg {
   width: 14px;
   height: 14px;
}

.product-pl-details-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   margin-top: 1.25rem;
   padding-top: 1rem;
   border-top: 1px solid var(--border-soft);
}

/* ============================================
   PRODUCT WIDGET - ENHANCED LOCATION CARDS
   ============================================ */
.product-location-cards {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   margin-top: 0.5rem;
}

.product-location-card {
   background: var(--bg-surface);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   padding: 0.6rem 0.75rem;
   transition: all 0.2s;
}

.product-location-card:hover {
   border-color: var(--border-medium);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-location-card__main {
   display: flex;
   align-items: center;
   gap: 0.75rem;
}

.product-location-card__position {
   font-size: 0.8rem;
   font-weight: 700;
   color: var(--text-strong);
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.product-location-card__size-badge {
   font-size: 0.7rem;
   padding: 0.2rem 0.5rem;
   background: linear-gradient(135deg, #ecfdf5, #d1fae5);
   color: #047857;
   border-radius: 4px;
   border: 1px solid #a7f3d0;
   font-weight: 600;
}

.product-location-card__size-badge--empty {
   background: var(--bg-surface);
   color: var(--text-muted);
   border-color: var(--border-soft);
}

.product-location-card__edit-btn {
   margin-left: auto;
   background: none;
   border: none;
   padding: 0.3rem;
   border-radius: 4px;
   cursor: pointer;
   color: var(--text-muted);
   transition: all 0.15s;
   width: auto;
   min-width: auto;
   height: auto;
   min-height: auto;
   display: flex;
   align-items: center;
   justify-content: center;
}

.product-location-card__edit-btn:hover {
   background: var(--bg-card);
   color: var(--accent);
}

.product-location-card__edit-btn svg {
   width: 16px;
   height: 16px;
}

.product-location-card__colors-section {
   margin-top: 0.5rem;
   padding-top: 0.5rem;
   border-top: 1px dashed var(--border-soft);
}

.product-location-card__colors-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.35rem;
}

.product-location-card__color-item {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   font-size: 0.7rem;
   padding: 0.15rem 0.4rem;
   background: var(--bg-card);
   border-radius: 3px;
}

.product-location-card__color-swatch {
   width: 10px;
   height: 10px;
   border-radius: 2px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-location-card__color-name {
   color: var(--text-muted);
   font-weight: 500;
}

.product-location-card__no-colors {
   font-size: 0.7rem;
   color: var(--text-muted);
   font-style: italic;
   margin-top: 0.35rem;
}

/* ============================================
   PRINT LOCATION DECORATION - NEW FUNCTIONALITY
   ============================================ */

/* Print Location Input Wrapper */
.print-location-modal-trigger-wrapper {
   margin-bottom: 1rem;
}

.print-location-modal-trigger {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   background: var(--accent);
   color: var(--bg-card);
   border: 1px solid var(--accent);
   padding: 0.75rem 1.25rem;
   border-radius: var(--radius-sm);
   font-weight: 600;
   font-size: 0.9rem;
   cursor: pointer;
   transition: all 0.2s;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.print-location-modal-trigger:hover {
   background: var(--accent-soft);
   border-color: var(--accent-soft);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.print-location-modal-trigger svg {
   width: 18px;
   height: 18px;
}

/* ============================================
   PRINT LOCATION SELECTION MODAL
   ============================================ */
.print-location-selection-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1050;
   opacity: 1;
   visibility: visible;
   transition: all 0.3s ease;
}

.print-location-selection-modal-overlay.hidden {
   opacity: 0;
   visibility: hidden;
}

.print-location-selection-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 600px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: column;
}

.print-location-selection-modal-content {
   padding: 1.5rem;
   overflow-y: auto;
   flex: 1;
}

.print-location-selection-modal-title {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--text-strong);
   margin: 0 0 0.5rem 0;
   padding-right: 3rem;
}

.print-location-selection-modal-subtitle {
   font-size: 0.9rem;
   color: var(--text-muted);
   margin: 0 0 1.5rem 0;
   line-height: 1.5;
}

.print-location-selection-sections {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.print-location-selection-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1.25rem;
   border: 1px solid var(--border-soft);
}

.print-location-selection-section-title {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.9rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-strong);
   margin: 0 0 1rem 0;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--border-soft);
}

.print-location-selection-section-title svg {
   color: var(--accent);
}

.print-location-selection-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 0.75rem;
}

@media (max-width: 640px) {
   .print-location-selection-grid {
      grid-template-columns: 1fr;
   }
}

.print-location-selection-option {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.75rem 1rem;
   background: var(--bg-card);
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-md);
   cursor: pointer;
   transition: all 0.2s;
   position: relative;
   user-select: none;
}

.print-location-selection-option:hover {
   border-color: var(--primary);
   background: #f0f9ff;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.print-location-selection-option:has(input:checked) {
   border-color: var(--primary);
   background: linear-gradient(135deg, #eff6ff, #dbeafe);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.print-location-selection-option input[type="checkbox"] {
   position: absolute;
   opacity: 0;
   cursor: pointer;
   height: 0;
   width: 0;
}

.print-location-selection-checkmark {
   width: 20px;
   height: 20px;
   background: var(--bg-card);
   border: 2px solid var(--border-medium);
   border-radius: 4px;
   position: relative;
   transition: all 0.2s;
   flex-shrink: 0;
}

.print-location-selection-option:hover .print-location-selection-checkmark {
   border-color: var(--primary);
}

.print-location-selection-option input:checked ~ .print-location-selection-checkmark {
   background: var(--primary);
   border-color: var(--primary);
}

.print-location-selection-option input:checked ~ .print-location-selection-checkmark::after {
   content: '';
   position: absolute;
   left: 6px;
   top: 2px;
   width: 6px;
   height: 10px;
   border: solid white;
   border-width: 0 2px 2px 0;
   transform: rotate(45deg);
}

.print-location-selection-label {
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--text-strong);
   flex: 1;
}

.print-location-selection-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   padding: 1rem 1.5rem;
   border-top: 1px solid var(--border-soft);
   background: var(--bg-surface);
}

/* Print Location Cards Container */
.print-location-cards-container {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1rem;
   margin-top: 1rem;
   min-height: 2rem;
}

@media (max-width: 1024px) {
   .print-location-cards-container {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 640px) {
   .print-location-cards-container {
      grid-template-columns: 1fr;
   }
}

.no-locations-message {
   grid-column: 1 / -1;
   font-size: 0.9rem;
   color: var(--text-muted);
   font-style: italic;
   text-align: center;
   padding: 1.5rem;
   background: var(--bg-surface);
   border: 1px dashed var(--border-soft);
   border-radius: var(--radius-sm);
}

/* Print Location Card - Compact Design */
.print-location-card {
   background: var(--bg-card);
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-md);
   padding: 0.75rem;
   transition: all 0.2s;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
   cursor: pointer;
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   min-height: 100px;
}

.print-location-card:hover {
   border-color: var(--primary);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   transform: translateY(-2px);
}

.print-location-card.configured {
   border-color: #10b981;
   background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.print-location-card.not-configured {
   border-color: #f59e0b;
   background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.print-location-card-header {
   display: flex;
   align-items: flex-start;
   justify-content: flex-start;
   gap: 0.5rem;
   position: relative;
}

.print-location-card-position {
   font-size: 0.8rem;
   font-weight: 700;
   color: var(--text-strong);
   text-transform: uppercase;
   letter-spacing: 0.3px;
   line-height: 1.2;
   flex: 1;
}

.print-location-card-actions {
   display: flex;
   align-items: center;
   gap: 0.2rem;
   position: absolute;
   top: 0.1rem;
   right: 0.1rem;
}

.print-location-card-edit,
.print-location-card-remove {
   background: none;
   border: none;
   padding: 0.25rem;
   border-radius: var(--radius-sm);
   cursor: pointer;
   transition: all 0.15s;
   width: 22px;
   height: 22px;
   min-width: 22px;
   min-height: 22px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.print-location-card-edit {
   color: var(--text-muted);
}

.print-location-card-edit:hover {
   background: var(--bg-surface);
   color: var(--accent);
}

.print-location-card-remove {
   color: var(--text-muted);
}

.print-location-card-remove:hover {
   background: #fee2e2;
   color: #dc2626;
}

.print-location-card-edit svg,
.print-location-card-remove svg {
   width: 12px;
   height: 12px;
}

.print-location-card-decoration {
   display: flex;
   align-items: center;
}

.print-location-card-decoration-type {
   display: inline-flex;
   align-items: center;
   padding: 0.2rem 0.5rem;
   border-radius: 999px;
   font-size: 0.65rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.print-location-card-decoration-type.configured {
   background: #d1fae5;
   color: #065f46;
   border: 1px solid #10b981;
}

.print-location-card-decoration-type.not-configured {
   background: #fef3c7;
   color: #92400e;
   border: 1px solid #f59e0b;
}

.print-location-card-details {
   display: flex;
   flex-direction: column;
   gap: 0.375rem;
}

.print-location-card-type,
.print-location-card-dimensions {
   font-size: 0.7rem;
   padding: 0.2rem 0.4rem;
   background: var(--bg-surface);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   color: var(--text-strong);
   font-weight: 500;
   display: inline-flex;
   align-items: center;
   gap: 0.25rem;
   width: fit-content;
}

.print-location-card-dimensions::before {
   content: '📐';
   font-size: 0.65rem;
}

/* Ink Colors Display in Card */
.print-location-card-colors {
   display: flex;
   flex-wrap: wrap;
   gap: 0.25rem;
   align-items: center;
}

.print-location-card-color-dot {
   width: 16px;
   height: 16px;
   border-radius: 50%;
   border: 1.5px solid rgba(0, 0, 0, 0.15);
   flex-shrink: 0;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
   position: relative;
}

.print-location-card-color-dot:hover::after {
   content: attr(data-color-name);
   position: absolute;
   bottom: calc(100% + 4px);
   left: 50%;
   transform: translateX(-50%);
   background: #1e293b;
   color: white;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 0.65rem;
   font-weight: 500;
   white-space: nowrap;
   z-index: 10;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
   pointer-events: none;
}

.print-location-card-color-count {
   font-size: 0.65rem;
   color: var(--text-muted);
   font-weight: 600;
   margin-left: 0.125rem;
}

/* ============================================
   PRINT LOCATION DECORATION MODAL
   ============================================ */
.print-location-decoration-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1100;
   opacity: 1;
   visibility: visible;
   transition: all 0.3s ease;
}

.print-location-decoration-modal-overlay.hidden {
   opacity: 0;
   visibility: hidden;
}

.print-location-decoration-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 520px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: column;
}

.print-location-decoration-modal-content {
   padding: 1.5rem;
   overflow-y: auto;
   flex: 1;
}

.print-location-decoration-modal-title {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--text-strong);
   margin: 0 0 0.5rem 0;
   padding-right: 3rem;
}

.print-location-decoration-modal-subtitle {
   font-size: 1rem;
   font-weight: 600;
   color: var(--accent);
   margin: 0 0 1.5rem 0;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--border-soft);
}

/* Decoration Type Section */
.decoration-type-section {
   margin-bottom: 1.5rem;
}

.decoration-section-title {
   font-size: 0.9rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-strong);
   margin: 0 0 1rem 0;
}

.decoration-type-options {
   display: flex;
   gap: 1rem;
   flex-wrap: wrap;
}

.decoration-type-option {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.75rem 1rem;
   background: var(--bg-surface);
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-md);
   cursor: pointer;
   transition: all 0.2s;
   flex: 1;
   min-width: 180px;
}

.decoration-type-option:hover {
   border-color: var(--primary);
   background: #f0f9ff;
}

.decoration-type-option:has(input:checked) {
   border-color: var(--primary);
   background: linear-gradient(135deg, #eff6ff, #dbeafe);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.decoration-type-option input[type="radio"] {
   width: 20px;
   height: 20px;
   accent-color: var(--primary);
   cursor: pointer;
   flex-shrink: 0;
}

.decoration-type-label {
   font-size: 0.9rem;
   font-weight: 600;
   color: var(--text-strong);
}

/* Decoration Options Sections */
.decoration-options-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1.25rem;
   border: 1px solid var(--border-soft);
   margin-bottom: 1rem;
}

.decoration-options-section.hidden {
   display: none;
}

.decoration-select,
.decoration-input {
   width: 100%;
   padding: 0.65rem 1rem;
   font-size: 0.9rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
   transition: border-color 0.2s, box-shadow 0.2s;
}

.decoration-select:focus,
.decoration-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Ink Color Search */
.ink-color-search-container {
   position: relative;
   margin-bottom: 0.75rem;
}

.ink-color-search-input {
   width: 100%;
   padding: 0.65rem 1rem;
   font-size: 0.9rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
   transition: border-color 0.2s, box-shadow 0.2s;
}

.ink-color-search-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ink-color-dropdown {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
   max-height: 200px;
   overflow-y: auto;
   z-index: 100;
   margin-top: 4px;
}

.ink-color-dropdown.hidden {
   display: none;
}

.ink-color-dropdown-item {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.65rem 1rem;
   cursor: pointer;
   transition: background 0.15s;
}

.ink-color-dropdown-item:hover {
   background: var(--bg-surface);
}

.ink-color-dropdown-swatch {
   width: 20px;
   height: 20px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.ink-color-dropdown-name {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-strong);
}

.ink-color-dropdown-empty {
   padding: 1rem;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
}

.ink-color-dropdown-add-custom {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.75rem 1rem;
   background: #f0f9ff;
   border-top: 1px solid var(--border-soft);
   cursor: pointer;
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--primary);
   transition: background 0.15s;
}

.ink-color-dropdown-add-custom:hover {
   background: #dbeafe;
}

/* Selected Ink Colors List */
.selected-ink-colors-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.35rem;
   min-height: 2rem;
}

.ink-color-search-mode {
   min-height: 1.25rem;
   margin-top: 0.45rem;
   font-size: 0.8rem;
   color: var(--text-muted);
}

.ink-color-search-mode.is-active {
   color: var(--accent);
   font-weight: 600;
}

.no-colors-message {
   font-size: 0.85rem;
   color: var(--text-muted);
   font-style: italic;
   padding: 0.5rem 0;
}

.ink-color-chip {
   display: grid;
   grid-template-columns: auto minmax(0, 1fr);
   align-items: start;
   gap: 0.4rem;
   padding: 0.32rem 0.38rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: 0.75rem;
   width: fit-content;
   max-width: 100%;
   min-width: auto;
   font-size: 0.72rem;
   font-weight: 500;
   transition: all 0.2s;
}

button.ink-color-chip-pill.ink-color-chip-pill--alternate {
   margin-top: 0;
}

.ink-color-chip:hover {
   border-color: var(--border-medium);
   box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ink-color-chip.is-selecting-alternate {
   border-color: var(--accent);
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ink-color-chip-number {
   width: 1.12rem;
   height: 1.12rem;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-top: 0.1rem;
   font-size: 0.62rem;
   font-weight: 700;
   background: var(--accent);
   color: var(--bg-card);
   border-radius: 999px;
   align-self: center;
}

.ink-color-chip-body {
   display: flex;
   flex-direction: column;
   align-items: stretch;
   gap: 0.08rem;
   min-width: 0;
   width: min(100%, 9.1rem);
}

.ink-color-chip-row {
   display: grid;
   align-items: center;
   gap: 0.2rem;
   min-width: 0;
}

.ink-color-chip-row--primary {
   grid-template-columns: minmax(0, 1fr) auto;
}

.ink-color-chip-row--alternate {
   grid-template-columns: minmax(0, 1fr) auto;
}

.ink-color-chip-or-row {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 0.35rem;
}

.ink-color-chip-swatch {
   width: 11px;
   height: 11px;
   border-radius: 3px;
   border: 1px solid rgba(15, 23, 42, 0.24);
   flex-shrink: 0;
}

.ink-color-chip-name {
   color: var(--text-strong);
   white-space: nowrap;
   max-width: 6rem;
   overflow: hidden;
   text-overflow: ellipsis;
}

.ink-color-chip-primary {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   gap: 0.28rem;
   min-width: 0;
}

.ink-color-chip-or-text {
   font-size: 0.56rem;
   font-weight: 700;
   letter-spacing: 0.05em;
   color: var(--text-muted);
}

.ink-color-chip-pill {
   width: 100%;
   max-width: 100%;
   min-height: 1.2rem;
   border: 1px solid transparent;
   border-radius: 0.55rem;
   display: inline-flex;
   align-items: center;
   justify-content: flex-start;
   padding: 0.12rem 0.34rem;
   font: inherit;
   transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ink-color-chip-pill--primary {
   background: rgba(15, 23, 42, 0.05);
}

.ink-color-chip-pill--alternate {
   background: rgba(59, 130, 246, 0.08);
   cursor: pointer;
}

.ink-color-chip-pill--ghost {
   background: transparent;
   color: var(--accent);
   cursor: pointer;
   border: 1px dashed var(--border-medium);
   font-size: 0.66rem;
   text-align: left;
}

.ink-color-chip-pill--alternate:hover,
.ink-color-chip-pill--alternate.is-active,
.ink-color-chip-pill--ghost:hover,
.ink-color-chip-pill--ghost.is-active {
   border-color: var(--accent);
   box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.ink-color-chip-hover-cta {
   max-height: 0;
   opacity: 0;
   transform: translateY(-3px);
   overflow: hidden;
   pointer-events: none;
   transition: max-height 0.22s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ink-color-chip--no-alt:hover .ink-color-chip-hover-cta,
.ink-color-chip--no-alt:focus-within .ink-color-chip-hover-cta,
.ink-color-chip-hover-cta.is-visible {
   max-height: 2rem;
   opacity: 1;
   transform: translateY(0);
   pointer-events: auto;
}

.ink-color-chip-alternate {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   gap: 0.28rem;
   min-width: 0;
}

.ink-color-chip-or-label {
   font-size: 0.52rem;
   font-weight: 700;
   letter-spacing: 0.04em;
   color: var(--text-muted);
}

.ink-color-chip-action {
   background: transparent;
   border: none;
   padding: 0;
   margin: 0;
   width: 0.9rem;
   height: 0.9rem;
   min-width: 0.9rem;
   min-height: 0.9rem;
   border-radius: 50%;
   color: var(--text-muted);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.15s;
}

.ink-color-chip-action.ink-color-chip-alt-remove,
.ink-color-chip-action.ink-color-chip-remove {
   justify-self: center;
}

.ink-color-chip-action-placeholder {
   width: 0.9rem;
   height: 0.9rem;
   min-width: 0.9rem;
   min-height: 0.9rem;
   display: inline-block;
   justify-self: center;
}

.ink-color-chip-action:hover {
   background: rgba(239, 68, 68, 0.1);
   color: #dc2626;
}

.ink-color-chip-action svg {
   width: 10px;
   height: 10px;
}

@media (hover: none) and (pointer: coarse) {
   .ink-color-chip--no-alt .ink-color-chip-hover-cta {
      max-height: 2rem;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
   }
}

.print-location-decoration-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   padding: 1rem 1.5rem;
   border-top: 1px solid var(--border-soft);
   background: var(--bg-surface);
}

@media (max-width: 640px) {
   .print-location-input-wrapper {
      flex-direction: column;
   }
   
   .decoration-type-options {
      flex-direction: column;
   }
   
   .decoration-type-option {
      min-width: auto;
   }
}
