:root {
    --dp-ink: #07111f;
    --dp-ink-2: #101828;
    --dp-text: #172033;
    --dp-muted: #64748b;
    --dp-muted-2: #94a3b8;

    --dp-bg: #f4f8fb;
    --dp-surface: #ffffff;
    --dp-surface-soft: #f8fbff;
    --dp-border: rgba(15, 23, 42, 0.10);

    --dp-aqua: #12d8c4;
    --dp-aqua-dark: #089685;
    --dp-violet: #7357ff;
    --dp-pink: #ff4f88;
    --dp-blue: #2bb7ff;
    --dp-orange: #ff9f43;
    --dp-green: #22c55e;

    --dp-danger: #dc2626;
    --dp-danger-soft: #fff1f2;
    --dp-success: #059669;
    --dp-success-soft: #ecfdf5;

    --dp-radius-sm: 14px;
    --dp-radius-md: 18px;
    --dp-radius-lg: 24px;
    --dp-radius-xl: 32px;

    --dp-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
    --dp-shadow-md: 0 20px 55px rgba(15, 23, 42, 0.12);
    --dp-shadow-lg: 0 28px 90px rgba(8, 17, 31, 0.22);

    --dp-sidebar-width: 292px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--dp-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(18, 216, 196, 0.17), transparent 31%),
        radial-gradient(circle at 92% 8%, rgba(115, 87, 255, 0.15), transparent 31%),
        linear-gradient(180deg, #f8fbff 0%, #eef6fb 100%);
}

body.dp-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* LOGIN */

.dp-auth-page {
    min-height: 100vh;
    padding: clamp(14px, 4vw, 42px);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 12%, rgba(18, 216, 196, 0.25), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(115, 87, 255, 0.25), transparent 32%),
        radial-gradient(circle at 75% 85%, rgba(255, 79, 136, 0.18), transparent 34%),
        linear-gradient(135deg, #06111f 0%, #0d1d34 52%, #111827 100%);
}

.dp-auth-card {
    width: min(1180px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.dp-auth-showcase,
.dp-auth-form {
    border-radius: var(--dp-radius-xl);
    box-shadow: var(--dp-shadow-lg);
}

.dp-auth-showcase {
    color: #ffffff;
    padding: clamp(24px, 4vw, 52px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
        linear-gradient(145deg, rgba(18, 216, 196, 0.16), rgba(115, 87, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.dp-auth-showcase::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    right: -150px;
    bottom: -130px;
    background: linear-gradient(135deg, rgba(18, 216, 196, 0.24), rgba(255, 79, 136, 0.16));
    filter: blur(2px);
}

.dp-auth-showcase > * {
    position: relative;
    z-index: 1;
}

.dp-brand-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-logo {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 36% 30%, #ffffff 0 11%, transparent 12%),
        linear-gradient(135deg, var(--dp-aqua), var(--dp-violet));
    box-shadow: 0 18px 45px rgba(18, 216, 196, 0.24);
    flex-shrink: 0;
}

.dp-brand-name {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
}

.dp-brand-caption {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.dp-hero-title {
    max-width: 620px;
    margin: 44px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.dp-hero-text {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.72;
}

.dp-auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.dp-highlight {
    min-height: 126px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.dp-highlight b {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.dp-highlight span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.5;
}

.dp-auth-form {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(22px);
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dp-form-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(18, 216, 196, 0.11);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 20px;
}

.dp-form-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--dp-aqua);
    box-shadow: 0 0 18px rgba(18, 216, 196, 0.8);
}

.dp-auth-form h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: var(--dp-ink);
}

.dp-auth-form p {
    margin: 12px 0 28px;
    color: var(--dp-muted);
    line-height: 1.68;
    font-size: 15px;
}

/* LAYOUT */

.dp-app {
    width: 100%;
    min-height: 100vh;
    padding: clamp(12px, 2vw, 24px);
}

.dp-mobile-bar {
    display: none;
}

.dp-sidebar-overlay {
    display: none;
}

.dp-layout {
    display: grid;
    grid-template-columns: var(--dp-sidebar-width) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 24px);
    align-items: start;
}

.dp-sidebar {
    min-height: calc(100vh - 48px);
    position: sticky;
    top: 24px;
    border-radius: var(--dp-radius-xl);
    padding: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(18, 216, 196, 0.22), transparent 38%),
        radial-gradient(circle at 95% 10%, rgba(115, 87, 255, 0.22), transparent 38%),
        linear-gradient(180deg, #08111f 0%, #10233d 100%);
    color: #ffffff;
    box-shadow: var(--dp-shadow-lg);
    overflow: hidden;
}

.dp-sidebar::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    right: -95px;
    bottom: -80px;
    background: rgba(255, 79, 136, 0.14);
}

.dp-sidebar-inner {
    position: relative;
    z-index: 1;
}

.dp-sidebar-close {
    display: none;
}

.dp-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.dp-nav-brand .dp-logo {
    width: 50px;
    height: 50px;
    border-radius: 19px;
}

.dp-menu-title {
    margin: 20px 0 10px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 950;
}

.dp-menu {
    display: grid;
    gap: 8px;
}

.dp-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 17px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 750;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dp-menu-link:hover,
.dp-menu-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    transform: translateX(2px);
}

.dp-menu-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--dp-aqua);
    font-size: 13px;
    font-weight: 950;
}

