/* AKDORAT launch UI — shared shell and dense enterprise workspace contract. */

:root[data-dorat-theme="dark"] {
    --launch-bg: #071015;
    --launch-rail: #070d11;
    --launch-bar: #0a1217;
    --launch-panel: #0c151a;
    --launch-panel-soft: #101a20;
    --launch-panel-strong: #131f26;
    --launch-line: #253137;
    --launch-line-strong: #39474e;
    --launch-heading: #f4f1ec;
    --launch-text: #d6d5d1;
    --launch-muted: #8f9ba2;
    --launch-faint: #66747b;
    --launch-accent: #df7c49;
    --launch-accent-strong: #f08b55;
    --launch-accent-soft: rgba(223, 124, 73, .12);
    --launch-blue: #4f8cff;
    --launch-blue-soft: rgba(79, 140, 255, .12);
    --launch-positive: #52b978;
    --launch-positive-soft: rgba(82, 185, 120, .12);
    --launch-warning: #e0a43b;
    --launch-warning-soft: rgba(224, 164, 59, .12);
    --launch-danger: #e25f5b;
    --launch-danger-soft: rgba(226, 95, 91, .12);
    --launch-shadow: rgba(0, 0, 0, .24);
}

:root[data-dorat-theme="light"] {
    --launch-bg: #f7f9fc;
    --launch-rail: #062b5b;
    --launch-bar: rgba(255, 255, 255, .96);
    --launch-panel: #ffffff;
    --launch-panel-soft: #f8fafd;
    --launch-panel-strong: #eef4ff;
    --launch-line: #d8e0ea;
    --launch-line-strong: #acbad0;
    --launch-heading: #08275b;
    --launch-text: #203d6b;
    --launch-muted: #64748b;
    --launch-faint: #8795aa;
    --launch-accent: #1459ed;
    --launch-accent-strong: #0d47c7;
    --launch-accent-soft: rgba(20, 89, 237, .08);
    --launch-blue: #1459ed;
    --launch-blue-soft: rgba(20, 89, 237, .08);
    --launch-positive: #15945f;
    --launch-positive-soft: rgba(21, 148, 95, .09);
    --launch-warning: #d58a10;
    --launch-warning-soft: rgba(213, 138, 16, .09);
    --launch-danger: #d94343;
    --launch-danger-soft: rgba(217, 67, 67, .09);
    --launch-shadow: rgba(24, 45, 82, .08);
}

html[data-dorat-theme] {
    background: var(--launch-bg);
    scrollbar-color: var(--launch-line-strong) var(--launch-bg);
}

html[data-dorat-theme] body {
    min-width: 320px;
    color: var(--launch-text);
    background: var(--launch-bg) !important;
    background-image: none !important;
}

body.launch-theme-transition,
body.launch-theme-transition :is(.sidebar, .launch-global-bar, .content-section, .glass-panel, .erp-section, .modal-content) {
    transition: background-color .22s ease, border-color .22s ease, color .22s ease !important;
}

/* --------------------------------------------------------------------------
   Shared 64 px module rail
   -------------------------------------------------------------------------- */

body[data-launch-ui="ready"] { --sidebar-width: 64px; }

body[data-launch-ui="ready"] .sidebar {
    width: 64px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-right: 1px solid var(--launch-line) !important;
    border-radius: 0 !important;
    background: var(--launch-rail) !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none;
}

body[data-launch-ui="ready"] .sidebar.collapsed { transform: translateX(-100%); }
body[data-launch-ui="ready"] .sidebar .language-switcher { display: none; }

body[data-launch-ui="ready"] .sidebar .logo {
    position: relative;
    top: auto;
    display: grid;
    width: 100%;
    min-height: 53px;
    margin: 0 !important;
    padding: 0 5px !important;
    place-items: center;
    border-bottom: 1px solid var(--launch-line) !important;
    background: var(--launch-rail) !important;
}

body[data-launch-ui="ready"] .sidebar .logo h2 {
    width: 100%;
    overflow: hidden;
    color: var(--launch-heading) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: .72rem !important;
    font-weight: 850;
    letter-spacing: .01em !important;
    text-align: center;
    text-overflow: clip;
}

body[data-launch-ui="ready"] .sidebar-brand-button {
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    color: var(--launch-heading);
    background: transparent;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

body[data-launch-ui="ready"] .sidebar-brand-button span { color: inherit !important; }

body[data-launch-ui="ready"] .sidebar .close-sidebar { display: none !important; }

body[data-launch-ui="ready"] .sidebar-expand-button {
    display: flex;
    width: 52px;
    min-height: 42px;
    margin: 1px 6px 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--launch-muted);
    background: transparent;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}

body[data-launch-ui="ready"] .sidebar-expand-button:hover,
body[data-launch-ui="ready"] .sidebar-expand-button:focus-visible {
    border-color: var(--launch-line);
    color: var(--launch-heading);
    background: var(--launch-panel-soft);
}

body[data-launch-ui="ready"] .sidebar-expand-button i {
    width: 18px;
    flex: 0 0 18px;
    color: var(--launch-accent);
    font-size: 1.05rem;
    text-align: center;
}

body[data-launch-ui="ready"] .sidebar-expand-button span { display: none; }

body[data-launch-ui="ready"] .sidebar nav {
    gap: 2px !important;
    padding: 8px 6px !important;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
}

body[data-launch-ui="ready"] .sidebar nav::-webkit-scrollbar { display: none; }

