/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */


.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #103b5c;
    --primary-mid: #155a86;
    --accent-green: #28b87a;
    --accent-blue: #0d6efd;
    --accent-red: #d90429;
    --text-main: #12344d;
    --text-soft: #61788a;
    --danger-bg: #fdecec;
    --danger-border: #f5c2c7;
    --danger-text: #b42318;
    --glass-border: rgba(255, 255, 255, 0.35);
}

html, body {
    min-height: 100%;
    font-family: Arial, sans-serif;
}

body {
    background: #edf3f8;
}

/* BACKGROUND */

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(8, 31, 50, 0.30), rgba(8, 31, 50, 0.30)),
        url("../img/kurafile_bg.jpg") center center / cover no-repeat,
        linear-gradient(135deg, #eef4f8 0%, #dce8f1 100%);
}

.background-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.38), transparent 32%),
        linear-gradient(90deg, rgba(8, 26, 43, 0.10) 0%, rgba(8, 26, 43, 0.02) 45%, rgba(8, 26, 43, 0.25) 100%);
    z-index: 1;
}

/* LAYOUT */

.login-layout {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: 500px 1fr;
    align-items: stretch;
    padding: 42px 70px 110px;
}

.login-side {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

/* CARD */

.login-card {
    width: 100%;
    max-width: 500px;
    min-height: calc(100vh - 150px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(11, 38, 59, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-topline {
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.brand-text h1,
.login-title-area h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.brand-text h1 {
    font-size: 2.6rem;
}

.login-title-area h2 {
    font-size: 2.6rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 32px 34px;
    flex: 1;
    justify-content: flex-start;
}
.form-group:last-of-type {
    margin-bottom: 30px;
}

/* HEADER */

.brand-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 34px 42px 30px;
    background: rgba(255,255,255,0.62);
    border-bottom: 1px solid rgba(16, 59, 92, 0.06);
}

.brand-logo {
    width: 80px;
    height: 64px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.brand-text h1 {
    font-size: 2.45rem;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -0.5px;
    font-weight: 900;
}

.brand-text p {
    margin-top: 8px;
    font-size: 1.05rem;
    color: var(--text-soft);
}

.login-title-area {
    padding: 34px 42px 10px;
}

.login-title-area h2 {
    font-size: 2.45rem;
    line-height: 1;
    color: var(--text-main);
    font-weight: 900;
    margin-bottom: 14px;
}

.login-title-area p {
    font-size: 1.08rem;
    color: var(--text-soft);
}

/* FORM */

.input-icon-group input {
    width: 100%;
    height: 58px;
    padding-left: 54px;
    border-radius: 18px;
    border: 1px solid #d3e0e8;
    font-size: 1rem;
    color: #17384e;
    background: rgba(255,255,255,0.97);
    outline: none;
}

.input-icon-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(40, 184, 122, 0.13);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.68;
    font-size: 1.05rem;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 6px;
    color: #214761;
}

/* INPUT ICONS */

.input-icon-group {
    position: relative;
}

.input-icon-group input {
    width: 100%;
    height: 52px;
    padding-left: 50px;
    border-radius: 14px;
    border: 1px solid #d3e0e8;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* BUTTON */

.btn-login {
    width: 100%;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #103b5c 0%, #0d7a70 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;

    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.18);

    transition: all 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(13, 110, 253, 0.22);
}

.btn-login:active {
    transform: scale(0.98);
}

.forgot-password {
    margin-top: 6px;
    text-align: center;
    font-size: 1rem;
    color: #214761;
}

.forgot-password a {
    color: var(--accent-red);
    font-weight: 900;
    text-decoration: none;
    margin-left: 4px;
}

/* ERROR */

.alert-error {
    margin: 18px 32px;
    padding: 12px;
    border-radius: 10px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

/* FOOTER LIMPIO */

.bottom-band {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-mid));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 38px;
    height: 38px;
    filter: none !important;
}

.footer-brand-row h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.footer-copy {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

/* MOBILE FIX REAL */

@media (max-width: 576px) {

    .login-page {
        overflow-y: auto;
    }

    .login-layout {
    grid-template-columns: 1fr;
    padding: 10px 10px 120px;
    min-height: calc(100dvh - 120px);
}

    .login-side {
        justify-content: center;
    }

    .login-card {
    min-height: calc(100dvh - 130px);
    border-radius: 20px 20px 0 0;
}

    .bottom-band {
    height: 120px;
    padding: 10px;
}

    .footer-logo {
        width: 32px;
        height: 32px;
    }

    .footer-brand-row h3 {
        font-size: 1.2rem;
    }

    .footer-tagline,
    .footer-copy {
        font-size: 0.72rem;
        white-space: nowrap;
    }
}

/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #eef4f8;
}

.sidebar {
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-content {
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 26px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* DASHBOARD PREMIUM */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #eef4f8;
    transition: grid-template-columns 0.3s ease;
}

.sidebar {
    position: relative;
    background: linear-gradient(180deg, #103b5c, #155a86);
    color: #fff;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 34px rgba(16, 59, 92, 0.14);
    transition: all 0.3s ease;
}

.sidebar-toggle {
    position: absolute;
    top: 22px;
    right: -15px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #103b5c;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 59, 92, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.sidebar-brand img {
    width: 58px;
    height: 46px;
    object-fit: contain;
    filter: none !important;
}

.sidebar-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.78rem;
    opacity: 0.82;
}

.sidebar-user {
    text-align: center;
    padding: 24px 12px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user-img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.18);
    border: 3px solid rgba(255,255,255,0.55);
    margin-bottom: 12px;
}

.sidebar-user h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.sidebar-user p {
    font-size: 0.82rem;
    opacity: 0.82;
}


.sidebar-user-credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
}

.sidebar-user .user-sidebar-specialty,
.sidebar-user .user-sidebar-subspecialty,
.sidebar-user .user-sidebar-role {
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: none;
}

.sidebar-user .user-sidebar-specialty {
    font-size: 0.92rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.3;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 8px rgba(56, 189, 248, 0.4);
    opacity: 1;
    margin: 0;
}

.sidebar-user .user-sidebar-subspecialty {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5f3fc;
    line-height: 1.3;
    letter-spacing: 0.01em;
    opacity: 0.95;
    margin-top: 2px;
}

.sidebar-user .user-sidebar-role {
    font-size: 0.84rem;
    font-weight: 600;
    color: #e0f2fe;
    opacity: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.sidebar-footer a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-footer a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateX(2px);
}

.nav-icon,
.power-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.logout-link {
    background: rgba(255,255,255,0.08);
}

.power-icon {
    font-size: 1.25rem;
    font-weight: 900;
}

/* COLAPSADO */

.app-shell.sidebar-collapsed {
    grid-template-columns: 92px 1fr;
}

.app-shell.sidebar-collapsed .sidebar {
    padding: 26px 14px;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-brand img {
    width: 50px;
}

.app-shell.sidebar-collapsed .sidebar-brand-text,
.app-shell.sidebar-collapsed .sidebar-user h3,
.app-shell.sidebar-collapsed .sidebar-user p,
.app-shell.sidebar-collapsed .nav-text {
    display: none;
}

.app-shell.sidebar-collapsed .sidebar-user {
    padding: 16px 6px;
    border-radius: 20px;
}

.app-shell.sidebar-collapsed .sidebar-user-img {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}

.app-shell.sidebar-collapsed .sidebar-nav a,
.app-shell.sidebar-collapsed .sidebar-footer a {
    justify-content: center;
    padding: 13px 10px;
}

.app-shell.sidebar-collapsed .nav-icon,
.app-shell.sidebar-collapsed .power-icon {
    font-size: 1.25rem;
}

/* CONTENIDO */

.main-content {
    padding: 34px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.topbar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 900;
}

.topbar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--text-main);
}

.user-pill {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #eaf6fb);
    border: 1px solid #dbe7ef;
    border-radius: 28px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(16, 59, 92, 0.08);
}

.welcome-card h3 {
    font-size: 1.65rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--text-soft);
}

