@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Condensed:wght@400;700;900&family=JetBrains+Mono:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Oswald:wght@200..700&display=swap');

/* 
   ==========================================================================
   SMART LABEL PRO - CORE (CLEANED & STANDARDIZED)
   ========================================================================== */

:root {
    /* Colors & Themes */
    --primary-color: #64748b;
    --primary-light: #f8fafc;
    --bg-color: #f1f5f9;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --bg-disabled: #e2e8f0;

    /* Clinical Status Palette */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;

    /* Spacing Tokens */
    --card-padding-x: 18px;
    --card-padding-y: 18px;
    --page-margin: 15px;
    --slim-height: 26px;
    --slim-radius: 10px;
    --badge-radius: 10px;

    /* Clinical Shadows */
    --glass-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px 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-color);
    color: var(--text-muted);
    line-height: 1.25;
    font-size: 0.8rem;
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- 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;
}

/* --- Display & Visibility --- */
.hidden {
    display: none !important;
}

.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;
}

.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-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;
}

/* --- Sizing Utilities --- */
.w-full,
.input-full {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.w-max-content {
    width: max-content !important;
}

.w-50 {
    width: 50px !important;
}

.w-60 {
    width: 60px !important;
}

.w-70 {
    width: 70px !important;
}

.w-85 {
    width: 85px !important;
}

.w-90 {
    width: 90px !important;
}

.w-100 {
    width: 100px !important;
}

.w-105 {
    width: 105px !important;
}

.w-110 {
    width: 110px !important;
}

.w-120 {
    width: 120px !important;
}

.w-160 {
    width: 160px !important;
}

.w-180 {
    width: 180px !important;
}

.w-200 {
    width: 200px !important;
}

.w-350 {
    width: 350px !important;
}

.w-450 {
    width: 450px !important;
}

.w-850 {
    width: 850px !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: 2px !important;
}

.gap-4 {
    gap: 4px !important;
}

.gap-8 {
    gap: 8px !important;
}

.gap-9 {
    gap: 9px !important;
}

.gap-12 {
    gap: 12px !important;
}

.gap-18 {
    gap: 18px !important;
}

.gap-24 {
    gap: 24px !important;
}

.gap-x-32 {
    column-gap: 32px !important;
}

/* --- Spacing (Margins) --- */
.m-b-0 {
    margin-bottom: 0px !important;
}

.m-b-4 {
    margin-bottom: 4px !important;
}

.m-b-8 {
    margin-bottom: 8px !important;
}

.m-b-12 {
    margin-bottom: 12px !important;
}

.m-b-18 {
    margin-bottom: 18px !important;
}

.m-b-24 {
    margin-bottom: 24px !important;
}

.m-b-32 {
    margin-bottom: 32px !important;
}

.m-t-0 {
    margin-top: 0px !important;
}

.m-t-4 {
    margin-top: 4px !important;
}

.m-t-8 {
    margin-top: 8px !important;
}

.m-t-9 {
    margin-top: 9px !important;
}

.m-t-12 {
    margin-top: 12px !important;
}

.m-t-18 {
    margin-top: 18px !important;
}

.m-r-4 {
    margin-right: 4px !important;
}

.m-r-8 {
    margin-right: 8px !important;
}

.m-r-12 {
    margin-right: 12px !important;
}

.m-r-18 {
    margin-right: 18px !important;
}

.m-l-18 {
    margin-left: 18px !important;
}

.m-l-24 {
    margin-left: 24px !important;
}

.m-l-32 {
    margin-left: 32px !important;
}

.m-l-48 {
    margin-left: 48px !important;
}

.m-l-auto {
    margin-left: auto !important;
}

.m-y-15 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.m-y-20 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.m-x-4 {
    margin-left: 4px !important;
    margin-right: 4px !important;
}

.m-x-8 {
    margin-left: 8px !important;
    margin-right: 8px !important;
}

.m-x-12 {
    margin-left: 12px !important;
    margin-right: 12px !important;
}

/* --- Spacing (Padding) --- */
.p-0 {
    padding: 0 !important;
}

.p-20 {
    padding: 20px !important;
}

.p-30 {
    padding: 30px !important;
}

.p-b-0 {
    padding-bottom: 0px !important;
}

.p-x-4 {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.p-x-8 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.p-x-12 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.p-x-18 {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.p-y-6 {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.p-y-9 {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

.p-y-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.p-y-12 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.p-y-15 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.p-y-18 {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* --- Colors & Backgrounds --- */
.bg-white {
    background: var(--white) !important;
}

.bg-primary-light {
    background: var(--primary-light) !important;
}

.bg-muted-light {
    background: #f8fafc !important;
}

.bg-amber-light {
    background-color: #fffbeb !important;
}

.bg-black-70 {
    background: rgba(0, 0, 0, 0.7) !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;
}

.br-12 {
    border-radius: 12px !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-bold-800 {
    font-weight: 800 !important;
}

.text-uppercase {
    text-transform: uppercase !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;
}

.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-top {
    z-index: 10100 !important;
}

.z-topmost {
    z-index: 11000 !important;
}

/* --- Metric Component --- */
/* --- 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;
}

.divider-v-light {
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* --- Spacing Utilities --- */
.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-9 { margin: 9px !important; }
.m-t-9 { margin-top: 9px !important; }
.m-b-9 { margin-bottom: 9px !important; }

.m-18 { margin: 18px !important; }
.m-t-18 { margin-top: 18px !important; }
.m-b-18 { margin-bottom: 18px !important; }

.p-0 { padding: 0 !important; }
.p-y-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.p-x-0 { padding-left: 0 !important; padding-right: 0 !important; }

.p-9 { padding: 9px !important; }
.p-y-9 { padding-top: 9px !important; padding-bottom: 9px !important; }
.p-x-9 { padding-left: 9px !important; padding-right: 9px !important; }

.p-18 { padding: 18px !important; }
.p-y-18 { padding-top: 18px !important; padding-bottom: 18px !important; }
.p-x-18 { padding-left: 18px !important; padding-right: 18px !important; }