#ds-root {
    --ds-primary: var(--pt-primary);
    --ds-primary-400: var(--pt-primary-400);

    --ds-radius-pill: var(--pt-radius-pill);
    --ds-radius-md: var(--pt-radius-md);
    --ds-radius-sm: var(--pt-radius-sm);
    --ds-weight-regular: var(--pt-weight-regular);
    --ds-elevation-med: var(--pt-elevation-med);
    --ds-font-mono: var(--pt-font-mono);
}

html, body {
    font-family: var(--pt-font-sans);
}

.material-symbols-rounded {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
}

.ds-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--pt-background);
    color: var(--pt-text-secondary);
    z-index: 3000;
}
.ds-splash-text { margin-top: 24px; opacity: .8; }

.brand-loader { display: inline-grid; place-items: center; }
.brand-loader > * { grid-area: 1 / 1; }
.brand-loader .bl-ring { display: block; width: 100%; height: 100%; transform-box: fill-box; transform-origin: center; animation: ds-spin 1.15s linear infinite; }
.brand-loader .bl-ring circle.track { stroke: var(--mud-palette-lines-default, rgba(0, 0, 0, .12)); opacity: .6; }
.brand-loader .bl-ring circle.ind { stroke: var(--ds-primary, var(--pt-primary, #0E8C81)); stroke-linecap: round; stroke-dasharray: 150; stroke-dashoffset: 110; }
.brand-loader .bl-mark { width: 46%; height: 46%; object-fit: contain; }
.ld-94 { width: 94px; height: 94px; }
.ld-64 { width: 64px; height: 64px; }
.ld-40 { width: 40px; height: 40px; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-loader .bl-ring { animation-duration: 2.4s; } }

.brand-loader-overlay { display: grid; place-items: center; }
.brand-loader-overlay .bl-label { margin-top: 16px; font-weight: 500; font-size: 13.5px; color: #fff; text-align: center; }
.brand-loader-page { min-height: 100vh; display: grid; place-items: center; }
.brand-loader-page > [role="status"] { display: grid; justify-items: center; gap: 16px; }
.brand-loader-page .bl-label { font-weight: 500; font-size: 13.5px; color: var(--mud-palette-text-primary, #14231F); text-align: center; }

.ds-splash .brand-loader .bl-ring circle.track { stroke: var(--pt-border); opacity: 1; }

#ds-root {
    --ds-rail: #0C1E2E;
    --ds-rail-texto: #9DB4C6;
    --ds-rail-texto-forte: #EAF3FA;
    --ds-rail-secao: #4F6B81;
    --ds-rail-meta: #7F98AC;
}

.mud-drawer.ds-drawer,
.mud-drawer.ds-drawer .mud-drawer-content {
    background-color: var(--ds-rail) !important;
    color: var(--ds-rail-texto);
}
.mud-drawer.ds-drawer { border-right: 0; }
.ds-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 14px;
    box-sizing: border-box;
    overflow-x: hidden;
}
.ds-drawer .mud-navmenu { padding: 0; }
.ds-drawer .mud-nav-link {
    position: relative;
    gap: 13px;
    padding: 9px 11px;
    margin-bottom: 2px;
    border-radius: var(--pt-radius-md);
    color: var(--ds-rail-texto);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.ds-drawer .mud-nav-link .mud-nav-link-text { margin-inline-start: 0; font-size: 13.5px; }
.ds-drawer .mud-nav-link .mud-nav-link-icon { color: inherit; font-size: 20px; width: 20px; height: 20px; margin-inline-end: 0; }
.mud-drawer.ds-drawer .mud-nav-link:hover:not(.mud-nav-link-disabled) { background-color: rgba(255, 255, 255, .06); color: var(--ds-rail-texto-forte); }
.mud-drawer.ds-drawer .mud-nav-link.active,
.mud-drawer.ds-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(35, 176, 162, .18);
    color: #fff;
    font-weight: 500;
}
.ds-drawer .mud-nav-link.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--pt-primary-400);
}
.ds-drawer .mud-nav-group .mud-nav-link { color: var(--ds-rail-texto); }

.ds-nav-section {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ds-rail-secao);
    padding: 18px 11px 9px;
    white-space: nowrap;
    overflow: hidden;
}

.ds-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 6px 8px 4px;
}
.ds-brand img { height: 28px; }
.ds-produto.mud-chip {
    align-self: flex-start;
    height: 21px;
    margin: 2px 8px 0;
    padding: 0 8px;
    border-radius: var(--pt-radius-sm);
    background: var(--pt-medsafe);
    border: 1px solid var(--pt-medsafe);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.ds-produto.mud-chip .mud-chip-content { padding: 0; }

.ds-drawer.mud-drawer--closed.mud-drawer-mini .mud-drawer-content { padding: 16px 10px; }
.ds-drawer.mud-drawer--closed.mud-drawer-mini .ds-brand {
    justify-content: center;
    padding: 6px 0 4px;
}
.ds-drawer.mud-drawer--closed.mud-drawer-mini .ds-produto { display: none; }
.ds-drawer.mud-drawer--closed.mud-drawer-mini .mud-nav-link {
    justify-content: center;
    padding: 10px 0;
}
.ds-drawer.mud-drawer--closed.mud-drawer-mini .mud-nav-link.active::before { left: -10px; }
.ds-drawer.mud-drawer--closed.mud-drawer-mini .ds-nav-section {
    height: 1px;
    padding: 0;
    margin: 12px 12px;
    font-size: 0;
    letter-spacing: 0;
    background-color: rgba(255, 255, 255, .07);
}

.ds-tenant { padding: 0; margin-top: auto; }
.ds-tenant-current {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: var(--pt-radius-lg);
    cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: background .12s;
}
.ds-tenant-current:hover { background: rgba(255, 255, 255, .10); }
.ds-tenant-static, .ds-tenant-static:hover { cursor: default; background: rgba(255, 255, 255, .05); }
.ds-tenant-avatar { flex-shrink: 0; background: #fff; }
.ds-tenant-avatar .mud-image { width: 100%; height: 100%; }
.ds-tenant-logo { background: #fff; border-radius: var(--pt-radius-sm); padding: 2px; flex-shrink: 0; }
.ds-tenant-info { flex: 1; min-width: 0; }
.ds-tenant-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ds-rail-texto-forte);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-tenant-meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: var(--ds-rail-meta); }
.ds-tenant-meta .mud-icon-root { font-size: 13px; width: 13px; height: 13px; }
.ds-tenant-caret.mud-icon-root { color: var(--ds-rail-meta); font-size: 18px; flex-shrink: 0; }
.ds-tenant-mini .ds-tenant-current { justify-content: center; padding: 6px; }

.mud-appbar.ds-topbar {
    border-bottom: 1px solid var(--pt-border);
    background-color: var(--pt-surface);
}
.mud-appbar.ds-topbar .mud-toolbar { padding: 0 22px; gap: 8px; }
.mud-appbar.ds-topbar .mud-icon-button { width: 40px; height: 40px; color: var(--pt-text-secondary); }
.mud-appbar.ds-topbar .mud-icon-button:hover { color: var(--pt-primary); }
.ds-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 12px;
    margin-left: 6px;
    border-left: 1px solid var(--pt-divider);
    cursor: pointer;
}
.ds-usuario-nome { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--pt-text-primary); }
.ds-usuario-papel { font-size: 11px; line-height: 1.3; color: var(--pt-text-secondary); }
.ds-usuario .mud-avatar { width: 36px; height: 36px; font-size: 13px; font-weight: 600; }
.ds-usuario-avatar { position: relative; flex-shrink: 0; }
.ds-usuario-avatar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pt-success-500);
    border: 2px solid var(--pt-surface);
}