.dp-sidebar-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dp-sidebar-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.dp-sidebar-card span {
    color: rgba(255, 255, 255, 0.62);
    display: block;
    font-size: 12px;
    line-height: 1.55;
}

.dp-main {
    min-width: 0;
}

.dp-topbar {
    min-height: 82px;
    border-radius: var(--dp-radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--dp-shadow-sm);
    padding: 16px clamp(16px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    backdrop-filter: blur(22px);
    margin-bottom: clamp(14px, 2vw, 24px);
}

.dp-page-title h1 {
    margin: 0;
    color: var(--dp-ink);
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.dp-page-title p {
    margin: 7px 0 0;
    color: var(--dp-muted);
    line-height: 1.5;
    font-size: 14px;
}

.dp-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #06111f;
    font-weight: 950;
    background: linear-gradient(135deg, var(--dp-aqua), #8affec);
    box-shadow: 0 14px 32px rgba(18, 216, 196, 0.20);
}

.dp-user-text {
    line-height: 1.2;
}

.dp-user-text strong {
    display: block;
    color: var(--dp-ink);
    font-size: 13px;
}

.dp-user-text span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
    margin-top: 3px;
}

.dp-btn-logout {
    border: 0;
    border-radius: 15px;
    padding: 10px 13px;
    color: #b42347;
    background: #fff1f4;
    font-weight: 900;
}

.dp-panel {
    border-radius: var(--dp-radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--dp-shadow-sm);
    padding: clamp(16px, 3vw, 28px);
    backdrop-filter: blur(22px);
}

/* TEXT / SECTIONS */

.dp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dp-section-head h2,
.dp-page-toolbar h2 {
    margin: 0;
    color: var(--dp-ink);
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.05em;
}

.dp-section-head p,
.dp-page-toolbar p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--dp-muted);
    line-height: 1.6;
    font-size: 14px;
}

.dp-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(18, 216, 196, 0.11);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

/* ALERTS */

.dp-alert {
    border-radius: 17px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.dp-alert-success {
    background: var(--dp-success-soft);
    color: var(--dp-success);
    border-color: rgba(5, 150, 105, 0.16);
}

.dp-alert-error {
    background: var(--dp-danger-soft);
    color: var(--dp-danger);
    border-color: rgba(220, 38, 38, 0.14);
}

/* BUTTONS */

.dp-btn-primary,
.dp-btn-action {
    min-height: 48px;
    border: 0;
    border-radius: 17px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--dp-aqua), #83ffe9);
    color: #06111f;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(18, 216, 196, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dp-btn-primary {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
}

.dp-btn-primary:hover,
.dp-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(18, 216, 196, 0.34);
}

.dp-btn-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid var(--dp-border);
    background: #ffffff;
    color: var(--dp-text);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dp-btn-secondary:hover {
    border-color: rgba(18, 216, 196, 0.42);
}

.dp-btn-mini {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    background: rgba(18, 216, 196, 0.12);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
}

.dp-btn-mini-soft {
    background: #f1f5f9;
    color: var(--dp-text);
}

/* STATS / MODULE CARDS */