.primary-action {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #fff;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.module-card {
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(16, 59, 92, 0.07);
}

.stat-card span {
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.88rem;
}

.stat-card strong {
    display: block;
    color: var(--text-main);
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card p,
.module-card p {
    color: var(--text-soft);
    line-height: 1.5;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    text-decoration: none;
    transition: 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
}

.module-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* RESPONSIVE DASHBOARD */

@media (max-width: 991px) {
    .app-shell,
    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-footer {
        margin-top: 16px;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .main-content {
        padding: 22px;
    }
}

/* MOBILE / TABLET SIDEBAR MENU */

.mobile-menu-btn {
    display: none;
}

.mobile-overlay {
    display: none;
}

@media (max-width: 991px) {

    .app-shell,
    .app-shell.sidebar-collapsed {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -310px;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0 28px 28px 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .app-shell.mobile-sidebar-open .sidebar {
        left: 0;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-footer {
        margin-top: 24px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
        color: #fff;
        font-size: 1.6rem;
        font-weight: 900;
        cursor: pointer;
        margin-bottom: 18px;
        box-shadow: 0 12px 26px rgba(16, 59, 92, 0.18);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(8, 26, 43, 0.45);
        backdrop-filter: blur(3px);
        z-index: 999;
    }

    .app-shell.mobile-sidebar-open .mobile-overlay {
        display: block;
    }

    .main-content {
        padding: 22px;
    }

    .stats-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.user-pill {
    align-self: flex-end;
}


/* TOPBAR PREMIUM STATS */

.topbar-premium {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.topbar-title {
    min-width: 220px;
}

.topbar-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.topbar-stat {
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #dbe7ef;
    border-radius: 20px;
    padding: 14px 18px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
}

.topbar-stat span {
    display: block;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.topbar-stat strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 900;
}

.topbar-stat strong i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Estados */
.status-active strong i {
    background: #28b87a;
    box-shadow: 0 0 0 4px rgba(40, 184, 122, 0.14);
}

.status-trial strong i {
    background: #f5b301;
    box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.18);
}

.status-restricted strong i {
    background: #d90429;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.14);
}

@media (max-width: 991px) {
    .topbar-premium {
        grid-template-columns: 1fr;
    }

    .topbar-stats {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .topbar-stat {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .topbar-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar-stat {
        width: 100%;
    }
}
/* TOPBAR RIGHT WRAPPER */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* USER PILL MEJORADO */

.user-pill {
    background: #ffffff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.08);
    min-width: 160px;
}

.user-pill span {
    font-weight: 800;
    color: var(--text-main);
}

.user-pill small {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.topbar-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.topbar-title-block .user-pill {
    align-self: flex-start;
}

@media (max-width: 991px) {
    .main-content {
        position: relative;
        padding-top: 84px;
    }

    .mobile-menu-btn {
        position: absolute;
        top: 22px;
        left: 22px;
        margin-bottom: 0;
    }

    .topbar-title-block {
        width: 100%;
    }

    .topbar-title-block .user-pill {
        position: absolute;
        top: 22px;
        right: 22px;
        align-self: auto;
    }

    .topbar-premium {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 78px;
    }

    .mobile-menu-btn {
        top: 18px;
        left: 18px;
    }

    .topbar-title-block .user-pill {
        top: 18px;
        right: 18px;
        min-width: auto;
        padding: 8px 13px;
    }

    .topbar-title-block .user-pill span {
        font-size: 0.82rem;
    }

    .topbar-title-block .user-pill small {
        font-size: 0.68rem;
    }
}

.mobile-stats-btn {
    display: none;
}

/* Solo m?vil */
@media (max-width: 576px) {
    .topbar-premium {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 10px;
    }

    .mobile-stats-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 14px;
        background: #ffffff;
        color: var(--primary-dark);
        font-size: 1.15rem;
        cursor: pointer;
        box-shadow: 0 12px 28px rgba(16, 59, 92, 0.12);
        border: 1px solid #dbe7ef;
        margin-bottom: 4px;
    }

    .topbar-stats {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .topbar-stats.stats-open {
        display: grid;
    }

    .topbar-stat {
        width: 100%;
        min-width: 0;
        padding: 12px 14px;
        border-radius: 18px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 88px;
    }

    .topbar-title-block .user-pill {
        position: absolute;
        top: -64px;
        right: 0;
        z-index: 5;
    }

    .mobile-menu-btn {
        position: absolute;
        top: -64px;
        left: 0;
        z-index: 5;
    }

    .topbar-premium {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 10px;
        margin-top: 0;
    }

    .mobile-stats-btn {
        position: relative;
        z-index: 2;
        margin-bottom: 2px;
    }

    .topbar-stats {
        grid-column: 1 / -1;
    }
}

/* FIX: mostrar botón men? m?vil/tablet */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: inline-flex !important;
        position: fixed !important;
        top: 18px !important;
        left: 18px !important;
        z-index: 3000 !important;

        width: 46px !important;
        height: 46px !important;
        align-items: center !important;
        justify-content: center !important;

        border: none !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)) !important;
        color: #ffffff !important;
        font-size: 1.6rem !important;
        font-weight: 900 !important;
        cursor: pointer !important;
        box-shadow: 0 12px 26px rgba(16, 59, 92, 0.22) !important;
    }

    .mobile-overlay {
        z-index: 2500 !important;
    }

    .sidebar {
        z-index: 2600 !important;
    }
}

/* STATS DROPDOWN + SEARCH ALL DEVICES */

.topbar-premium {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: end !important;
    gap: 22px !important;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 340px;
    height: 46px;
    background: #ffffff;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.10);
}

.dashboard-consultations-shortcut {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe7ef;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.10);
    color: var(--text-main);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 9px;
    height: 46px;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-consultations-shortcut i {
    color: #0f5e8f;
    font-size: 1.05rem;
}

.dashboard-consultations-shortcut:hover {
    border-color: rgba(15, 94, 143, 0.32);
    transform: translateY(-1px);
}

.search-box i {
    color: var(--text-soft);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.92rem;
}

.stats-dropdown {
    position: relative;
}

.stats-menu-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    color: var(--primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid #dbe7ef;
    box-shadow: 0 12px 28px rgba(16, 59, 92, 0.12);
}

.topbar-stats {
    position: absolute;
    top: 58px;
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid #dbe7ef;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 20px 48px rgba(16, 59, 92, 0.18);
    z-index: 5000;

    display: grid !important;
    gap: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-stats.stats-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.topbar-stat {
    width: 100%;
    min-width: 0 !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
}

/* TABLET: igual que desktop */
@media (max-width: 991px) and (min-width: 577px) {
    .topbar-premium {
        grid-template-columns: 1fr auto !important;
    }

    .search-box {
        width: 300px;
    }

    .dashboard-consultations-shortcut span {
        display: none;
    }
}

/* MÓVIL: búsqueda debajo de Consultorio y del botón stats */
@media (max-width: 576px) {
    .topbar-premium {
        grid-template-columns: 1fr auto !important;
        align-items: end !important;
    }

    .topbar-actions {
        display: contents;
    }

    .stats-dropdown {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
    }

    .dashboard-consultations-shortcut {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        margin-top: 12px;
        width: 100%;
    }

    .dashboard-consultations-shortcut span {
        display: inline;
    }

    .search-box {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        height: 46px;
        border-radius: 16px;
        margin-top: 12px;
    }

    .topbar-stats {
        right: 0;
        width: calc(100vw - 36px);
        max-width: 330px;
    }
}
/* STATS DROPDOWN ANIMATION - iOS / SaaS */

.stats-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.stats-menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(16, 59, 92, 0.16);
}

.stats-menu-btn:active {
    transform: scale(0.97);
}

.stats-chart-icon {
    font-size: 1.1rem;
}

.stats-chevron {
    font-size: 0.72rem;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-menu-btn.stats-active .stats-chevron {
    transform: rotate(180deg);
}

.topbar-stats {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-stats.stats-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.topbar-stat {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 59, 92, 0.10);
}
/* =========================================================
   RECETA INDEPENDIENTE PREMIUM
   Archivo asociado: patients/receta_nueva.php
========================================================= */

/* Contenedor principal de la receta */
.prescription-independent-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe7ef;
    box-shadow: 0 22px 52px rgba(16, 59, 92, 0.09);
}

/* Encabezado interno */
.prescription-independent-card .patient-form-heading {
    padding: 28px 32px;
    background:
        linear-gradient(135deg, #ffffff 0%, #eef8fb 60%, #e5f6f0 100%);
    border-bottom: 1px solid #e3edf4;
}

.prescription-independent-card .patient-form-heading h3 {
    margin: 4px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.62rem;
    color: var(--text-main);
}

.prescription-independent-card .form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(40, 184, 122, 0.12);
    color: #168657;
    border: 1px solid rgba(40, 184, 122, 0.20);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
}

.prescription-independent-card .form-badge i {
    font-size: 1rem;
}

/* ?rea completa del formulario */
.prescription-independent-card .patient-form {
    padding: 30px 32px 34px;
}

/* Secciones internas */
.prescription-independent-card .form-section {
    padding: 26px 0;
}

.prescription-independent-card .form-section:first-child {
    padding-top: 0;
}

.prescription-independent-card .form-section h4 {
    position: relative;
    margin: 0 0 20px;
    padding-left: 15px;
    color: var(--text-main);
    font-size: 1.12rem;
    font-weight: 900;
}

.prescription-independent-card .form-section h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-green));
}

/* Campos generales de la receta */
.prescription-independent-card .form-field label {
    color: #214761;
    font-weight: 900;
}

.prescription-independent-card .form-field input,
.prescription-independent-card .form-field textarea,
.prescription-independent-card .form-field select {
    border-radius: 16px;
    border: 1px solid #d3e0e8;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prescription-independent-card .form-field input:focus,
.prescription-independent-card .form-field textarea:focus,
.prescription-independent-card .form-field select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

/* =========================================================
   ENCABEZADO DE MEDICAMENTOS
========================================================= */

.prescription-independent-card .prescription-heading {
    padding: 0;
    margin-bottom: 24px;
}

.prescription-independent-card .prescription-heading h4 {
    margin-bottom: 7px;
}

.prescription-independent-card .prescription-heading p {
    margin-left: 15px;
    color: var(--text-soft);
    line-height: 1.45;
}

/* Acciones PDF, Imprimir, Email */
.prescription-independent-card .prescription-actions {
    gap: 9px;
}

.prescription-independent-card .prescription-action-btn {
    min-height: 43px;
    padding: 0 15px;
    border: 1px solid #dbe7ef;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 900;
    transition: 0.22s ease;
}

.prescription-independent-card .prescription-action-btn i {
    color: var(--accent-blue);
}

.prescription-independent-card .prescription-action-btn:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.18);
}