.ds-canvas {
    max-width: var(--pt-content-max);
    margin-inline: auto;
    width: 100%;
}
.mud-container.ds-canvas.pa-6 { padding: 26px 30px 44px !important; }

.ds-crumbs.mud-breadcrumbs { padding: 0 0 9px; font-size: 12.5px; color: var(--pt-text-secondary); }
.ds-crumbs .mud-breadcrumb-item > a,
.ds-crumbs .mud-breadcrumb-item { color: var(--pt-text-secondary); font-size: 12.5px; }
.ds-crumbs .mud-breadcrumb-item .mud-icon-root { display: none; }
.ds-crumbs .mud-breadcrumb-separator { color: var(--pt-text-disabled); padding: 0 6px; }
.ds-crumbs .mud-breadcrumb-item.mud-disabled > a,
.ds-crumbs .mud-breadcrumb-item.mud-disabled { color: var(--pt-text-secondary); opacity: 1; }
.ds-page-title { font-size: 30px !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: -0.6px !important; margin: 0 !important; outline: none; }
.ds-page-title.ds-page-title-mono { font-family: var(--pt-font-mono) !important; font-size: 24px !important; font-weight: 500 !important; letter-spacing: 0 !important; }

.mud-tabs .mud-tabs-tabbar { border-bottom: 1px solid var(--pt-border); padding: 0 12px; background: transparent; }
.mud-tabs .mud-tabs-tabbar .mud-tab.mud-tab-panel, .mud-tabs .mud-tab {
    min-width: 0 !important;
    min-height: 0;
    padding: 12px 14px;
    text-transform: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    color: var(--pt-text-secondary);
}
.mud-tabs .mud-tab.mud-tab-active { color: var(--pt-primary-700); font-weight: 600; }
.mud-tabs .mud-tab .mud-chip.mud-chip-size-small { background: var(--pt-muted); color: var(--pt-text-secondary); padding: 2px 7px; font-size: 11px; margin-left: 6px; }
.mud-tabs .mud-tab-slider { height: 2px; background: var(--pt-primary); }