.dp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.dp-stat {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-stat::after {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    right: -40px;
    top: -40px;
    background: rgba(18, 216, 196, 0.13);
}

.dp-stat:nth-child(2)::after {
    background: rgba(115, 87, 255, 0.12);
}

.dp-stat:nth-child(3)::after {
    background: rgba(255, 79, 136, 0.12);
}

.dp-stat:nth-child(4)::after {
    background: rgba(43, 183, 255, 0.13);
}

.dp-stat span {
    color: var(--dp-muted);
    font-size: 13px;
    font-weight: 850;
}

.dp-stat strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    color: var(--dp-ink);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.07em;
}

.dp-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dp-module-card {
    min-height: 190px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dp-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
    border-color: rgba(18, 216, 196, 0.42);
}

.dp-module-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--dp-aqua), var(--dp-violet), var(--dp-pink));
}

.dp-module-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dp-module-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--dp-ink);
    background: linear-gradient(135deg, rgba(18, 216, 196, 0.18), rgba(115, 87, 255, 0.16));
    font-weight: 950;
}

.dp-module-tag {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f5f74;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.dp-module-card h3 {
    margin: 17px 0 8px;
    color: var(--dp-ink);
    font-size: 17px;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.dp-module-card p {
    margin: 0;
    color: var(--dp-muted);
    line-height: 1.5;
    font-size: 13px;
}

.dp-module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
}

.dp-module-footer::after {
    content: "→";
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(18, 216, 196, 0.11);
}

.dp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.dp-info-card {
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid var(--dp-border);
}

.dp-info-card strong {
    display: block;
    color: var(--dp-ink);
    font-size: 15px;
    margin-bottom: 8px;
}

.dp-info-card span {
    display: block;
    color: var(--dp-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* FORMS */

.dp-form {
    display: grid;
    gap: 18px;
}

.dp-form-section {
    border-radius: 26px;
    padding: clamp(16px, 3vw, 22px);
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-form-section-head {
    margin-bottom: 18px;
}

.dp-form-section-head h3 {
    margin: 0;
    color: var(--dp-ink);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.dp-form-section-head p {
    margin: 6px 0 0;
    color: var(--dp-muted);
    font-size: 13px;
    line-height: 1.55;
}

.dp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dp-field {
    margin-bottom: 0;
}

.dp-field-full {
    grid-column: 1 / -1;
}

.dp-field label {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #243247;
    margin-bottom: 8px;
}

.dp-input,
.dp-textarea {
    width: 100%;
    border: 1px solid var(--dp-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--dp-text);
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dp-input {
    height: 56px;
}

.dp-textarea {
    resize: vertical;
    min-height: 96px;
    padding: 14px 16px;
}

.dp-input:focus,
.dp-textarea:focus {
    border-color: rgba(18, 216, 196, 0.75);
    box-shadow: 0 0 0 5px rgba(18, 216, 196, 0.13);
}

.dp-error {
    display: block;
    margin-top: 7px;
    color: var(--dp-danger);
    font-size: 12px;
    font-weight: 800;
}

.dp-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 24px;
    flex-wrap: wrap;
}

.dp-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dp-muted);
    font-size: 14px;
}

.dp-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--dp-aqua-dark);
}

.dp-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dp-color-row {
    height: 56px;
    border: 1px solid var(--dp-border);
    border-radius: 18px;
    background: #ffffff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-color-row span {
    color: var(--dp-muted);
    font-size: 13px;
    font-weight: 800;
}

.dp-color {
    width: 42px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

/* SWITCH FINAL */

.dp-switch {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    background: #ffffff;
    padding: 7px 14px 7px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: var(--dp-text);
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    line-height: 1;
}

.dp-switch input {
    display: none;
}

.dp-switch .dp-switch-ui {
    width: 44px;
    height: 26px;
    min-width: 44px;
    max-width: 44px;
    min-height: 26px;
    max-height: 26px;
    border-radius: 999px;
    background: #dbe3ee;
    position: relative;
    flex: 0 0 44px;
    display: inline-block;
    box-shadow: none;
    transition: background 0.18s ease;
}

.dp-switch .dp-switch-ui::after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    position: absolute;
    top: 3px;
    left: 3px;
    display: block;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.dp-switch input:checked + .dp-switch-ui {
    background: linear-gradient(135deg, var(--dp-aqua), var(--dp-aqua-dark));
}

.dp-switch input:checked + .dp-switch-ui::after {
    transform: translateX(18px);
}

.dp-switch .dp-switch-text {
    display: inline-block;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--dp-text);
    font-size: 14px;
    font-weight: 850;
    font-style: normal;
    line-height: 1;
    box-shadow: none;
    position: static;
    padding: 0;
    margin: 0;
}

.dp-switch .dp-switch-text::before,
.dp-switch .dp-switch-text::after {
    content: none;
    display: none;
}

/* TABLES / CRUD */

.dp-page-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.dp-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dp-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid var(--dp-border);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.dp-table th {
    padding: 15px 16px;
    text-align: left;
    background: #f8fbff;
    color: var(--dp-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 950;
    border-bottom: 1px solid var(--dp-border);
}

.dp-table td {
    padding: 15px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--dp-border);
    color: var(--dp-text);
    font-size: 14px;
}

.dp-table tr:last-child td {
    border-bottom: 0;
}

.dp-table td strong {
    display: block;
    color: var(--dp-ink);
    font-size: 14px;
    margin-bottom: 4px;
}

.dp-table td span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
    line-height: 1.4;
}

