.label-page-shell,
.label-designer {
    color: #172033;
}

.label-page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 0 34px;
}

.label-template-mobile-header {
    display: none;
}

.label-template-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.label-template-page-head h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.48rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.label-template-page-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    font-weight: 750;
}

.label-template-create-btn {
    min-width: 128px;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.label-template-create-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.label-template-dashboard {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.08fr) minmax(280px, 1fr);
    gap: 28px;
}

.label-template-work-card,
.label-template-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.label-template-work-card {
    padding: 24px;
}

.label-template-section-title {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.label-template-hero-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.label-template-hero-card::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 38%;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.16) 1.2px, transparent 1.2px);
    background-size: 13px 13px;
    opacity: 0.62;
    pointer-events: none;
}

.label-template-hero-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.8);
}

.label-template-hero-text {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.label-template-hero-text h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.label-template-hero-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.96rem;
    font-weight: 760;
}

.label-template-hero-card .label-template-create-btn {
    position: relative;
    z-index: 1;
}

.label-template-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.label-template-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.label-template-list-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.label-template-list-card.is-default {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1), 0 18px 36px rgba(37, 99, 235, 0.08);
}

.label-template-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.label-template-card-menu {
    flex: 0 0 auto;
}

.label-template-menu-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: transparent;
}

.label-template-menu-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.label-template-card-preview {
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 154px;
    margin: 18px 0;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.08), transparent 52%), #f8fafc;
}

.label-template-card-preview .label-mini-preview-img {
    width: min(220px, 88%);
}

.label-template-card-meta {
    margin-top: auto;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 850;
}

.label-template-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.label-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 22px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 10%, rgba(255,255,255,0.28), transparent 28%), linear-gradient(135deg, #10243f 0%, #1f5f72 54%, #e6a93a 140%);
    box-shadow: 0 18px 50px rgba(15, 35, 64, 0.18);
}

.label-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.72;
}

.label-hero-action {
    color: #10243f;
    font-weight: 700;
    border: 0;
}

.label-template-card {
    position: relative;
    padding: 1rem;
}

.label-template-title-wrap {
    min-width: 0;
    flex: 1;
}

.label-template-title {
    display: block;
    max-width: 100%;
    margin: 0 0 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
    cursor: text;
}

.label-template-title:hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.label-template-title-input {
    max-width: 360px;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.label-template-title-status {
    min-height: 1rem;
    margin-bottom: 0.1rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1;
}

.label-template-title-status.is-success {
    color: #15803d;
}

.label-template-title-status.is-error {
    color: #dc2626;
}

.label-template-title-status.is-saving,
.label-template-title-status.is-hint {
    color: #2563eb;
}

.label-template-size-text {
    color: #60a5fa;
    font-size: 0.98rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.label-template-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.label-mini-preview {
    display: grid;
    place-items: center;
    min-height: 172px;
    margin: 20px 0 18px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.09), transparent 48%), #f8fafc;
}

.label-mini-paper {
    width: min(230px, 84%);
    aspect-ratio: var(--paper-w) / var(--paper-h);
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    color: #111827;
}

.label-mini-preview-img {
    display: block;
    width: min(230px, 84%);
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    image-rendering: pixelated;
}

.label-mini-title,
.label-mini-footer {
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.label-mini-barcode {
    width: 72%;
    height: 32px;
    margin: 9px auto 7px;
    background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 4px, #111827 4px 5px, transparent 5px 8px);
}

.label-current-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.label-template-outline-primary,
.label-template-outline-muted {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 900;
}

.label-template-outline-primary {
    border: 1px solid #bfdbfe;
    color: #2563eb;
    background: #ffffff;
}

.label-template-outline-muted {
    border: 1px solid #e2e8f0;
    color: #475569;
    background: #ffffff;
}

.label-print-setting-list {
    display: grid;
    gap: 18px;
}

.label-print-setting-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.label-print-setting-row > span {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 900;
}

.label-print-setting-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 850;
}

.label-print-setting-value:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.label-print-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
}

.label-quick-action-list {
    display: grid;
    gap: 14px;
}

.label-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
    text-decoration: none;
    font-weight: 900;
}

.label-quick-action i {
    font-size: 1.1rem;
}

.label-quick-action.is-primary,
.label-quick-action.is-blue {
    color: #2563eb;
    border-color: #bfdbfe;
}

.label-quick-action.is-green {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f7fff9;
}

.label-quick-action.is-muted {
    color: #475569;
    border-color: #e2e8f0;
    background: #ffffff;
}

.label-template-recommend {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #64748b;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(248, 251, 255, 0.96));
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.65;
}

.label-template-recommend i {
    margin-top: 2px;
    color: #2563eb;
}

.label-template-more-section {
    margin-top: 28px;
}

.label-mini-line {
    height: 7px;
    margin-top: 8px;
    border-radius: 999px;
    background: #d8e0ea;
}

.label-mini-line.strong {
    width: 78%;
    background: #10243f;
}

.label-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.label-mini-grid span {
    height: 7px;
    border-radius: 999px;
    background: #d8e0ea;
}

.designer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.designer-grid {
    display: grid;
    grid-template-columns: 280px minmax(360px, 1fr) 300px;
    gap: 1rem;
    align-items: stretch;
}

.designer-panel,
.designer-canvas-wrap {
    border: 1px solid rgba(15, 35, 64, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 35, 64, 0.07);
}

.designer-panel {
    padding: 1rem;
}

.panel-title {
    margin-bottom: 0.75rem;
    color: #10243f;
    font-weight: 800;
}

.tool-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 72px;
    border: 1px dashed #bac7d5;
    border-radius: 14px;
    background: #f8fbfd;
    color: #1f354f;
    font-weight: 700;
}

.tool-button:hover {
    border-color: #1f5f72;
    background: #eef7f9;
}

.field-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.field-chip {
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.32rem 0.62rem;
    color: #334155;
    font-size: 0.78rem;
}

.designer-canvas-wrap {
    overflow: hidden;
}

.designer-ruler {
    padding: 0.8rem 1rem;
    color: #64748b;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(15, 35, 64, 0.08);
    background: #f8fbfd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.designer-ruler-text {
    min-width: 220px;
}

.designer-control-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.designer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.26rem 0.55rem;
    border: 1px solid #d8e3ee;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.designer-toggle input {
    width: 0.9rem;
    height: 0.9rem;
    accent-color: #1f5f72;
}

.designer-snap-select {
    width: 92px;
    min-height: 28px;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.78rem;
}

.designer-align-status {
    min-width: 130px;
    color: #1f5f72;
    font-weight: 800;
    text-align: right;
}

.label-stage {
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 2rem;
    background: radial-gradient(circle at 30% 20%, rgba(230,169,58,0.14), transparent 32%), linear-gradient(90deg, rgba(16,36,63,0.07) 1px, transparent 1px), linear-gradient(rgba(16,36,63,0.07) 1px, transparent 1px), #dbe7ef;
    background-size: auto, 20px 20px, 20px 20px, auto;
}

.label-paper {
    display: grid;
    place-items: center;
    background: #eef5fa;
    border: 1px solid #8ba0b4;
    box-shadow: 0 20px 60px rgba(15, 35, 64, 0.22);
}

.label-content-area {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 35, 64, 0.22);
    overflow: hidden;
}

.label-content-area.grid-visible {
    background-color: #ffffff;
    background-image: linear-gradient(90deg, rgba(31, 95, 114, 0.1) 1px, transparent 1px), linear-gradient(rgba(31, 95, 114, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 169, 58, 0.18) 1px, transparent 1px), linear-gradient(rgba(230, 169, 58, 0.18) 1px, transparent 1px);
    background-size: var(--grid-small) var(--grid-small), var(--grid-small) var(--grid-small), var(--grid-large) var(--grid-large), var(--grid-large) var(--grid-large);
}

.label-design-element,
.print-label-element {
    position: absolute;
    display: flex;
    align-items: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
    color: #050505;
    line-height: 1.15;
    user-select: none;
}

.label-design-element {
    cursor: move;
    outline: 1px dashed rgba(31, 95, 114, 0.25);
    z-index: 2;
}

.label-design-element.selected {
    outline: 2px solid #e6a93a;
    box-shadow: 0 0 0 4px rgba(230, 169, 58, 0.18);
    overflow: visible;
    z-index: 3;
}

.label-design-element.active-selected {
    outline-color: #1f5f72;
    box-shadow: 0 0 0 4px rgba(31, 95, 114, 0.2);
}

.label-resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #1f5f72;
    box-shadow: 0 1px 4px rgba(15, 35, 64, 0.28);
    z-index: 8;
    pointer-events: auto;
}

.label-resize-handle.handle-nw {
    left: -5px;
    top: -5px;
    cursor: nwse-resize;
}

.label-resize-handle.handle-n {
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.label-resize-handle.handle-ne {
    right: -5px;
    top: -5px;
    cursor: nesw-resize;
}

.label-resize-handle.handle-e {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.label-resize-handle.handle-se {
    right: -5px;
    bottom: -5px;
    cursor: nwse-resize;
}

.label-resize-handle.handle-s {
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.label-resize-handle.handle-sw {
    left: -5px;
    bottom: -5px;
    cursor: nesw-resize;
}

.label-resize-handle.handle-w {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.label-align-guide {
    position: absolute;
    pointer-events: none;
    z-index: 4;
    background: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 0 12px rgba(239, 68, 68, 0.22);
}

.label-align-guide.guide-vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.label-align-guide.guide-horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.label-selection-box {
    position: absolute;
    z-index: 7;
    pointer-events: none;
    border: 1px dashed #2563eb;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.label-design-element.type-line > span:not(.label-resize-handle),
.print-label-element.type-line span {
    display: block;
    width: 100%;
    border-top: 0.35mm solid #000;
}

.label-design-element.type-rect,
.print-label-element.type-rect {
    border: 0.35mm solid #000;
}

.barcode39 {
    width: 100%;
    height: 68%;
    display: flex;
    align-items: stretch;
}

.barcode39 .bar {
    background: #000;
}

.barcode39 .gap {
    background: transparent;
}

.barcode-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 1.8mm;
    line-height: 1;
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
}

.property-divider {
    border-top: 1px solid #e5edf3;
    margin: 0.8rem 0;
}

.label-print-body {
    min-height: 100vh;
    background: var(--ams-bg-gradient);
    background-attachment: fixed;
    color: #172033;
}

.label-print-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 28px 34px;
}

.label-print-mobile-header {
    display: none;
}

.label-print-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.label-print-side {
    padding-top: 22px;
}

.label-print-side h1 {
    margin: 6px 0 6px;
    color: #0f172a;
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.label-print-side p {
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.45;
}

.label-print-side-design,
.label-print-design-mobile {
    min-height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 900;
}

.label-print-side-design:hover,
.label-print-design-mobile:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.label-print-main {
    min-width: 0;
}

.label-print-control-card,
.label-print-preview-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.label-print-control-card {
    padding: 10px;
}

.label-print-template-form {
    display: grid;
    grid-template-columns: minmax(170px, 230px) minmax(170px, auto) auto;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 10px;
}

.label-print-template-form .form-select,
.label-print-control-grid .form-select,
.label-print-control-grid .form-control {
    min-height: 40px;
    border-color: #e2e8f0;
    border-radius: 10px;
    color: #334155;
    background-color: #ffffff;
    font-size: 0.88rem;
    font-weight: 750;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.label-print-paper-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.label-print-design-mobile {
    justify-self: end;
}

.label-print-control-grid {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(150px, 0.8fr) minmax(96px, 0.45fr);
    gap: 10px;
    align-items: center;
}

.label-print-copies .input-group-text {
    border-color: #e2e8f0;
    border-radius: 10px 0 0 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.84rem;
    font-weight: 900;
}

.label-print-control-grid .btn {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    padding: 0 13px;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.label-print-main-action {
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.label-print-hint {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(248, 251, 255, 0.96));
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.65;
}

.label-print-hint i {
    margin-top: 2px;
    color: #2563eb;
}

.label-print-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--label-paper-w, 62.5mm), 1fr));
    justify-items: center;
    gap: 12px;
    width: 100%;
    max-width: var(--label-preview-max-w, 100%);
    margin: 0 auto;
    padding: 1.2rem 0 1rem;
}

.print-label-page {
    box-sizing: border-box;
    position: relative;
    justify-self: center;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #eef5fa;
    border: 1px solid #98aabd;
    box-shadow: 0 10px 28px rgba(15, 35, 64, 0.18);
}

.print-label-content {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 2mm;
}

.label-print-empty {
    max-width: 520px;
    margin: 2.2rem auto;
    padding: 3.2rem 2rem;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.label-print-empty i {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #2563eb;
    background: #dbeafe;
    font-size: 2.5rem;
}

body.ams-dark .label-page-shell,
body.ams-dark .label-designer,
body.ams-dark .label-print-body {
    color: #dbe7ff;
}

body.ams-dark .label-page-shell {
    position: relative;
}

body.ams-dark .label-page-shell::before {
    content: "";
    position: fixed;
    inset: 56px 0 auto 0;
    height: 320px;
    background:
        radial-gradient(circle at 14% 10%, rgba(56, 189, 248, 0.18), transparent 24%),
        radial-gradient(circle at 84% 8%, rgba(59, 130, 246, 0.2), transparent 24%),
        radial-gradient(circle at 52% 0%, rgba(255, 255, 255, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(5, 11, 22, 0.5) 0%, rgba(5, 11, 22, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

body.ams-dark .label-template-work-card,
body.ams-dark .label-template-card,
body.ams-dark .label-template-hero-card,
body.ams-dark .label-template-grid,
body.ams-dark .label-template-list-card,
body.ams-dark .label-print-control-card,
body.ams-dark .label-print-preview-card,
body.ams-dark .label-print-empty,
body.ams-dark .designer-panel,
body.ams-dark .designer-canvas-wrap {
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(8, 15, 28, 0.94));
    border-color: rgba(96, 165, 250, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
}

body.ams-dark .label-template-hero-card {
    background:
        radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.24), transparent 26%),
        linear-gradient(135deg, rgba(10, 18, 32, 0.98), rgba(12, 22, 38, 0.94));
}

body.ams-dark .label-template-hero-card::after {
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.2) 1.2px, transparent 1.2px);
    opacity: 0.44;
}

body.ams-dark .label-template-hero-icon {
    color: #7cb3ff;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(37, 99, 235, 0.26));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28), 0 16px 28px rgba(5, 11, 22, 0.28);
}

body.ams-dark .label-template-page-head h1,
body.ams-dark .label-template-hero-text h1,
body.ams-dark .label-template-section-title,
body.ams-dark .label-template-title,
body.ams-dark .label-print-side h1,
body.ams-dark .panel-title {
    color: #f8fbff;
}

body.ams-dark .label-template-page-head p,
body.ams-dark .label-template-hero-text p,
body.ams-dark .label-template-card-meta,
body.ams-dark .label-print-side p,
body.ams-dark .designer-ruler,
body.ams-dark .property-divider {
    color: #8ca0be;
}

body.ams-dark .label-template-size-text {
    color: #7cb3ff;
}

body.ams-dark .label-template-status-pill {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(30, 64, 175, 0.34);
}

body.ams-dark .label-template-list-card {
    border-color: rgba(96, 165, 250, 0.12);
    background:
        radial-gradient(circle at 20% 8%, rgba(59, 130, 246, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 15, 28, 0.95));
}

body.ams-dark .label-template-list-card:hover {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.44);
}

body.ams-dark .label-template-list-card.is-default {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.34), 0 24px 48px rgba(0, 0, 0, 0.42);
}

body.ams-dark .label-template-menu-btn {
    color: #8ca0be;
}

body.ams-dark .label-template-menu-btn:hover {
    color: #dbeafe;
    background: rgba(29, 78, 216, 0.18);
}

body.ams-dark .label-template-card-preview,
body.ams-dark .label-mini-preview {
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.18), transparent 52%), rgba(7, 14, 26, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.1);
}

body.ams-dark .label-template-card-preview .label-mini-preview-img,
body.ams-dark .label-mini-preview-img,
body.ams-dark .label-mini-paper,
body.ams-dark .print-label-page {
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

body.ams-dark .label-template-outline-primary {
    border-color: rgba(96, 165, 250, 0.38);
    color: #dbeafe;
    background: rgba(29, 78, 216, 0.18);
}

body.ams-dark .label-template-outline-primary:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

body.ams-dark .label-template-outline-muted,
body.ams-dark .label-print-side-design,
body.ams-dark .label-print-design-mobile,
body.ams-dark .label-print-paper-badge,
body.ams-dark .label-print-copies .input-group-text,
body.ams-dark .label-print-setting-value,
body.ams-dark .label-quick-action.is-muted,
body.ams-dark .designer-toggle,
body.ams-dark .field-chip {
    border-color: rgba(148, 163, 184, 0.2);
    color: #c6d3e6;
    background: rgba(12, 22, 38, 0.9);
}

body.ams-dark .label-template-outline-muted:hover,
body.ams-dark .label-print-side-design:hover,
body.ams-dark .label-print-design-mobile:hover,
body.ams-dark .label-print-setting-value:hover,
body.ams-dark .label-quick-action.is-muted:hover,
body.ams-dark .designer-toggle:hover,
body.ams-dark .field-chip:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(18, 31, 52, 0.96);
}

