*, *::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;
}

    /* disabled */ .do-shell.do-dark .do-sidebar-OFF {
        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;
    height: 100%;
}

.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;
}

/* ══════════════════════════════════════════════════════════════════
   LOGIN HERO — estilo pet/agendamento
   ══════════════════════════════════════════════════════════════════ */

.do-login-hero {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Fundo split cachorro/gato ────────────────────────────────── */
.do-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
}

.do-hero-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=900&q=80') right center/cover no-repeat;
}

.do-hero-right {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=900&q=80') center/cover no-repeat;
}

/* ── Overlay gradiente azul-roxo ──────────────────────────────── */
.do-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.82) 0%, rgba(109,40,217,0.75) 50%, rgba(14,116,144,0.80) 100%);
}

/* ── Coluna central ───────────────────────────────────────────── */
.do-login-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 420px;
    padding: 24px 16px;
}

/* ── Logo ─────────────────────────────────────────────────────── */
.do-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.do-login-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.do-login-sub {
    font-size: 12px;
    letter-spacing: 4px;
    opacity: .75;
    margin-top: -4px;
}

/* ── Loading dots (igual ao agendamento) ──────────────────────── */
.do-login-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

    .do-login-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,0.85);
        animation: do-bounce 1.2s infinite ease-in-out;
    }

        .do-login-dots span:nth-child(1) {
            animation-delay: 0s;
            background: #93c5fd;
        }

        .do-login-dots span:nth-child(2) {
            animation-delay: .15s;
            background: #c4b5fd;
        }

        .do-login-dots span:nth-child(3) {
            animation-delay: .30s;
            background: #6ee7b7;
        }

        .do-login-dots span:nth-child(4) {
            animation-delay: .45s;
            background: #fca5a5;
        }

        .do-login-dots span:nth-child(5) {
            animation-delay: .60s;
            background: #fde68a;
        }

@keyframes do-bounce {
    0%,80%,100% {
        transform: scale(0.6);
        opacity: .5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.do-login-loading-txt {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    letter-spacing: .5px;
}

/* ── Card branco ──────────────────────────────────────────────── */
.do-login-card {
    width: 100%;
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.do-login-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
    text-align: center;
}

.do-login-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    color: #dc2626;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.do-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .do-field-group label {
        font-size: 12px;
        font-weight: 600;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

/* Syncfusion input override — sempre branco no login card */
.do-login-card .e-input-group,
.do-login-card .e-input-group.e-control-wrapper {
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
}

    .do-login-card .e-input-group:focus-within {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
    }

    .do-login-card .e-input,
    .do-login-card .e-input-group input,
    .do-login-card .e-input-group textarea {
        font-size: 14px !important;
        background: #fff !important;
        color: #1e293b !important;
    }

        .do-login-card .e-input::placeholder {
            color: #94a3b8 !important;
        }
/* Card itself ignores dark theme */
.do-shell.do-dark .do-login-card,
.do-login-card {
    background: rgba(255,255,255,0.97) !important;
    color: #1e293b !important;
}

    .do-shell.do-dark .do-login-card .do-field-group label,
    .do-login-card .do-field-group label {
        color: #475569 !important;
    }

    .do-shell.do-dark .do-login-card .do-login-card-title,
    .do-login-card .do-login-card-title {
        color: #1e293b !important;
    }

    .do-shell.do-dark .do-login-card .do-login-footer,
    .do-login-card .do-login-footer {
        color: #94a3b8 !important;
    }

/* ── Botão Entrar ─────────────────────────────────────────────── */
.do-login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s;
    margin-top: 4px;
}

    .do-login-btn:hover {
        opacity: .92;
    }

    .do-login-btn:active {
        transform: scale(.98);
    }

.do-login-footer {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .do-hero-left {
        display: none;
    }

    .do-hero-right {
        flex: 1;
    }

    .do-login-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

/* ── Login hero must fill full viewport ──────────────────────── */
body:has(.do-login-hero) {
    overflow: hidden;
}
/* Blazor root wrappers — allow full height */
#app, .blazor-error-boundary {
    height: 100%;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE CARD LIST
   ══════════════════════════════════════════════════════════════════ */

/* ── Toolbar ──────────────────────────────────────────────────── */
.mob-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.do-shell.do-dark .mob-toolbar {
    background: #1e1e2e;
    border-color: #2d2d3d;
}

.mob-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 10px;
}

.do-shell.do-dark .mob-search {
    background: #2d2d3d;
}

.mob-search-icon {
    font-size: 14px;
    color: #8c8c8c;
    flex-shrink: 0;
}

.mob-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #262626;
    outline: none;
}