.dp-table-actions {
    width: 180px;
}

.dp-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dp-badge {
    width: fit-content;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 950;
}

.dp-badge-success {
    background: var(--dp-success-soft);
    color: var(--dp-success) !important;
}

.dp-badge-muted {
    background: #f1f5f9;
    color: var(--dp-muted) !important;
}

.dp-empty-state {
    padding: 26px;
    text-align: center;
}

.dp-empty-state strong {
    display: block;
    color: var(--dp-ink);
    font-size: 16px;
    margin-bottom: 6px;
}

.dp-empty-state span {
    display: block;
    color: var(--dp-muted);
    font-size: 13px;
}

.dp-color-preview {
    width: 18px;
    height: 18px;
    display: inline-block !important;
    border-radius: 7px;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.10);
}

/* RESPONSIVE */

@media (max-width: 1240px) {
    .dp-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .dp-auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dp-auth-showcase {
        min-height: auto;
    }

    .dp-app {
        padding: 12px;
        padding-top: 92px;
    }

    .dp-mobile-bar {
        position: fixed;
        z-index: 90;
        top: 12px;
        left: 12px;
        right: 12px;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.90);
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow: var(--dp-shadow-sm);
        backdrop-filter: blur(22px);
    }

    .dp-mobile-left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .dp-menu-button {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: var(--dp-ink);
        color: #ffffff;
        font-size: 22px;
        font-weight: 900;
        flex-shrink: 0;
    }

    .dp-mobile-brand {
        min-width: 0;
    }

    .dp-mobile-brand strong {
        display: block;
        color: var(--dp-ink);
        font-size: 15px;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .dp-mobile-brand span {
        display: block;
        color: var(--dp-muted);
        font-size: 12px;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dp-mobile-avatar {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, var(--dp-aqua), var(--dp-violet));
        color: #ffffff;
        font-weight: 950;
        flex-shrink: 0;
    }

    .dp-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(3, 7, 18, 0.56);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .dp-sidebar {
        position: fixed;
        z-index: 110;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(336px, calc(100vw - 24px));
        min-height: 0;
        height: auto;
        border-radius: 26px;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.24s ease;
        overflow-y: auto;
    }

    body.dp-menu-open .dp-sidebar {
        transform: translateX(0);
    }

    body.dp-menu-open .dp-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .dp-sidebar-close {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 15px;
        display: grid;
        place-items: center;
        margin-left: auto;
        margin-bottom: 14px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        font-size: 22px;
        line-height: 1;
    }

    .dp-layout {
        display: block;
    }

    .dp-topbar {
        display: none;
    }

    .dp-panel {
        border-radius: 26px;
    }

    .dp-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dp-auth-page {
        padding: 12px;
    }

    .dp-auth-showcase,
    .dp-auth-form,
    .dp-panel {
        border-radius: 24px;
    }

    .dp-auth-highlights {
        grid-template-columns: 1fr;
    }

    .dp-auth-showcase,
    .dp-auth-form,
    .dp-panel {
        padding: 20px;
    }

    .dp-section-head,
    .dp-page-toolbar {
        display: block;
    }

    .dp-chip {
        margin-top: 12px;
    }

    .dp-stats,
    .dp-modules,
    .dp-form-grid {
        grid-template-columns: 1fr;
    }

    .dp-module-card {
        min-height: 172px;
    }

    .dp-form-actions,
    .dp-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .dp-btn-secondary,
    .dp-btn-action {
        width: 100%;
    }

    .dp-switch {
        width: 100%;
    }

    .dp-table-wrap {
        border-radius: 20px;
    }
}

