/* Simple / Advanced UI shell — Sarwer Enterprise 1
   Visual rules for Simple mode live under body.dc-ui-simple. */

.dc-ui-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dc-ui-mode-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.dc-ui-mode-seg {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
}

.dc-ui-mode-seg button,
.dc-ui-mode-seg a.dc-ui-mode-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 160ms ease, color 160ms ease;
}

.dc-ui-mode-seg a.dc-ui-mode-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.dc-ui-mode-seg button.is-active,
.dc-ui-mode-seg a.dc-ui-mode-link.is-active {
    background: #fff;
    color: #1e3a5f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

body.dc-theme-dark .dc-ui-mode-seg button.is-active,
body.dc-theme-dark .dc-ui-mode-seg a.dc-ui-mode-link.is-active {
    background: #e8eef7;
    color: #0f172a;
}

.dc-simple-home-link {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) .dc-simple-home-link {
    display: inline-flex !important;
}

/* -------- Simple shell -------- */
body.dc-ui-simple:not(.dark-command-pos) {
    --dc-simple-nav-h: 68px;
    --dc-simple-bg: #f2f4f8;
    --dc-simple-ink: #0f172a;
    --dc-simple-muted: #64748b;
    --dc-simple-card: #ffffff;
    --dc-simple-line: #e6eaf0;
    --dc-simple-accent: #1d4ed8;
    background: var(--dc-simple-bg) !important;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

body.dc-ui-simple:not(.dark-command-pos) .side-bar,
body.dc-ui-simple:not(.dark-command-pos) .small-view-button,
body.dc-ui-simple:not(.dark-command-pos) .side-bar-collapse,
body.dc-ui-simple:not(.dark-command-pos) .dc-command-trigger,
body.dc-ui-simple:not(.dark-command-pos) .dc-command-center,
body.dc-ui-simple:not(.dark-command-pos) .dc-palette-toggle,
body.dc-ui-simple:not(.dark-command-pos) .dc-accent-panel,
body.dc-ui-simple:not(.dark-command-pos) .overlay.small-view-side-active,
body.dc-ui-simple:not(.dark-command-pos) .dc-header-plus,
body.dc-ui-simple:not(.dark-command-pos) #btnCalculator,
body.dc-ui-simple:not(.dark-command-pos) .dc-theme-toggle,
body.dc-ui-simple:not(.dark-command-pos) .dc-ui-mode-switch,
body.dc-ui-simple:not(.dark-command-pos) #header_whatsapp_outbox_btn,
body.dc-ui-simple:not(.dark-command-pos) #view_todays_profit,
body.dc-ui-simple:not(.dark-command-pos) .dc-header-date,
body.dc-ui-simple:not(.dark-command-pos) .notifications-menu,
body.dc-ui-simple:not(.dark-command-pos) .dc-header-essentials,
body.dc-ui-simple:not(.dark-command-pos) .dc-header-repair,
body.dc-ui-simple:not(.dark-command-pos) .dc-header-essentials-pos {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) .content-header,
body.dc-ui-simple:not(.dark-command-pos) .main-footer,
body.dc-ui-simple:not(.dark-command-pos) footer.main-footer {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) #scrollable-container {
    padding-bottom: calc(var(--dc-simple-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    background: var(--dc-simple-bg);
}

body.dc-ui-simple:not(.dark-command-pos) .content {
    padding: 12px 14px 20px !important;
}

body.dc-ui-simple:not(.dark-command-pos) .box,
body.dc-ui-simple:not(.dark-command-pos) .tw-bg-white.tw-shadow-sm.tw-rounded-xl {
    border-radius: 16px !important;
    border: 1px solid var(--dc-simple-line) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.dc-ui-simple:not(.dark-command-pos) a,
body.dc-ui-simple:not(.dark-command-pos) button {
    touch-action: manipulation;
}

/* Phone / tablet: hide fat desktop header — app bars + bottom nav instead */
@media (max-width: 1199.98px) {
    body.dc-ui-simple:not(.dark-command-pos) .dc-main-header {
        display: none !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .tw-flex > main,
    body.dc-ui-simple:not(.dark-command-pos) main.tw-flex-1 {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    body.dc-ui-simple:not(.dark-command-pos) {
        --dc-simple-nav-h: 0px;
    }

    body.dc-ui-simple:not(.dark-command-pos) .dc-simple-bottom,
    body.dc-ui-simple:not(.dark-command-pos) .dc-simple-homebar {
        display: none !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .dc-main-header .tw-px-5 {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .content {
        padding: 18px 24px 32px !important;
        max-width: 1280px;
        margin: 0 auto;
        width: 100%;
    }
}

/* -------- App bars -------- */
.dc-simple-homebar,
.dc-simple-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dc-simple-line);
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 56px;
}

.dc-simple-homebar-id {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.dc-simple-homebar-id strong,
.dc-simple-chrome h1 {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dc-simple-ink);
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-simple-homebar-id span {
    display: block;
    font-size: 12px;
    color: var(--dc-simple-muted);
}

.dc-simple-chrome h1 {
    flex: 1;
}

.dc-simple-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #1e3a5f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.dc-simple-back,
.dc-simple-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: #eef2f7;
    color: #1f2937;
    font-size: 13px;
    font-weight: 650;
    padding: 0 12px;
    border-radius: 12px;
    min-height: 40px;
    min-width: 40px;
    text-decoration: none;
    cursor: pointer;
}

.dc-simple-back:hover,
.dc-simple-more-btn:hover {
    background: #e2e8f0;
    color: #111827;
    text-decoration: none;
}

@media (max-width: 1199.98px) {
    .dc-simple-more-desktop span,
    .dc-simple-back span,
    .dc-simple-homebar .dc-simple-more-btn span {
        display: none;
    }

    .dc-simple-more-desktop {
        display: none !important;
    }
}

/* -------- Drawer / bottom sheet -------- */
.dc-simple-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    visibility: hidden;
    pointer-events: none;
}

.dc-simple-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.dc-simple-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    transition: opacity 220ms ease;
}

.dc-simple-drawer.is-open .dc-simple-drawer-backdrop {
    opacity: 1;
}

.dc-simple-drawer-panel {
    position: absolute;
    background: #f6f7fb;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dc-simple-sheet-handle {
    display: none;
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: #cbd5e1;
    margin: 8px auto 4px;
}

.dc-simple-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dc-simple-drawer-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.dc-simple-drawer-close {
    border: 0;
    background: #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    color: #111827;
}

.dc-simple-account {
    background: #fff;
    border: 1px solid var(--dc-simple-line);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
}

.dc-simple-account-who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dc-simple-account-who strong {
    display: block;
    font-size: 14px;
    color: var(--dc-simple-ink);
}

.dc-simple-account-who small {
    display: block;
    color: var(--dc-simple-muted);
    font-size: 12px;
}

.dc-simple-account-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.dc-simple-account-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    min-height: 58px;
    justify-content: center;
}

.dc-simple-account-actions a i {
    font-size: 14px;
    color: #1d4ed8;
}

.dc-simple-account-actions a:hover {
    background: #eef2ff;
    text-decoration: none;
    color: #1e293b;
}

@media (max-width: 1199.98px) {
    .dc-simple-drawer-panel {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: min(88vh, 760px);
        border-radius: 20px 20px 0 0;
        padding: 4px 16px calc(28px + env(safe-area-inset-bottom, 0px));
        transform: translateY(108%);
        transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    }

    .dc-simple-drawer.is-open .dc-simple-drawer-panel {
        transform: translateY(0);
    }

    .dc-simple-sheet-handle {
        display: block;
    }
}

@media (min-width: 1200px) {
    .dc-simple-drawer-panel {
        top: 0;
        right: 0;
        height: 100%;
        width: min(420px, 100%);
        padding: 18px 16px 32px;
        transform: translateX(104%);
        transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    }

    .dc-simple-drawer.is-open .dc-simple-drawer-panel {
        transform: translateX(0);
    }
}

body.dc-simple-drawer-open {
    overflow: hidden;
}

/* -------- Bottom app nav -------- */
.dc-simple-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    background: rgba(15, 39, 68, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
}

.dc-simple-bottom a,
.dc-simple-bottom button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
}

.dc-simple-bottom a i,
.dc-simple-bottom button i {
    font-size: 18px;
}

.dc-simple-bottom a.is-active,
.dc-simple-bottom button.is-active {
    color: #fff;
}

.dc-simple-bottom a:hover,
.dc-simple-bottom button:hover {
    color: #fff;
    text-decoration: none;
}

.dc-simple-bottom a.is-active i,
.dc-simple-bottom button.is-active i {
    transform: translateY(-1px);
}

.dc-nav-pos {
    position: relative;
    top: -10px;
}

.dc-nav-pos-fab {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.38);
    margin-bottom: 2px;
}

.dc-nav-pos-fab i {
    font-size: 18px !important;
    color: #fff;
}

.dc-simple-bottom a.dc-nav-pos {
    color: #fff;
}

@media (min-width: 1200px) {
    .dc-simple-bottom {
        display: none;
    }
}

/* -------- Dashboard -------- */
.dc-simple-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 4px 8px;
}

