:root {
  --ink: #132238;
  --muted: #64748b;
  --line: #dfe6ee;
  --surface: #ffffff;
  --canvas: #f2f5f9;
  --brand: #102f55;
  --brand-2: #1769aa;
  --brand-3: #2d8bc8;
  --accent: #f29a2e;
  --shadow-sm: 0 8px 24px rgba(17, 38, 65, .07);
  --shadow-md: 0 18px 50px rgba(17, 38, 65, .12);
}

html { font-size: 14px; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 15px; } }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: radial-gradient(circle at 8% 0%, #fff 0, transparent 24rem), var(--canvas); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
.app-content { flex: 1 0 auto; width: 100%; }
.app-header + .app-content { padding-top: 1.5rem; }
.footerless-page .app-content { padding-bottom: 0; }
.app-header { position: sticky; top: 0; z-index: 1030; }
.app-navbar { min-height: 72px; padding: .65rem 0; background: linear-gradient(115deg, #0c2949 0%, #143e69 52%, #15527d 100%); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 28px rgba(10,34,60,.22); }
.navbar-brand { display: inline-flex; align-items: center; gap: .75rem; margin-right: 0; color: #fff !important; letter-spacing: 0; }
.brand-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg, #36a0df, #1769aa); border: 1px solid rgba(255,255,255,.3); border-radius: 11px; box-shadow: 0 7px 16px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.22); font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.brand-mark-large { width: 52px; height: 52px; border-radius: 15px; font-size: 1rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.12rem; letter-spacing: -.01em; }
.brand-copy small { margin-top: .3rem; color: rgba(255,255,255,.62); font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.app-nav { display: flex; align-items: center; gap: .4rem; }
.app-nav-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .55rem .85rem; color: rgba(255,255,255,.76); border: 1px solid transparent; border-radius: 10px; font-size: .83rem; font-weight: 650; text-decoration: none; transition: .18s ease; }
.app-nav-link:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.08); }
.app-nav-link.active { color: #123a62; background: #fff; border-color: #fff; box-shadow: 0 7px 18px rgba(4,23,42,.2); }
.nav-glyph { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 1rem; line-height: 1; }
.user-menu { display: flex; align-items: center; gap: .65rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.16); }
.user-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #133d66; background: #e7f5ff; border-radius: 50%; font-size: .78rem; font-weight: 800; }
.user-copy { display: flex; min-width: 95px; flex-direction: column; color: #fff; line-height: 1.05; }
.user-copy strong { overflow: hidden; max-width: 145px; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { margin-top: .25rem; color: rgba(255,255,255,.57); font-size: .62rem; }
.user-menu form { margin: 0; }
.logout-button { padding: .42rem .65rem; color: rgba(255,255,255,.76); background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; font-size: .72rem; font-weight: 650; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.38); }
.footer { position: static !important; flex: 0 0 auto; width: 100%; line-height: 60px; background: #fff; }
.page-heading { margin-bottom: 1.25rem; }
.page-heading h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 2vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); }
.panel-card { overflow: hidden; border: 1px solid rgba(211,221,232,.9); border-radius: 16px; box-shadow: var(--shadow-sm); }
.help-card { background: linear-gradient(145deg, #fff, #f3f7fc); }
.help-card h2 { font-size: 1.2rem; }
.form-control, .form-select { min-height: 39px; border-color: #d5dee9; border-radius: 9px; }
.form-control:focus, .form-select:focus { border-color: #6d99cc; box-shadow: 0 0 0 .2rem rgba(36,93,159,.12); }
.btn { border-radius: 9px; font-weight: 650; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), #17598f); border-color: var(--brand-2); box-shadow: 0 5px 12px rgba(23,105,170,.18); }
.btn-primary:hover { background: linear-gradient(135deg, #237bb9, #124e80); border-color: #155d98; }
.btn-accent { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { color: #fff; background: #d97d17; border-color: #d97d17; }
.table-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.product-table-wrap { max-height: calc(100vh - 390px); min-height: 300px; }
.product-table thead { position: sticky; top: 0; z-index: 2; }
.product-table th { padding: .8rem .75rem; color: #536176; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.product-table td { padding: .72rem .75rem; border-color: #edf0f4; }
.product-table .selected-row td { background: #edf6ff; }
.selection-column { width: 42px; }
.quantity-column { width: 92px; }
.price-action-column { width: 116px; }
.quantity-input { min-width: 68px; }
.price-change-button { min-width: 104px; white-space: nowrap; }
.price-change-dialog { overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 25px 70px rgba(14,31,53,.28); }
.price-context-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.price-context-grid > div { min-width: 0; padding: .75rem 1rem; border-right: 1px solid var(--line); }
.price-context-grid > div:last-child { border-right: 0; }
.price-context-grid span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.price-context-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-primary-input { font-size: 1.05rem; font-weight: 700; }
.price-date-note { padding: .65rem .75rem; color: #31506e; background: #edf5fc; border-radius: 9px; font-size: .76rem; line-height: 1.35; }
.camera-scan-button { display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap; }
.camera-scan-button > span:first-child { display: inline-grid; width: 18px; height: 14px; place-items: center; color: currentColor; border: 2px solid currentColor; border-radius: 3px; font-size: 0; }
.camera-scan-button > span:first-child::after { width: 5px; height: 5px; content: ""; border: 2px solid currentColor; border-radius: 50%; }
.product-search-form { width: 100%; }
.search-primary-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: .6rem; align-items: center; }
.search-primary-row .form-control { min-width: 0; }
.search-primary-row .btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
.search-submit-button > span:first-child { font-size: 1.25rem; line-height: .7; }
.advanced-filter-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.filter-glyph { position: relative; width: 15px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.filter-glyph::after { position: absolute; top: 3px; left: 3px; width: 9px; content: ""; border-top: 2px solid currentColor; }
.barcode-scanner-dialog { overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 25px 70px rgba(14,31,53,.28); }
.barcode-camera-frame { position: relative; overflow: hidden; min-height: 280px; background: #0c1725; border-radius: 12px; }
.barcode-camera-frame video { display: block; width: 100%; height: min(55vh, 420px); object-fit: cover; }
.barcode-target { position: absolute; top: 50%; left: 50%; width: min(82%, 380px); height: 34%; border: 2px solid rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 0 0 999px rgba(5,15,27,.42); transform: translate(-50%, -50%); }
.barcode-target::after { position: absolute; top: 50%; right: 8%; left: 8%; height: 2px; content: ""; background: #f29a2e; box-shadow: 0 0 10px rgba(242,154,46,.9); }
.barcode-scanner-status { margin-top: .85rem; padding: .7rem .85rem; color: #31506e; background: #edf5fc; border-radius: 9px; font-size: .84rem; }
.barcode-scanner-status.success { color: #17643d; background: #ebfbf2; }
.barcode-scanner-status.error { color: #8c2424; background: #fff0f0; }
.code-pill { display: inline-block; padding: .25rem .45rem; border-radius: 5px; background: #eef1f6; font: 600 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.print-dock { position: sticky; bottom: 12px; z-index: 10; display: grid; grid-template-columns: auto auto minmax(340px, 1fr); align-items: center; gap: 1.25rem; padding: .9rem 1rem; color: #fff; background: rgba(21,32,50,.97); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.25); backdrop-filter: blur(8px); }
.selection-summary { display: flex; flex-direction: column; min-width: 95px; }
.selection-summary span { color: #b9c4d4; font-size: .85rem; }
.bulk-quantity { display: flex; align-items: center; gap: .5rem; }
.bulk-quantity label { white-space: nowrap; font-size: .85rem; color: #cbd5e1; }
.bulk-quantity input { width: 78px; }
.print-form { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: .65rem; }
.empty-state { padding: 5rem 2rem; text-align: center; background: #fff; border: 1px dashed #cbd3df; border-radius: 14px; }
.empty-state > span { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; background: #edf4fb; color: var(--brand-2); font-weight: 800; }
.empty-state h2 { margin: 1rem 0 .35rem; font-size: 1.25rem; }
.empty-state p { color: var(--muted); }
.report-shell { overflow: auto; min-height: 520px; padding: .5rem; background: #dfe4eb; border: 1px solid #cad1dc; border-radius: 12px; }
.path-box { padding: 1rem; color: #dbeafe; background: #152238; border-radius: 8px; }
.design-size { white-space: nowrap; color: var(--brand-2); font-size: .82rem; font-weight: 700; }
.designer-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.designer-heading h1 { margin: .15rem 0 0; font-size: 1.55rem; }
.designer-status { align-self: center; color: var(--muted); font-size: .85rem; }
.label-designer { display: grid; grid-template-columns: 250px minmax(520px, 1fr) 310px; height: calc(100vh - 190px); min-height: 620px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(31,43,61,.07); }
.designer-panel { padding: 1rem; overflow-y: auto; background: #fff; }
.designer-panel h2 { margin: 0 0 .8rem; color: #46566c; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.designer-panel label { display: block; margin-bottom: .7rem; color: #536176; font-size: .78rem; font-weight: 600; }
.property-help { display: block; margin-top: .3rem; color: #8792a2; font-size: .7rem; font-weight: 400; line-height: 1.35; }
.toolbox-panel { border-right: 1px solid var(--line); }
.property-panel { border-left: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tool-grid button { min-height: 42px; padding: .4rem; color: #31445d; background: #f7f9fc; border: 1px solid #d9e0e9; border-radius: 7px; font-size: .78rem; font-weight: 600; }
.tool-grid button:hover { color: var(--brand-2); background: #edf4fb; border-color: #a9c1dd; }
.designer-shortcuts { margin-top: .9rem; color: #8993a2; font-size: .72rem; line-height: 1.5; }
.designer-workspace { min-width: 0; overflow: hidden; background: #e8ebf0; }
.designer-commandbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-height: 48px; padding: .4rem .65rem; background: #fff; border-bottom: 1px solid #d5dae2; }
.command-group { display: inline-flex; align-items: center; gap: .2rem; padding-right: .45rem; border-right: 1px solid #dce1e8; }
.command-group:last-child { border-right: 0; }
.command-group button { min-width: 31px; height: 31px; padding: 0 .48rem; color: #40526a; background: #f8fafc; border: 1px solid #d5dce6; border-radius: 6px; font-size: .75rem; font-weight: 700; }
.command-group button:hover:not(:disabled) { color: #174f8f; background: #eaf3fc; border-color: #9ab9dc; }
.command-group button:disabled { opacity: .38; }
.command-options { gap: .65rem; color: #526176; font-size: .74rem; }
.command-options label { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.canvas-rulers { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 1rem; color: #667085; background: #f8fafc; border-bottom: 1px solid #d5dae2; font-size: .78rem; }
.canvas-rulers select { display: inline-block; width: 86px; margin-left: .35rem; }
.canvas-stage { position: relative; min-width: calc(var(--scaled-width, 320px) + 100px); min-height: 0; height: calc(100% - 94px); padding: 50px; overflow: auto; background-color: #e5e8ed; background-image: linear-gradient(rgba(255,255,255,.38) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.38) 1px, transparent 1px); background-size: 20px 20px; }
.canvas-container { box-shadow: 0 4px 18px rgba(32,42,56,.22); }
.property-checks { display: flex; flex-wrap: wrap; gap: .6rem; margin: .65rem 0; }
.property-checks label, .property-check { margin: 0; font-weight: 500; }
.form-control-color { width: 100%; }
.layer-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.layers-list { display: flex; flex-direction: column; gap: .3rem; margin-top: .7rem; max-height: 290px; overflow-y: auto; }
.layer-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 30px 34px; align-items: center; min-height: 34px; overflow: hidden; background: #f8fafc; border: 1px solid #e1e6ed; border-radius: 6px; }
.layer-row.active { background: #e9f3ff; border-color: #8db5df; }
.layer-row button { height: 32px; padding: 0; color: #4b5c72; background: transparent; border: 0; }
.layer-check-wrap { display: grid !important; place-items: center; height: 32px; margin: 0 !important; }
.layer-check { width: 14px; height: 14px; }
.layer-select { display: flex; align-items: center; min-width: 0; text-align: left; }
.layer-type { display: inline-grid; place-items: center; flex: 0 0 29px; width: 29px; height: 100%; color: #1f5f9f; font-weight: 800; }
.layer-name { overflow: hidden; font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.layer-eye:hover, .layer-lock:hover { background: #e3eaf2; }
.print-preview-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.print-preview-toolbar h1 { margin: .15rem 0; font-size: 1.6rem; }
.print-preview-toolbar p { margin: 0; color: var(--muted); }
.label-pages { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; padding: 24px; background: #dfe4eb; border-radius: 12px; }
.label-print-page { flex: 0 0 auto; overflow: hidden; background: #fff; border: 1px dashed #7a8798; box-shadow: 0 3px 10px rgba(28,39,54,.15); }
.label-print-page svg { display: block; width: 100%; height: 100%; }
.label-pages.hide-guides .label-print-page { border-color: transparent; box-shadow: none; }

/* Authentication */
.license-page { display: grid; min-height: 100vh; padding: 2rem; place-items: center; background: radial-gradient(circle at 10% 10%, rgba(47,151,211,.2), transparent 30rem), #eaf0f6; }
.license-shell { width: min(760px, 100%); overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 28px 75px rgba(18,46,76,.18); }
.license-brand { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 2rem; color: #fff; background: linear-gradient(120deg, #0c2949, #17689b); }
.license-brand > div { display: flex; flex-direction: column; }
.license-brand strong { font-size: 1.4rem; }
.license-brand div span { color: rgba(255,255,255,.65); font-size: .7rem; letter-spacing: .12em; }
.license-content { padding: clamp(1.5rem, 5vw, 3.5rem); }
.license-content h1 { margin: .55rem 0 1.25rem; font-size: 2rem; color: #102b47; }
.license-state { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; margin-bottom: 1.25rem; border-radius: 11px; }
.license-state.invalid { color: #8c2424; background: #fff0f0; border: 1px solid #f2c4c4; }
.license-state.valid { color: #17643d; background: #ebfbf2; border: 1px solid #b8e6cc; }
.license-details { display: grid; grid-template-columns: 110px 1fr; gap: .35rem 1rem; padding: 1rem; background: #f7f9fc; border-radius: 10px; }
.license-details dt { color: #66778b; font-size: .8rem; }
.license-details dd { margin: 0; font-weight: 650; }
.license-id-label { display: block; margin-top: 1.2rem; color: #536176; font-size: .78rem; font-weight: 700; }
.license-id { margin: .35rem 0 .75rem; padding: .8rem 1rem; color: #dbeafe; background: #152238; border-radius: 8px; font: 600 .9rem ui-monospace, monospace; letter-spacing: .03em; }
.license-actions { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-top: 1.5rem; }
.license-actions form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
@media (max-width: 650px) { .license-page { padding: 0; place-items: stretch; } .license-shell { min-height: 100vh; border-radius: 0; } .license-actions, .license-actions form { grid-template-columns: 1fr; } }

.auth-page-body { overflow-x: hidden; background: #eef3f8; }
.auth-page-body .app-content, .auth-page-body main { min-height: 100vh; }
.login-page { display: grid; min-height: 100vh; padding: clamp(1rem, 3vw, 3rem); place-items: center; background: radial-gradient(circle at 12% 18%, rgba(56,160,220,.22), transparent 28rem), radial-gradient(circle at 90% 86%, rgba(242,154,46,.12), transparent 24rem), #eaf0f6; }
.login-shell { display: grid; grid-template-columns: minmax(360px, 1.08fr) minmax(390px, .92fr); width: min(1080px, 100%); min-height: 650px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.78); border-radius: 26px; box-shadow: 0 30px 80px rgba(18,46,76,.2); }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(2.2rem, 5vw, 4.8rem); color: #fff; background: linear-gradient(145deg, #0c2949 0%, #123f6a 52%, #17689b 100%); }
.login-brand-panel::before, .login-brand-panel::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.login-brand-panel::before { right: -130px; bottom: -100px; width: 430px; height: 430px; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.login-brand-panel::after { top: 95px; left: -160px; width: 300px; height: 300px; background: rgba(59,166,222,.06); }
.login-brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.login-brand-lockup > div { display: flex; flex-direction: column; }
.login-brand-lockup strong { font-size: 1.45rem; letter-spacing: -.02em; }
.login-brand-lockup span:not(.brand-mark) { margin-top: .3rem; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.login-message { position: relative; z-index: 1; max-width: 510px; margin: 4rem 0; }
.eyebrow, .login-kicker { display: inline-block; color: #74c3ee; font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.login-message h1 { margin: 1.1rem 0 1rem; font-size: clamp(2.15rem, 3.2vw, 3.25rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.07; }
.login-message p { max-width: 460px; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.7; }
.login-features { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .6rem; }
.login-features span { padding: .5rem .7rem; color: rgba(255,255,255,.78); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; font-size: .7rem; font-weight: 600; }
.login-form-panel { display: grid; padding: clamp(2rem, 5vw, 4.5rem); place-items: center; background: linear-gradient(145deg, #fff, #fbfdff); }
.login-form-wrap { width: min(390px, 100%); }
.login-mobile-brand { display: none; align-items: center; gap: .7rem; margin-bottom: 2rem; color: var(--brand); }
.login-form-wrap h2 { margin: .65rem 0 .45rem; color: #102b47; font-size: 2rem; font-weight: 750; letter-spacing: -.035em; }
.login-form-wrap > p { margin-bottom: 2rem; }
.login-form { display: flex; flex-direction: column; }
.login-form > label { margin: 1rem 0 .42rem; color: #34455b; font-size: .76rem; font-weight: 700; }
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: 1rem; z-index: 2; width: 18px; color: #7c91a8; font-size: .65rem; text-align: center; transform: translateY(-50%); pointer-events: none; }
.input-icon-wrap .form-control, .input-icon-wrap .form-select { min-height: 52px; padding-left: 2.7rem; color: #20354e; background-color: #f9fbfd; border-color: #cfdae6; border-radius: 11px; font-size: .9rem; }
.input-icon-wrap .form-control:focus, .input-icon-wrap .form-select:focus { background: #fff; border-color: #4799cb; box-shadow: 0 0 0 .22rem rgba(45,139,200,.12); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.15rem 0; color: #607086; font-size: .72rem; }
.login-options label { display: inline-flex; align-items: center; gap: .45rem; }
.login-options .form-check-input { margin: 0; }
.login-submit { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: .7rem 1.1rem; border-radius: 11px; }
.login-submit span { font-size: 1.2rem; }
.login-alert { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem; border-radius: 10px; font-size: .75rem; }
.login-alert a { font-weight: 700; }
.validation-summary:empty { display: none; }
.login-security { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.5rem; padding-top: 1.2rem; color: #8290a2; border-top: 1px solid #e4eaf1; }
.login-security span { color: #2c8bc6; }
.login-security p { margin: 0; font-size: .7rem; line-height: 1.45; }

@media (max-width: 991.98px) {
  .app-navbar { padding: .55rem 0; }
  .app-navbar .navbar-collapse { padding: 1rem 0 .3rem; }
  .app-nav { align-items: stretch; flex-direction: column; }
  .app-nav-link { width: 100%; }
  .user-menu { margin-top: .75rem; padding: .85rem 0 0; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .user-menu form { margin-left: auto; }
  .product-table-wrap { max-height: none; }
  .print-dock { position: static; grid-template-columns: 1fr; }
  .bulk-quantity { flex-wrap: wrap; }
  .print-form { grid-template-columns: 1fr; }
  .label-designer { grid-template-columns: 210px minmax(400px, 1fr); height: auto; min-height: 620px; }
  .canvas-stage { height: 500px; min-height: calc(var(--scaled-height, 152px) + 100px); }
  .property-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 767.98px) {
  .brand-copy small { display: none; }
  .login-page { padding: 0; place-items: stretch; }
  .login-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 2rem 1.25rem; }
  .login-mobile-brand { display: flex; }
  .camera-button-text { display: none; }
  .app-header + .app-content { padding-top: .8rem; }
  .page-heading { margin-bottom: .75rem; align-items: center !important; gap: .5rem !important; }
  .page-heading h1 { margin-bottom: 0; font-size: 1.35rem; }
  .page-heading p { display: none; }
  .page-heading > .btn { padding: .42rem .55rem; font-size: .72rem; }
  .product-filter-card .card-body { padding: .65rem !important; }
  .search-primary-row { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .3rem; }
  .search-primary-row .btn { min-height: 39px; padding: .45rem .55rem; font-size: .78rem; }
  .search-primary-row .search-primary-input { min-height: 39px; padding-right: .45rem; padding-left: .65rem; font-size: .82rem; }
  .search-submit-button > span:first-child, .advanced-filter-toggle .filter-glyph { display: none; }
  .advanced-filter-panel { margin-top: .65rem; padding-top: .65rem; }
  .advanced-filter-panel .form-label { margin-bottom: .25rem; }
  .table-toolbar { padding: .65rem .75rem; }
  .barcode-camera-frame { min-height: 230px; }
  .price-context-grid { grid-template-columns: 1fr; }
  .price-context-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-context-grid > div:last-child { border-bottom: 0; }
}