@media (max-width: 430px) {
    .dp-auth-page,
    .dp-app {
        padding-left: 9px;
        padding-right: 9px;
    }

    .dp-app {
        padding-top: 86px;
    }

    .dp-mobile-bar {
        top: 9px;
        left: 9px;
        right: 9px;
        border-radius: 20px;
    }

    .dp-mobile-brand span {
        max-width: 160px;
    }

    .dp-auth-showcase,
    .dp-auth-form,
    .dp-panel {
        border-radius: 20px;
        padding: 18px;
    }

    .dp-sidebar {
        top: 9px;
        left: 9px;
        bottom: 9px;
        width: calc(100vw - 18px);
        border-radius: 22px;
    }

    .dp-hero-title {
        font-size: 36px;
    }

    .dp-menu-link {
        min-height: 48px;
    }
}


/* =========================
   PERSONAL MODULE
========================= */

.dp-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 190px auto auto;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

.dp-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-table-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #06111f;
    font-weight: 950;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.dp-badge-role {
    background: rgba(115, 87, 255, 0.10);
    color: #4c35b3 !important;
}

@media (max-width: 980px) {
    .dp-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .dp-filter-bar {
        grid-template-columns: 1fr;
    }
}


/* =========================
   PERSONAL MODULE
========================= */

.dp-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px auto auto;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

.dp-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-table-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 950;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.dp-badge-role {
    background: rgba(115, 87, 255, 0.10);
    color: #4c35b3 !important;
}

@media (max-width: 980px) {
    .dp-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .dp-filter-bar {
        grid-template-columns: 1fr;
    }
}


/* =========================
   PACIENTES MODULE
========================= */

.dp-filter-bar-pacientes {
    grid-template-columns: minmax(260px, 1fr) 170px 220px 170px auto auto;
}

.dp-patient-avatar {
    background: linear-gradient(135deg, var(--dp-aqua), var(--dp-violet));
    color: #ffffff;
}

.dp-pager {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--dp-muted);
    font-size: 13px;
    font-weight: 850;
}

.dp-btn-secondary.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.dp-profile-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.dp-profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dp-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--dp-aqua), var(--dp-violet));
    color: #ffffff;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
}

.dp-profile-kicker {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(18, 216, 196, 0.12);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 8px;
}

.dp-profile-main h2 {
    margin: 0;
    color: var(--dp-ink);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.dp-profile-main p {
    margin: 8px 0 0;
    color: var(--dp-muted);
    font-size: 14px;
}

.dp-profile-stats {
    margin-top: 8px;
}

.dp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.dp-detail-card {
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-detail-card-full {
    margin-top: 18px;
}

.dp-detail-card h3 {
    margin: 0 0 14px;
    color: var(--dp-ink);
    font-size: 18px;
    letter-spacing: -0.04em;
}

.dp-detail-list {
    display: grid;
    gap: 12px;
}

.dp-detail-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dp-border);
}

.dp-detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dp-detail-list span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 4px;
}

.dp-detail-list strong {
    display: block;
    color: var(--dp-text);
    font-size: 14px;
    line-height: 1.45;
}

.dp-note-text {
    margin: 0;
    color: var(--dp-muted);
    line-height: 1.65;
    font-size: 14px;
    white-space: pre-line;
}

