/* labelCenter.css — Label Center overlay styles */ /* ── Full-screen overlay ──────────────────────────────────────────────────── */ .lc-overlay { position: fixed; inset: 0; z-index: 1200; background: var(--gray-100); display: flex; flex-direction: column; animation: lcFadeIn .15s ease; } .lc-overlay[hidden] { display: none; } @keyframes lcFadeIn { from { opacity: 0; } to { opacity: 1; } } /* ── Header bar ───────────────────────────────────────────────────────────── */ .lc-header { background: var(--primary-dark); color: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; flex-shrink: 0; border-bottom: 3px solid var(--accent); } .lc-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; } .lc-header-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: .85; } .lc-header-title { font-size: 1rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; } .lc-header-sub { font-size: .78rem; opacity: .7; white-space: nowrap; } .lc-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } /* Header button overrides for dark background */ .lc-header .btn-ghost { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.25); } .lc-header .btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--white); border-color: rgba(255,255,255,.5); } .lc-header .btn-accent { background: var(--accent); color: var(--white); border: none; } .lc-header .btn-accent:hover { background: var(--accent-light); } .lc-header .btn-accent:disabled { background: rgba(255,255,255,.15); color: rgba(255,255,255,.4); cursor: not-allowed; } /* ── Two-column body ──────────────────────────────────────────────────────── */ .lc-body { flex: 1; display: grid; grid-template-columns: 300px 1fr; min-height: 0; overflow: hidden; } /* ── Queue panel (left) ───────────────────────────────────────────────────── */ .lc-queue-panel { border-right: 1px solid var(--gray-200); overflow: hidden; display: flex; flex-direction: column; background: var(--white); } .lc-queue-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); flex-shrink: 0; gap: 8px; } .lc-panel-title { font-size: .8rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; } .lc-queue-list { flex: 1; overflow-y: auto; padding: 8px; } .lc-queue-empty { text-align: center; padding: 32px 16px; color: var(--gray-400); font-size: .85rem; font-style: italic; } /* ── Queue item rows ──────────────────────────────────────────────────────── */ .lc-queue-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white); margin-bottom: 5px; gap: 8px; transition: opacity .2s, border-color .15s; } .lc-queue-item:last-child { margin-bottom: 0; } .lc-queue-item.assigned { opacity: .45; border-color: var(--gray-200); background: var(--gray-50); } .lc-queue-item-info { min-width: 0; flex: 1; } .lc-queue-item-name { font-size: .84rem; font-weight: 600; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lc-queue-item-customer { font-size: .74rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; } .lc-queue-item-pos { font-size: .68rem; font-weight: 700; color: var(--primary); white-space: nowrap; } .lc-queue-item-remove { flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 2px 4px; border-radius: var(--radius-sm); line-height: 1; transition: color .1s, background .1s; font-size: .78rem; } .lc-queue-item-remove:hover { color: var(--red); background: var(--red-bg); } /* ── Sheet panel (right) ──────────────────────────────────────────────────── */ .lc-sheet-panel { overflow: hidden; display: flex; flex-direction: column; } .lc-sheet-panel-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--gray-200); flex-shrink: 0; background: var(--white); } .lc-sheet-panel-header .lc-panel-title { flex: 1; } .lc-sheet-panel-header .lc-sheet-select { width: fit-content; margin-right: auto; } .lc-sheet-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; justify-content: center; align-items: flex-start; } /* ── Pages container & page cards ─────────────────────────────────────────── */ .lc-pages-container { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 20px; } .lc-page-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); } .lc-page-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); gap: 12px; } .lc-page-card-title { font-size: .82rem; font-weight: 700; color: var(--gray-700); } .lc-page-pos-range { font-size: .72rem; font-weight: 400; color: var(--gray-400); margin-left: 6px; } .lc-page-card-btns { display: flex; gap: 6px; flex-shrink: 0; } .lc-page-card .lc-sheet-grid { padding: 12px; } .lc-add-page-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px; border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); background: transparent; color: var(--gray-500); font-size: .84rem; font-weight: 600; font-family: var(--font); cursor: pointer; transition: border-color .15s, color .15s, background .15s; } .lc-add-page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); } .lc-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; align-content: start; } /* ── Sheet cells ──────────────────────────────────────────────────────────── */ .lc-cell { aspect-ratio: 384 / 146; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; transition: border-color .12s, background .12s; } .lc-cell.empty { border: 2px dashed var(--gray-300); background: var(--white); color: var(--gray-400); font-size: .72rem; font-weight: 700; } .lc-cell.empty:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-50); } .lc-cell.used { border: 2px dashed var(--red, #dc2626); background: #fff5f5; color: var(--red, #dc2626); font-size: .72rem; font-weight: 700; } .lc-cell.used:hover { background: var(--red-bg, #fef2f2); border-color: var(--red, #dc2626); } .lc-cell.filled { border: 2px solid var(--primary); background: var(--primary-50); } .lc-cell.filled:hover { border-color: var(--primary); background: var(--primary-50); } .lc-cell.filled:hover .lc-cell-actions { opacity: 1; pointer-events: auto; } .lc-cell.filled:hover .lc-cell-content { opacity: .35; } .lc-cell-actions { position: absolute; inset: 4px; display: flex; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .35s ease; } .lc-cell-action { flex: 1; height: 100%; border-radius: 8px; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .12s; color: white; } .lc-cell-action--delete { background: rgba(185, 28, 28, 0.32); } .lc-cell-action--edit { background: rgba(43, 84, 153, 0.32); } .lc-cell-action--delete:hover { background: rgba(185, 28, 28, 0.72); } .lc-cell-action--edit:hover { background: rgba(43, 84, 153, 0.72); } .lc-cell-action-label { font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; line-height: 1; } .lc-cell-content { padding: 5px 8px; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; transition: opacity .12s; } .lc-cell-name { font-size: .72rem; font-weight: 700; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lc-cell-customer { font-size: .64rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; } .lc-cell-pos-number { position: absolute; top: 3px; right: 5px; font-size: .58rem; color: var(--gray-400); font-weight: 700; pointer-events: none; } .lc-cell.filled .lc-cell-pos-number { color: var(--primary); } /* ── Assignment picker flyout ─────────────────────────────────────────────── */ .lc-picker { position: fixed; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; width: 290px; z-index: 1300; max-height: 480px; overflow-y: auto; } /* ── Picker search ─────────────────────────────────────────────────────────── */ .lc-picker-search-wrap { position: relative; display: flex; align-items: center; margin-bottom: 4px; } .lc-picker-search-icon { position: absolute; left: 9px; width: 13px; height: 13px; color: var(--gray-400); pointer-events: none; flex-shrink: 0; } .lc-picker-search-input { width: 100%; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 7px 10px 7px 30px; font-size: .84rem; font-family: var(--font); outline: none; transition: border-color .15s; color: var(--gray-800); } .lc-picker-search-input:focus { border-color: var(--primary); } .lc-picker-search-input::placeholder { color: var(--gray-400); } .lc-picker-search-results { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 6px; } .lc-picker-search-results[hidden] { display: none; } .lc-picker-search-result { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--gray-100); padding: 7px 10px; cursor: pointer; font-family: var(--font); transition: background .1s; } .lc-picker-search-result:last-child { border-bottom: none; } .lc-picker-search-result:hover, .lc-picker-search-result.active { background: var(--primary-50); } .lc-picker-search-result-name { font-size: .82rem; font-weight: 600; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lc-picker-search-result-meta { font-size: .72rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; } .lc-picker-search-spinner { padding: 8px 10px; font-size: .78rem; color: var(--gray-400); font-style: italic; } .lc-picker-section-label { font-size: .67rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; padding: 4px 2px 5px; border-top: 1px solid var(--gray-100); margin-top: 4px; } .lc-picker[hidden] { display: none; } .lc-picker-title { font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gray-200); } .lc-picker-item { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius); padding: 7px 10px; cursor: pointer; margin-bottom: 3px; transition: background .1s, border-color .1s; } .lc-picker-item:hover { background: var(--primary-50); border-color: var(--primary-light); } .lc-picker-item-name { font-size: .82rem; font-weight: 600; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lc-picker-item-customer { font-size: .72rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lc-picker-empty { font-size: .82rem; color: var(--gray-400); font-style: italic; padding: 8px 4px; text-align: center; } /* Picker footer row — mark-used + custom-label side by side */ .lc-picker-footer-row { display: flex; gap: 6px; margin-top: 6px; } .lc-picker-mark-used, .lc-picker-custom-label { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; text-align: center; background: none; border-radius: var(--radius); padding: 6px 8px; cursor: pointer; font-size: .75rem; font-weight: 600; font-family: var(--font); transition: background .1s, border-color .1s, color .1s; } .lc-picker-mark-used { border: 1px dashed var(--red-200, #fecaca); color: var(--red, #dc2626); } .lc-picker-mark-used:hover { background: var(--red-bg, #fef2f2); border-color: var(--red, #dc2626); } .lc-picker-custom-label { border: 1px dashed var(--gray-300); color: var(--gray-600); } .lc-picker-custom-label:hover { background: var(--gray-50); border-color: var(--gray-500); color: var(--gray-800); } /* ── Custom label form ───────────────────────────────────────────────────── */ .lc-custom-label-form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(380px, calc(100vw - 32px)); overflow: hidden; animation: fadeIn .15s ease; } .lc-custom-label-form-header { background: var(--primary); color: var(--white); font-size: .88rem; font-weight: 700; padding: 12px 18px; border-bottom: 3px solid var(--accent); } .lc-custom-label-form > .lc-clf-field, .lc-custom-label-form > .lc-print-dialog-btns { padding: 0 18px; } .lc-custom-label-form > .lc-clf-field:first-of-type { padding-top: 16px; } .lc-custom-label-form > .lc-print-dialog-btns { padding-bottom: 18px; padding-top: 10px; } .lc-clf-field { display: flex; flex-direction: column; gap: 4px; } .lc-clf-label { font-size: .7rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; } .lc-clf-required { color: var(--accent); margin-left: 2px; } .lc-clf-input { border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 7px 10px; font-size: .88rem; font-family: var(--font); outline: none; color: var(--gray-800); transition: border-color .15s; } .lc-clf-input:focus { border-color: var(--primary); } .lc-clf-input.lc-clf-error { border-color: var(--red, #dc2626); } .lc-clf-error { font-size: .75rem; color: var(--red, #dc2626); font-weight: 600; } /* ── Post-print dialog ───────────────────────────────────────────────────── */ .lc-print-dialog-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1400; display: flex; align-items: center; justify-content: center; animation: fadeIn .15s ease; } .lc-print-dialog { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; width: min(380px, calc(100vw - 32px)); animation: fadeIn .15s ease; } .lc-print-dialog-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; } .lc-print-dialog-body { font-size: .88rem; color: var(--gray-600); margin-bottom: 20px; line-height: 1.5; } .lc-print-dialog-actions { display: flex; flex-direction: column; gap: 8px; } .lc-print-dialog-btns { display: flex; gap: 8px; } .lc-print-dialog-btns .lc-print-dialog-btn { flex: 1; text-align: center; justify-content: center; } .lc-print-dialog-btn { width: 100%; padding: 10px 16px; border-radius: var(--radius); border: 1.5px solid var(--gray-200); background: var(--gray-50); color: var(--gray-700); font-size: .88rem; font-weight: 600; font-family: var(--font); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; transition: background .12s, border-color .12s, color .12s; } .lc-print-dialog-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); } .lc-print-dialog-btn.danger:hover { border-color: var(--red, #dc2626); color: var(--red, #dc2626); background: var(--red-bg, #fef2f2); } .lc-print-dialog-btn--primary { background: var(--primary); border-color: var(--primary); color: var(--white); } .lc-print-dialog-btn--primary:hover { background: var(--primary-dark, var(--primary)); color: var(--white); } .lc-print-dialog-btn-label { flex: 1; } .lc-print-dialog-btn-desc { font-size: .75rem; color: var(--gray-400); font-weight: 400; margin-top: 1px; } /* ── Menu badge ───────────────────────────────────────────────────────────── */ .lc-menu-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--white); font-size: .64rem; font-weight: 700; line-height: 1; margin-left: 3px; vertical-align: middle; } /* Must explicitly override [hidden] since display:inline-flex beats the UA stylesheet */ .lc-menu-badge[hidden] { display: none; } /* ── "Add to Sheet" button ────────────────────────────────────────────────── */ .lc-add-btn { border-color: var(--accent) !important; color: var(--accent-dark) !important; } .lc-add-btn:hover { background: var(--accent) !important; color: var(--white) !important; border-color: var(--accent) !important; } .lc-add-btn.added { background: var(--accent-50); color: var(--accent-dark); } /* ── Label preview inside grid cells ─────────────────────────────────────── */ /* Strip the wrap's decorative chrome so it fills the cell edge-to-edge */ .lc-cell .label-preview-wrap { padding: 0; margin: 0; border: none; border-radius: 0; background: transparent; width: 100%; height: 100%; } /* Make the preview fill the cell; the cell's aspect-ratio already matches 384:146 */ .lc-cell .label-preview { max-width: none; width: 100%; height: 100%; border: none; box-shadow: none; border-radius: 0; aspect-ratio: unset; padding: 4px 5px; } /* Remove padding from the content wrapper so the preview controls its own spacing */ .lc-cell .lc-cell-content { padding: 0; } /* ── Danger button variant ────────────────────────────────────────────────── */ .btn-danger { color: var(--red) !important; border-color: var(--red) !important; } .btn-danger:hover { background: var(--red-bg) !important; } /* ── Sheet type selector (in Label Center header) ────────────────────────── */ .lc-sheet-select { background: var(--white); color: var(--primary-dark, #1a3565); border: 1px solid var(--gray-300, #d1d5db); border-radius: 6px; padding: 4px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; outline: none; white-space: nowrap; } .lc-sheet-select:hover { border-color: var(--primary-light, #2b5499); color: var(--primary, #1a3565); } .lc-sheet-select:focus { border-color: var(--primary, #1a3565); box-shadow: 0 0 0 2px rgba(26,53,101,.15); } /* ── OL25LP cell preview (grid cells for 80-up sheet) ───────────────────── */ .lc-ol25lp-preview { width: 100%; height: 100%; position: relative; } .lc-ol25lp-bc { width: 100%; height: 100%; object-fit: fill; display: block; image-rendering: pixelated; } .lc-ol25lp-sn { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; pointer-events: none; overflow: hidden; } .lc-ol25lp-sn span { display: inline-block; font-size: .5rem; font-weight: 700; font-family: monospace; color: #000; white-space: nowrap; background: #fff; padding: 0.5pt 2pt; line-height: 1.2; border: 0.5pt solid #fff; } .lc-ol25lp-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .5rem; font-weight: 700; font-family: monospace; color: #444; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }