/* --- LOCAL FONT KIT --- */
@font-face { font-family: 'Roboto Condensed'; src: url('../../../media/fonts/Roboto-Cond-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto Condensed'; src: url('../../../media/fonts/Roboto-Cond-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../../media/fonts/Inter_18pt-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../../media/fonts/Inter_18pt-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Helvetica Condensed'; src: url('../../../media/fonts/Helvetica-Cond-Black.ttf'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('../../../media/fonts/BebasNeue-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../../../media/fonts/Montserrat-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../../../media/fonts/Montserrat-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url('../../../media/fonts/Aileron-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url('../../../media/fonts/Aileron-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../../../media/fonts/JetBrainsMono-Bold.ttf'); font-weight: 700; font-display: swap; }

/* SMART LABEL PRO - CORE (CLEANED & STANDARDIZED) */
:root {
    /* --- Brand & Surface Colors --- */
    --primary-color: #64748b;
    --primary-hover: #475569;
    --primary-light: #f8fafc;
    --primary-dark: #0f172a;
    --bg-main: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-alt: #f8fafc;
    --bg-disabled: #e2e8f0;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* --- Text Palette --- */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;

    /* --- Status Palette --- */
    --status-success: rgb(21, 128, 61);
    --status-success-bg: #f0fdf4;
    --status-warning: #f59e0b;
    --status-warning-bg: #fffbeb;
    --status-danger: #ef4444;
    --status-danger-bg: #fee2e2;
    --status-info: #3b82f6;
    --status-info-bg: #eff6ff;

    /* --- Spacing & Radius --- */
    --gutter: 18px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --slim-height: 28px;
    --slim-radius: 10px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.8rem;
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 1.25rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; }
h4 { font-size: 0.85rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border: 2px solid #f1f5f9;
    background-clip: padding-box;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover { background-color: #64748b; }


.block         { display: block !important; }
.flex          { display: flex !important; }
.flex-column   { display: flex !important; flex-direction: column !important; }
.flex-row      { display: flex !important; flex-direction: row !important; }
.flex-wrap     { flex-wrap: wrap !important; }
.flex-1        { flex: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* --- Alignment & Positioning --- */
.align-center       { align-items: center !important; }
.justify-center     { justify-content: center !important; }
.justify-end        { justify-content: flex-end !important; }
.self-start         { align-self: start !important;}
.flex-center        { display: flex !important; align-items: center   !important; justify-content: center        !important; }
.flex-between       { display: flex !important; align-items: center   !important; justify-content: space-between !important; }
.flex-end           { display: flex !important; align-items: center   !important; justify-content: flex-end      !important; }
.flex-center-gap    { display: flex !important; align-items: center   !important; justify-content: center        !important; gap: 18px !important; }
.flex-start-gap     { display: flex !important; align-items: baseline !important; justify-content: flex-start    !important; gap: 18px !important; }
.sticky-top         { position: sticky !important; top: 0 !important; z-index: 10 !important; }
.inset-0            { inset: 0 !important; }
.absolute-top-right { position: absolute !important; top: 12px !important; right: 12px !important; }
.overflow-hidden    { overflow: hidden !important; }
.br-12              { border-radius: 12px !important; }
.br-b-12            { border-bottom-left-radius: 12px !important; border-bottom-right-radius: 12px !important; }
.br-16              { border-radius: 16px !important; }

/* --- Sizing Utilities --- */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.w-fit  { width: fit-content !important; }

/* Standard Widths (Clinical Scale) */
.w-20  { width:  20px !important; min-width:  20px !important; flex-shrink: 0 !important; }
.w-40  { width:  40px !important; min-width:  40px !important; flex-shrink: 0 !important; }
.w-60  { width:  60px !important; min-width:  60px !important; flex-shrink: 0 !important; }
.w-70  { width:  70px !important; min-width:  70px !important; flex-shrink: 0 !important; }
.w-80  { width:  80px !important; min-width:  80px !important; flex-shrink: 0 !important; }
.w-100 { width: 100px !important; min-width: 100px !important; flex-shrink: 0 !important; }
.w-110 { width: 110px !important; min-width: 110px !important; flex-shrink: 0 !important; }
.w-120 { width: 120px !important; min-width: 120px !important; flex-shrink: 0 !important; }
.w-130 { width: 130px !important; min-width: 130px !important; flex-shrink: 0 !important; }
.w-140 { width: 140px !important; min-width: 140px !important; flex-shrink: 0 !important; }
.w-150 { width: 150px !important; min-width: 150px !important; flex-shrink: 0 !important; }
.w-160 { width: 160px !important; min-width: 160px !important; flex-shrink: 0 !important; }
.w-180 { width: 180px !important; min-width: 180px !important; flex-shrink: 0 !important; }
.w-200 { width: 200px !important; min-width: 200px !important; flex-shrink: 0 !important; }
.w-210 { width: 210px !important; min-width: 210px !important; flex-shrink: 0 !important; }
.w-300 { width: 300px !important; min-width: 300px !important; flex-shrink: 0 !important; }
.w-400 { width: 400px !important; min-width: 400px !important; flex-shrink: 0 !important; }
.w-450 { width: 450px !important; min-width: 450px !important; flex-shrink: 0 !important; }
.w-500 { width: 500px !important; min-width: 500px !important; flex-shrink: 0 !important; }
.min-w-0     { min-width:   0   !important; }
.min-w-160   { min-width: 160px !important; }
.max-w-full  { max-width: 100%  !important; }
.h-slim      { height: var(--slim-height) !important; }
.h-18        { height:  18px !important; }
.h-28        { height:  28px !important; }
.h-32        { height:  32px !important; }
.h-100       { height: 100px !important; }
.h-150       { height: 150px !important; }
.max-h-full  { max-height: 100% !important; }
.aspect-sq   { aspect-ratio: 1 / 1 !important; }
.obj-contain { object-fit: contain !important; }

/* --- Spacing (Gaps) --- */
.gap-2    { gap: 9px !important; }
.gap-4    { gap: 9px !important; }
.gap-8    { gap: 9px !important; }
.gap-9    { gap: 9px !important; }
.gap-12   { gap: 18px !important; }
.gap-18   { gap: 18px !important; }
.gap-24   { gap: 27px !important; }
.gap-28   { gap: 27px !important; }
.gap-x-32 { column-gap: 36px !important; }

/* --- Spacing (Margins) --- */
.m-0    { margin:         0   !important; }
.m-t-0  { margin-top:     0   !important; }
.m-b-0  { margin-bottom:  0   !important; }
.m-l-0  { margin-left:    0   !important; }
.m-r-0  { margin-right:   0   !important; }
.m-4    { margin:         9px !important; }
.m-t-4  { margin-top:     9px !important; }
.m-b-4  { margin-bottom:  9px !important; }
.m-r-4  { margin-right:   9px !important; }
.m-8    { margin:         9px !important; }
.m-t-8  { margin-top:     9px !important; }
.m-b-8  { margin-bottom:  9px !important; }
.m-r-8  { margin-right:   9px !important; }
.m-12   { margin:        18px !important; }
.m-t-12 { margin-top:    18px !important; }
.m-b-12 { margin-bottom: 18px !important; }
.m-r-12 { margin-right:  18px !important; }
.m-l-12 { margin-left:   18px !important; }
.m-18   { margin:        18px !important; }
.m-t-18 { margin-top:    18px !important; }
.m-b-18 { margin-bottom: 18px !important; }
.m-r-18 { margin-right:  18px !important; }
.m-l-18 { margin-left:   18px !important; }
.m-l-24 { margin-left:   27px !important; }
.m-b-24 { margin-bottom: 27px !important; }
.m-t-28 { margin-top:    27px !important; }
.m-b-28 { margin-bottom: 27px !important; }
.m-l-32 { margin-left:   36px !important; }
.m-b-32 { margin-bottom: 36px !important; }
.m-l-48 { margin-left:   45px !important; }
.m-l-auto { margin-left: auto !important; }
.m-r-auto { margin-right: auto !important; }
.m-x-4    { margin-left: 9px !important; margin-right: 9px !important; }
.m-x-8    { margin-left: 9px !important; margin-right: 9px !important; }
.m-x-12   { margin-left: 18px !important; margin-right: 18px !important; }
.m-x-18   { margin-left: 18px !important; margin-right: 18px !important; }
.m-y-9    { margin-top: 9px !important; margin-bottom: 9px !important; }
.m-t-9    { margin-top: 9px !important; }
.m-b-9    { margin-bottom: 9px !important; }
.m-y-14   { margin-top: 18px !important; margin-bottom: 18px !important; }
.m-y-18   { margin-top: 18px !important; margin-bottom: 18px !important; }
.m-y-28   { margin-top: 27px !important; margin-bottom: 27px !important; }

/* --- Spacing (Padding) --- */
.p-0 { padding: 0 !important; }
.p-4 { padding: 9px !important; }
.p-8 { padding: 9px !important; }
.p-9 { padding: 9px !important; }
.p-12 { padding: 18px !important; }
.p-18 { padding: 18px !important; }

.p-t-0 { padding-top: 0 !important; }
.p-b-0 { padding-bottom: 0 !important; }
.p-r-0 { padding-right: 0 !important; }
.p-l-0 { padding-left: 0 !important; }
.p-t-9 { padding-top: 9px !important; }
.p-b-9 { padding-bottom: 9px !important; }
.p-t-18 { padding-top: 18px !important; }
.p-b-18 { padding-bottom: 18px !important; }
.p-t-28 { padding-top: 27px !important; }
.p-b-28 { padding-bottom: 27px !important; }

.p-x-4 { padding-left: 9px !important; padding-right: 9px !important; }
.p-x-8 { padding-left: 9px !important; padding-right: 9px !important; }
.p-x-12 { padding-left: 18px !important; padding-right: 18px !important; }
.p-x-18 { padding-left: 18px !important; padding-right: 18px !important; }

.p-y-9 { padding-top: 9px !important; padding-bottom: 9px !important; }
.p-y-12 { padding-top: 18px !important; padding-bottom: 18px !important; }
.p-y-14 { padding-top: 18px !important; padding-bottom: 18px !important; }
.p-y-18 { padding-top: 18px !important; padding-bottom: 18px !important; }
.p-y-28 { padding-top: 27px !important; padding-bottom: 27px !important; }

/* --- Colors & Backgrounds --- */
.bg-white         { background: var(--bg-surface) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.bg-amber-light   { background-color: #fffbeb !important; }
.bg-black-70      { background: rgba(0, 0, 0, 0.7) !important; }
.bg-transparent   { background: transparent !important; }
.color-success    { color: var(--status-success) !important; }
.color-warning    { color: var(--status-warning) !important; }
.color-danger     { color: var(--status-danger) !important; }
.color-info       { color: var(--status-info) !important; }
.border-amber     { border: 2px solid #f59e0b !important; }
.border-t-slate   { border-top: 1.5px solid #cbd5e1 !important; }
.b-none           { border: none !important; }

/* --- Typography --- */
.text-center { text-align: center !important; }
.text-left   { text-align: left !important;   }
.text-right  { text-align: right !important; }
.text-tiny   { font-size: 0.65rem !important; }
.text-2xs    { font-size: 0.6rem !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-main   { color: var(--text-main) !important; }
.font-07     { font-size: 0.7rem !important; }
.font-075    { font-size: 0.75rem !important; }
.font-08     { font-size: 0.8rem !important; }
.font-085    { font-size: 0.85rem !important; }
.font-700    { font-weight: 700 !important; }
.ff-inherit  { font-family: inherit !important; }
.font-plex   { font-family: 'IBM Plex Mono', monospace !important; }
.lh-1-3      { line-height: 1.3 !important; }

/* --- Grid Primitives --- */
.grid-2      { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
.grid-4-cols { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; }
.span-2 { grid-column: span 2 !important; }
.span-3 { grid-column: span 3 !important; }
.span-4 { grid-column: span 4 !important; }
.span-5 { grid-column: span 5 !important; }

/* --- Z-Index Identity Scale --- */
.z-content   { z-index:    10 !important; }
.z-sidebar   { z-index:   100 !important; }
.z-modal     { z-index: 10000 !important; }
.z-modal-mid { z-index: 10050 !important; }
.z-modal-top { z-index: 10100 !important; }
.z-topmost   { z-index: 11000 !important; }

/* --- Interactive & Misc --- */
.cursor-pointer     { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }
.opacity-50         { opacity: 0.5 !important; }
.shadow-tiny        { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important; }
.shadow-none        { box-shadow: none !important; }

/* --- Grid Utilities --- */
.grid-cols-2 { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px 18px !important; }
.grid-cols-3 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 12px 18px !important; }
.grid-cols-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap:  8px 18px !important; }

/* --- Global Visibility Overrides (MUST COME LAST to override grid/flex utilities) --- */
.hidden   { display: none !important; }
.contents { display: contents !important; }
.hidden-mobile { display: flex !important; }
@media (max-width: 1024px) { .hidden-mobile { display: none !important; } }
