:root {
    --navy: #0b1739;
    --navy-soft: #15244b;
    --blue: #3563e9;
    --blue-light: #eef3ff;
    --surface: #f5f7fb;
    --text: #18213d;
    --muted: #6d7690;
    --border: #e4e8f1;
}

* { box-sizing: border-box; }
body {
    color: var(--text);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
}
a { text-decoration: none; }
.app-navbar {
    min-height: 68px;
    background: var(--navy);
    box-shadow: 0 4px 20px rgba(11, 23, 57, .12);
}
.navbar-brand { font-size: 1.25rem; letter-spacing: -.02em; }
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
}
.company-pill {
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 2rem;
    color: #dce5ff;
    font-size: .84rem;
}
.user-menu { color: white; border: 0; display: flex; align-items: center; gap: .55rem; }
.user-menu:hover, .user-menu:focus { color: white; }
.settings-menu {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #dce5ff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
}
.settings-menu:hover, .settings-menu:focus {
    color: white;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
}
.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .55rem;
}
.companies-hero {
    color: white;
    background:
        radial-gradient(circle at 85% 0%, rgba(63, 103, 231, .55), transparent 30%),
        linear-gradient(135deg, var(--navy), #172a60);
}
.companies-hero .eyebrow { color: #9bb5ff; }
.companies-hero p { color: #c8d2ed; max-width: 680px; }
.hero-stat {
    width: 190px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
}
.hero-stat strong { display: block; font-size: 2rem; line-height: 1; }
.hero-stat span { color: #c8d2ed; font-size: .84rem; }
.companies-section { padding-top: 3rem; padding-bottom: 5rem; min-height: 55vh; }
.company-card {
    display: flex;
    gap: 1.25rem;
    height: 100%;
    padding: 1.5rem;
    color: inherit;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(23, 37, 84, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.company-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: #b9c9fa;
    box-shadow: 0 18px 40px rgba(23, 37, 84, .11);
}
.company-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 1.5rem;
    font-weight: 800;
}
.company-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-info { min-width: 0; }
.company-info h2 { font-size: 1.15rem; margin: .5rem 0 .15rem; }
.company-info p { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { color: #229b62; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #2cc879; }
.open-dashboard { color: var(--blue); font-size: .82rem; font-weight: 700; }
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-state > i { font-size: 3rem; color: #a7b0c6; }
.empty-state h2 { margin-top: 1rem; }
.empty-state p { color: var(--muted); }
.settings-heading { background: white; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.settings-heading h1 { font-size: 2rem; letter-spacing: -.035em; }
.settings-heading .breadcrumb a { color: var(--blue); }
.settings-stat, .settings-card, .company-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 37, 84, .04);
}
.settings-stat { padding: 1.2rem 1.35rem; }
.settings-stat span { display: block; color: var(--muted); font-size: .75rem; }
.settings-stat strong { display: block; margin-top: .25rem; font-size: 1.8rem; }
.settings-card { overflow: hidden; }
.settings-card th { padding: 1rem 1.25rem; color: var(--muted); background: #fafbfe; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.settings-card td { padding: 1rem 1.25rem; border-color: var(--border); }
.company-table-logo {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 10px;
    font-weight: 800;
}
.company-table-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-form-card { max-width: 900px; padding: 1.75rem; }
.company-form-card .form-label { color: #4f5870; font-size: .8rem; font-weight: 700; }
.company-form-card .form-control { min-height: 48px; border-color: #dfe4ed; }
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.parameter-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    min-height: 178px;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 37, 84, .04);
}
.parameter-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 12px;
    font-size: 1.2rem;
}
.parameter-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.parameter-title-row h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}
.parameter-title-row span {
    flex: 0 0 auto;
    padding: .25rem .55rem;
    color: #536078;
    background: #f2f5fa;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}
.parameter-card p {
    margin: .55rem 0 1rem;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}
.parameter-card .btn {
    grid-column: 2;
    justify-self: start;
}
.parameter-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.page-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}
.spreadsheet-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.spreadsheet-actions form { margin: 0; }
.parameter-section-heading h2 {
    margin: .25rem 0;
    font-size: 1.35rem;
}
.parameter-section-heading p { margin: 0; color: var(--muted); }
.omie-settings-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 37, 84, .04);
}
.omie-settings-card .form-label {
    color: #4f5870;
    font-size: .8rem;
    font-weight: 700;
}
.omie-settings-card { scroll-margin-top: 1rem; }
.omie-settings-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.omie-settings-header h2 { margin: 0; font-size: 1.15rem; }
.omie-settings-header p { color: var(--muted); font-size: .85rem; }
.integration-status {
    padding: .25rem .55rem;
    color: #536078;
    background: #f2f5fa;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}
.integration-status.is-active { color: #18784b; background: #e8f8f0; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.omie-sync-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.omie-sync-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.omie-sync-heading h3 { margin: .2rem 0; font-size: 1.05rem; }
.omie-sync-heading p { margin: 0; color: var(--muted); font-size: .84rem; }
.omie-sync-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}
.omie-sync-totals > div {
    padding: .85rem 1rem;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.omie-sync-totals span { display: block; color: var(--muted); font-size: .72rem; }
.omie-sync-totals strong { display: block; margin-top: .2rem; font-size: 1.35rem; }
.omie-sync-progress {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f7f9fc;
    border-radius: 12px;
    color: #4f5870;
    font-size: .82rem;
}
.omie-sync-progress .progress { height: 10px; background: #e5eaf3; }
.omie-sync-progress small { display: block; margin-top: .55rem; color: var(--muted); }
.dre-workspace {
    display: block;
    gap: 1.25rem;
    align-items: start;
    padding-bottom: 4rem;
}
.dre-builder-panel,
.dre-categories-panel {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(23, 37, 84, .05);
}
.dre-categories-panel { position: sticky; top: 1rem; }
.dre-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.dre-panel-heading h2 { margin: .2rem 0; font-size: 1.25rem; }
.dre-panel-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.dre-heading-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.dre-counter {
    flex: 0 0 auto;
    padding: .35rem .7rem;
    color: #526079;
    background: #f3f6fb;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.dre-account-form {
    margin-top: 1.3rem;
    padding: 1.15rem;
    background: linear-gradient(145deg, #f8faff, #f3f6fc);
    border: 1px solid #dfe6f2;
    border-radius: 15px;
}
.dre-form-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}
.dre-form-title strong,
.dre-form-title small { display: block; }
.dre-form-title small { color: var(--muted); font-size: .72rem; }
.dre-form-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: var(--blue);
    border-radius: 9px;
}
.dre-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(145px, 1fr));
    gap: .85rem;
    align-items: start;
}
.dre-field label {
    display: block;
    margin-bottom: .35rem;
    color: #4d5871;
    font-size: .72rem;
    font-weight: 700;
}
.dre-field .form-control,
.dre-field .form-select {
    min-height: 42px;
    border-color: #d9e0ec;
    font-size: .82rem;
}
.dre-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1rem;
}
.dre-tree-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.6rem 0 .8rem;
}
.dre-tree-heading h3 { margin: 0 0 .2rem; font-size: 1rem; }
.dre-tree-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.dre-save-status { color: #20845b; font-size: .72rem; font-weight: 700; }
.dre-save-status.is-error { color: #c63e4f; }
.dre-tree-list { display: grid; gap: .8rem; min-height: 80px; }
.dre-tree-group {
    overflow: hidden;
    background: #f8fafd;
    border: 1px solid #dce3ef;
    border-radius: 14px;
    transition: opacity .15s, border-color .15s, box-shadow .15s;
}
.dre-tree-group:hover {
    border-color: #c7d5f3;
    box-shadow: 0 8px 24px rgba(42, 70, 145, .07);
}
.dre-tree-row,
.dre-tree-child {
    display: grid;
    grid-template-columns: auto auto minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: .65rem;
}
.dre-tree-row { padding: .9rem 1rem; background: white; }
.dre-children {
    display: grid;
    gap: .55rem;
    min-height: 18px;
    margin: 0 1rem 1rem 2.35rem;
    padding-left: 1rem;
    border-left: 2px solid #d9e3f7;
}
.dre-tree-child {
    padding: .75rem .8rem;
    background: white;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
}
.dre-drag-handle {
    color: #9ca7bc;
    cursor: grab;
    font-size: 1.05rem;
}
.dre-drag-handle:active { cursor: grabbing; }
.dre-sign {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 900;
}
.dre-sign-\+ { color: #176f4a; background: #e8f8f0; }
.dre-sign-- { color: #b13e4c; background: #fff0f2; }
.dre-sign-\= { color: #315ec7; background: #edf2ff; }
.dre-account-name { min-width: 0; }
.dre-account-name strong {
    display: block;
    overflow: hidden;
    color: #26314b;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dre-account-name small { display: block; color: var(--muted); font-size: .66rem; }
.dre-level {
    padding: .25rem .5rem;
    color: #6e7890;
    background: #f2f4f8;
    border-radius: 999px;
    font-size: .63rem;
    font-weight: 700;
}
.dre-row-actions { display: flex; align-items: center; gap: .35rem; }
.dre-row-actions form { margin: 0; }
.dre-row-actions .btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
.dre-child-empty {
    padding: .65rem;
    color: #9aa3b6;
    font-size: .7rem;
    text-align: center;
    border: 1px dashed #d8deea;
    border-radius: 9px;
}
.dre-tree-group.is-dragging,
.dre-tree-child.is-dragging { opacity: .45; border-color: var(--blue); }
.dre-empty-state,
.dre-categories-placeholder {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--muted);
    background: #f8fafd;
    border: 1px dashed #d7deeb;
    border-radius: 14px;
    text-align: center;
}
.dre-empty-state > span,
.dre-categories-placeholder > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: .8rem;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 15px;
    font-size: 1.4rem;
}
.dre-empty-state strong,
.dre-categories-placeholder strong { color: #3f4a63; }
.dre-empty-state p,
.dre-categories-placeholder p { max-width: 280px; margin: .4rem 0 0; font-size: .75rem; }
.dre-categories-placeholder { margin-top: 1.3rem; min-height: 340px; }
.category-mapping-form { padding-bottom: 5rem; }
.category-mapping-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(23, 37, 84, .05);
}
.category-mapping-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.category-mapping-header h2 { margin: .2rem 0; font-size: 1.25rem; }
.category-mapping-header p { margin: 0; color: var(--muted); font-size: .82rem; }
.category-header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.category-legend { display: flex; gap: 1rem; color: var(--muted); font-size: .75rem; }
.category-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.category-legend i { width: 9px; height: 9px; border-radius: 50%; }
.category-legend .is-revenue i { background: #2563c9; }
.category-legend .is-expense i { background: #d34a5d; }
.category-mapping-columns,
.category-mapping-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    gap: 1.25rem;
    align-items: center;
}
.category-mapping-columns {
    padding: .65rem 1.5rem;
    background: #f7f9fc;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.category-mapping-row {
    position: relative;
    min-height: 66px;
    padding: .75rem 1.5rem .75rem 1.7rem;
    border-bottom: 1px solid #edf0f5;
}
.category-mapping-row:last-child { border-bottom: 0; }
.category-mapping-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}
.category-mapping-row.is-revenue::before { background: #2563c9; }
.category-mapping-row.is-expense::before { background: #d34a5d; }
.category-identity { display: flex; align-items: baseline; gap: .8rem; min-width: 0; }
.category-code {
    flex: 0 0 76px;
    color: #526079;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}
.category-description { color: #3f4a63; font-size: .86rem; }
.category-mapping-row.is-revenue .category-code,
.category-mapping-row.is-revenue .category-description { color: #225eb8; }
.category-mapping-row.is-expense .category-code,
.category-mapping-row.is-expense .category-description { color: #b63f50; }
.category-mapping-row.is-parent { background: #fafbfe; }
.category-mapping-row.is-parent .category-code,
.category-mapping-row.is-parent .category-description { font-weight: 800; }
.category-dre-field .form-select { min-height: 40px; font-size: .8rem; }
.category-parent-label {
    display: inline-flex;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: #eef1f6;
    color: #667086;
    font-size: .68rem;
    font-weight: 700;
}
.category-no-link { color: #a7afbf; }
.category-mapping-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}
.category-empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}
.category-empty-state i { font-size: 2rem; }
.category-empty-state strong { margin-top: .75rem; color: #3f4a63; }
.category-empty-state p { margin: .35rem 0 0; font-size: .8rem; }
.sales-goals-form { padding-bottom: 5rem; }
.sales-goals-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(23, 37, 84, .06);
}
.sales-goals-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border-bottom: 1px solid var(--border);
}
.sales-goals-header h2 { margin: .2rem 0; font-size: 1.25rem; }
.sales-goals-header p { max-width: 620px; margin: 0; color: var(--muted); font-size: .82rem; }
.sales-goals-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.35rem;
    color: #285d3c;
    background: #eef9f1;
    border-bottom: 1px solid #cfe9d7;
}
.sales-goals-summary span {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.sales-goals-summary strong { font-size: 1.05rem; }
.sales-goals-columns,
.sales-goals-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) 190px;
    gap: 1rem;
    align-items: center;
}
.sales-goals-columns {
    padding: .75rem 1.35rem;
    color: #667085;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.sales-goals-row {
    padding: .85rem 1.35rem;
    border-bottom: 1px solid #edf0f6;
}
.sales-goals-row:last-child { border-bottom: 0; }
.sales-goals-seller strong {
    display: block;
    color: #1f2a44;
    font-size: .9rem;
}
.sales-goals-seller small,
.sales-goals-email {
    color: var(--muted);
    font-size: .76rem;
}
.sales-goals-value {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #64748b;
    font-size: .8rem;
    font-weight: 800;
}
.sales-goals-value .form-control {
    min-height: 40px;
    text-align: right;
    font-size: .86rem;
}
.sales-goals-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: 1rem 1.35rem;
    background: #fbfcff;
    border-top: 1px solid var(--border);
}
.sales-goals-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}
.sales-goals-empty i { font-size: 2rem; }
.sales-goals-empty strong { margin-top: .75rem; color: #3f4a63; }
.sales-goals-empty p { margin: .35rem 0 0; font-size: .8rem; }
.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: #8790a8;
    background: white;
    border-top: 1px solid var(--border);
    font-size: .75rem;
}
.btn-primary { background-color: var(--blue); border-color: var(--blue); }
.btn-white { background: white; border: 1px solid var(--border); }

@media (max-width: 767.98px) {
    .app-footer { flex-direction: column; gap: .25rem; text-align: center; }
    .parameter-card { grid-template-columns: 1fr; }
    .parameter-card .btn { grid-column: 1; }
    .page-heading-actions { width: 100%; align-items: stretch; }
    .spreadsheet-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .spreadsheet-actions .btn { width: 100%; }
    .omie-sync-heading { align-items: stretch; flex-direction: column; }
    .omie-sync-totals { grid-template-columns: 1fr; }
    .dre-workspace { grid-template-columns: 1fr; }
    .dre-categories-panel { position: static; }
    .dre-panel-heading,
    .dre-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .dre-form-grid { grid-template-columns: 1fr; }
    .dre-tree-row,
    .dre-tree-child { grid-template-columns: auto auto minmax(100px, 1fr) auto; }
    .dre-level { display: none; }
    .dre-children { margin-left: 1.2rem; }
    .category-mapping-header { display: grid; }
    .category-header-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .category-header-actions .btn { width: 100%; }
    .category-mapping-columns { display: none; }
    .category-mapping-row { grid-template-columns: 1fr; gap: .65rem; }
    .category-identity { align-items: flex-start; }
    .category-code { flex-basis: 68px; }
    .sales-goals-header,
    .sales-goals-actions {
        display: grid;
    }
    .sales-goals-header .btn,
    .sales-goals-actions .btn {
        width: 100%;
    }
    .sales-goals-columns { display: none; }
    .sales-goals-row { grid-template-columns: 1fr; gap: .65rem; }
    .sales-goals-value { align-items: stretch; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .dre-workspace { grid-template-columns: 1fr; }
    .dre-categories-panel { position: static; }
    .dre-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