.ds-pares.mud-simple-table { padding: 6px 20px; background: transparent; overflow: visible; }
.ds-pares.mud-simple-table .mud-table-container { overflow: visible; }
.ds-pares.mud-simple-table table { border-collapse: separate; border-spacing: 0 10px; }
.ds-pares.mud-simple-table table th,
.ds-pares.mud-simple-table table td { border: 0; padding: 0; vertical-align: top; background: transparent; }
.ds-pares.mud-simple-table table th { width: 116px; padding-right: 12px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--pt-text-secondary); text-align: left; }
.ds-pares.mud-simple-table table td { font-size: 13.5px; line-height: 1.4; color: var(--pt-text-primary); }

.ds-page-sub { font-size: 13.5px; color: var(--pt-text-secondary); margin-top: 7px; }

.mud-paper.mud-paper-outlined { border-color: var(--pt-border); box-shadow: var(--pt-elevation-low); }

.mud-input-control.mud-input-outlined-with-label { margin-top: 20px; }
.mud-input-control.mud-input-outlined-with-label.mud-input-control-margin-dense { margin-top: 20px; margin-bottom: 4px; }
.mud-input-control:has(.mud-input-outlined) .mud-input-label.mud-input-label-outlined {
    transform: translate(0, -19px) scale(1) !important;
    left: 0;
    padding: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: var(--pt-text-secondary);
    max-width: 100%;
}
.mud-input-control:has(.mud-input-outlined) .mud-input-label-outlined.mud-input-error { color: var(--mud-palette-error); }
.mud-input-outlined .mud-input-outlined-border legend { display: none; }
.mud-input.mud-input-outlined {
    min-height: 34px;
    border-radius: var(--pt-radius-md);
    background: var(--pt-surface);
    font-size: 13px;
}
.mud-input.mud-input-outlined .mud-input-outlined-border { border-color: var(--pt-border-strong); border-radius: var(--pt-radius-md); }
.mud-input.mud-input-outlined:not(.mud-disabled):hover .mud-input-outlined-border { border-color: var(--pt-border-strong); }
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border { border-width: 1px; border-color: var(--pt-primary); box-shadow: 0 0 0 3px var(--pt-ring); }
.mud-input.mud-input-outlined.mud-input-error .mud-input-outlined-border { border-color: var(--mud-palette-error); }
.mud-input.mud-input-outlined > input.mud-input-root,
.mud-input.mud-input-outlined .mud-input-slot,
.mud-input.mud-input-outlined div.mud-input-slot.mud-input-root {
    padding: 8px 10px !important;
    font-size: 13px;
    line-height: 16px;
    height: auto;
}
.mud-input.mud-input-outlined > textarea.mud-input-root { padding: 8px 10px; font-size: 13px; line-height: 1.5; }
.mud-input.mud-input-outlined .mud-input-adornment-end { margin-right: 8px; }
.mud-input.mud-input-outlined .mud-input-adornment .mud-icon-root,
.mud-input.mud-input-outlined .mud-input-adornment .mud-icon-button .mud-icon-root { font-size: 18px; color: var(--pt-text-secondary); }
.mud-input.mud-input-outlined .mud-input-adornment .mud-icon-button { padding: 4px; }
.mud-input-control .mud-input-helper-text { font-size: 11.5px; line-height: 1.35; margin-top: 5px; padding: 0; color: var(--pt-text-secondary); }
.mud-input-control .mud-input-helper-text.mud-input-error { color: var(--mud-palette-error); }
.mud-input-control > .mud-input-control-helper-container { padding: 0; }

.mud-button-root.mud-button {
    height: 32px;
    min-width: 0;
    padding: 0 13px;
    gap: 7px;
    border-radius: var(--pt-radius-md);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}
.mud-button-root.mud-button .mud-button-icon-start { margin: 0; }
.mud-button-root.mud-button .mud-button-icon-end { margin: 0; }
.mud-button-root.mud-button .mud-button-icon-start .mud-icon-root,
.mud-button-root.mud-button .mud-button-icon-end .mud-icon-root,
.mud-button-root.mud-button .mud-button-icon-start > *:first-child,
.mud-button-root.mud-button .mud-button-icon-end > *:first-child { font-size: 17px; }
.mud-button-root.mud-button-filled { box-shadow: var(--pt-elevation-low); }
.mud-button-root.mud-button-filled:hover { box-shadow: var(--pt-elevation-low); }
.mud-button-root.mud-button-filled-primary:hover { background-color: var(--pt-primary-600); }
.mud-button-root.mud-button-outlined {
    background: var(--pt-surface);
    color: var(--pt-text-primary);
    border: 1px solid var(--pt-border-strong);
    box-shadow: var(--pt-elevation-low);
}
.mud-button-root.mud-button-outlined:hover { background: var(--pt-muted); }
.mud-button-root.mud-button-outlined.mud-button-outlined-error { color: var(--pt-error-700); border-color: var(--pt-error-100); }
.mud-button-root.mud-button-text { color: var(--pt-text-secondary); }
.mud-button-root.mud-button-text:hover { background: var(--pt-action-hover); color: var(--pt-text-primary); }
.mud-button-root.mud-button-text.mud-button-text-primary { color: var(--pt-primary-600); }
.mud-button-root.mud-button-text.mud-button-text-error { color: var(--pt-error-700); }
.mud-button-root.mud-button.mud-button-disabled,
.mud-button-root.mud-button:disabled {
    background: var(--pt-action-disabled-bg);
    color: var(--pt-text-disabled);
    border-color: transparent;
    box-shadow: none;
}
.mud-button-root.mud-button-text.mud-button-disabled,
.mud-button-root.mud-button-text:disabled { background: transparent; }

.mud-alert {
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--pt-radius-md);
    border-left: 3px solid;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pt-neutral-800);
}
.mud-alert.mud-dense { padding: 12px 14px; }
.mud-alert .mud-alert-position { gap: 12px; align-items: flex-start; }
.mud-alert .mud-alert-icon { margin-right: 0; padding: 0; }