.dc-simple-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.dc-simple-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dc-simple-muted);
}

.dc-simple-hero h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--dc-simple-ink);
    font-weight: 750;
}

.dc-simple-hero p {
    margin: 6px 0 0;
    color: var(--dc-simple-muted);
    font-size: 14px;
    max-width: 40rem;
}

.dc-simple-pos-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1d4ed8;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    min-height: 52px;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}

.dc-simple-pos-cta:hover,
.dc-simple-pos-cta:active {
    background: #1e40af;
    color: #fff !important;
    text-decoration: none;
}

.dc-simple-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.dc-simple-kpi {
    background: var(--dc-simple-card);
    border: 1px solid var(--dc-simple-line);
    border-radius: 16px;
    padding: 12px 14px;
    min-height: 84px;
}

.dc-simple-kpi span {
    display: block;
    font-size: 11px;
    font-weight: 650;
    color: var(--dc-simple-muted);
}

.dc-simple-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: var(--dc-simple-ink);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-simple-group {
    margin-bottom: 20px;
}

.dc-simple-group h2 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dc-simple-muted);
}

.dc-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dc-simple-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--dc-simple-card);
    border: 1px solid var(--dc-simple-line);
    border-radius: 16px;
    padding: 14px 12px 14px;
    min-height: 104px;
    text-decoration: none;
    color: var(--dc-simple-ink);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.dc-simple-tile:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: var(--dc-simple-ink);
    text-decoration: none;
}