.prescription-independent-card .prescription-action-btn:hover i {
    color: #ffffff;
}

/* =========================================================
   PESTAÑAS RECETA 1 - 4
========================================================= */

.prescription-independent-card .prescription-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 7px;
    border: 1px solid #e1eaf1;
    border-radius: 18px;
    background: #f7fafc;
}

.prescription-independent-card .prescription-tab {
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 13px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.22s ease;
}

.prescription-independent-card .prescription-tab i {
    color: var(--accent-blue);
}

.prescription-independent-card .prescription-tab:hover {
    background: #edf5fd;
    color: var(--accent-blue);
}

.prescription-independent-card .prescription-tab.active {
    background: #ffffff;
    color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(16, 59, 92, 0.08);
}

.prescription-independent-card .delete-prescription-btn {
    margin-left: auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(217, 4, 41, 0.16);
    background: rgba(217, 4, 41, 0.06);
    color: var(--accent-red);
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.prescription-independent-card .delete-prescription-btn:hover {
    background: var(--accent-red);
    color: #ffffff;
}

/* =========================================================
   BOT?N AGREGAR MEDICAMENTO
========================================================= */

.prescription-independent-card .prescription-toolbar {
    margin-bottom: 18px;
}

.prescription-independent-card .prescription-toolbar .btn-secondary-care {
    min-height: 48px;
    padding: 0 20px;
    border-color: rgba(13, 110, 253, 0.16);
    color: var(--accent-blue);
    background: rgba(13, 110, 253, 0.05);
}

.prescription-independent-card .prescription-toolbar .btn-secondary-care:hover {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.17);
}

/* =========================================================
   RECETA VISUAL
========================================================= */