.ds-estreito { max-width: 1080px; width: 100%; margin-inline: auto; }
.ds-drop.mud-paper {
    padding: 36px 24px;
    border: 2px dashed var(--pt-border-strong);
    border-radius: var(--pt-radius-card);
    background: var(--pt-surface);
    box-shadow: none;
    text-align: center;
}
.ds-drop .mud-icon-root.mud-icon-size-large { font-size: 40px; width: 40px; height: 40px; }
.ds-drop-titulo.mud-button-root.mud-button-text { height: auto; padding: 4px 8px; color: var(--pt-text-primary); font-size: 15px; font-weight: 700; }
.ds-drop-titulo.mud-button-root.mud-button-text:hover { background: transparent; color: var(--pt-primary-700); }
.mud-alert .mud-alert-icon .mud-icon-root { font-size: 20px; }
.mud-alert .mud-alert-message { padding: 0; }
.mud-alert.mud-alert-text-info, .mud-alert.mud-alert-outlined-info { background: var(--pt-info-50); border-color: var(--pt-info-500); }
.mud-alert.mud-alert-text-info .mud-alert-icon, .mud-alert.mud-alert-outlined-info .mud-alert-icon { color: var(--pt-info-700); }
.mud-alert.mud-alert-text-warning, .mud-alert.mud-alert-outlined-warning { background: var(--pt-warning-50); border-color: var(--pt-warning-500); }
.mud-alert.mud-alert-text-warning .mud-alert-icon, .mud-alert.mud-alert-outlined-warning .mud-alert-icon { color: var(--pt-warning-700); }
.mud-alert.mud-alert-text-error, .mud-alert.mud-alert-outlined-error { background: var(--pt-error-50); border-color: var(--pt-error-500); }
.mud-alert.mud-alert-text-error .mud-alert-icon, .mud-alert.mud-alert-outlined-error .mud-alert-icon { color: var(--pt-error-700); }
.mud-alert.mud-alert-text-success, .mud-alert.mud-alert-outlined-success { background: var(--pt-success-50); border-color: var(--pt-success-500); }
.mud-alert.mud-alert-text-success .mud-alert-icon, .mud-alert.mud-alert-outlined-success .mud-alert-icon { color: var(--pt-success-700); }
.mud-alert.mud-alert-outlined-info, .mud-alert.mud-alert-outlined-warning,
.mud-alert.mud-alert-outlined-error, .mud-alert.mud-alert-outlined-success { border-top: 0; border-right: 0; border-bottom: 0; }

.mud-progress-linear.mud-progress-linear-medium { height: 6px; border-radius: var(--pt-radius-pill); overflow: hidden; }
.mud-progress-linear.mud-progress-linear-medium .mud-progress-linear-bars,
.mud-progress-linear.mud-progress-linear-medium .mud-progress-linear-bar { border-radius: var(--pt-radius-pill); }

.mud-list.mud-list-dense .mud-list-item { padding-top: 5px; padding-bottom: 5px; }
.mud-list.mud-list-dense .mud-list-item .mud-typography { font-size: 13px; }
.mud-list.mud-list-dense .mud-list-item .mud-icon-root.mud-icon-size-small { font-size: 18px; width: 18px; height: 18px; }

.mud-toggle-group {
    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
    background: var(--pt-surface);
}
.mud-toggle-group .mud-toggle-item.mud-button-root {
    height: auto;
    min-height: 0;
    padding: 8px 14px;
    border: 0;
    border-right: 1px solid var(--pt-border);
    border-radius: 0;
    background: var(--pt-surface);
    color: var(--pt-text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
}
.mud-toggle-group .mud-toggle-item.mud-button-root:last-child { border-right: 0; }
.mud-toggle-group .mud-toggle-item.mud-toggle-item-selected.mud-button-root { background: var(--pt-primary-50); color: var(--pt-primary-700); }

.mud-chip.mud-chip-size-small {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: var(--pt-radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
}
.mud-chip.mud-chip-size-small .mud-chip-content { padding: 0; gap: 5px; }
.mud-chip.mud-chip-size-small.mud-chip-outlined {
    height: 26px;
    padding: 0 6px 0 10px;
    background: var(--pt-primary-50);
    color: var(--pt-primary-700);
    border-color: var(--pt-primary-100);
    font-size: 12px;
}
.mud-chip.mud-chip-size-small.mud-chip-outlined .mud-chip-close-button { color: var(--pt-primary-700); }
.mud-chip.mud-chip-size-small.mud-chip-outlined .mud-chip-close-button .mud-icon-root { font-size: 15px; }

.mud-table .mud-table-head .mud-table-cell {
    padding: 8px 16px;
    background: var(--pt-muted);
    color: var(--pt-muted-foreground);
    border-bottom: 1px solid var(--pt-border);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .6px;
    line-height: 1.2;
    text-transform: uppercase;
}
.mud-table .mud-table-head .mud-table-cell .mud-table-sort-label { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.mud-table .mud-table-body .mud-table-cell {
    padding: 9px 16px;
    border-bottom: 1px solid var(--pt-divider);
    font-size: 13px;
    vertical-align: top;
}
.mud-table .mud-table-body .mud-table-row:last-child .mud-table-cell { border-bottom: 0; }
.mud-table .mud-table-pagination { border-top: 1px solid var(--pt-divider); font-size: 13px; color: var(--pt-text-secondary); }

.ds-opcao.mud-paper {
    flex: 1 1 260px;
    padding: 14px 16px;
    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-radius-lg);
    background: var(--pt-surface);
    box-shadow: none;
    font-size: 13.5px;
}
.ds-opcao.ds-opcao-on.mud-paper { border-color: var(--pt-primary); background: var(--pt-primary-50); }
.ds-opcao .mud-radio { align-items: flex-start; margin: 0; width: 100%; }
.ds-opcao .mud-radio .mud-button-root { padding: 0; margin-top: 1px; margin-right: 12px; }
.ds-opcao .mud-typography-subtitle2 { font-size: 13.5px; font-weight: 600; }
.ds-opcao .mud-typography-caption { font-size: 11.5px; }

.ds-painel-titulo { padding: 16px 20px; border-bottom: 1px solid var(--pt-border); font-size: 15px; font-weight: 600; line-height: 1.2; }
.ds-etapas { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ds-etapa { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pt-text-primary); }
.ds-etapa .mud-icon-root { font-size: 18px; width: 18px; height: 18px; color: var(--pt-text-disabled); }
.ds-etapa.ds-etapa-ok .mud-icon-root { color: var(--pt-success-600); }
.ds-etapa.ds-etapa-atual { font-weight: 600; }
.ds-etapa.ds-etapa-atual .mud-icon-root { color: var(--pt-primary); }
.ds-painel-acoes { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--pt-divider); }

.ds-secoes.mud-paper { overflow: hidden; }
.ds-secoes > .ds-formsection.mud-paper {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--pt-divider);
}
.ds-secoes > .ds-formsection.mud-paper:last-child { border-bottom: 0; }