body[data-launch-ui="ready"] .sidebar .nav-item {
    position: relative;
    width: 52px;
    min-height: 48px;
    padding: 0 !important;
    justify-content: center;
    gap: 0 !important;
    overflow: visible;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: var(--launch-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    transform: none !important;
}

body[data-launch-ui="ready"] .sidebar .nav-item i {
    width: auto !important;
    color: currentColor !important;
    font-size: 1rem !important;
}

body[data-launch-ui="ready"] .sidebar .nav-item:hover {
    border-color: var(--launch-line) !important;
    color: var(--launch-heading) !important;
    background: var(--launch-panel-soft) !important;
}

body[data-launch-ui="ready"] .sidebar .nav-item.active {
    border-color: color-mix(in srgb, var(--launch-accent) 45%, var(--launch-line)) !important;
    color: var(--launch-accent) !important;
    background: var(--launch-accent-soft) !important;
    box-shadow: inset 2px 0 var(--launch-accent) !important;
}

body[data-launch-ui="ready"] .sidebar .nav-item::after {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: calc(100% + 10px);
    max-width: 220px;
    padding: 7px 9px;
    border: 1px solid var(--launch-line-strong);
    border-radius: 4px;
    color: var(--launch-heading);
    background: var(--launch-panel-strong);
    box-shadow: 0 8px 24px var(--launch-shadow);
    content: attr(data-launch-label);
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-5px, -50%);
    transition: opacity .14s ease, transform .14s ease;
    white-space: nowrap;
}

body[data-launch-ui="ready"] .sidebar .nav-item:hover::after,
body[data-launch-ui="ready"] .sidebar .nav-item:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

body[data-launch-ui="ready"] .sidebar nav > div {
    width: 40px !important;
    min-height: 1px !important;
    height: 1px !important;
    flex: 0 0 1px !important;
    margin: 4px 6px !important;
    background: var(--launch-line) !important;
}

:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar {
    border-right-color: #194676 !important;
    color: #dbeafe !important;
}
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar .logo {
    border-bottom-color: #194676 !important;
    background: var(--launch-rail) !important;
}
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar .logo h2 { color: #ffffff !important; }
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar .nav-item { color: #aebfd5 !important; }
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar .nav-item:hover {
    border-color: #28578a !important;
    color: #ffffff !important;
    background: #0d396f !important;
}
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar .nav-item.active {
    border-color: #2e72dc !important;
    color: #ffffff !important;
    background: #104489 !important;
    box-shadow: inset 2px 0 #4f8cff !important;
}
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar nav > div { background: #28578a !important; }
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar-theme-toggle { color: #c8d8eb !important; }
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar-expand-button { color: #aebfd5; }
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar-expand-button:hover,
:root[data-dorat-theme="light"] body[data-launch-ui="ready"] .sidebar-expand-button:focus-visible {
    border-color: #28578a;
    color: #ffffff;
    background: #0d396f;
}

body[data-launch-ui="ready"] .sidebar-theme-control { padding: 5px 6px 8px !important; }
body[data-launch-ui="ready"] .sidebar-theme-toggle {
    width: 52px;
    min-height: 42px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 4px !important;
    color: var(--launch-muted) !important;
    background: transparent !important;
}
body[data-launch-ui="ready"] .sidebar-theme-toggle span { display: none; }
body[data-launch-ui="ready"] .sidebar-theme-toggle i { color: var(--launch-accent) !important; }

@media (min-width: 1025px) {
    body[data-launch-ui="ready"] :is(.sidebar, .main-content, .launch-global-bar) {
        transition: width .22s ease, margin-left .22s ease, left .22s ease;
    }

    body.launch-sidebar-expanded[data-launch-ui="ready"] { --sidebar-width: 190px; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar { width: 190px !important; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .main-content { margin-left: 190px !important; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .main-content.expanded { margin-left: 0 !important; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .launch-global-bar { left: 190px; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .main-content.expanded .launch-global-bar { left: 0; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar .logo {
        display: flex;
        padding: 0 14px !important;
        justify-content: flex-start;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar .logo h2 {
        width: auto;
        font-size: 1.05rem !important;
        text-align: left;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar-brand-button {
        width: auto;
        font-size: 1rem;
        letter-spacing: .14em;
        text-align: left;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar-expand-button {
        width: calc(100% - 12px);
        padding: 0 12px;
        justify-content: flex-start;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar-expand-button span { display: inline; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar nav { padding: 8px !important; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar .nav-item {
        width: 100%;
        padding: 0 12px !important;
        justify-content: flex-start;
        gap: 10px !important;
        font-size: .76rem !important;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar .nav-item i {
        width: 18px !important;
        flex: 0 0 18px;
        text-align: center;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar .nav-item::after { display: none; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .workshop-sidebar-nav button {
        width: 100%;
        padding: 0 14px;
        justify-content: flex-start;
        gap: 12px;
        font-size: .75rem;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .workshop-sidebar-nav button::after { display: none; }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar nav > div {
        width: calc(100% - 12px) !important;
        margin-inline: 6px !important;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar-theme-toggle {
        width: 100%;
        padding: 0 12px !important;
        justify-content: flex-start;
        gap: 10px;
    }
    body.launch-sidebar-expanded[data-launch-ui="ready"] .sidebar-theme-toggle span { display: inline; }
}

/* --------------------------------------------------------------------------
   Shared top command bar
   -------------------------------------------------------------------------- */

body[data-launch-ui="ready"] .main-content {
    min-width: 0;
    margin-left: 64px !important;
    padding: 0 !important;
    background: var(--launch-bg);
}

body[data-launch-ui="ready"] .main-content.expanded { margin-left: 0 !important; }
body[data-launch-ui="ready"] .main-content.expanded .launch-global-bar { left: 0; }

.launch-global-bar {
    position: fixed;
    z-index: 900;
    top: 0;
    right: 0;
    left: 64px;
    display: grid;
    min-height: 53px;
    grid-template-columns: minmax(150px, .75fr) minmax(390px, 1.45fr) minmax(340px, .9fr);
    align-items: center;
    gap: 16px;
    padding: 0 15px;
    border-bottom: 1px solid var(--launch-line);
    color: var(--launch-text);
    background: var(--launch-bar);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

body[data-launch-workspace="dashboard-section"] .launch-global-bar { display: none; }
body[data-launch-workspace="dashboard-section"] .main-content { padding-top: 0 !important; }
body:not([data-launch-workspace="dashboard-section"])[data-launch-ui="ready"] .main-content { padding-top: 53px !important; }

.launch-bar-brand,
.launch-bar-tools,
.launch-topnav { display: flex; align-items: center; }
.launch-bar-brand { gap: 10px; }
.launch-bar-brand strong { color: var(--launch-heading); font-size: 1.18rem; letter-spacing: -.04em; }
.launch-bar-menu {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--launch-line);
    border-radius: 4px;
    color: var(--launch-heading);
    background: var(--launch-panel);
}

.launch-topnav { justify-content: center; gap: 4px; }
.launch-topnav button {
    position: relative;
    min-height: 52px;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    color: var(--launch-muted);
    background: transparent;
    font-size: .7rem;
    font-weight: 720;
}
.launch-topnav button::after {
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    background: transparent;
    content: "";
}
.launch-topnav button:hover { color: var(--launch-heading); }
.launch-topnav button.is-active { color: var(--launch-heading); }
.launch-topnav button.is-active::after { background: var(--launch-accent); }

.launch-bar-tools { justify-content: flex-end; gap: 10px; color: var(--launch-muted); font-size: .66rem; }
.launch-bar-tools > strong { color: var(--launch-heading); font-size: 1rem; }
.launch-bar-tools .launch-separator { width: 1px; height: 18px; background: var(--launch-line); }
.launch-bar-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    color: var(--launch-muted);
    background: transparent;
}
.launch-bar-icon:hover { color: var(--launch-accent); background: var(--launch-accent-soft); }

/* --------------------------------------------------------------------------
   Workspace primitives
   -------------------------------------------------------------------------- */

html[data-dorat-theme] .content-section:not(#dashboard-section) {
    width: 100%;
    max-width: none !important;
    min-height: calc(100vh - 53px);
    margin: 0 !important;
    padding: 14px 16px 22px !important;
    color: var(--launch-text) !important;
    background: var(--launch-bg) !important;
    animation: launchWorkspaceIn .2s ease both !important;
}

@keyframes launchWorkspaceIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

html[data-dorat-theme] .content-section:not(#dashboard-section) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--launch-heading) !important;
    text-shadow: none !important;
}

html[data-dorat-theme] .content-section:not(#dashboard-section) :is(p, label, small) { color: var(--launch-muted) !important; }

html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) {
    min-height: 58px !important;
    margin: 0 0 10px !important;
    padding: 4px 2px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--launch-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-dorat-theme] :is(.workspace-page-heading, .erp-command-copy) { gap: 9px !important; }
html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) h1 {
    margin: 0 !important;
    font-size: clamp(1.1rem, 1.45vw, 1.5rem) !important;
    letter-spacing: -.025em !important;
}
html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) p {
    margin: 3px 0 0 !important;
    font-size: .7rem !important;
}
html[data-dorat-theme] :is(.workspace-eyebrow, .erp-eyebrow) { display: none !important; }
html[data-dorat-theme] .workspace-page-header .mobile-menu-trigger,
html[data-dorat-theme] .erp-command-header .mobile-menu-trigger,
html[data-dorat-theme] .content-section:not(#dashboard-section) .mobile-menu-trigger { display: none !important; }

html[data-dorat-theme] :is(.glass-panel, .card, .premium-card, .finance-compact-panel, .finance-chart-card, .finance-action-card,
    .workspace-kpi-card, .platform-table-shell, .team-invite-card, .team-members-card, .team-operators-card,
    .team-invitations-card, .settings-accordion details, .erp-section, .erp-kpi-card, .erp-machine-card, .erp-order-card) {
    border: 1px solid var(--launch-line) !important;
    border-radius: 4px !important;
    color: var(--launch-text) !important;
    background: var(--launch-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-dorat-theme] :is(.btn, button.btn, .erp-icon-button) {
    border-radius: 3px !important;
    background-image: none !important;
    box-shadow: none !important;
    transform: none !important;
}
html[data-dorat-theme] .btn-primary { border-color: var(--launch-accent) !important; color: #fff !important; background: var(--launch-accent) !important; }
html[data-dorat-theme="dark"] .btn-primary { color: #11181b !important; }
html[data-dorat-theme] .btn-secondary { border-color: var(--launch-line-strong) !important; color: var(--launch-heading) !important; background: transparent !important; }
html[data-dorat-theme] .btn-success { border-color: var(--launch-positive) !important; color: #fff !important; background: var(--launch-positive) !important; }
html[data-dorat-theme] .btn-warning { border-color: var(--launch-warning) !important; color: #11181b !important; background: var(--launch-warning) !important; }
html[data-dorat-theme] .btn-danger { border-color: var(--launch-danger) !important; color: #fff !important; background: var(--launch-danger) !important; }

html[data-dorat-theme] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 38px;
    border: 1px solid var(--launch-line-strong) !important;
    border-radius: 3px !important;
    color: var(--launch-heading) !important;
    background: var(--launch-panel-soft) !important;
    box-shadow: none !important;
}
html[data-dorat-theme] :is(input, select, textarea):focus {
    border-color: var(--launch-accent) !important;
    box-shadow: 0 0 0 2px var(--launch-accent-soft) !important;
}
html[data-dorat-theme] :is(input, textarea)::placeholder { color: var(--launch-faint) !important; opacity: 1; }

html[data-dorat-theme] :is(.workspace-kpi-grid, .platform-admin-kpis, .erp-kpi-grid) { gap: 7px !important; margin-bottom: 10px !important; }
html[data-dorat-theme] :is(.workspace-kpi-card, .platform-admin-kpis article, .erp-kpi-card) {
    min-height: 76px !important;
    padding: 10px 12px !important;
    border-left: 1px solid var(--launch-line) !important;
}
html[data-dorat-theme] :is(.workspace-kpi-card, .erp-kpi-card) strong { color: var(--launch-heading) !important; font-size: 1.25rem !important; }
html[data-dorat-theme] :is(.workspace-kpi-card, .erp-kpi-card) i { color: var(--launch-accent) !important; }

html[data-dorat-theme] :is(.workspace-toolbar, .finance-toolbar, .platform-admin-toolbar) {
    gap: 7px !important;
    margin-bottom: 9px !important;
    padding: 7px !important;
    border: 1px solid var(--launch-line) !important;
    border-radius: 4px !important;
    background: var(--launch-panel) !important;
}

html[data-dorat-theme] :is(.table-responsive, .finance-table-wrap, .erp-table-wrap) { scrollbar-color: var(--launch-line-strong) transparent; }
html[data-dorat-theme] :is(.data-table, .premium-table, .finance-compact-table, .platform-tenant-table) {
    width: 100%;
    border-collapse: collapse !important;
    color: var(--launch-text) !important;
    background: transparent !important;
    font-size: .72rem !important;
}
html[data-dorat-theme] :is(.data-table, .premium-table, .finance-compact-table, .platform-tenant-table) thead th {
    height: 37px;
    padding: 6px 8px !important;
    border-bottom: 1px solid var(--launch-line-strong) !important;
    color: var(--launch-muted) !important;
    background: var(--launch-panel-soft) !important;
    font-size: .62rem !important;
    letter-spacing: .025em !important;
    text-transform: none !important;
}
html[data-dorat-theme] :is(.data-table, .premium-table, .finance-compact-table, .platform-tenant-table) tbody td {
    height: 39px;
    padding: 6px 8px !important;
    border-bottom: 1px solid var(--launch-line) !important;
    color: var(--launch-text) !important;
    background: transparent !important;
}
html[data-dorat-theme] :is(.data-table, .premium-table, .finance-compact-table, .platform-tenant-table) tbody tr:hover td,
html[data-dorat-theme] :is(.data-table, .premium-table, .finance-compact-table, .platform-tenant-table) tbody tr.is-selected td {
    background: var(--launch-accent-soft) !important;
}

/* Quote creation */
#teklif-section .quote-command-header { position: sticky; z-index: 30; top: 53px; background: var(--launch-bg) !important; }
#teklif-section .quote-workspace { grid-template-columns: minmax(470px, .92fr) minmax(520px, 1.08fr) !important; gap: 12px !important; }
#teklif-section .quote-form-card { padding: 12px !important; }
#teklif-section .quote-preview-column { top: 62px !important; max-height: calc(100vh - 75px) !important; }
#teklif-section .quote-preview-toolbar { display: none !important; }
#teklif-section .quote-preview-scroll { max-height: calc(100vh - 75px) !important; border: 1px solid var(--launch-line) !important; border-radius: 3px !important; background: var(--launch-panel-soft) !important; }
#teklif-section :is(.part-accordion, .part-accordion-header, .quote-notes-panel, .quote-note-library, .quote-note-selection, .quote-cost-summary) { border-radius: 3px !important; }
#teklif-section .part-header { min-height: 42px; padding: 8px 10px !important; }
#teklif-section .part-body { padding: 10px !important; }
#teklif-section .quote-cost-row { padding: 7px !important; border-radius: 3px !important; background: var(--launch-panel-soft) !important; }
#teklif-section .quote-page-actions .btn { min-height: 34px; padding: 6px 12px; font-size: .68rem; }
#teklif-section .app-credit-widget { top: 61px !important; right: 18px !important; }

/* Archive and materials */
#archive-section .archive-kpi-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
#archive-section .workspace-toolbar { grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(145px, auto)) !important; }
#archive-section .workspace-table-panel,
#malzeme-section .workspace-table-panel { overflow: hidden; padding: 0 !important; }
#archive-section :is(.workspace-kpi-card, .workspace-toolbar),
#malzeme-section :is(.workspace-kpi-card, .workspace-toolbar) { box-shadow: none !important; }

/* Finance */
#finans-section { --finance-section-gap: 9px; }
#finans-section .dashboard-header {
    min-height: 58px;
    padding: 4px 2px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--launch-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#finans-section .dashboard-header h1 { font-size: 1.45rem !important; }
#finans-section .finance-quick-actions { position: absolute; top: 11px; right: 16px; padding: 0 !important; border: 0 !important; background: transparent !important; }
#finans-section .finance-quick-label { display: none; }
#finans-section .finance-quick-actions .btn { min-height: 34px; padding: 6px 10px; font-size: .66rem; }
#finans-section #finansOzetKartlari { grid-template-columns: repeat(6, minmax(110px, 1fr)) !important; gap: 6px !important; }
#finans-section .kpi-card-premium { min-height: 82px !important; padding: 11px !important; }
#finans-section .kpi-icon-glow { width: 32px !important; height: 32px !important; }
#finans-section .finans-tabs { min-height: 43px; padding: 3px !important; border-radius: 3px !important; }
#finans-section .finans-tabs .tab-btn { min-height: 35px; padding: 6px 10px; border-radius: 2px !important; font-size: .68rem; }
#finans-section .finance-insight-grid { gap: 8px !important; }
#finans-section .finance-compact-panel { padding: 9px !important; }

/* Workshop */
#atolyem-section .erp-shell { max-width: none !important; padding: 0 !important; }
#atolyem-section .erp-command-header { min-height: 58px !important; }
#atolyem-section .erp-command-actions .btn { min-height: 34px; padding: 6px 10px; font-size: .67rem; }
#atolyem-section .erp-service-pill { border-radius: 3px !important; }
#atolyem-section .erp-alert-strip { padding: 7px 10px !important; border-radius: 3px !important; font-size: .68rem; }
#atolyem-section .erp-kpi-grid { grid-template-columns: repeat(6, minmax(110px, 1fr)) !important; }
#atolyem-section .erp-kpi-card { grid-template-columns: 34px 1fr !important; }
#atolyem-section .erp-tabs { min-height: 42px; padding: 3px !important; border-radius: 3px !important; }
#atolyem-section .erp-tabs .erp-tab-btn { min-height: 34px; padding: 5px 9px; font-size: .66rem; }
#atolyem-section .erp-section { padding: 10px !important; }
#atolyem-section .erp-machine-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important; gap: 7px !important; }
#atolyem-section .erp-machine-card { padding: 10px !important; min-height: 126px; }
#atolyem-section .erp-kanban-board { gap: 7px !important; }
#atolyem-section .erp-kanban-column { padding: 6px !important; border-radius: 3px !important; }
#atolyem-section .erp-order-card { padding: 8px !important; border-radius: 3px !important; }

/* Settings — vertical sub-navigation similar to the reference */
#ayarlar-section.active {
    display: grid !important;
    grid-template-columns: 205px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 12px;
    align-items: start;
}
#ayarlar-section .settings-command-header { grid-column: 1 / -1; }
#ayarlar-section .settings-overview {
    position: sticky;
    top: 66px;
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100vh - 92px);
    margin: 0 !important;
    padding: 8px !important;
}
#ayarlar-section .settings-completion-copy,
#ayarlar-section .settings-completion-track { margin: 6px; }
#ayarlar-section .settings-quick-nav { display: grid !important; gap: 3px !important; padding: 8px 0 0 !important; border: 0 !important; background: transparent !important; }
#ayarlar-section .settings-quick-nav button {
    min-height: 42px;
    padding: 8px 10px !important;
    justify-content: flex-start;
    border: 0 !important;
    border-left: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--launch-muted) !important;
    background: transparent !important;
    text-align: left;
}
#ayarlar-section .settings-quick-nav button:hover,
#ayarlar-section .settings-quick-nav button.active { border-left-color: var(--launch-accent) !important; color: var(--launch-heading) !important; background: var(--launch-accent-soft) !important; }
#ayarlar-section .settings-accordion { grid-column: 2; grid-row: 2; }
#ayarlar-section .settings-accordion details { grid-column: 1 / -1; margin-bottom: 7px !important; overflow: hidden; }
#ayarlar-section .settings-accordion details > summary { min-height: 46px; padding: 9px 12px !important; }
#ayarlar-section .settings-accordion .details-content { padding: 10px 12px 12px !important; }

/* Team and access */
#ekip-section { max-width: none !important; padding: 14px 18px 26px !important; }
#ekip-section .team-access-header { align-items: flex-start !important; margin-bottom: 12px !important; }
#ekip-section .team-access-header .btn { min-height: 38px; border-radius: 3px !important; }

#ekip-section .team-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
#ekip-section .team-overview-card {
    display: grid;
    min-height: 92px;
    padding: 13px 14px;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--launch-line);
    border-radius: 4px;
    background: var(--launch-panel);
    box-shadow: 0 3px 12px var(--launch-shadow);
}
#ekip-section .team-overview-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--launch-accent);
    background: var(--launch-accent-soft);
}
#ekip-section .team-overview-card:nth-child(2) .team-overview-icon { color: var(--launch-blue); background: var(--launch-blue-soft); }
#ekip-section .team-overview-card:nth-child(3) .team-overview-icon { color: var(--launch-warning); background: var(--launch-warning-soft); }
#ekip-section .team-overview-card:nth-child(4) .team-overview-icon { color: var(--launch-positive); background: var(--launch-positive-soft); }
#ekip-section .team-overview-card > div { display: grid; min-width: 0; }
#ekip-section .team-overview-card small { color: var(--launch-muted); font-size: .68rem; font-weight: 750; }
#ekip-section .team-overview-card strong { margin-top: 1px; color: var(--launch-heading); font-size: 1.65rem; line-height: 1; }
#ekip-section .team-overview-card em { margin-top: 7px; overflow: hidden; color: var(--launch-muted); font-size: .62rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

#ekip-section .team-view-tabs {
    display: flex;
    min-height: 44px;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 8px;
    padding: 0 4px;
    overflow-x: auto;
    border: 1px solid var(--launch-line);
    border-radius: 4px 4px 0 0;
    background: var(--launch-panel);
}
#ekip-section .team-view-tabs button {
    position: relative;
    min-height: 43px;
    padding: 0 12px;
    border: 0;
    color: var(--launch-muted);
    background: transparent;
    font-size: .7rem;
    font-weight: 780;
    white-space: nowrap;
}
#ekip-section .team-view-tabs button::after {
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    background: transparent;
    content: "";
}
#ekip-section .team-view-tabs button:hover,
#ekip-section .team-view-tabs button.is-active { color: var(--launch-heading); }
#ekip-section .team-view-tabs button.is-active::after { background: var(--launch-accent); }

#ekip-section .team-office-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 355px);
    gap: 8px;
    align-items: start;
}
#ekip-section :is(.team-members-card, .team-inline-editor, .team-operators-card, .team-invitations-card) {
    min-width: 0;
    padding: 10px !important;
    border-radius: 4px !important;
}
#ekip-section .team-card-heading { min-height: 36px; margin-bottom: 8px !important; }
#ekip-section .team-card-heading span { color: var(--launch-accent) !important; }
#ekip-section .team-card-heading h2 { color: var(--launch-heading); font-size: .94rem !important; }
#ekip-section .team-card-heading p { color: var(--launch-muted); }
#ekip-section .team-card-heading > i { color: var(--launch-accent) !important; }
#ekip-section .team-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    color: var(--launch-accent);
    background: transparent;
    font-size: .68rem;
    font-weight: 800;
}

#ekip-section .team-member-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 128px auto;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}
#ekip-section :is(.team-search, .team-filter) {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid var(--launch-line);
    border-radius: 3px;
    color: var(--launch-muted);
    background: var(--launch-panel-soft);
}
#ekip-section :is(.team-search input, .team-filter select) {
    width: 100%;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--launch-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .7rem !important;
}
#ekip-section .team-result-text { justify-self: end; color: var(--launch-muted); font-size: .65rem; white-space: nowrap; }
#ekip-section .team-table { width: 100%; border-collapse: collapse; }
#ekip-section .team-table th { height: 33px; padding: 7px 8px !important; color: var(--launch-muted); font-size: .61rem; }
#ekip-section .team-table td { height: 43px; padding: 7px 8px !important; border-top: 1px solid var(--launch-line); color: var(--launch-text); font-size: .67rem; }
#ekip-section .team-table td:first-child { min-width: 145px; }
#ekip-section .team-table tr.is-selected td { background: var(--launch-accent-soft) !important; }
#ekip-section .team-table tr.is-selected td:first-child { box-shadow: inset 2px 0 var(--launch-accent); }
#ekip-section .team-user-cell { display: flex; align-items: center; gap: 8px; }
#ekip-section .team-user-avatar,
#ekip-section .team-editor-identity > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--launch-heading);
    background: var(--launch-panel-strong);
    font-size: .62rem;
    font-weight: 850;
}
#ekip-section .team-user-cell > span { display: grid; min-width: 0; }
#ekip-section .team-user-cell strong { overflow: hidden; color: var(--launch-heading); text-overflow: ellipsis; white-space: nowrap; }
#ekip-section .team-user-cell small { color: var(--launch-muted); }
#ekip-section .team-row-action {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--launch-line);
    border-radius: 3px;
    color: var(--launch-muted);
    background: transparent;
}
#ekip-section .team-row-action:hover { color: var(--launch-accent); border-color: var(--launch-accent); }

#ekip-section .team-inline-editor {
    position: sticky;
    top: 66px;
    display: flex;
    max-height: clamp(430px, 58vh, 580px);
    flex-direction: column;
    overflow: hidden;
}
#ekip-section .team-inline-editor[hidden] { display: none !important; }
#ekip-section .team-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 3px 2px 10px; border-bottom: 1px solid var(--launch-line); }
#ekip-section .team-editor-header span { color: var(--launch-accent); font-size: .58rem; font-weight: 850; letter-spacing: .1em; }
#ekip-section .team-editor-header h2 { margin: 3px 0 0; color: var(--launch-heading); font-size: .92rem; }
#ekip-section .team-editor-close { display: grid; width: 30px; height: 30px; place-items: center; border: 0; color: var(--launch-muted); background: transparent; }
#ekip-section .team-editor-identity { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 2px; border-bottom: 1px solid var(--launch-line); }
#ekip-section .team-editor-identity > span { width: 36px; height: 36px; }
#ekip-section .team-editor-identity > div { display: grid; min-width: 0; }
#ekip-section .team-editor-identity strong { overflow: hidden; color: var(--launch-heading); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
#ekip-section .team-editor-identity small { overflow: hidden; color: var(--launch-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
#ekip-section .team-editor-identity em { color: var(--launch-positive); font-size: .62rem; font-style: normal; font-weight: 800; }
#ekip-section .team-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px 0 3px; }
#ekip-section .team-editor-fields .form-group { margin: 0 !important; }
#ekip-section .team-editor-fields label { margin-bottom: 4px; font-size: .62rem; }
#ekip-section .team-editor-fields :is(input, select) { min-height: 34px !important; padding: 5px 8px !important; font-size: .68rem !important; }
#ekip-section .team-matrix-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--launch-line); }
#ekip-section .team-matrix-heading strong { color: var(--launch-heading); font-size: .76rem; }
#ekip-section .team-matrix-heading span { color: var(--launch-muted); font-size: .58rem; }
#ekip-section .team-permission-grid { display: grid; gap: 4px !important; padding: 7px 0 !important; overflow: auto; }
#ekip-section #teamMemberPermissions { grid-template-columns: 1fr; }
#ekip-section .team-permission-group { display: grid; margin: 0; padding: 7px !important; grid-template-columns: 1fr 1fr; gap: 3px 7px; border-radius: 3px !important; }
#ekip-section .team-permission-group legend { grid-column: 1 / -1; color: var(--launch-heading); font-size: .64rem; }
#ekip-section .team-permission-option { margin: 1px 0; gap: 5px; font-size: .61rem; }
#ekip-section .team-permission-option input { width: 14px; height: 14px; accent-color: var(--launch-accent); }
#ekip-section .team-editor-warning { display: flex; gap: 7px; margin-top: 4px; padding: 8px; border: 1px solid color-mix(in srgb, var(--launch-warning) 38%, var(--launch-line)); color: var(--launch-warning); background: var(--launch-warning-soft); font-size: .62rem; line-height: 1.35; }
#ekip-section .team-editor-footer { padding-top: 8px; border-top: 1px solid var(--launch-line); }
#ekip-section .team-editor-footer .btn { width: 100%; min-height: 36px; }
#ekip-section #teamMemberSaveButton[hidden] { display: none !important; }

#ekip-section :is(.team-operators-card, .team-invitations-card) { margin-top: 8px; }
#ekip-section .team-operators-card .team-card-heading span { color: var(--launch-positive) !important; }
#ekip-section .team-workload { display: flex; min-width: 85px; align-items: center; gap: 7px; }
#ekip-section .team-workload progress { width: 52px; height: 3px; overflow: hidden; border: 0; background: var(--launch-line); accent-color: var(--launch-accent); }
#ekip-section .team-workload progress::-webkit-progress-bar { background: var(--launch-line); }
#ekip-section .team-workload progress::-webkit-progress-value { background: var(--launch-accent); }

.team-invite-overlay { position: fixed !important; inset: 0 !important; z-index: 2600; width: 100vw !important; height: 100dvh !important; padding: 18px; align-items: center; justify-content: center; }
.team-invite-overlay[hidden] { display: none !important; }
.team-invite-card { width: min(760px, 96vw); max-height: 92dvh; padding: 0 !important; overflow: auto; }
.team-invite-card .modal-body { padding: 15px; }
.team-invite-card .form-grid { grid-template-columns: 1fr 1fr 1fr; }
.team-invite-card .team-permission-grid { grid-template-columns: 1fr 1fr; max-height: 46vh; padding: 8px !important; }
.team-invite-card .team-security-note { margin: 9px 0 0; border-radius: 3px; }

/* Platform admin */
#platform-admin-section .platform-admin-kpis { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
#platform-admin-section .platform-admin-kpis article {
    display: grid !important;
    min-height: 78px !important;
    grid-template-columns: 32px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
}
#platform-admin-section .platform-admin-kpis article > span { width: 30px !important; height: 30px !important; border-radius: 50% !important; color: var(--launch-accent) !important; background: var(--launch-accent-soft) !important; }
#platform-admin-section .platform-admin-kpis article strong { font-size: 1.25rem !important; }
#platform-admin-section .platform-table-shell { margin-bottom: 9px; }
#platform-admin-section .platform-pagination { padding: 7px 10px !important; }

/* Modal continuity */
html[data-dorat-theme] .modal-overlay { background: rgba(2, 7, 10, .72) !important; backdrop-filter: blur(3px); }
html[data-dorat-theme] .modal-content,
html[data-dorat-theme] .swal2-popup {
    border: 1px solid var(--launch-line-strong) !important;
    border-radius: 5px !important;
    color: var(--launch-text) !important;
    background: var(--launch-panel) !important;
    background-image: none !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .34) !important;
}
html[data-dorat-theme] :is(.modal-header, .modal-footer) { border-color: var(--launch-line) !important; background: var(--launch-panel) !important; }

/* Keep commercial documents paper-white and readable. */
html[data-dorat-theme] .content-section:not(#dashboard-section) #teklif-pdf-area {
    border: 1px solid #ccd4df !important;
    border-radius: 0 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .14) !important;
}

/* --------------------------------------------------------------------------
   Responsive shell
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .launch-global-bar { grid-template-columns: minmax(130px, .55fr) minmax(360px, 1.35fr) auto; gap: 8px; }
    .launch-topnav button { padding-inline: 8px; }
    .launch-bar-tools #launchToday { display: none; }
    #teklif-section .quote-workspace { grid-template-columns: minmax(440px, 1fr) minmax(430px, .9fr) !important; }
    #finans-section #finansOzetKartlari { grid-template-columns: repeat(3, minmax(140px, 1fr)) !important; }
    #atolyem-section .erp-kpi-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)) !important; }
}

@media (max-width: 1024px) {
    body[data-launch-ui="ready"] .sidebar {
        width: min(280px, 84vw) !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
    }
    body[data-launch-ui="ready"] .sidebar.open { transform: translateX(0); }
    body[data-launch-ui="ready"] .sidebar .logo { display: flex; padding: 0 14px !important; justify-content: space-between; }
    body[data-launch-ui="ready"] .sidebar .logo h2 { width: auto; font-size: 1.05rem !important; text-align: left; }
    body[data-launch-ui="ready"] .sidebar-brand-button { width: auto; font-size: 1rem; letter-spacing: .14em; text-align: left; }
    body[data-launch-ui="ready"] .sidebar .close-sidebar { display: grid !important; }
    body[data-launch-ui="ready"] .sidebar-expand-button { display: none; }
    body[data-launch-ui="ready"] .sidebar nav { padding: 8px !important; }
    body[data-launch-ui="ready"] .sidebar .nav-item { width: 100%; padding: 0 12px !important; justify-content: flex-start; gap: 10px !important; font-size: .78rem !important; }
    body[data-launch-ui="ready"] .sidebar .nav-item::after { display: none; }
    body[data-launch-ui="ready"] .workshop-sidebar-nav button { width: 100%; padding: 0 12px; justify-content: flex-start; gap: 10px; font-size: .78rem; }
    body[data-launch-ui="ready"] .workshop-sidebar-nav button::after { display: none; }
    body[data-launch-ui="ready"] .sidebar-theme-toggle { width: 100%; justify-content: flex-start; gap: 10px; padding: 0 12px !important; }
    body[data-launch-ui="ready"] .sidebar-theme-toggle span { display: inline; }
    body[data-launch-ui="ready"] .main-content,
    body[data-launch-ui="ready"] .main-content.expanded { margin-left: 0 !important; }
    .launch-global-bar { left: 0; grid-template-columns: auto 1fr auto; }
    html[data-dorat-theme] .content-section:not(#dashboard-section) .mobile-menu-trigger { display: none !important; }
    .launch-bar-menu { display: grid; }
    .launch-topnav { min-width: 0; justify-content: flex-start; overflow: hidden; }
    .launch-bar-brand strong { display: none; }
    .launch-bar-tools :is(#launchToday, #launchLanguageCode, .launch-currency, .launch-separator) { display: none; }
    html[data-dorat-theme] .content-section:not(#dashboard-section) { padding: 12px !important; }
    html[data-dorat-theme] .workspace-page-header .mobile-menu-trigger,
    html[data-dorat-theme] .erp-command-header .mobile-menu-trigger { display: none !important; }
    #teklif-section .quote-command-header { top: 53px; }
    #teklif-section .quote-workspace { grid-template-columns: minmax(0, 1fr) !important; }
    #teklif-section .quote-preview-column { position: relative !important; top: auto !important; max-height: none !important; }
    #teklif-section .quote-preview-scroll { max-height: none !important; }
    #finans-section .finance-quick-actions { position: static; margin-bottom: 8px; }
    #ayarlar-section.active { grid-template-columns: 175px minmax(0, 1fr); }
    #ekip-section .team-overview-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    #ekip-section .team-office-workspace { grid-template-columns: 1fr; }
    #ekip-section .team-inline-editor { position: static; max-height: none; }
}

@media (max-width: 700px) {
    .launch-global-bar { min-height: 52px; padding-inline: 8px; }
    .launch-topnav button { display: none; min-height: 51px; padding-inline: 10px; font-size: .64rem; }
    .launch-topnav button.is-active { display: inline-flex; align-items: center; }
    .dashboard-topnav { min-width: 0; overflow: hidden !important; }
    .dashboard-topnav button:not(.is-active) { display: none !important; }
    .launch-bar-tools { gap: 5px; }
    .launch-bar-tools > strong { font-size: .86rem; }
    .launch-bar-icon { width: 34px; height: 34px; }
    html[data-dorat-theme] .content-section:not(#dashboard-section) { padding: 9px !important; }
    html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) { align-items: flex-start !important; gap: 8px; }
    html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) h1 { font-size: 1.05rem !important; }
    html[data-dorat-theme] :is(.workspace-page-header, .erp-command-header) p { display: none; }
    html[data-dorat-theme] :is(.workspace-kpi-grid, .platform-admin-kpis, .erp-kpi-grid) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #archive-section .workspace-toolbar { grid-template-columns: 1fr !important; }
    #finans-section #finansOzetKartlari { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #atolyem-section :is(.erp-shell, .erp-section, .erp-kpi-grid, .erp-machine-grid, .erp-kanban-board) {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    #atolyem-section .erp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #atolyem-section .erp-kpi-card { min-width: 0 !important; }
    #atolyem-section .erp-tabs {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
    }
    #atolyem-section .erp-tabs .erp-tab-btn { flex: 0 0 auto; }
    #atolyem-section .erp-machine-grid { grid-template-columns: 1fr !important; }
    #ayarlar-section.active { display: block !important; }
    #ayarlar-section .settings-overview { position: static; min-height: 0; margin-bottom: 8px !important; }
    #ayarlar-section .settings-quick-nav { display: flex !important; overflow-x: auto; }
    #ayarlar-section .settings-quick-nav button { min-width: max-content; border: 0 !important; border-bottom: 2px solid transparent !important; }
    #ayarlar-section .settings-quick-nav button.active { border-bottom-color: var(--launch-accent) !important; }
    #ekip-section { padding: 9px !important; }
    #ekip-section .team-access-header { align-items: center !important; }
    #ekip-section .team-access-header .btn { min-width: 42px; padding-inline: 10px !important; font-size: .68rem !important; }
    #ekip-section .team-overview-card { min-height: 78px; padding: 9px; grid-template-columns: 30px 1fr; }
    #ekip-section .team-overview-icon { width: 29px; height: 29px; }
    #ekip-section .team-overview-card strong { font-size: 1.35rem; }
    #ekip-section .team-member-toolbar { grid-template-columns: minmax(0, 1fr) 105px; }
    #ekip-section .team-result-text { grid-column: 1 / -1; justify-self: start; }
    #ekip-section .team-editor-fields,
    #ekip-section .team-permission-group,
    .team-invite-card .form-grid,
    .team-invite-card .team-permission-grid { grid-template-columns: 1fr; }
    .team-invite-overlay { padding: 8px; }
}

@media (max-width: 430px) {
    .launch-topnav button { padding-inline: 8px; }
    html[data-dorat-theme] :is(.workspace-kpi-grid, .platform-admin-kpis, .erp-kpi-grid),
    #finans-section #finansOzetKartlari { grid-template-columns: 1fr 1fr !important; }
    #teklif-section .quote-page-actions { grid-template-columns: 1fr 1fr !important; }
    #ekip-section .team-overview-grid { gap: 6px; }
    #ekip-section .team-overview-card em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-dorat-theme] .content-section:not(#dashboard-section) { animation: none !important; }
    body.launch-theme-transition,
    body.launch-theme-transition * { transition: none !important; }
}
