:root {
    --crm-bg: #edf2f7;
    --crm-surface: #ffffff;
    --crm-surface-alt: #f8f4ee;
    --crm-border: #d8e0eb;
    --crm-text: #16283b;
    --crm-muted: #66768a;
    --crm-accent: #b98546;
    --crm-accent-dark: #7a4c1f;
    --crm-accent-soft: #f8ecde;
    --crm-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --header-height: 68px;
    --sidebar-width: 252px;
    --sidebar-mini-width: 72px;
    --crm-page-max-width: 1680px;
    --crm-space-1: 4px;
    --crm-space-2: 8px;
    --crm-space-3: 12px;
    --crm-space-4: 16px;
    --crm-space-5: 20px;
    --crm-radius-sm: 10px;
    --crm-radius-md: 14px;
    --crm-radius-lg: 18px;
}

body.fix-header.fix-sidebar {
    background:
        radial-gradient(circle at top left, rgba(185, 133, 70, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(28, 54, 79, 0.06), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    color: var(--crm-text);
}

body,
input,
button,
select,
textarea {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-size: 13px;
    line-height: 1.45;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.row,
[class*="col-"] {
    min-width: 0;
}

.text-break-mobile {
    overflow-wrap: anywhere;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

p,
.text-muted,
small,
.small {
    line-height: 1.45;
}

.u-bg-page {
    background: #f5f7fb !important;
}

.u-fs-16 {
    font-size: 16px !important;
}

.u-lh-14 {
    line-height: 1.4 !important;
}

.u-mt-8 {
    margin-top: 8px !important;
}

.u-mt-14 {
    margin-top: 14px !important;
}

.u-fw-700 {
    font-weight: 700 !important;
}

.u-text-muted {
    color: var(--crm-muted) !important;
}

.u-gap-10 {
    gap: 10px !important;
}

.u-grid-span-2 {
    grid-column: span 2;
}

@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    body {
        font-size: 12.5px;
    }

    .container,
    .container-fluid {
        max-width: 100%;
    }
}