.ds-search { max-width: 380px; }
.ds-search.mud-input-control .mud-input-outlined-border { border-radius: var(--ds-radius-pill); }
.ds-search.mud-input-control .mud-input.mud-input-outlined { border-radius: var(--ds-radius-pill); }

.mud-input-slot,
.mud-input-root input,
.mud-input-root textarea,
.mud-select-input .mud-input-slot { font-weight: var(--ds-weight-regular) !important; }

.ds-statcard { border-radius: var(--pt-radius-card); }
.ds-statcard-icon { width: 40px; height: 40px; border-radius: var(--ds-radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-statcard-value { font-weight: 600; letter-spacing: -.4px; line-height: 1; }
.ds-stat-primary { background: var(--pt-action-selected); color: var(--mud-palette-primary); }
.ds-stat-success { background: rgba(31, 157, 99, .16); color: var(--mud-palette-success); }
.ds-stat-warning { background: rgba(214, 148, 18, .18); color: var(--mud-palette-warning); }
.ds-stat-error   { background: rgba(214, 69, 69, .14); color: var(--mud-palette-error); }
.ds-stat-info    { background: var(--pt-info-50); color: var(--mud-palette-info); }
.ds-stat-default { background: var(--pt-neutral-100); color: var(--pt-text-secondary); }

.ds-formsection { border-radius: var(--pt-radius-card); overflow: hidden; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 20px; }
.ds-formsection-head { display: contents; }
.ds-formsection-head > :not(.ds-formsection-num) { grid-column: 2; }
.ds-formsection-num { grid-column: 1; grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--pt-primary-50); color: var(--pt-primary-700); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.ds-formsection-title { font-weight: 600; font-size: 15px; line-height: 1.3; margin: 4px 0 4px; }
.ds-formsection-sub { font-size: 12.5px; color: var(--pt-text-secondary); margin: 0 0 14px; }
.ds-formsection-body { grid-column: 2; padding: 8px 0 0; }

.ds-formgrid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ds-formgrid-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.ds-actionbar { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; box-shadow: var(--ds-elevation-med); padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
@media (max-width: 1100px) { .ds-formgrid { grid-template-columns: 1fr; } .ds-formgrid-aside { position: static; } }

.ds-usercell { display: inline-flex; align-items: center; gap: 11px; }
.ds-usercell-name { font-weight: 500; line-height: 1.25; }
.ds-usercell-mail { font-size: 12px; color: var(--mud-palette-text-secondary); }
.ds-mono { font-family: var(--ds-font-mono); font-size: 12.5px; color: var(--mud-palette-text-secondary); }

.ds-matrix-ic { width: 26px; height: 26px; border-radius: var(--ds-radius-sm); background: var(--pt-action-selected); color: var(--mud-palette-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ds-permcard { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; background: var(--mud-palette-surface); padding: 12px 14px 14px; }
.ds-permcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.ds-permcard-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ds-permcard-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.ds-permcard-count { font-size: 11.5px; color: var(--mud-palette-text-secondary); }
.ds-permchips { display: flex; flex-wrap: wrap; gap: 7px; }
.ds-permchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 9px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--ds-radius-pill); background: transparent; color: var(--mud-palette-text-secondary); font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.ds-permchip:hover { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary); }
.ds-permchip .mud-icon-root { font-size: 15px; }
.ds-permchip.is-on { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: var(--mud-palette-primary-text, #fff); }
.ds-permchip.is-on:hover { color: var(--mud-palette-primary-text, #fff); opacity: .92; }

.ds-prow { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--ds-radius-md); margin-bottom: 7px; }
.ds-prow-name { flex: 1; font-size: 13.5px; }
.ds-pgroup-head { font-weight: 600; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--mud-palette-text-secondary); padding: 14px 4px 8px; }

.ds-login.mud-paper {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}
.ds-login-art {
    position: relative;
    background:
        url("../images/auth/medsafe.png") center / cover no-repeat,
        var(--pt-secondary-800);
    overflow: hidden;
}
.ds-login-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27,26,72,.10) 0%, rgba(27,26,72,.02) 40%, rgba(17,16,46,.55) 100%);
    pointer-events: none;
}
.ds-login-art-content { position: relative; z-index: 1; height: 100%; width: 100%; padding: 48px 52px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.ds-login-mark { filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); align-self: flex-start; }
.ds-login-eyebrow { color: rgba(255,255,255,.82); font-weight: 600; letter-spacing: 1.4px; text-shadow: 0 1px 8px rgba(17,16,46,.4); }
.ds-login-title { max-width: 16ch; margin: 14px 0; color: #fff; font-weight: 600; letter-spacing: -.5px; line-height: 1.18; text-shadow: 0 2px 12px rgba(17,16,46,.45); }
.ds-login-description { max-width: 42ch; color: rgba(255,255,255,.9); line-height: 1.6; text-shadow: 0 1px 8px rgba(17,16,46,.4); }
.ds-login .ds-login-chip.mud-chip { margin: 20px 0 0; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 12px; font-weight: 500; }
.ds-login .ds-login-chip .mud-chip-icon { width: 9px; height: 9px; font-size: 9px; margin-right: 7px; color: var(--pt-cat-5); }
.ds-login-footer { display: block; margin-top: 26px; color: rgba(255,255,255,.78); }
.ds-login-form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--mud-palette-background);
}
.ds-login-toggle { position: absolute; top: 16px; right: 16px; }
.ds-login-card { padding: 8px 4px; background: transparent; }
.ds-login-logo { display: block; margin-bottom: 34px; }
.ds-login .ds-login-badge.mud-chip { display: inline-flex; margin: 0 0 22px; padding: 5px 11px 5px 9px; border: 1px solid var(--pt-border); border-radius: 999px; background: var(--pt-muted); color: var(--pt-text-secondary); font-size: 11.5px; font-weight: 500; }
.ds-login .ds-login-badge .mud-icon-root { color: var(--pt-primary); margin-right: 7px; }
.ds-login-badge .ds-login-badge-destaque { margin-left: .3em; color: var(--pt-text-primary); font-weight: 600; }
.ds-login-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    font-size: 12px;
    margin: 20px 0;
    gap: 12px;
}
.ds-login-or::before,
.ds-login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mud-palette-divider);
}