body.ams-dark .label-quick-action,
body.ams-dark .label-print-setting-row {
    border-color: rgba(148, 163, 184, 0.14);
}

body.ams-dark .label-quick-action.is-primary,
body.ams-dark .label-quick-action.is-blue {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(29, 78, 216, 0.18);
}

body.ams-dark .label-quick-action.is-green {
    color: #a7f3d0;
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(6, 78, 59, 0.32);
}

body.ams-dark .label-template-recommend,
body.ams-dark .label-print-hint {
    border-color: rgba(96, 165, 250, 0.24);
    color: #c6d3e6;
    background: linear-gradient(135deg, rgba(12, 22, 38, 0.94), rgba(10, 18, 32, 0.92));
}

body.ams-dark .label-template-recommend i,
body.ams-dark .label-print-hint i,
body.ams-dark .designer-align-status,
body.ams-dark .label-print-more-link {
    color: #7cb3ff;
}

body.ams-dark .label-print-template-form .form-select,
body.ams-dark .label-print-control-grid .form-select,
body.ams-dark .label-print-control-grid .form-control,
body.ams-dark .designer-snap-select {
    background: rgba(10, 18, 32, 0.96);
    border-color: rgba(96, 165, 250, 0.16);
    color: #dbe7ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.ams-dark .label-print-template-form .form-select:focus,
body.ams-dark .label-print-control-grid .form-select:focus,
body.ams-dark .label-print-control-grid .form-control:focus,
body.ams-dark .designer-snap-select:focus {
    background: rgba(16, 29, 49, 0.98);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12), 0 12px 24px rgba(0, 0, 0, 0.18);
}

body.ams-dark .label-print-control-grid .form-control::placeholder {
    color: #7f95b6;
}

body.ams-dark .label-print-main-action {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

body.ams-dark #tsplStatus.alert-info {
    color: #dbeafe;
    background: rgba(29, 78, 216, 0.18);
    border-color: rgba(96, 165, 250, 0.24);
}

body.ams-dark .label-print-sheet {
    background:
        radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.1), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(59, 130, 246, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(7, 14, 26, 0.92), rgba(5, 11, 22, 0.94));
}

body.ams-dark .print-label-page {
    border-color: rgba(148, 163, 184, 0.36);
}

.label-print-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.label-print-summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.label-select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.label-select-all-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.label-select-all-text {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.label-print-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 0.88rem;
    font-weight: 900;
}

.label-seq-number {
    position: absolute;
    top: 2px;
    left: 2px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #64748b;
    background: rgba(248, 250, 252, 0.95);
    font-size: 2mm;
    font-weight: 700;
    z-index: 10;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.label-checkbox-wrap {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 10;
}

.label-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

@media print {
    .label-seq-number {
        display: none;
    }

    .label-checkbox-wrap {
        display: none;
    }
}

body.ams-dark .label-print-summary {
    background: rgba(12, 22, 38, 0.4);
    border-radius: 12px;
}

body.ams-dark .label-select-all-text {
    color: #c6d3e6;
}

body.ams-dark .label-print-count-badge {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(29, 78, 216, 0.18);
}

body.ams-dark .label-checkbox {
    accent-color: #60a5fa;
}

body.ams-dark .label-seq-number {
    color: #8ca0be;
    background: rgba(10, 18, 32, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

body.ams-dark .print-label-content {
    background: #ffffff;
}

body.ams-dark .label-print-empty {
    color: #dbe7ff;
}

body.ams-dark .label-print-empty i {
    color: #dbeafe;
    background: rgba(29, 78, 216, 0.24);
}

body.ams-dark .designer-ruler {
    border-bottom-color: rgba(96, 165, 250, 0.12);
    background: rgba(12, 22, 38, 0.88);
}

body.ams-dark .tool-button {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(12, 22, 38, 0.88);
    color: #dbe7ff;
}

body.ams-dark .tool-button:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(18, 31, 52, 0.96);
}

body.ams-dark .label-stage {
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.14), transparent 32%),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        #06111f;
    background-size: auto, 20px 20px, 20px 20px, auto;
}