.dc-simple-tile:active {
    transform: scale(0.98);
}

.dc-simple-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.dc-simple-tile-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dc-simple-tile-hint {
    font-size: 12px;
    color: var(--dc-simple-muted);
    line-height: 1.3;
}

.dc-tile-sell { background: #1d4ed8; }
.dc-tile-buy { background: #0f766e; }
.dc-tile-stock { background: #b45309; }
.dc-tile-people { background: #6d28d9; }
.dc-tile-money { background: #047857; }
.dc-tile-report { background: #1e3a8a; }
.dc-tile-admin { background: #334155; }

@media (max-width: 419px) {
    .dc-simple-tile-hint {
        display: none;
    }

    .dc-simple-tile {
        min-height: 92px;
        padding: 12px 10px;
    }

    .dc-simple-kpi strong {
        font-size: 16px;
    }
}

@media (max-width: 699.98px) {
    .dc-simple-pos-cta {
        width: 100%;
    }

    .dc-simple-hero {
        margin-bottom: 14px;
    }
}

@media (min-width: 700px) {
    .dc-simple-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dc-simple-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dc-simple-home {
        padding: 12px 8px;
    }
}

@media (min-width: 1024px) {
    .dc-simple-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dc-simple-tile {
        min-height: 116px;
        padding: 16px 16px 18px;
    }

    .dc-simple-kpi {
        min-height: 96px;
        padding: 16px 18px;
    }

    .dc-simple-kpi strong {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .dc-simple-home {
        padding: 8px 0 24px;
    }

    .dc-simple-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

/* -------- List screens -------- */
body.dc-ui-simple:not(.dark-command-pos) .dc-filter-card {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) .dataTables_length,
body.dc-ui-simple:not(.dark-command-pos) .dt-buttons,
body.dc-ui-simple:not(.dark-command-pos) .dt-button-collection {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) .dataTables_wrapper .row.margin-bottom-20 {
    margin-bottom: 8px !important;
}

body.dc-ui-simple:not(.dark-command-pos) .dataTables_filter {
    float: none !important;
    text-align: left !important;
    width: 100% !important;
    padding: 0 0 10px !important;
}

body.dc-ui-simple:not(.dark-command-pos) .dataTables_filter label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: min(100%, 520px);
    font-weight: 600;
    color: #334155;
}

body.dc-ui-simple:not(.dark-command-pos) .dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 16px;
    box-shadow: none;
}

body.dc-ui-simple:not(.dark-command-pos) a.tw-dw-btn[href*="downloadExcel"],
body.dc-ui-simple:not(.dark-command-pos) a.product_stock_report,
body.dc-ui-simple:not(.dark-command-pos) #product_table_wrapper tfoot,
body.dc-ui-simple:not(.dark-command-pos) #product_table tfoot,
body.dc-ui-simple:not(.dark-command-pos) #mass_delete_form,
body.dc-ui-simple:not(.dark-command-pos) #bulk_edit_form,
body.dc-ui-simple:not(.dark-command-pos) #mass_deactivate_form,
body.dc-ui-simple:not(.dark-command-pos) .update_product_location {
    display: none !important;
}

body.dc-ui-simple:not(.dark-command-pos) .box-tools {
    float: none !important;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 !important;
    top: auto !important;
}

body.dc-ui-simple:not(.dark-command-pos) .box-tools a.tw-dw-btn,
body.dc-ui-simple:not(.dark-command-pos) a.tw-dw-btn.tw-from-indigo-600 {
    background-image: none !important;
    background-color: #16a34a !important;
    color: #fff !important;
    border-radius: 14px !important;
    min-height: 46px;
    padding: 12px 16px !important;
    font-size: 15px;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body.dc-ui-simple:not(.dark-command-pos) .box-tools a.tw-dw-btn:hover,
body.dc-ui-simple:not(.dark-command-pos) a.tw-dw-btn.tw-from-indigo-600:hover {
    background-color: #15803d !important;
    color: #fff !important;
}

body.dc-ui-simple:not(.dark-command-pos) table.dataTable {
    font-size: 14px;
}

body.dc-ui-simple:not(.dark-command-pos) table.dataTable thead th {
    white-space: nowrap;
}

body.dc-ui-simple:not(.dark-command-pos) table.dataTable tbody td {
    vertical-align: middle;
}

body.dc-ui-simple:not(.dark-command-pos) .btn,
body.dc-ui-simple:not(.dark-command-pos) .dropdown-toggle {
    min-height: 36px;
}

@media (max-width: 699.98px) {
    body.dc-ui-simple:not(.dark-command-pos) .dataTables_info {
        display: none !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) table.dataTable tbody td,
    body.dc-ui-simple:not(.dark-command-pos) table.dataTable thead th {
        padding: 12px 10px !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .dataTables_paginate .paginate_button {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 10px !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .box-header {
        padding: 12px 12px 0 !important;
    }

    body.dc-ui-simple:not(.dark-command-pos) .box-body {
        padding: 12px !important;
    }
}

@media (min-width: 700px) {
    body.dc-ui-simple:not(.dark-command-pos) .box-tools a.tw-dw-btn,
    body.dc-ui-simple:not(.dark-command-pos) a.tw-dw-btn.tw-from-indigo-600 {
        width: auto;
        min-width: 140px;
    }

    body.dc-ui-simple:not(.dark-command-pos) .box-tools {
        display: flex;
        justify-content: flex-end;
    }
}

body.dc-theme-dark.dc-ui-simple:not(.dark-command-pos) {
    --dc-simple-bg: #0b1220;
    --dc-simple-ink: #f1f5f9;
    --dc-simple-muted: #94a3b8;
    --dc-simple-card: #152033;
    --dc-simple-line: #243247;
}

body.dc-theme-dark.dc-ui-simple:not(.dark-command-pos) .dc-simple-chrome,
body.dc-theme-dark.dc-ui-simple:not(.dark-command-pos) .dc-simple-homebar,
body.dc-theme-dark .dc-simple-kpi,
body.dc-theme-dark .dc-simple-tile,
body.dc-theme-dark .dc-simple-drawer-panel,
body.dc-theme-dark .dc-simple-account {
    background: #152033;
    border-color: #243247;
}

body.dc-theme-dark .dc-simple-chrome h1,
body.dc-theme-dark .dc-simple-homebar-id strong,
body.dc-theme-dark .dc-simple-hero h1,
body.dc-theme-dark .dc-simple-kpi strong,
body.dc-theme-dark .dc-simple-tile,
body.dc-theme-dark .dc-simple-tile-label,
body.dc-theme-dark .dc-simple-drawer-head h2,
body.dc-theme-dark .dc-simple-account-who strong {
    color: #f1f5f9;
}

body.dc-theme-dark .dc-simple-kicker,
body.dc-theme-dark .dc-simple-hero p,
body.dc-theme-dark .dc-simple-kpi span,
body.dc-theme-dark .dc-simple-tile-hint,
body.dc-theme-dark .dc-simple-group h2,
body.dc-theme-dark .dc-simple-homebar-id span,
body.dc-theme-dark .dc-simple-account-who small {
    color: #94a3b8;
}

body.dc-theme-dark .dc-simple-back,
body.dc-theme-dark .dc-simple-more-btn,
body.dc-theme-dark .dc-simple-account-actions a {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dc-theme-dark.dc-ui-simple:not(.dark-command-pos) .dataTables_filter label {
    color: #cbd5e1;
}

body.dc-theme-dark.dc-ui-simple:not(.dark-command-pos) .dataTables_filter input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    .dc-simple-tile,
    .dc-ui-mode-seg button,
    .dc-simple-drawer-panel,
    .dc-simple-drawer-backdrop {
        transition: none !important;
    }
}

@media print {
    .dc-simple-bottom,
    .dc-simple-chrome,
    .dc-simple-homebar,
    .dc-simple-drawer {
        display: none !important;
    }
}

/* -------- Simple units -------- */
.dc-simple-units { max-width: 880px; margin: 0 auto; }
.dc-su-hero { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.dc-su-hero h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.03em; font-weight: 750; color: #0f172a; }
.dc-su-hero p { margin: 6px 0 0; color: #64748b; font-size: 14px; max-width: 38rem; }
.dc-su-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-su-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 14px; border-radius: 14px;
    background: #fff; color: #1e3a5f; border: 1px solid #dbe3ee;
    font-weight: 700; text-decoration: none; cursor: pointer;
}
.dc-su-secondary:hover { background: #f8fafc; color: #1e3a5f; text-decoration: none; }
.dc-su-empty {
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px;
    padding: 36px 20px; text-align: center;
}
.dc-su-empty i { font-size: 32px; color: #1d4ed8; }
.dc-su-empty h2 { margin: 10px 0 6px; font-size: 20px; }
.dc-su-empty p { color: #64748b; margin-bottom: 16px; }
.dc-su-families { display: grid; gap: 14px; }
.dc-su-family {
    background: #fff; border: 1px solid #e6eaf0; border-radius: 20px;
    padding: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.dc-su-chain { display: flex; flex-direction: column; gap: 8px; }
.dc-su-pill {
    background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 16px;
    padding: 12px 14px;
}
.dc-su-pill-name { font-size: 18px; font-weight: 750; color: #0f172a; display: block; }
.dc-su-pill small { color: #64748b; }
.dc-su-pill-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dc-su-pill-actions button {
    min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid #dbe3ee;
    background: #fff; font-weight: 650; font-size: 13px; cursor: pointer; color: #1e293b;
}
.dc-su-pill-actions .simple-delete-unit { color: #b91c1c; border-color: #fecaca; }
.dc-su-link { font-size: 13px; color: #64748b; padding-left: 8px; }
.dc-su-link strong { color: #1d4ed8; font-weight: 750; }
.dc-su-summary { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #eef2f7; color: #334155; font-weight: 650; font-size: 13px; }
.dc-su-modal .modal-body { padding: 16px 18px 8px; }
.dc-su-hint { color: #475569; margin-bottom: 14px; }
.dc-su-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; margin: 12px 0 6px; }
.dc-su-input { min-height: 44px !important; border-radius: 12px !important; font-size: 16px !important; }
.dc-su-chips, .dc-su-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dc-su-chips button, .dc-su-preset {
    border: 1px solid #dbe3ee; background: #fff; border-radius: 999px;
    padding: 8px 12px; min-height: 40px; font-weight: 650; cursor: pointer; color: #1e293b;
}
.dc-su-preset.is-on, .dc-su-chips button:hover, .dc-su-preset:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.dc-su-choice { display: grid; gap: 8px; }
.dc-su-choice label, .dc-su-check {
    display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e6eaf0;
    border-radius: 12px; padding: 10px 12px; font-weight: 600; min-height: 44px; margin: 0;
}
.dc-su-eq { display: flex; align-items: center; gap: 8px; }
.dc-su-eq .form-control { flex: 1; }
.dc-su-steps { display: grid; gap: 10px; }
.dc-su-step {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start;
    background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 16px; padding: 12px;
}
.dc-su-step-n {
    width: 32px; height: 32px; border-radius: 10px; background: #1e3a5f; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.dc-su-eq-line { margin: 8px 0 0; color: #334155; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc-su-qty { width: 88px !important; min-height: 40px !important; border-radius: 10px !important; text-align: center; font-size: 16px !important; }
.dc-su-remove { border: 0; background: transparent; font-size: 22px; color: #94a3b8; cursor: pointer; padding: 4px 8px; }
.dc-su-preview {
    margin-top: 14px; background: #ecfdf5; color: #065f46; border-radius: 14px;
    padding: 12px 14px; font-weight: 750; font-size: 14px;
}
@media (max-width: 699.98px) {
    .dc-su-hero-actions { width: 100%; }
    .dc-su-hero-actions a, .dc-simple-units .dc-simple-pos-cta { width: 100%; justify-content: center; }
    .dc-su-eq { flex-direction: column; align-items: stretch; }
}
body.dc-theme-dark .dc-su-family, body.dc-theme-dark .dc-su-pill, body.dc-theme-dark .dc-su-step, body.dc-theme-dark .dc-su-empty, body.dc-theme-dark .dc-su-secondary {
    background: #152033; border-color: #243247; color: #e2e8f0;
}
body.dc-theme-dark .dc-su-hero h1, body.dc-theme-dark .dc-su-pill-name { color: #f1f5f9; }