@media (max-width: 960px) {
    .ds-login.mud-paper { grid-template-columns: 1fr; }
    .ds-login-art { display: none; }
}


.ds-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.ds-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-texto-preservado {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mud-chip.ds-cls-ale { background: var(--pt-warning-50); color: var(--pt-warning-700); border: 1px solid var(--pt-warning-100); }
.mud-chip.ds-cls-fato { background: var(--pt-success-50); color: var(--pt-success-700); border: 1px solid var(--pt-success-100); }
.mud-chip.ds-cls-decl { background: var(--pt-secondary-50); color: var(--pt-secondary-700); border: 1px solid var(--pt-secondary-100); }
.mud-chip.ds-cls-achado { background: var(--pt-primary-50); color: var(--pt-primary-700); border: 1px solid var(--pt-primary-100); }
.mud-chip.ds-cls-interp { background: var(--pt-info-50); color: var(--pt-info-700); border: 1px solid var(--pt-info-100); }
.mud-chip.ds-cls-aus { background: var(--pt-surface); color: var(--pt-neutral-700); border: 1px dashed var(--pt-neutral-300); }

.ds-trecho {
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--pt-radius-sm);
    background: var(--pt-muted);
    color: var(--pt-text-primary);
    font: italic 12.5px/1.55 Georgia, "Times New Roman", serif;
}