body.ams-dark .label-paper {
    background: #dbe5ef;
    border-color: #7b8ea5;
}

body.ams-dark .label-content-area {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

body.ams-dark .dropdown-menu {
    background: rgba(9, 18, 33, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 36px rgba(1, 7, 19, 0.62);
}

body.ams-dark .dropdown-item {
    color: #b9cae5;
}

body.ams-dark .dropdown-item:hover {
    background-color: rgba(47, 124, 255, 0.14);
    color: #e8f0ff;
}

@media print {
    html,
    body {
        width: var(--label-paper-w, 62.5mm) !important;
        min-width: 0 !important;
        max-width: var(--label-paper-w, 62.5mm) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body {
        min-width: 0 !important;
    }

    .label-print-toolbar,
    .label-print-mobile-header,
    .label-print-side,
    .label-print-control-card,
    .label-print-hint,
    #tsplStatus {
        display: none !important;
    }

    .label-print-page,
    .label-print-layout,
    .label-print-main,
    .label-print-preview-card {
        display: block !important;
        width: var(--label-paper-w, 62.5mm) !important;
        max-width: var(--label-paper-w, 62.5mm) !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .label-print-sheet {
        display: block !important;
        width: var(--label-paper-w, 62.5mm) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    .print-label-page {
        display: block !important;
        position: relative !important;
        width: var(--label-paper-w, 62.5mm) !important;
        height: var(--label-paper-h, 40mm) !important;
        max-height: var(--label-paper-h, 40mm) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        break-inside: avoid;
        page-break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .print-label-page:not(:last-child) {
        break-after: page !important;
        page-break-after: always !important;
    }

    .print-label-page:last-child {
        break-after: auto !important;
        page-break-after: auto !important;
    }

    .print-label-page:only-child {
        break-after: auto !important;
        page-break-after: auto !important;
    }

    .print-label-content {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 1180px) {
    .designer-grid {
        grid-template-columns: 1fr;
    }

    .designer-topbar,
    .label-hero-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .label-print-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .label-print-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .label-template-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .label-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .label-quick-action-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .label-page-shell {
        max-width: none;
        padding: 0 14px 22px;
    }

    .label-template-mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        margin: 0 -14px 18px;
        border-bottom: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
    }

    .label-template-mobile-back {
        position: absolute;
        left: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        color: #334155;
        text-decoration: none;
        font-size: 1.4rem;
    }

    .label-template-mobile-create {
        position: absolute;
        right: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        color: #0f172a;
        background: transparent;
        font-size: 1.18rem;
    }

    .label-template-mobile-title {
        color: #0f172a;
        font-size: 1.06rem;
        font-weight: 900;
    }

    body.ams-dark .label-template-mobile-header,
    body.ams-dark .label-print-mobile-header {
        border-bottom-color: rgba(96, 165, 250, 0.14);
        background: rgba(5, 11, 22, 0.92);
    }

    body.ams-dark .label-template-mobile-back,
    body.ams-dark .label-template-mobile-create,
    body.ams-dark .label-template-mobile-title,
    body.ams-dark .label-print-mobile-back,
    body.ams-dark .label-print-mobile-title {
        color: #eaf2ff;
    }

    .label-template-hero-card {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 14px;
        padding: 20px;
        border-radius: 16px;
    }

    .label-template-hero-card::after {
        width: 55%;
    }

    .label-template-hero-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    .label-template-hero-text h1 {
        font-size: 1.18rem;
    }

    .label-template-hero-text p {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .label-template-hero-card .label-template-create-btn {
        display: none;
    }

    .label-template-page-head {
        display: none;
    }

    .label-template-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .label-template-list-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 136px;
        gap: 12px 16px;
        min-height: 0;
        padding: 18px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .label-template-list-card:hover {
        transform: none;
    }

    .label-template-card-head {
        grid-column: 1 / 2;
    }

    .label-template-card-menu {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .label-template-title {
        font-size: 1.05rem;
    }

    .label-template-card-preview {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        align-self: center;
        min-height: 92px;
        margin: 24px 0 0;
        border-radius: 12px;
        background: transparent;
    }

    .label-template-card-preview .label-mini-preview-img {
        width: 128px;
        border-radius: 9px;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .label-template-card-meta {
        grid-column: 1 / 2;
        margin-top: 18px;
        font-size: 0.82rem;
    }

    .label-template-card-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 4px;
    }

    .label-template-dashboard {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .label-quick-action-card {
        grid-column: auto;
    }

    .label-template-work-card {
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .label-template-section-title {
        margin-bottom: 18px;
        font-size: 1.05rem;
    }

    .label-current-template-card .label-template-title {
        font-size: 1rem;
    }

    .label-template-size-text {
        font-size: 0.96rem;
    }

    .label-template-status-pill {
        min-height: 26px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .label-mini-preview {
        min-height: 176px;
        margin: 22px 0 20px;
        border-radius: 14px;
    }

    .label-mini-paper {
        width: min(260px, 78%);
        padding: 15px;
        border-radius: 12px;
    }

    .label-mini-preview-img {
        width: min(260px, 78%);
        border-radius: 12px;
    }

    .label-current-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .label-template-outline-primary,
    .label-template-outline-muted {
        min-height: 52px;
        border-radius: 10px;
        font-size: 0.96rem;
    }

    .label-print-setting-card {
        padding-bottom: 18px;
    }

    .label-print-setting-list {
        gap: 0;
    }

    .label-print-setting-row {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 58px;
        gap: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

    .label-print-setting-row:last-child {
        border-bottom: 0;
    }

    .label-print-setting-row > span {
        color: #94a3b8;
        font-size: 0.92rem;
    }

    .label-print-setting-value {
        justify-content: flex-end;
        gap: 8px;
        min-height: 42px;
        padding: 0;
        border: 0;
        color: #64748b;
        background: transparent;
        font-size: 0.94rem;
        text-align: right;
    }

    .label-print-more-link {
        display: none;
    }

    .label-quick-action-list {
        gap: 10px;
    }

    .label-quick-action {
        justify-content: center;
        min-height: 50px;
        border-radius: 10px;
        font-size: 0.96rem;
    }

    .label-quick-action.is-primary {
        color: #ffffff;
        border-color: #2563eb;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
    }

    .label-template-recommend {
        margin-top: 14px;
        padding: 14px;
        border-radius: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .label-template-more-section {
        margin-top: 18px;
    }

    .label-print-body {
        background: #f8fafc;
    }

    .label-print-page {
        padding: 0 14px 22px;
    }

    .label-print-mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        margin: 0 -14px 14px;
        border-bottom: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
    }

    .label-print-mobile-back {
        position: absolute;
        left: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        color: #334155;
        text-decoration: none;
        font-size: 1.4rem;
    }

    .label-print-mobile-title {
        color: #0f172a;
        font-size: 1.03rem;
        font-weight: 900;
    }

    .label-print-layout {
        display: block;
    }

    .label-print-side {
        display: none;
    }

    .label-print-control-card {
        padding: 14px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .label-print-template-form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .label-print-template-form .form-select {
        grid-column: 1 / -1;
    }

    .label-print-paper-badge {
        min-height: 42px;
        font-size: 0.88rem;
    }

    .label-print-design-mobile {
        min-height: 42px;
        padding: 0 14px;
    }

    .label-print-control-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .label-print-template-form .form-select,
    .label-print-control-grid .form-select,
    .label-print-control-grid .form-control {
        min-height: 46px;
        border-radius: 10px;
        font-size: 0.94rem;
    }

    .label-print-copies {
        max-width: none;
    }

    .label-print-copies .input-group-text {
        min-width: 64px;
        justify-content: center;
        font-size: 0.94rem;
    }

    .label-print-control-grid .btn {
        min-height: 48px;
        border-radius: 10px;
        font-size: 0.96rem;
    }

    .label-print-main-action {
        min-height: 50px !important;
        font-size: 1rem !important;
    }

    .label-print-hint {
        margin: 14px 0;
        padding: 14px;
        border-radius: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #tsplStatus {
        margin-bottom: 14px;
    }

    .label-print-preview-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .label-print-sheet {
        padding: 18px 12px;
        overflow-x: auto;
    }

    .print-label-page {
        max-width: 100%;
    }

    .label-print-empty {
        margin: 0;
        padding: 3rem 1.4rem;
        border-radius: 0;
    }
}