@media (max-width: 1100px) {
    .dp-filter-bar-pacientes {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .dp-filter-bar-pacientes {
        grid-template-columns: 1fr;
    }

    .dp-profile-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dp-profile-main {
        align-items: flex-start;
    }

    .dp-detail-grid {
        grid-template-columns: 1fr;
    }

    .dp-pager {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================
   PAGINATION
========================= */

.dp-pager {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--dp-muted);
    font-size: 13px;
    font-weight: 850;
}

.dp-btn-secondary.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

@media (max-width: 720px) {
    .dp-pager {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================
   EXPEDIENTE CLINICO
========================= */

.dp-clinical-alerts {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.dp-clinical-alert {
    border-radius: 20px;
    padding: 15px 16px;
    border: 1px solid transparent;
}

.dp-clinical-alert strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 5px;
}

.dp-clinical-alert span {
    display: block;
    font-size: 13px;
    line-height: 1.55;
}

.dp-clinical-alert-danger {
    background: #fff1f2;
    border-color: rgba(220, 38, 38, 0.18);
    color: #b42347;
}

.dp-clinical-alert-warning {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.20);
    color: #92400e;
}

.dp-expediente-form {
    margin-top: 20px;
}

.dp-switch-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dp-notes-section {
    margin-top: 20px;
}

.dp-notes-list {
    display: grid;
    gap: 14px;
}

.dp-note-card {
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-note-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--dp-border);
    margin-bottom: 14px;
}

.dp-note-head strong {
    display: block;
    color: var(--dp-ink);
    font-size: 16px;
    margin-bottom: 4px;
}

.dp-note-head span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
}

.dp-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dp-note-grid div,
.dp-note-free {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--dp-border);
    padding: 13px;
}

.dp-note-grid span,
.dp-note-free span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 7px;
}

.dp-note-grid p,
.dp-note-free p {
    margin: 0;
    color: var(--dp-text);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.dp-note-free {
    margin-top: 14px;
}

@media (max-width: 720px) {
    .dp-note-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dp-note-grid {
        grid-template-columns: 1fr;
    }

    .dp-switch-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}


.dp-patient-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.dp-hub-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dp-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 216, 196, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dp-hub-card-main {
    background: linear-gradient(135deg, rgba(18, 216, 196, 0.12), rgba(115, 87, 255, 0.10));
}

.dp-hub-card.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.dp-hub-card.is-disabled:hover {
    transform: none;
    border-color: var(--dp-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.dp-hub-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(18, 216, 196, 0.14);
    color: var(--dp-aqua-dark);
    font-weight: 950;
    flex-shrink: 0;
}

.dp-hub-card strong {
    display: block;
    color: var(--dp-ink);
    font-size: 16px;
    margin-bottom: 5px;
}

.dp-hub-card span {
    display: block;
    color: var(--dp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.dp-card-title-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dp-card-title-action h3 {
    margin: 0;
}

.dp-card-title-action a {
    color: var(--dp-aqua-dark);
    font-weight: 950;
    font-size: 13px;
    text-decoration: none;
}

.dp-mini-doc-list {
    display: grid;
    gap: 10px;
}

.dp-mini-doc {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--dp-border);
    text-decoration: none;
    color: inherit;
}

.dp-mini-doc span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(115, 87, 255, 0.12);
    color: #4c35b3;
    font-size: 11px;
    font-weight: 950;
    flex-shrink: 0;
}

.dp-mini-doc strong {
    display: block;
    color: var(--dp-ink);
    font-size: 13px;
    margin-bottom: 3px;
}

.dp-mini-doc small {
    display: block;
    color: var(--dp-muted);
    font-size: 11px;
}

.dp-empty-compact {
    border-radius: 18px;
    padding: 16px;
    background: #f8fbff;
    color: var(--dp-muted);
    font-weight: 850;
    font-size: 13px;
    border: 1px solid var(--dp-border);
}

.dp-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dp-doc-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.dp-doc-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--dp-aqua), var(--dp-violet));
    color: #ffffff;
    font-weight: 950;
    font-size: 12px;
}

.dp-doc-body span {
    display: block;
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 5px;
}

.dp-doc-body strong {
    display: block;
    color: var(--dp-ink);
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 5px;
}

.dp-doc-body small {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
}

.dp-doc-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--dp-border);
}

.dp-btn-mini-danger {
    background: #fff1f2 !important;
    color: #be123c !important;
}

.dp-help {
    display: block;
    margin-top: 7px;
    color: var(--dp-muted);
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 1100px) {
    .dp-patient-hub,
    .dp-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dp-patient-hub,
    .dp-doc-grid {
        grid-template-columns: 1fr;
    }

    .dp-doc-card {
        grid-template-columns: 1fr;
    }

    .dp-doc-icon {
        width: 46px;
        height: 46px;
    }
}
.dp-menu-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dp-menu-disabled:hover {
    transform: none !important;
    background: transparent;
}
.dp-menu-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dp-menu-disabled:hover {
    transform: none !important;
    background: transparent;
}

