*, *::before, *::after { box-sizing: border-box; }
body { font-family: "Segoe UI", -apple-system, system-ui, sans-serif; overflow: hidden; background: #f5f5f5; margin: 0; }
.do-shell { display: flex; height: 100vh; width: 100vw; overflow: hidden; }
.do-sidebar { width: 260px; min-width: 260px; background: #001529; display: flex; flex-direction: column; transition: width .2s, min-width .2s; overflow: hidden; flex-shrink: 0; }
.do-sidebar--col { width: 56px; min-width: 56px; }
.do-logo { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.do-logo-icon { width: 28px; height: 28px; background: #1677ff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.do-logo-brand { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; }
.do-logo-ver { font-size: 10px; color: rgba(255,255,255,0.3); }
.do-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
.do-nav::-webkit-scrollbar { width: 3px; }
.do-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.do-nav-tree { width: 100%; }
.do-nav-tree--col .do-nav-group, .do-nav-tree--col .do-nav-leaf { display: none; }
.do-nav-group { margin: 1px 0; }
.do-nav-summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); cursor: pointer; border-radius: 6px; list-style: none; transition: background .12s; }
.do-nav-summary:hover { background: rgba(255,255,255,0.06); }
.do-nav-summary::marker, .do-nav-summary::-webkit-details-marker { display: none; }
.do-nav-summary::after { content: '›'; margin-left: auto; font-size: 14px; color: rgba(255,255,255,0.3); transition: transform .15s; }
details[open] > .do-nav-summary::after { transform: rotate(90deg); }
.do-nav-icon { font-size: 14px; color: rgba(255,255,255,0.45); flex-shrink: 0; }
.do-nav-leaf { display: block; width: 100%; text-align: left; background: none; border: none; padding: 5px 12px 5px 20px; font-size: 12px; color: rgba(255,255,255,0.55); cursor: pointer; border-radius: 6px; transition: all .1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.do-nav-leaf:hover { background: rgba(255,255,255,0.08); color: #fff; }
details details .do-nav-leaf { padding-left: 32px; }
details details details .do-nav-leaf { padding-left: 44px; }
details details .do-nav-summary { padding-left: 20px; }
details details details .do-nav-summary { padding-left: 32px; }
.do-user { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.do-avatar { width: 28px; height: 28px; background: #1677ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0; }
.do-user-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); }
.do-user-role { font-size: 10px; color: rgba(255,255,255,0.35); }
.do-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.do-header { height: 56px; background: #1677ff; display: flex; align-items: center; padding: 0 14px; gap: 10px; flex-shrink: 0; box-shadow: 0 1px 6px rgba(0,21,41,0.15); }
.do-hamburger { background: none; border: none; cursor: pointer; padding: 6px 4px; display: flex; flex-direction: column; gap: 4px; }
.do-hamburger span { display: block; width: 18px; height: 2px; background: rgba(255,255,255,0.85); border-radius: 1px; }
.do-hamburger:hover span { background: #fff; }
.do-bc { display: flex; align-items: center; gap: 5px; }
.do-bc-item { font-size: 13px; color: rgba(255,255,255,0.6); }
.do-bc-sep { color: rgba(255,255,255,0.35); font-size: 15px; }
.do-bc-active { color: #fff; font-weight: 500; }
.do-header-pill { padding: 2px 10px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.do-pill-green { background: #d9f7be; color: #237804; }
.do-pill-amber { background: #fff7e6; color: #d46b08; }
.do-header-icon-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; }
.do-header-icon-btn:hover { background: rgba(255,255,255,0.12); }
.do-avatar-header { width: 30px; height: 30px; background: #1565c0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; cursor: pointer; }
.do-tabs { background: #fff; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-end; padding: 0 12px; height: 38px; overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.do-tabs::-webkit-scrollbar { display: none; }
.do-tab { display: flex; align-items: center; gap: 5px; padding: 0 10px; height: 34px; border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0; cursor: pointer; font-size: 12px; color: #595959; background: #fafafa; white-space: nowrap; max-width: 200px; transition: all .12s; flex-shrink: 0; user-select: none; }
.do-tab:hover { background: #fff; color: #1677ff; border-color: #f0f0f0; }
.do-tab--act { background: #fff; color: #1677ff; font-weight: 500; border-color: #f0f0f0; border-bottom-color: #fff; position: relative; }
.do-tab--act::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #1677ff; }
.do-tab-label { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.do-tab-x { font-size: 11px; color: rgba(0,0,0,0.15); padding: 1px 3px; border-radius: 3px; }
.do-tab-x:hover { background: #f0f0f0; color: #595959; }
.do-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.do-statusbar { height: 22px; background: #001529; display: flex; align-items: center; gap: 12px; padding: 0 14px; flex-shrink: 0; font-size: 10px; color: rgba(255,255,255,0.35); }
.do-statusbar-tag { background: #e6f4ff; color: #0958d9; padding: 1px 8px; border-radius: 8px; }
.do-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.do-btn { border-radius: 4px !important; height: 30px !important; font-size: 12px !important; padding: 0 10px !important; }
.do-toolbar-sep { width: 1px; height: 20px; background: #f0f0f0; margin: 0 2px; }
.do-search { max-width: 220px; }
.do-pg-sel { width: 120px; }
.do-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; }
.do-filter-dd { min-width: 150px; }
.do-grid-wrap { background: #fff; border-radius: 6px; border: 1px solid #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.do-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; color: #8c8c8c; gap: 8px; }
.do-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.do-form-full { grid-column: 1 / -1; }
.do-form-grid label { display: block; font-size: 12px; color: #595959; margin-bottom: 4px; }
.do-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.do-badge-blue { background: #e6f4ff; color: #0958d9; }
.do-badge-green { background: #f6ffed; color: #389e0d; }
.do-badge-orange { background: #fff7e6; color: #d46b08; }
.do-badge-red { background: #fff2f0; color: #cf1322; }
.do-badge-gray { background: #f5f5f5; color: #8c8c8c; }
.do-id { color: #1677ff; font-weight: 600; font-size: 12px; }
.do-pri-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.e-grid .e-headercell { background: #fafafa !important; color: rgba(0,0,0,0.55) !important; font-size: 12px !important; font-weight: 500 !important; }
.e-grid .e-rowcell { font-size: 13px !important; padding: 7px 12px !important; }
.e-grid .e-row:hover .e-rowcell { background: #e6f4ff !important; cursor: pointer; }
.e-grid .e-active .e-rowcell { background: #bae0ff !important; }
.e-grid { border: none !important; }
.e-grid .e-gridheader { border-bottom: 1px solid #f0f0f0 !important; }
.e-pager { border-top: 1px solid #f0f0f0 !important; font-size: 12px !important; }
.e-pager .e-currentitem { background: #1677ff !important; border-color: #1677ff !important; }
.e-btn.e-primary, .e-css.e-btn.e-primary { background: #1677ff !important; border-color: #1677ff !important; }
.e-btn.e-success { background: #52c41a !important; border-color: #52c41a !important; color: #fff !important; }
.do-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.do-kpi-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.do-kpi-icon { width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.do-kpi-value { font-size: 22px; font-weight: 600; color: #262626; line-height: 1.2; }
.do-kpi-label { font-size: 12px; color: #8c8c8c; margin-top: 2px; }
.do-kpi-trend { font-size: 11px; margin-top: 4px; color: #8c8c8c; }
.do-kpi-trend.up { color: #52c41a; }
.do-dash-row { display: flex; gap: 12px; margin-bottom: 16px; }
.do-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 18px; }
.do-card-title { font-size: 14px; font-weight: 600; color: #262626; margin-bottom: 14px; }
.do-chart-bar { display: flex; align-items: flex-end; gap: 8px; height: 175px; padding-top: 8px; }
.do-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.do-chart-bar-fill { width: 100%; max-width: 36px; background: #1677ff; border-radius: 4px 4px 0 0; }
.do-chart-bar-fill:hover { opacity: 0.75; }
.do-chart-val { font-size: 10px; color: #1677ff; font-weight: 500; }
.do-chart-lbl { font-size: 11px; color: #8c8c8c; }
.do-donut-wrap { display: flex; align-items: center; gap: 20px; }
.do-donut-legend { display: flex; flex-direction: column; gap: 9px; }
.do-donut-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.do-donut-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.do-donut-txt { flex: 1; color: rgba(0,0,0,0.65); }
.do-donut-pct { font-weight: 500; color: rgba(0,0,0,0.85); }
.do-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.do-quick-btn { text-align: left !important; justify-content: flex-start !important; border-radius: 6px !important; border: 1px solid #f0f0f0 !important; height: auto !important; padding: 10px 12px !important; font-size: 12px !important; color: #262626 !important; background: #fff !important; }
.do-quick-btn:hover { border-color: #1677ff !important; color: #1677ff !important; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #e8e8e8; border-radius: 3px; }
@media (max-width: 1200px) { .do-kpi-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .do-kpi-row { grid-template-columns: 1fr; } .do-dash-row { flex-direction: column; } }

/* ══ HEADER THEME SWITCHER (igual ao demo Syncfusion) ════════════════ */
.do-header { position: relative; z-index: 200; }

/* Theme dropdown button */
.do-theme-btn {
    background: none; border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.92); font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; gap: 2px; letter-spacing: 0.3px;
    transition: background .15s;
}
.do-theme-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* Dropdown menu */
.do-theme-wrap { position: relative; }
.do-theme-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    min-width: 210px; z-index: 9999; overflow: hidden;
    animation: do-fade-in .12s ease;
}
@keyframes do-fade-in { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }

.do-theme-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; text-align: left; background: none; border: none;
    padding: 9px 16px; font-size: 13px; color: #262626; cursor: pointer;
    transition: background .1s;
}
.do-theme-item:hover { background: #f5f5f5; }
.do-theme-item--active { color: #1677ff; font-weight: 500; }
.do-theme-check { color: #1677ff; font-size: 13px; width: 16px; flex-shrink: 0; }
.do-theme-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.do-theme-link {
    display: block; padding: 9px 16px; font-size: 13px;
    color: #1677ff; text-decoration: none; font-weight: 500;
}
.do-theme-link:hover { background: #f5f5f5; }

/* Dark/Light toggle button */
.do-dark-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 500;
    padding: 5px 12px; border-radius: 4px; cursor: pointer;
    transition: all .15s;
}
.do-dark-btn:hover { background: rgba(255,255,255,0.2); }
.do-dark-btn--active { background: rgba(255,255,255,0.25); color: #fff; }

/* Notification icon with badge */
.do-header-icon-btn { position: relative; }
.do-notif-badge {
    position: absolute; top: 0; right: 0;
    background: #ff4d4f; color: #fff; font-size: 9px;
    width: 14px; height: 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; transform: translate(3px, -3px);
}

/* Statusbar theme indicator */
.do-statusbar-spacer { flex: 1; }
.do-statusbar-theme { color: rgba(255,255,255,0.5); font-style: italic; }

/* ══ DARK MODE — override sidebar colors when dark theme active ═══════ */
/* The Syncfusion dark theme handles grid/components automatically.
   We only need to adjust our custom layout elements. */
.e-dark-mode .do-sidebar,
[data-bs-theme="dark"] .do-sidebar { background: #1a1a2e; }

/* ══ COLLAPSED SIDEBAR ICONS ═════════════════════════════════════════ */
.do-sidebar-icons {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; padding: 8px 0; gap: 4px; overflow-y: auto;
}
.do-sidebar-icon {
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; cursor: pointer;
    color: rgba(255,255,255,0.55); transition: all .15s;
}
.do-sidebar-icon:hover {
    background: rgba(255,255,255,0.1); color: #fff;
}
.do-sidebar-icon .e-icons { font-size: 18px; }

/* ══ TAB BAR WITH SCROLL ARROWS ════════════════════════════════════ */
.do-tabbar {
    background: #fff; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: stretch; height: 38px; flex-shrink: 0;
}
.do-tab-arrow {
    width: 28px; flex-shrink: 0; background: #fafafa;
    border: none; border-right: 1px solid #f0f0f0;
    cursor: pointer; font-size: 16px; color: #8c8c8c;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; user-select: none;
}
.do-tab-arrow--right { border-right: none; border-left: 1px solid #f0f0f0; }
.do-tab-arrow:hover { background: #e6f4ff; color: #1677ff; }
.do-tabs {
    flex: 1; display: flex; align-items: flex-end; padding: 0 4px;
    overflow-x: auto; scrollbar-width: none;
}
.do-tabs::-webkit-scrollbar { display: none; }

/* ══ DARK MODE — full system ════════════════════════════════════════ */
/* Applied via body.do-dark AND .do-shell.do-dark */
body.do-dark,
.do-shell.do-dark {
    background: #1a1a2e;
    color: #e0e0e0;
}
.do-shell.do-dark .do-sidebar { background: #0d1117; }
.do-shell.do-dark .do-logo { border-bottom-color: rgba(255,255,255,0.06); }
.do-shell.do-dark .do-user  { border-top-color: rgba(255,255,255,0.06); }
.do-shell.do-dark .do-nav-leaf  { color: rgba(255,255,255,0.5); }
.do-shell.do-dark .do-nav-leaf:hover { background: rgba(255,255,255,0.06); color: #fff; }
.do-shell.do-dark .do-nav-summary { color: rgba(255,255,255,0.8); }
.do-shell.do-dark .do-nav-summary:hover { background: rgba(255,255,255,0.05); }
.do-shell.do-dark .do-tabbar { background: #1e1e2e; border-bottom-color: #2d2d3d; }
.do-shell.do-dark .do-tab  { background: #252535; color: #9090a0; border-color: transparent; }
.do-shell.do-dark .do-tab:hover { background: #1e1e2e; color: #a0c4ff; }
.do-shell.do-dark .do-tab--act { background: #1e1e2e; color: #60a5fa; border-color: #2d2d3d; }
.do-shell.do-dark .do-tab-arrow { background: #252535; border-color: #2d2d3d; color: #606070; }
.do-shell.do-dark .do-tab-arrow:hover { background: #1a2744; color: #60a5fa; }
.do-shell.do-dark .do-content { background: #13131f; }
.do-shell.do-dark .do-statusbar { background: #0d1117; }

/* Dark content cards/panels */
.do-shell.do-dark .do-kpi-card,
.do-shell.do-dark .do-card,
.do-shell.do-dark .do-grid-wrap,
.do-shell.do-dark .do-filter-bar,
.do-shell.do-dark .do-toolbar { background: #1e1e2e; color: #e0e0e0; border-color: #2d2d3d; }
.do-shell.do-dark .do-kpi-value { color: #e0e0e0; }
.do-shell.do-dark .do-kpi-label { color: #9090a0; }
.do-shell.do-dark .do-card-title { color: #e0e0e0; }
.do-shell.do-dark .do-chart-lbl { color: #9090a0; }

/* Dark theme dropdown menu */
.do-shell.do-dark .do-theme-menu {
    background: #1e1e2e; border-color: #2d2d3d;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.do-shell.do-dark .do-theme-item { color: #e0e0e0; }
.do-shell.do-dark .do-theme-item:hover { background: #252535; }
.do-shell.do-dark .do-theme-item--active { color: #60a5fa; }
.do-shell.do-dark .do-theme-divider { background: #2d2d3d; }
.do-shell.do-dark .do-theme-link { color: #60a5fa; }
.do-shell.do-dark .do-theme-link:hover { background: #252535; }

/* ══ SIDEBAR SEARCH ══════════════════════════════════════════════════ */
.do-nav-search-wrap {
    display: flex; align-items: center; gap: 6px;
    margin: 8px 8px 4px; padding: 6px 10px;
    background: rgba(255,255,255,0.07); border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color .15s;
}
.do-nav-search-wrap:focus-within {
    border-color: #1677ff; background: rgba(22,119,255,0.08);
}
.do-nav-search-icon { font-size: 13px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.do-nav-search-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 12px; color: rgba(255,255,255,0.85);
    caret-color: #1677ff;
}
.do-nav-search-input::placeholder { color: rgba(255,255,255,0.3); }
.do-nav-search-clear {
    background: none; border: none; color: rgba(255,255,255,0.35);
    cursor: pointer; font-size: 15px; padding: 0 2px; line-height: 1;
    border-radius: 3px;
}
.do-nav-search-clear:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* Search results */
.do-nav-results {
    padding: 4px 6px; max-height: calc(100vh - 200px); overflow-y: auto;
}
.do-nav-result-item {
    display: flex !important; align-items: flex-start !important;
    gap: 8px; padding: 7px 10px !important;
    border-radius: 6px; margin-bottom: 2px;
    white-space: normal !important; text-align: left !important;
    line-height: 1.3;
}
.do-nav-result-icon { font-size: 12px; color: rgba(255,255,255,0.3); flex-shrink: 0; margin-top: 2px; }
.do-nav-result-label { display: block; font-size: 12px; color: rgba(255,255,255,0.75); }
.do-nav-result-ctx {
    display: block; font-size: 10px; color: rgba(255,255,255,0.3);
    margin-top: 2px; font-family: monospace;
}
.do-nav-highlight {
    background: rgba(22,119,255,0.35); color: #fff; border-radius: 2px;
    padding: 0 1px; font-weight: 600;
}
.do-nav-noresult {
    padding: 16px 12px; font-size: 12px;
    color: rgba(255,255,255,0.3); text-align: center;
}

/* Dark mode search */
.do-shell.do-dark .do-nav-search-wrap { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.do-shell.do-dark .do-nav-search-wrap:focus-within { border-color: #3b82f6; background: rgba(59,130,246,0.08); }

/* ══ LOGIN PAGE ══════════════════════════════════════════════════════ */
.do-login-wrap {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #001529 0%, #003a70 100%);
}
.do-login-card {
    background: #fff; border-radius: 12px; padding: 36px 40px;
    width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.do-login-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.do-login-form { display: flex; flex-direction: column; gap: 14px; }
.do-field { display: flex; flex-direction: column; gap: 4px; }
.do-field label { font-size: 12px; color: #595959; font-weight: 500; }
.do-login-error { background: #fff2f0; border: 1px solid #ffccc7; border-radius: 6px;
    padding: 8px 12px; font-size: 12px; color: #cf1322; }
.do-login-btn { width: 100%; height: 40px !important; font-size: 14px !important;
    border-radius: 8px !important; margin-top: 8px; }

/* ══ DYNAMIC EXPLORER ════════════════════════════════════════════════ */
.do-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 60px; color: #8c8c8c; font-size: 13px;
}
.do-loading-spinner {
    width: 20px; height: 20px; border: 2px solid #f0f0f0;
    border-top-color: #1677ff; border-radius: 50%;
    animation: do-spin .7s linear infinite;
}
@keyframes do-spin { to { transform: rotate(360deg); } }
.do-error-box {
    display: flex; align-items: center; gap: 10px; padding: 16px 20px;
    background: #fff2f0; border: 1px solid #ffccc7; border-radius: 6px;
    font-size: 13px; color: #cf1322;
}
.do-btn-link { background: none; border: none; color: #1677ff;
    cursor: pointer; font-size: 13px; text-decoration: underline; }

/* Pager */
.do-pager {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-top: 1px solid #f0f0f0; background: #fafafa;
}
.do-pager-btn {
    padding: 4px 12px; border: 1px solid #d9d9d9; border-radius: 4px;
    background: #fff; cursor: pointer; font-size: 12px; color: #595959;
    transition: all .15s;
}
.do-pager-btn:hover:not(:disabled) { border-color: #1677ff; color: #1677ff; }
.do-pager-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.do-pager-info { font-size: 12px; color: #8c8c8c; flex: 1; text-align: center; }
.do-pager-size {
    border: 1px solid #d9d9d9; border-radius: 4px; padding: 3px 8px;
    font-size: 12px; color: #595959; background: #fff;
}

/* ══ CRUD TOOLBAR BUTTONS ════════════════════════════════════════════ */
.do-btn-add  { background:#52c41a!important; border-color:#52c41a!important;
               color:#fff!important; border-radius:6px!important; }
.do-btn-add:hover  { background:#389e0d!important; border-color:#389e0d!important; }
.do-btn-edit { background:#1677ff!important; border-color:#1677ff!important;
               color:#fff!important; border-radius:6px!important; }
.do-btn-edit:hover { background:#0958d9!important; border-color:#0958d9!important; }
.do-btn-del  { background:#ff4d4f!important; border-color:#ff4d4f!important;
               color:#fff!important; border-radius:6px!important; }
.do-btn-del:hover  { background:#cf1322!important; border-color:#cf1322!important; }
.do-btn-add.e-disabled, .do-btn-edit.e-disabled, .do-btn-del.e-disabled
               { opacity:.45!important; cursor:not-allowed!important; }

/* ══ DIALOG / FORM ═══════════════════════════════════════════════════ */
.do-dialog .e-dlg-header { font-size:14px!important; font-weight:600!important; }
.do-form { display:flex; flex-direction:column; gap:12px; padding:4px 0; }
.do-form-field { display:flex; flex-direction:column; gap:4px; }
.do-form-label { font-size:12px; color:#595959; font-weight:500; }
.do-form-input { border-radius:6px!important; }
.do-dialog-footer {
    display:flex; align-items:center; gap:8px;
    padding:0 8px; width:100%;
}
.do-save-error {
    font-size:12px; color:#cf1322; background:#fff2f0;
    border:1px solid #ffccc7; border-radius:4px; padding:4px 8px;
    max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ══ ID LINK STYLE ═══════════════════════════════════════════════════ */
.do-id { color:#1677ff; font-weight:500; cursor:pointer; }
.do-id:hover { text-decoration:underline; }

/* ══ TOOLBAR SEP ═════════════════════════════════════════════════════ */
.do-toolbar-sep {
    width:1px; height:20px; background:#f0f0f0; margin:0 4px; flex-shrink:0;
}

/* ══ EXPLORER FULL HEIGHT LAYOUT ═════════════════════════════════════ */
/* Dashboard gets padding, explorer gets full height */
.do-dashboard { flex: 1; overflow-y: auto; padding: 16px; }

.do-explorer-wrap {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
}

.do-toolbar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: #fff;
    border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}

/* SfGrid fills remaining space */
.do-grid-wrap .e-grid {
    flex: 1 !important; min-height: 0 !important;
}
.do-grid-wrap .e-gridcontent {
    flex: 1 !important; overflow-y: auto !important;
}

/* ══ FIX: e-trash icon for delete ════════════════════════════════════ */
/* Syncfusion uses e-trash not e-delete in some versions */
.e-icons.e-delete::before  { content: '\e700' }  /* fallback */

/* ══ DASHBOARD TAB BUTTON ════════════════════════════════════════════ */
.do-tab-home {
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px; height: 100%; cursor: pointer;
    font-size: 12px; color: #595959; border-right: 1px solid #f0f0f0;
    background: #fafafa; transition: all .15s; flex-shrink: 0;
    white-space: nowrap;
}
.do-tab-home:hover { background: #e6f4ff; color: #1677ff; }
.do-tab-home--act  { background: #fff; color: #1677ff; font-weight: 600;
                     border-bottom: 2px solid #1677ff; }

/* ── Save Columns button ─────────────────────────────────────── */
.do-btn-save-cols {
    display: flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 30px; border-radius: 4px; cursor: pointer;
    font-size: 12px; border: 1px solid #d9d9d9;
    background: #fff; color: #595959; transition: all .15s;
}
.do-btn-save-cols:hover { background: #f6ffed; border-color: #52c41a; color: #52c41a; }

.do-col-save-msg {
    font-size: 11px; font-weight: 600; color: #52c41a;
    margin-left: 4px; animation: fadeIn .3s;
}

/* ── Resize cursor on grid header ────────────────────────────── */
.e-grid .e-rhandler { cursor: col-resize !important; }
.e-grid .e-headercell { user-select: none; }