.do-shell.do-dark .mob-search-input {
    color: #e0e0e0;
}

.mob-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #8c8c8c;
    font-size: 12px;
}

.mob-fab {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #1677ff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: background .15s;
}

    .mob-fab:hover {
        background: #0958d9;
    }

/* ── Count ────────────────────────────────────────────────────── */
.mob-count { flex-shrink: 0; /* prevents count from growing */
    font-size: 12px;
    color: #8c8c8c;
    padding: 4px 12px 2px;
    flex-shrink: 0;
}

/* ── Card list ────────────────────────────────────────────────── */
.mob-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.mob-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    -webkit-tap-highlight-color: transparent;
}

    .mob-card:active {
        background: #f0f7ff;
        border-color: #91caff;
    }

.do-shell.do-dark .mob-card {
    background: #1e1e2e;
    border-color: #2d2d3d;
}

    .do-shell.do-dark .mob-card:active {
        background: #1a2744;
    }

.mob-card-id {
    font-size: 11px;
    font-weight: 600;
    color: #1677ff;
    background: #e6f4ff;
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.mob-card-body {
    flex: 1;
    min-width: 0;
}

.mob-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.do-shell.do-dark .mob-card-title {
    color: #e0e0e0;
}

.mob-card-sub {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-card-arrow {
    font-size: 12px;
    color: #d9d9d9;
    flex-shrink: 0;
}

/* ── Empty ────────────────────────────────────────────────────── */
.mob-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #8c8c8c;
    font-size: 14px;
}

/* ── Pager ────────────────────────────────────────────────────── */
.mob-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    padding-bottom: max(60px, calc(12px + env(safe-area-inset-bottom)));
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fafafa;
}

.do-shell.do-dark 

.mob-page-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1677ff;
    background: none;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all .12s;
}

    .mob-page-btn:disabled {
        color: #d9d9d9;
        cursor: not-allowed;
    }

    .mob-page-btn:not(:disabled):hover {
        background: #e6f4ff;
        border-color: #91caff;
    }

.mob-page-info {
    font-size: 13px;
    color: #8c8c8c;
}

/* ── Bottom sheet overlay ─────────────────────────────────────── */
.mob-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    animation: mob-fade-in .2s ease;
}

@keyframes mob-fade-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.mob-sheet {
    width: 100%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom);
    animation: mob-slide-up .25s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.do-shell.do-dark .mob-sheet {
    background: #1e1e2e;
}

@keyframes mob-slide-up {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

.mob-sheet-handle {
    width: 36px;
    height: 4px;
    background: #d9d9d9;
    border-radius: 2px;
    margin: 10px auto 0;
}

.mob-sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.do-shell.do-dark .mob-sheet-header {
    border-color: #2d2d3d;
}

.mob-sheet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.mob-sheet-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    flex: 1;
}

.do-shell.do-dark .mob-sheet-title {
    color: #e0e0e0;
}

.mob-sheet-id {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 2px;
}

.mob-sheet-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #8c8c8c;
    padding: 4px;
}

.mob-sheet-fields {
    padding: 8px 16px;
}

.mob-field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}

.do-shell.do-dark .mob-field-row {
    border-color: #2d2d3d;
}

.mob-field-lbl {
    font-size: 12px;
    color: #8c8c8c;
    flex-shrink: 0;
    min-width: 80px;
}

.mob-field-val {
    font-size: 13px;
    color: #262626;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.do-shell.do-dark .mob-field-val {
    color: #e0e0e0;
}

.mob-sheet-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px 20px;
}

.mob-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px solid #d9d9d9;
    background: #fff;
    color: #262626;
    transition: all .12s;
}

.mob-action-edit {
    border-color: #91caff;
    color: #1677ff;
    background: #e6f4ff;
}

    .mob-action-edit:hover {
        background: #bae0ff;
    }

.mob-action-del {
    border-color: #ffa39e;
    color: #cf1322;
    background: #fff1f0;
}

    .mob-action-del:hover {
        background: #ffd9d9;
    }