.prescription-independent-card .prescription-visual-box {
    position: relative;
    min-height: 320px;
    padding: 26px;
    border: 1px solid #dbe7ef;
    border-radius: 24px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.prescription-independent-card .prescription-visual-box::before {
    content: "Rp/";
    position: absolute;
    top: 21px;
    right: 25px;
    color: rgba(13, 110, 253, 0.12);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    pointer-events: none;
}

.prescription-independent-card .prescription-medicine-list {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.prescription-independent-card .prescription-medicine-item {
    position: relative;
    margin-bottom: 14px;
    padding: 16px 16px 16px 46px;
    border: 1px solid #e5edf3;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text-main);
    transition: 0.2s ease;
}

.prescription-independent-card .prescription-medicine-item::before {
    content: "Rx";
    position: absolute;
    top: 16px;
    left: 14px;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    background: rgba(40, 184, 122, 0.12);
    color: #168657;
    font-size: 0.66rem;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prescription-independent-card .prescription-medicine-item:hover {
    border-color: #d4e3ed;
    box-shadow: 0 10px 24px rgba(16, 59, 92, 0.06);
}

.prescription-independent-card .prescription-medicine-item strong {
    display: inline-block;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.prescription-independent-card .prescription-medicine-item em {
    display: block;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.55;
    white-space: pre-line;
}

.prescription-independent-card .prescription-medicine-actions {
    float: right;
    margin-left: 12px;
}

.prescription-independent-card .prescription-mini-delete {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(217, 4, 41, 0.08);
    color: var(--accent-red);
    transition: 0.2s ease;
}

.prescription-independent-card .prescription-mini-delete:hover {
    background: var(--accent-red);
    color: #ffffff;
}

.prescription-independent-card .prescription-empty {
    min-height: 120px;
    margin: 0 0 24px;
    border: 1px dashed #dbe7ef;
    border-radius: 18px;
    background: #fbfdff;
    color: var(--text-soft);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Comentarios generales */
.prescription-independent-card #receta_observaciones {
    background: #ffffff;
    min-height: 100px;
}

/* =========================================================
   BOTONES FINALES
========================================================= */

.prescription-independent-card .form-actions {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #e6eef4;
}

.prescription-independent-card .form-actions .btn-primary-care {
    min-width: 185px;
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.17);
}

.prescription-independent-card .form-actions .btn-secondary-care {
    min-width: 130px;
}
/* =========================================================
   HISTORIAS CL?NICAS
   Mostrar dos registros visibles y habilitar scroll interno
========================================================= */

#historias {
    align-self: start;
}

/*
   Altura aproximada para visualizar dos historias cl?nicas.
   Los registros adicionales permanecen disponibles mediante scroll.
*/
#historias .cc-record-list {
    max-height: 316px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.30) transparent;
}

/* Scrollbar para Chrome, Edge y navegadores WebKit */
#historias .cc-record-list::-webkit-scrollbar {
    width: 7px;
}

#historias .cc-record-list::-webkit-scrollbar-track {
    background: transparent;
}

#historias .cc-record-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.28);
    border-radius: 999px;
}

#historias .cc-record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.48);
}
/* =========================================================
   SIGNOS VITALES / MEDIDAS
   Mostrar dos registros visibles y habilitar scroll interno
========================================================= */

#signos-vitales {
    align-self: start;
}

/*
   Altura aproximada para visualizar dos registros de signos vitales.
   Los registros adicionales permanecen accesibles mediante scroll.
*/
#signos .cc-record-list {
    max-height: 336px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.30) transparent;
}

/* Scrollbar para Chrome, Edge y navegadores WebKit */
#signos .cc-record-list::-webkit-scrollbar {
    width: 7px;
}

#signos .cc-record-list::-webkit-scrollbar-track {
    background: transparent;
}

#signos .cc-record-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.28);
    border-radius: 999px;
}

#signos .cc-record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.48);
}
/* =========================================================
   DIAGN?STICOS
   Mostrar dos registros visibles y habilitar scroll interno
========================================================= */

#diagnosticos {
    align-self: start;
}

/*
   Altura aproximada para visualizar dos diagn?sticos.
   Los registros adicionales permanecen accesibles mediante scroll.
*/
#diagnosticos .cc-record-list {
    max-height: 258px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.30) transparent;
}

/* Scrollbar para Chrome, Edge y navegadores WebKit */
#diagnosticos .cc-record-list::-webkit-scrollbar {
    width: 7px;
}

#diagnosticos .cc-record-list::-webkit-scrollbar-track {
    background: transparent;
}

#diagnosticos .cc-record-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.28);
    border-radius: 999px;
}

#diagnosticos .cc-record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.48);
}
/* =========================================================
   MEDICAMENTOS
   Mostrar dos registros visibles y habilitar scroll interno
========================================================= */

#medicamentos {
    align-self: start;
}

/*
   Altura aproximada para visualizar dos medicamentos.
   Los registros adicionales permanecen accesibles mediante scroll.
*/
#medicamentos .cc-record-list {
    max-height: 270px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.30) transparent;
}

/* Scrollbar para Chrome, Edge y navegadores WebKit */
#medicamentos .cc-record-list::-webkit-scrollbar {
    width: 7px;
}

#medicamentos .cc-record-list::-webkit-scrollbar-track {
    background: transparent;
}

#medicamentos .cc-record-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.28);
    border-radius: 999px;
}

#medicamentos .cc-record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.48);
}
/* =========================================================
   RESULTADOS DE CONSULTA
   Mostrar aproximadamente 4 registros y habilitar scroll interno
========================================================= */

#resultados {
    align-self: start !important;
}

/*
   Altura visible aproximada para cuatro resultados.
   Los registros adicionales quedan disponibles mediante scroll.
*/
#resultados.cc-results-card .cc-record-list {
    flex: none !important;

    height: 560px !important;
    min-height: 0 !important;
    max-height: 560px !important;

    padding: 16px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-sizing: border-box !important;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;

    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.42) transparent;
}

/*
   Correcci?n fundamental:
   cada resultado conserva su tama?o natural y no se comprime.
*/
#resultados .cc-result-item {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
}

/* Scrollbar visible en Chrome y Edge */
#resultados.cc-results-card .cc-record-list::-webkit-scrollbar {
    width: 8px;
}

#resultados.cc-results-card .cc-record-list::-webkit-scrollbar-track {
    background: transparent;
}

#resultados.cc-results-card .cc-record-list::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.42);
    border-radius: 999px;
}

#resultados.cc-results-card .cc-record-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.68);
}

/*
   Los textos se muestran completos.
   No utilizar line-clamp en esta tarjeta.
*/
#resultados .cc-result-text {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