.dp-patient-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.dp-hub-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dp-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 216, 196, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dp-hub-card-main {
    background: linear-gradient(135deg, rgba(18, 216, 196, 0.12), rgba(115, 87, 255, 0.10));
}

.dp-hub-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(18, 216, 196, 0.14);
    color: var(--dp-aqua-dark);
    font-weight: 950;
    flex-shrink: 0;
}

.dp-hub-card strong {
    display: block;
    color: var(--dp-ink);
    font-size: 16px;
    margin-bottom: 5px;
}

.dp-hub-card span {
    display: block;
    color: var(--dp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.dp-card-title-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dp-card-title-action h3 {
    margin: 0;
}

.dp-card-title-action a {
    color: var(--dp-aqua-dark);
    font-weight: 950;
    font-size: 13px;
    text-decoration: none;
}

.dp-mini-doc-list {
    display: grid;
    gap: 10px;
}

.dp-mini-doc {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--dp-border);
    text-decoration: none;
    color: inherit;
}

.dp-mini-doc span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(115, 87, 255, 0.12);
    color: #4c35b3;
    font-size: 11px;
    font-weight: 950;
    flex-shrink: 0;
}

.dp-mini-doc strong {
    display: block;
    color: var(--dp-ink);
    font-size: 13px;
    margin-bottom: 3px;
}

.dp-mini-doc small {
    display: block;
    color: var(--dp-muted);
    font-size: 11px;
}

.dp-empty-compact {
    border-radius: 18px;
    padding: 16px;
    background: #f8fbff;
    color: var(--dp-muted);
    font-weight: 850;
    font-size: 13px;
    border: 1px solid var(--dp-border);
}

@media (max-width: 1100px) {
    .dp-patient-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dp-patient-hub {
        grid-template-columns: 1fr;
    }
}
.dp-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(18, 216, 196, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(115, 87, 255, 0.18), transparent 34%),
        #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.dp-dashboard-hero h2 {
    margin: 8px 0 10px;
    color: var(--dp-ink);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.dp-dashboard-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--dp-muted);
    line-height: 1.65;
    font-size: 15px;
}

.dp-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(18, 216, 196, 0.14);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dp-dashboard-hero-card {
    border-radius: 26px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dp-dashboard-hero-card span {
    display: block;
    color: var(--dp-muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.dp-dashboard-hero-card strong {
    display: block;
    color: var(--dp-ink);
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.dp-dashboard-hero-card small {
    display: block;
    color: var(--dp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.dp-module-card-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: grayscale(0.12);
}

.dp-module-card-disabled:hover {
    transform: none !important;
    border-color: var(--dp-border) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04) !important;
}

@media (max-width: 980px) {
    .dp-dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dp-dashboard-hero {
        padding: 18px;
        border-radius: 24px;
    }

    .dp-dashboard-hero-card {
        border-radius: 22px;
    }
}
/* =========================
   SEGURIDAD / ROLES
========================= */

.dp-filter-bar-users {
    grid-template-columns: minmax(240px, 1fr) 170px 190px 160px auto auto;
}

.dp-permission-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dp-permission-editor {
    display: grid;
    gap: 14px;
}

.dp-permission-module {
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--dp-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.dp-permission-module h3 {
    margin: 0 0 12px;
    color: var(--dp-ink);
    font-size: 16px;
    letter-spacing: -0.04em;
}

.dp-permission-chip-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dp-permission-chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(18, 216, 196, 0.10);
    color: var(--dp-aqua-dark);
    font-size: 12px;
    font-weight: 850;
}

.dp-permission-check-list {
    display: grid;
    gap: 9px;
}

.dp-check-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid var(--dp-border);
    cursor: pointer;
}

.dp-check-card input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--dp-aqua-dark);
    flex-shrink: 0;
}

.dp-check-card strong {
    display: block;
    color: var(--dp-ink);
    font-size: 13px;
    margin-bottom: 3px;
}

.dp-check-card small {
    display: block;
    color: var(--dp-muted);
    font-size: 11px;
    font-weight: 750;
}

.dp-menu-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dp-menu-disabled:hover {
    transform: none !important;
    background: transparent;
}

@media (max-width: 1100px) {
    .dp-filter-bar-users {
        grid-template-columns: 1fr 1fr;
    }

    .dp-permission-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dp-filter-bar-users {
        grid-template-columns: 1fr;
    }
}