.mud-dialog { border-radius: var(--pt-radius-xl); box-shadow: var(--pt-elevation-high); }
.mud-dialog .mud-dialog-title { padding: 18px 24px; border-bottom: 1px solid var(--pt-divider); }
.mud-dialog .mud-dialog-title .mud-typography { font-size: 18px; font-weight: 600; line-height: 1.3; }
.mud-dialog .mud-dialog-content { padding: 18px 24px 8px; font-size: 13.5px; line-height: 1.5; }
.mud-dialog .mud-dialog-actions { padding: 14px 24px; border-top: 1px solid var(--pt-divider); gap: 10px; }
.mud-dialog .mud-dialog-actions > :not(:first-child) { margin-left: 0; }

.ds-estado.mud-paper { padding: 28px 20px; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.ds-estado .mud-icon-root.mud-icon-size-large { font-size: 40px; width: 40px; height: 40px; }
.ds-estado .mud-typography-subtitle1 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ds-estado .mud-typography-body2 { font-size: 12.5px; line-height: 1.5; max-width: 320px; }

[data-theme="dark"] .mud-alert { color: var(--pt-text-primary); }
[data-theme="dark"] .mud-alert.mud-alert-text-info, [data-theme="dark"] .mud-alert.mud-alert-outlined-info { background: rgba(63, 192, 220, .12); }
[data-theme="dark"] .mud-alert.mud-alert-text-info .mud-alert-icon, [data-theme="dark"] .mud-alert.mud-alert-outlined-info .mud-alert-icon { color: #79CFE0; }
[data-theme="dark"] .mud-alert.mud-alert-text-warning, [data-theme="dark"] .mud-alert.mud-alert-outlined-warning { background: rgba(235, 181, 58, .12); }
[data-theme="dark"] .mud-alert.mud-alert-text-warning .mud-alert-icon, [data-theme="dark"] .mud-alert.mud-alert-outlined-warning .mud-alert-icon { color: #EBC56A; }
[data-theme="dark"] .mud-alert.mud-alert-text-error, [data-theme="dark"] .mud-alert.mud-alert-outlined-error { background: rgba(227, 107, 107, .12); }
[data-theme="dark"] .mud-alert.mud-alert-text-error .mud-alert-icon, [data-theme="dark"] .mud-alert.mud-alert-outlined-error .mud-alert-icon { color: #EC9A9A; }
[data-theme="dark"] .mud-alert.mud-alert-text-success, [data-theme="dark"] .mud-alert.mud-alert-outlined-success { background: rgba(70, 184, 121, .12); }
[data-theme="dark"] .mud-alert.mud-alert-text-success .mud-alert-icon, [data-theme="dark"] .mud-alert.mud-alert-outlined-success .mud-alert-icon { color: #7FD3A2; }
[data-theme="dark"] .ds-opcao.ds-opcao-on.mud-paper,
[data-theme="dark"] .mud-toggle-group .mud-toggle-item.mud-toggle-item-selected.mud-button-root,
[data-theme="dark"] .mud-chip.mud-chip-size-small.mud-chip-outlined,
[data-theme="dark"] .ds-formsection-num { background: rgba(35, 176, 162, .16); color: #5FC9BE; border-color: rgba(35, 176, 162, .32); }
[data-theme="dark"] .mud-chip.mud-chip-size-small.mud-chip-outlined .mud-chip-close-button { color: #5FC9BE; }
[data-theme="dark"] .mud-tabs .mud-tab.mud-tab-active { color: #5FC9BE; }