/*
   El nombre del archivo se mantiene compacto.
*/
#resultados .cc-result-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ajuste para m?viles */
@media (max-width: 576px) {
    #resultados.cc-results-card .cc-record-list {
        height: 500px !important;
        max-height: 500px !important;
        padding: 12px !important;
        gap: 10px !important;
    }
}
/* =========================================================
   DETALLE DE RECETA INDEPENDIENTE
========================================================= */

.prescription-detail-section {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e3ebf2;
    border-radius: 16px;
    background: #ffffff;
}

.prescription-detail-section h3 {
    margin: 0 0 10px;
    color: var(--accent-blue);
    font-size: 0.94rem;
    font-weight: 900;
}

.prescription-detail-section p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.55;
}

.prescription-detail-list {
    margin: 0;
    padding-left: 22px;
}

.prescription-detail-list li {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.prescription-item-note {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}
/* =========================================================
   EDITOR DE RECETA INDEPENDIENTE
========================================================= */

.prescription-edit-card {
    overflow: hidden;
}

.prescription-edit-section-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.prescription-edit-section-heading h4 {
    margin-bottom: 5px;
}

.prescription-edit-section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.prescription-add-item {
    flex: 0 0 auto;
    cursor: pointer;
}

.prescription-items-editor {
    display: grid;
    gap: 16px;
}

.prescription-item-editor {
    padding: 18px;
    border: 1px solid #dbe7ef;
    border-radius: 20px;
    background: #fbfdff;
}

.prescription-item-editor-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e6eef4;
}

.prescription-item-editor-header h5 {
    margin: 2px 0 0;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
}

.prescription-remove-item {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 4, 41, 0.18);
    border-radius: 12px;
    background: rgba(217, 4, 41, 0.06);
    color: var(--accent-red);
    cursor: pointer;
    transition: 0.2s ease;
}

.prescription-remove-item:hover {
    color: #ffffff;
    background: var(--accent-red);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .prescription-edit-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .prescription-add-item {
        width: 100%;
    }

    .prescription-item-editor {
        padding: 14px;
    }
}
/* =========================================================
   FORMATO PREMIUM DE RECETA M?DICA
========================================================= */

.prescription-premium-list {
    display: grid;
    gap: 14px;
}

.prescription-premium-item {
    padding: 15px 17px;
    border: 1px solid #e3ebf2;
    border-radius: 15px;
    background: #fbfdff;
}

.prescription-premium-main-line {
    margin: 0;
    color: var(--text-main);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.55;
}

.prescription-premium-main-line span {
    margin-right: 4px;
}

.prescription-premium-main-line strong {
    margin-right: 5px;
    color: var(--accent-blue);
}

.prescription-premium-quantity {
    color: #168657;
    font-weight: 900;
}

.prescription-premium-instructions {
    margin: 7px 0 0 25px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.55;
}

.prescription-premium-note {
    margin: 7px 0 0 25px;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================================
   EDICI?N DE RESULTADOS INDEPENDIENTES
========================================================= */

.result-edit-card {
    overflow: hidden;
}

.result-current-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #dbe7ef;
    border-radius: 16px;
    background: #fbfdff;
}

.result-current-file > i {
    color: var(--accent-blue);
    font-size: 1.55rem;
    flex: 0 0 auto;
}

.result-current-file div {
    flex: 1;
    min-width: 0;
}

.result-current-file strong {
    display: block;
    overflow: hidden;
    color: var(--text-main);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-current-file p {
    margin: 5px 0 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

@media (max-width: 650px) {
    .result-current-file {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================================
   DETALLE DE RESULTADOS CL?NICOS
========================================================= */

#resultModalOverlay .history-modal {
    max-height: 90vh;
}

#resultModalOverlay .history-modal-body {
    min-height: 0;
    max-height: calc(90vh - 155px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.34) transparent;
}

#resultModalOverlay .history-modal-body::-webkit-scrollbar {
    width: 8px;
}

#resultModalOverlay .history-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#resultModalOverlay .history-modal-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.34);
}

.result-detail-entry {
    padding: 16px;
    border: 1px solid #e3ebf2;
    border-radius: 16px;
    background: #fbfdff;
}

.result-detail-entry + .result-detail-entry {
    margin-top: 14px;
}

.result-detail-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.result-detail-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-detail-entry h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
}

.result-detail-chip {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 900;
}

.result-detail-meta {
    margin: 0 0 9px;
    color: var(--text-soft);
    font-size: 0.83rem;
}

.result-detail-content {
    color: var(--text-main);
    font-size: 0.91rem;
    line-height: 1.6;
}
/* Sidebar profile dropdown */
.sidebar {
    overflow: visible;
    z-index: 200000;
}

.sidebar-nav {
    overflow: visible;
}

.sidebar-profile-menu {
    margin: 2px 0;
    position: relative;
}

.sidebar-profile-menu summary {
    align-items: center;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    gap: 12px;
    list-style: none !important;
    padding: 13px 14px;
    position: relative;
    transition: 0.2s ease;
}

details summary::-webkit-details-marker,
details summary::marker,
.sidebar-profile-menu summary::-webkit-details-marker,
.sidebar-profile-menu summary::marker {
    display: none !important;
    content: "" !important;
}

.sidebar-profile-menu summary:hover,
.sidebar-profile-menu[open] summary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.profile-chevron {
    font-size: 0.78rem;
    margin-left: auto;
    transition: transform 0.18s ease;
}

.sidebar-profile-menu[open] .profile-chevron {
    transform: rotate(180deg);
}

.sidebar-subnav {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,253,0.98));
    border: 1px solid rgba(16, 59, 92, 0.10);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(16, 59, 92, 0.24);
    display: none;
    gap: 3px;
    left: calc(100% + 16px);
    min-width: 255px;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-52%);
    z-index: 200001;
}

.sidebar-profile-menu[open] .sidebar-subnav {
    display: grid;
}