/* ══ LOGIN FIXES ══════════════════════════════════════════════════ */
/* Override Syncfusion theme completely inside login card */
.do-login-card .e-input-group,
.do-login-card .e-input-group.e-control-wrapper,
.do-login-card .e-float-input,
.do-login-card .e-outline.e-input-group {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0 !important;
}

    .do-login-card .e-input-group::before,
    .do-login-card .e-input-group::after {
        display: none !important;
    }

    .do-login-card .e-input-group:focus-within {
        border-color: #3b82f6 !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(59,130,246,.12) !important;
    }

    .do-login-card .e-input-group input,
    .do-login-card .e-input-group.e-control-wrapper input {
        background: transparent !important;
        color: #1e293b !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        border: none !important;
        outline: none !important;
        height: auto !important;
        line-height: 1.4 !important;
    }

        .do-login-card .e-input-group input::placeholder {
            color: #94a3b8 !important;
        }

/* ══ MOBILE EXPLORER FULL HEIGHT ═════════════════════════════════ */
/* do-content needs to be full height flex column */
.do-content {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
}
/* Dashboard still needs padding */
.do-dashboard {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* MobileCardList fills height */
.do-explorer-wrap {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.mob-list {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

/* ══ MOBILE TILE VIEW ═════════════════════════════════════════════ */
.mob-tile-grid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px;
}

.mob-tile {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
}

    .mob-tile:active {
        background: #f0f7ff;
        border-color: #91caff;
    }

.do-shell.do-dark .mob-tile {
    background: #1e1e2e;
    border-color: #2d2d3d;
}

.mob-tile-num {
    font-size: 12px;
    font-weight: 600;
    color: #1677ff;
    margin-bottom: 4px;
}

.mob-tile-name {
    font-size: 13px;
    font-weight: 500;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.do-shell.do-dark .mob-tile-name {
    color: #e0e0e0;
}

.mob-tile-meta {
    font-size: 11px;
    color: #8c8c8c;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══ FILTER PANEL LATERAL ═════════════════════════════════════════ */
.do-explorer-layout {
    flex: 1; display: flex; flex-direction: row;
    overflow: hidden; min-height: 0;
}
.do-filter-panel {
    width: 220px; flex-shrink: 0;
    background: #fafafa; border-right: 1px solid #f0f0f0;
    display: flex; flex-direction: column; overflow: hidden;
}
.do-shell.do-dark .do-filter-panel { background: #1a1a2a; border-color: #2d2d3d; }
.do-filter-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; font-size: 12px; font-weight: 600;
    color: #595959; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.do-shell.do-dark .do-filter-header { color: #a0a0b0; border-color: #2d2d3d; }
.do-filter-apply {
    margin-left: auto; background: #1677ff; color: #fff;
    border: none; border-radius: 4px; padding: 3px 8px;
    font-size: 11px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; gap: 3px; transition: background .15s;
}
.do-filter-apply:hover { background: #0958d9; }
.do-filter-body {
    flex: 1; overflow-y: auto; padding: 10px 10px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.do-filter-field { display: flex; flex-direction: column; gap: 4px; }
.do-filter-field label {
    font-size: 11px; font-weight: 600; color: #595959;
    text-transform: uppercase; letter-spacing: .4px;
}
.do-shell.do-dark .do-filter-field label { color: #a0a0b0; }
.do-explorer-main {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
}
@media (max-width: 767px) {
    .do-filter-panel { display: none; }
}

/* do-explorer-main-only: sem painel lateral, ocupa tudo */
.do-explorer-main-only {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
}
.do-explorer-main-only .do-explorer-main {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
}

/* ══ FILTER CONTAINER — expansível/retrátil ═══════════════════════ */
.do-filter-container {
    background: var(--surface-1, #fafafa);
    border-bottom: 1px solid var(--border, #f0f0f0);
    flex-shrink: 0; transition: all .2s;
}
.do-shell.do-dark .do-filter-container { background: #1a1a2a; border-color: #2d2d3d; }

.do-filter-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; cursor: pointer;
    font-size: 12px; color: #595959;
    user-select: none; transition: background .12s;
}
.do-filter-bar:hover { background: #f0f7ff; }
.do-shell.do-dark .do-filter-bar { color: #a0a0b0; }
.do-shell.do-dark .do-filter-bar:hover { background: #22223a; }

.do-filter-chevron { margin-left: auto; font-size: 12px; color: #8c8c8c; }

.do-filter-tabs {
    padding: 0 0 4px;
    border-top: 1px solid var(--border, #f0f0f0);
    animation: do-filter-open .15s ease;
}
@keyframes do-filter-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.do-shell.do-dark .do-filter-tabs { border-color: #2d2d3d; }

/* SfTab inside filter — compact */
.do-filter-tab .e-tab-header { min-height: 32px !important; }
.do-filter-tab .e-tab-header .e-tab-wrap { padding: 0 12px !important; min-height: 32px !important; }
.do-filter-tab .e-tab-header .e-text-wrap { font-size: 12px !important; }
.do-filter-tab .e-content { padding: 0 !important; }

.do-filter-tab-body {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 10px 14px;
}
.do-filter-tab-body .do-filter-field { min-width: 160px; max-width: 220px; flex: 1; }

/* ── Botão Filtrar na toolbar ─────────────────────────────────── */
.do-btn-filter {
    display: flex; align-items: center; gap: 4px;
    padding: 0 12px; height: 30px; border-radius: 4px;
    background: #1677ff; color: #fff; border: none;
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: background .15s;
}
.do-btn-filter:hover { background: #0958d9; }
.do-btn-filter .e-icons { font-size: 12px; }

/* ══ FILTER PANEL LATERAL ═════════════════════════════════════════ */
.do-explorer-with-filter {
    flex: 1; display: flex; flex-direction: row;
    overflow: hidden; min-height: 0;
}

/* Painel lateral */
.do-filter-side {
    width: 240px; flex-shrink: 0;
    background: #fafafa; border-right: 1px solid #f0f0f0;
    display: flex; flex-direction: column;
    overflow: hidden; transition: width .2s ease;
}
.do-filter-side--closed {
    width: 32px;
}
.do-shell.do-dark .do-filter-side { background: #1a1a2a; border-color: #2d2d3d; }

/* Header do painel */
.do-filter-side-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px; cursor: pointer; flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}
.do-filter-side-header:hover { background: #f0f7ff; }
.do-shell.do-dark .do-filter-side-header { border-color: #2d2d3d; }
.do-shell.do-dark .do-filter-side-header:hover { background: #22223a; }

.do-filter-side-header .e-icons { font-size: 14px; color: #1677ff; flex-shrink: 0; }
.do-filter-side-title { font-size: 12px; font-weight: 600; color: #262626; flex: 1; white-space: nowrap; }
.do-shell.do-dark .do-filter-side-title { color: #e0e0e0; }
.do-filter-toggle-icon { font-size: 11px !important; color: #8c8c8c !important; margin-left: auto; }

/* Body com tabs */
.do-filter-side-body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
}

/* SfTab compacto no painel lateral */
.do-filter-side-body .e-tab .e-tab-header { min-height: 34px !important; }
.do-filter-side-body .e-tab .e-tab-header .e-tab-wrap { padding: 0 10px !important; min-height: 34px !important; }
.do-filter-side-body .e-tab .e-tab-header .e-text-wrap { font-size: 12px !important; }
.do-filter-side-body .e-tab .e-content { padding: 0 !important; }

.do-filter-tab-body {
    display: flex; flex-direction: column; gap: 8px;
    padding: 10px 10px 16px;
}
.do-filter-tab-body .do-filter-field { display: flex; flex-direction: column; gap: 3px; }
.do-filter-tab-body .do-filter-field label {
    font-size: 11px; font-weight: 600; color: #595959;
    text-transform: uppercase; letter-spacing: .4px;
}
.do-shell.do-dark .do-filter-tab-body .do-filter-field label { color: #a0a0b0; }

/* Toolbar: botão toggle Filtros */
.do-btn-filter {
    display: flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 30px; border-radius: 4px;
    background: #fff; color: #595959;
    border: 1px solid #d9d9d9; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all .15s;
}
.do-btn-filter:hover { border-color: #1677ff; color: #1677ff; background: #e6f4ff; }
.do-btn-filter--active { background: #e6f4ff !important; color: #1677ff !important; border-color: #91caff !important; }

/* Botão aplicar filtros (azul) */
.do-btn-apply {
    display: flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 30px; border-radius: 4px;
    background: #1677ff; color: #fff; border: none;
    font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s;
}
.do-btn-apply:hover { background: #0958d9; }

/* Mobile: painel some, grid ocupa tudo */
@media (max-width: 767px) {
    .do-filter-side { display: none !important; }
}

/* Filtros texto vertical quando painel fechado */
.do-filter-side--closed .do-filter-side-header {
    justify-content: center; padding: 12px 0;
    writing-mode: unset; flex-direction: column; height: 100%;
    border-bottom: none;
}
.do-filter-side-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 12px; font-weight: 600; color: #595959;
    letter-spacing: 1px; user-select: none;
    white-space: nowrap;
}
.do-shell.do-dark .do-filter-side-vertical { color: #a0a0b0; }

/* ── Pager save cols button ───────────────────────────────────── */
.do-pager-sep {
    width: 1px; background: #f0f0f0; margin: 0 4px; align-self: stretch;
}
.do-pager-save-cols {
    display: flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    color: #8c8c8c; font-size: 12px; padding: 0 6px;
    border-radius: 4px; transition: all .15s; white-space: nowrap;
}
.do-pager-save-cols:hover { color: #1677ff; background: #e6f4ff; }
.do-pager-save-cols .e-icons { font-size: 13px; }
.do-pager-save-msg { font-size: 11px; color: #52c41a; font-weight: 600; }

/* ── Closed panel arrow ───────────────────────────────────────── */
.do-filter-side--closed .do-filter-side-header {
    flex-direction: column; padding: 10px 0;
    align-items: center; height: 100%; border-bottom: none;
    gap: 6px;
}

/* ── Mobile filter button in toolbar ─────────────────────────── */
.mob-filter-btn {
    height: 36px; border-radius: 8px; flex-shrink: 0;
    background: #f0f0f0; border: 1px solid #d9d9d9; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    color: #595959; font-size: 12px; font-weight: 500;
    padding: 0 10px; transition: all .15s;
}
.mob-filter-btn .e-icons { font-size: 14px !important; line-height: 1 !important; }
.mob-filter-btn:hover, .mob-filter-btn--active {
    background: #e6f4ff; color: #1677ff; border-color: #91caff;
}
.do-shell.do-dark .mob-filter-btn { background: #2d2d3d; color: #a0a0b0; border-color: #3d3d4d; }



/* ── explorer-with-filter: fix height chain ──────────────────── */
.do-explorer-with-filter {
    flex: 1; display: flex; flex-direction: row;
    overflow: hidden; min-height: 0;
}

/* ── MobileCardList flex wrapper ──────────────────────────────── */
.mob-card-wrap {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
    height: 100%;
}
/* mob-list fills space between count and pager */
.mob-list, .mob-tile-grid {
    flex: 1 !important; overflow-y: auto !important; min-height: 0 !important;
}

/* ══ MOBILE STATUS BAR ════════════════════════════════════════════ */
.mob-statusbar {
    display: flex; flex-direction: row; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5; border-top: 1px solid #eee;
    flex-shrink: 0;
}
.do-shell.do-dark .mob-statusbar { background: #1a1a2a; border-color: #2d2d3d; }

.mob-status-info {
    font-size: 12px; color: #8c8c8c;
}
.mob-status-btns { display: flex; gap: 4px; }

.mob-status-btn {
    width: 36px; height: 36px; border-radius: 8px;
    background: #fff; border: 1px solid #d9d9d9;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #1677ff; transition: all .15s;
}
.mob-status-btn:disabled { color: #d9d9d9; cursor: not-allowed; background: #fafafa; }
.mob-status-btn:not(:disabled):hover { background: #e6f4ff; border-color: #91caff; }
.do-shell.do-dark .mob-status-btn { background: #2d2d3d; border-color: #3d3d4d; }

/* ── Filter button icon only ──────────────────────────────────── */
.mob-filter-btn {
    width: 36px !important; height: 36px !important;
    padding: 0 !important; border-radius: 8px; flex-shrink: 0;
    background: #f0f0f0; border: 1px solid #d9d9d9; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #595959; transition: all .15s;
}
.mob-filter-btn:hover, .mob-filter-btn--active {
    background: #e6f4ff !important; color: #1677ff !important; border-color: #91caff !important;
}


/* Sidebar SEMPRE #001529 independente do tema */
.do-sidebar,
.do-shell.do-dark .do-sidebar,
.do-shell .do-sidebar { background: #001529 !important; }
