/* ==============================================================================
   CRM-GREU — Base & Layout
   Reset, typography, layout structure, responsive breakpoints
   ============================================================================== */

/* --- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Scrollbar --------------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

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

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color .15s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-accent);
    border-width: 1px;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

/* --- Layout ---------------------------------------------------------------- */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
}

/* --- Page Header ----------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.page-header .count {
    font-size: 12px;
    color: var(--color-muted);
    background: var(--color-bg);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* --- mapbox --- */

.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact.maplibregl-compact-show {
    display: none;
}

/* --- Responsive: ver apps/shared/css/responsive.css ------------------------- */