.sidebar-subnav::before {
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.98);
    border-top: 10px solid transparent;
    content: "";
    left: -10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-subnav a {
    align-items: center;
    background: transparent;
    border-radius: 10px;
    color: #123853;
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 9px;
    min-height: 38px;
    padding: 9px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar-subnav a:hover {
    background: #eaf6fb;
    color: #0f5e8f;
    transform: translateX(2px);
}

.app-shell.sidebar-collapsed .sidebar-profile-menu summary {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-shell.sidebar-collapsed .sidebar-profile-menu .nav-text,
.app-shell.sidebar-collapsed .sidebar-profile-menu .profile-chevron {
    display: none !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav {
    position: absolute !important;
    left: calc(100% + 12px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    min-width: 230px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 59, 92, 0.15) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 50px rgba(16, 59, 92, 0.28) !important;
    z-index: 999999 !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav a {
    color: #123853 !important;
    white-space: nowrap !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav a:hover {
    background: #eaf6fb !important;
    color: #0f5e8f !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav::before {
    display: block !important;
    border-right-color: #ffffff !important;
}

@media (max-width: 991px) {
    .sidebar {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .app-shell:not(.sidebar-collapsed) .sidebar-subnav {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
        left: auto;
        margin-top: 6px;
        min-width: 0;
        padding: 8px;
        position: static;
        top: auto;
        transform: none;
    }

    .app-shell:not(.sidebar-collapsed) .sidebar-subnav::before {
        display: none;
    }

    .app-shell:not(.sidebar-collapsed) .sidebar-subnav a {
        color: rgba(255, 255, 255, 0.86);
        white-space: normal;
    }

    .app-shell:not(.sidebar-collapsed) .sidebar-subnav a:hover {
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        transform: none;
    }
}

.app-shell > .sidebar {
    z-index: 200000 !important;
}

.sidebar-profile-menu[open],
.sidebar-profile-menu[open] .sidebar-subnav {
    z-index: 200001 !important;
}

.app-shell > .main-content {
    position: relative;
    z-index: 1;
}

.dashboard-kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.dashboard-kpi-card {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid rgba(103, 123, 142, 0.16);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 59, 92, 0.07);
    display: flex;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px 16px;
}

.dashboard-kpi-card span {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.dashboard-kpi-card strong {
    color: #111827;
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.dashboard-kpi-card i {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 1.25rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.dashboard-kpi-card.kpi-patients i {
    background: #e5f7ff;
    color: #0ea5e9;
}

.dashboard-kpi-card.kpi-appointments i {
    background: #e9fbe8;
    color: #22c55e;
}

.dashboard-kpi-card.kpi-new-patients i {
    background: #f2e9ff;
    color: #8b5cf6;
}

.dashboard-kpi-card.kpi-consultations i {
    background: #fff1df;
    color: #f59e0b;
}

.admin-dashboard-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
}

.admin-module-card {
    border-left: 5px solid #103b5c !important;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
}

@media (max-width: 1100px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* DASHBOARD SHORTCUT "CONSULTAS DEL DIA" */
.dashboard-consultations-shortcut {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #0d7a70 0%, #085a53 100%) !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 99px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(13, 122, 112, 0.25) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.dashboard-consultations-shortcut:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(13, 122, 112, 0.35) !important;
    color: #ffffff !important;
}

.dashboard-consultations-shortcut i {
    font-size: 1.1rem !important;
}

/* TOPBAR LOGOUT BUTTON */
.topbar-logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #ffebeb !important;
    color: #d9534f !important;
    border: 1px solid rgba(217, 83, 79, 0.3) !important;
    border-radius: 99px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.12) !important;
}

.topbar-logout-btn:hover {
    background: #d9534f !important;
    color: #ffffff !important;
    border-color: #d9534f !important;
    box-shadow: 0 4px 14px rgba(217, 83, 79, 0.35) !important;
    transform: translateY(-1px) !important;
}

.topbar-logout-btn i {
    font-size: 1.1rem !important;
}

/* LOGOUT CONFIRMATION MODAL */
.care-logout-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(16, 59, 92, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.25s ease !important;
    padding: 20px !important;
}

.care-logout-backdrop.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.care-logout-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 32px 28px !important;
    max-width: 400px !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 24px 80px rgba(16, 59, 92, 0.4) !important;
    transform: scale(0.88) !important;
    transition: transform 0.25s ease !important;
}

.care-logout-backdrop.is-visible .care-logout-card {
    transform: scale(1) !important;
}

.care-logout-icon-wrapper {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    background: #ffebeb !important;
    color: #d9534f !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
}

.care-logout-card h3 {
    margin: 0 0 8px !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #103b5c !important;
}

.care-logout-card p {
    margin: 0 0 24px !important;
    font-size: 0.95rem !important;
    color: #5b7083 !important;
}

.care-logout-btn-group {
    display: flex !important;
    gap: 12px !important;
}

.btn-cancel-care-logout {
    flex: 1 !important;
    padding: 12px 16px !important;
    background: #eef4f8 !important;
    color: #103b5c !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.btn-cancel-care-logout:hover {
    background: #e2ebf1 !important;
}

.btn-confirm-care-logout {
    flex: 1 !important;
    padding: 12px 16px !important;
    background: #d9534f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
}

.btn-confirm-care-logout:hover {
    background: #c9302c !important;
}

/* SIDEBAR COLLAPSED POPOVER RIGHT POSITIONING FIX */
.app-shell.sidebar-collapsed .sidebar {
    overflow: visible !important;
}

/* =========================================================
   EXPANDED SIDEBAR (WIDTH 280px) SUBNAV BEHAVIOR (INLINE)
   ========================================================= */
.app-shell:not(.sidebar-collapsed) .sidebar-profile-menu {
    position: relative !important;
}

.app-shell:not(.sidebar-collapsed) .sidebar-subnav {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding: 6px 8px !important;
    display: none !important;
    gap: 2px !important;
}

.app-shell:not(.sidebar-collapsed) .sidebar-profile-menu[open] .sidebar-subnav {
    display: flex !important;
    flex-direction: column !important;
}

.app-shell:not(.sidebar-collapsed) .sidebar-subnav a {
    color: rgba(255, 255, 255, 0.88) !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

.app-shell:not(.sidebar-collapsed) .sidebar-subnav a:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

.app-shell:not(.sidebar-collapsed) .sidebar-subnav::before {
    display: none !important;
}

/* =========================================================
   COLLAPSED SIDEBAR (WIDTH 92px) SUBNAV BEHAVIOR (POPOVER RIGHT)
   ========================================================= */
.app-shell.sidebar-collapsed .sidebar {
    overflow: visible !important;
}

.app-shell.sidebar-collapsed .sidebar-profile-menu {
    position: relative !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav {
    display: none !important;
}

.app-shell.sidebar-collapsed .sidebar-profile-menu[open] .sidebar-subnav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    left: 88px !important;
    top: auto !important;
    min-width: 230px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 59, 92, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 50px rgba(16, 59, 92, 0.3) !important;
    padding: 10px !important;
    gap: 4px !important;
    z-index: 99999999 !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav a {
    color: #103b5c !important;
    background: #ffffff !important;
    padding: 9px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: block !important;
}

.app-shell.sidebar-collapsed .sidebar-subnav a:hover {
    background: #eef7fc !important;
    color: #0d7a70 !important;
}

.app-shell.sidebar-collapsed .sidebar-profile-menu .nav-text,
.app-shell.sidebar-collapsed .sidebar-profile-menu .profile-chevron {
    display: none !important;
}

/* =========================================================
   SIDEBAR FOOTER LOGOUT BUTTON
   ========================================================= */
.sidebar-footer .logout-link,
button.logout-link,
a.logout-link {
    background: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    padding: 13px 14px !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.sidebar-footer .logout-link:hover,
button.logout-link:hover,
a.logout-link:hover {
    background: rgba(217, 83, 79, 0.88) !important;
    color: #ffffff !important;
    border-color: #d9534f !important;
    transform: translateY(-1px) !important;
}

.app-shell.sidebar-collapsed .sidebar-footer .logout-link,
.app-shell.sidebar-collapsed button.logout-link,
.app-shell.sidebar-collapsed a.logout-link {
    justify-content: center !important;
    padding: 13px 0 !important;
}

.app-shell.sidebar-collapsed .sidebar-footer .logout-link .nav-text,
.app-shell.sidebar-collapsed button.logout-link .nav-text,
.app-shell.sidebar-collapsed a.logout-link .nav-text {
    display: none !important;
}



/* ==========================================================================
   Kura file THEMING AND SIDEBAR POSITION SYSTEM
   ========================================================================== */

/* --- 1. GENERAL SIDEBAR POSITION LAYOUTS --- */

/* TOP AND BOTTOM SIDEBAR STRUCTURE */
html.sidebar-pos-top .app-shell,
html.sidebar-pos-bottom .app-shell {
    grid-template-columns: 1fr !important;
}

html.sidebar-pos-top .sidebar,
html.sidebar-pos-bottom .sidebar {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    z-index: 199999 !important;
    overflow: visible !important;
}

html.sidebar-pos-top .sidebar-brand,
html.sidebar-pos-bottom .sidebar-brand {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
html.sidebar-pos-top .sidebar-brand img,
html.sidebar-pos-bottom .sidebar-brand img {
    height: 32px !important;
    width: auto !important;
}
html.sidebar-pos-top .sidebar-brand-text,
html.sidebar-pos-bottom .sidebar-brand-text {
    display: block !important;
}
html.sidebar-pos-top .sidebar-brand h1,
html.sidebar-pos-bottom .sidebar-brand h1 {
    font-size: 1.15rem !important;
    margin: 0 !important;
}
html.sidebar-pos-top .sidebar-brand span,
html.sidebar-pos-bottom .sidebar-brand span {
    display: none !important;
}

html.sidebar-pos-top .sidebar-user,
html.sidebar-pos-bottom .sidebar-user {
    display: none !important; /* Hide user avatar in top/bottom bar to save space */
}

html.sidebar-pos-top .sidebar-nav,
html.sidebar-pos-bottom .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Make every item (link and details summary) a uniform square button */
html.sidebar-pos-top .sidebar-nav a,
html.sidebar-pos-top .sidebar-nav details,
html.sidebar-pos-bottom .sidebar-nav a,
html.sidebar-pos-bottom .sidebar-nav details {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    position: relative !important;
    overflow: visible !important;
}

html.sidebar-pos-top .sidebar-nav details summary,
html.sidebar-pos-bottom .sidebar-nav details summary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 12px !important;
    list-style: none !important;
}

html.sidebar-pos-top .sidebar-nav .nav-icon,
html.sidebar-pos-bottom .sidebar-nav .nav-icon {
    font-size: 1.3rem !important;
    margin: 0 !important;
    display: block !important;
}

html.sidebar-pos-top .sidebar-nav .nav-text,
html.sidebar-pos-top .sidebar-nav .profile-chevron,
html.sidebar-pos-bottom .sidebar-nav .nav-text,
html.sidebar-pos-bottom .sidebar-nav .profile-chevron {
    display: none !important; /* Hide texts and chevrons */
}

html.sidebar-pos-top .sidebar-footer,
html.sidebar-pos-bottom .sidebar-footer {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}
html.sidebar-pos-top .sidebar-footer a,
html.sidebar-pos-bottom .sidebar-footer a {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

html.sidebar-pos-top .sidebar-toggle,
html.sidebar-pos-bottom .sidebar-toggle {
    display: none !important;
}

/* TOP SPECIFICS */
html.sidebar-pos-top .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 65px !important;
    border-bottom: 1px solid rgba(16, 59, 92, 0.1) !important;
}
html.sidebar-pos-top .main-content {
    margin-left: 0 !important;
    padding-top: 85px !important;
}
html.sidebar-pos-top .sidebar-subnav {
    position: absolute !important;
    top: 55px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 200002 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
}
html.sidebar-pos-top .sidebar-subnav::before {
    top: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(90deg) !important;
    border-right-color: #ffffff !important;
}

/* BOTTOM SPECIFICS */
html.sidebar-pos-bottom .sidebar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 65px !important;
    border-top: 1px solid rgba(16, 59, 92, 0.1) !important;
}
html.sidebar-pos-bottom .main-content {
    margin-left: 0 !important;
    padding-bottom: 85px !important;
    padding-top: 20px !important;
}
html.sidebar-pos-bottom .sidebar-subnav {
    position: absolute !important;
    bottom: 55px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 200002 !important;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
}
html.sidebar-pos-bottom .sidebar-subnav::before {
    bottom: -8px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(270deg) !important;
    border-right-color: #ffffff !important;
}


/* --- 2. CONTRAST THEME (HIGH CONTRAST, WHITE BACKGROUND) --- */
html.theme-contrast body {
    background: #ffffff !important;
    color: #0a0f1d !important;
}
html.theme-contrast body,
html.theme-contrast input,
html.theme-contrast select,
html.theme-contrast textarea,
html.theme-contrast button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
html.theme-contrast .main-content {
    background: #ffffff !important;
}
html.theme-contrast .patients-header,
html.theme-contrast .section-title-row {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 12px !important;
}
html.theme-contrast h2, 
html.theme-contrast h3, 
html.theme-contrast h4,
html.theme-contrast .user-cell-name {
    color: #0a0f1d !important;
}
html.theme-contrast .patients-subtitle,
html.theme-contrast .topbar-kicker,
html.theme-contrast .form-kicker,
html.theme-contrast .user-cell-email {
    color: #27272a !important;
    font-weight: 700 !important;
}
html.theme-contrast .care-form-card,
html.theme-contrast .medical-table-container,
html.theme-contrast .patient-history-timeline {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}
html.theme-contrast .care-input,
html.theme-contrast select,
html.theme-contrast textarea {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #0a0f1d !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
html.theme-contrast .care-input:focus,
html.theme-contrast select:focus,
html.theme-contrast textarea:focus {
    outline: 2px solid #000000 !important;
}
html.theme-contrast .medical-table th {
    background: #f1f5f9 !important;
    color: #0a0f1d !important;
    border-bottom: 2px solid #000000 !important;
}
html.theme-contrast .medical-table td {
    border-bottom: 1px solid #000000 !important;
    color: #0a0f1d !important;
}
html.theme-contrast .btn-primary-care,
html.theme-contrast .topbar-logout-btn,
html.theme-contrast button[type="submit"] {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}
html.theme-contrast .btn-primary-care:hover,
html.theme-contrast .topbar-logout-btn:hover,
html.theme-contrast button[type="submit"]:hover {
    background: #27272a !important;
}
html.theme-contrast .btn-action,
html.theme-contrast .btn-office-action {
    background: #ffffff !important;
    color: #0a0f1d !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
}
html.theme-contrast .btn-action:hover,
html.theme-contrast .btn-office-action:hover {
    background: #e2e8f0 !important;
}
html.theme-contrast .sidebar {
    background: #ffffff !important;
    border-right: 2px solid #000000 !important;
}
html.sidebar-pos-top.theme-contrast .sidebar {
    border-bottom: 2px solid #000000 !important;
    border-right: none !important;
}
html.sidebar-pos-bottom.theme-contrast .sidebar {
    border-top: 2px solid #000000 !important;
    border-right: none !important;
}
html.theme-contrast .sidebar-nav a {
    color: #0a0f1d !important;
    border: 1px solid transparent !important;
}
html.theme-contrast .sidebar-nav a:hover,
html.theme-contrast .sidebar-nav details[open] summary {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}
html.theme-contrast .sidebar-subnav {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}
html.theme-contrast .sidebar-subnav a {
    color: #0a0f1d !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html.theme-contrast .sidebar-subnav a:hover {
    background: #f1f5f9 !important;
}
html.theme-contrast .custom-file-upload-zone {
    border: 2px dashed #000000 !important;
    background: #ffffff !important;
}
html.theme-contrast .custom-file-upload-zone i,
html.theme-contrast .custom-file-upload-zone span {
    color: #0a0f1d !important;
}


/* --- 3. LLAMATIVO THEME (ORANGE AND BLACK, WHITE BACKGROUND) --- */
html.theme-llamativo body {
    background: #ffffff !important;
    color: #000000 !important;
}
html.theme-llamativo body,
html.theme-llamativo input,
html.theme-llamativo select,
html.theme-llamativo textarea,
html.theme-llamativo button {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
html.theme-llamativo h1,
html.theme-llamativo h2,
html.theme-llamativo h3,
html.theme-llamativo h4,
html.theme-llamativo .topbar-kicker,
html.theme-llamativo .form-kicker {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800 !important;
}
html.theme-llamativo .main-content {
    background: #ffffff !important;
}
html.theme-llamativo h2, 
html.theme-llamativo h3, 
html.theme-llamativo h4,
html.theme-llamativo .user-cell-name {
    color: #000000 !important;
}
html.theme-llamativo .patients-subtitle,
html.theme-llamativo .topbar-kicker,
html.theme-llamativo .form-kicker,
html.theme-llamativo .user-cell-email {
    color: #f97316 !important;
}
html.theme-llamativo .care-form-card,
html.theme-llamativo .medical-table-container {
    background: #ffffff !important;
    border: 1px solid #f97316 !important;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.05) !important;
}
html.theme-llamativo .care-input,
html.theme-llamativo select,
html.theme-llamativo textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
}
html.theme-llamativo .care-input:focus,
html.theme-llamativo select:focus,
html.theme-llamativo textarea:focus {
    border-color: #f97316 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}
html.theme-llamativo .medical-table th {
    background: #fff8f5 !important;
    color: #f97316 !important;
    border-bottom: 2px solid #f97316 !important;
}
html.theme-llamativo .medical-table td {
    border-bottom: 1px solid #f1f5f9 !important;
}
html.theme-llamativo .btn-primary-care,
html.theme-llamativo button[type="submit"] {
    background: #f97316 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25) !important;
}
html.theme-llamativo .btn-primary-care:hover,
html.theme-llamativo button[type="submit"]:hover {
    background: #ea580c !important;
}
html.theme-llamativo .btn-action.edit,
html.theme-llamativo .btn-office-action.edit {
    background: #fff8f5 !important;
    color: #f97316 !important;
}
html.theme-llamativo .btn-action.edit:hover,
html.theme-llamativo .btn-office-action.edit:hover {
    background: #ffedd5 !important;
}
html.theme-llamativo .sidebar {
    background: #000000 !important;
    border-right: none !important;
}
html.theme-llamativo .sidebar-brand h1 {
    color: #ffffff !important;
}
html.theme-llamativo .sidebar-brand span {
    color: #f97316 !important;
}
html.theme-llamativo .sidebar-nav a {
    color: #ffffff !important;
}
html.theme-llamativo .sidebar-nav a:hover,
html.theme-llamativo .sidebar-nav details[open] summary {
    background: #f97316 !important;
    color: #ffffff !important;
}
html.theme-llamativo .sidebar-subnav {
    background: #000000 !important;
    border: 1px solid #f97316 !important;
}
html.theme-llamativo .sidebar-subnav a {
    color: #ffffff !important;
}
html.theme-llamativo .sidebar-subnav a:hover {
    background: #f97316 !important;
    color: #ffffff !important;
}
html.theme-llamativo .custom-file-upload-zone {
    border-color: #f97316 !important;
    background: #fff8f5 !important;
}
html.theme-llamativo .custom-file-upload-zone i {
    color: #f97316 !important;
}
html.theme-llamativo .user-avatar-circle {
    background: linear-gradient(135deg, #000000 0%, #f97316 100%) !important;
}

/* ============================================================
   STICKY FOOTER AT BOTTOM BORDER
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    flex: 1 !important;
    box-sizing: border-box !important;
}

.main-footer {
    margin-top: auto !important;
    padding: 20px 0 !important;
    width: 100% !important;
}

.sidebar-user .user-sidebar-residence-center {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
    letter-spacing: 0.01em;
    margin-top: 3px;
}

/* ============================================================
   KURA FILE BRANDING & SIDEBAR HEADER
   ============================================================ */
.sidebar-brand {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    margin-bottom: 24px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    transition: all 0.25s ease !important;
}

.sidebar-brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    text-decoration: none !important;
}

.brand-emblem-icon {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 3px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0 !important;
    filter: none !important;
    transition: transform 0.2s ease !important;
}

.sidebar-brand-link:hover .brand-emblem-icon {
    transform: scale(1.05) !important;
}

.sidebar-brand-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.brand-title {
    display: flex !important;
    align-items: baseline !important;
    gap: 3px !important;
    line-height: 1 !important;
}

.kura-text {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    letter-spacing: -0.3px !important;
}

.file-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    font-style: italic !important;
    color: #2bb3a1 !important;
    font-family: 'Dancing Script', 'Playfair Display', cursive, serif !important;
}

.brand-subtitle {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
}

/* COLLAPSED SIDEBAR BRAND MODE */
.app-shell.sidebar-collapsed .sidebar-brand {
    padding: 10px 6px !important;
    margin-bottom: 16px !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
}

.app-shell.sidebar-collapsed .sidebar-brand-link {
    justify-content: center !important;
}

.app-shell.sidebar-collapsed .sidebar-brand-text {
    display: none !important;
}

.brand-logo {
    width: 132px !important;
    height: 72px !important;
    object-fit: contain !important;
}

.footer-logo {
    width: 96px !important;
    height: 46px !important;
    object-fit: contain !important;
}
