:root {
    --navy: #0a0f1f;
    --navy-2: #10172d;
    --blue: #3b82f6;
    --blue-dark: #1d4ed8;
    --cyan: #06d6ff;
    --ink: #0f172a;
    --muted: #6b7c93;
    --line: #d5dce5;
    --surface: #fff;
    --canvas: #f0f4fb;
    --danger: #ef4444;
    --green: #10b981;
    --amber: #f59e0b;
    --shadow: 0 25px 50px rgba(15, 23, 42, .12);
    --shadow-lg: 0 40px 80px rgba(15, 23, 42, .18);
    --radius: 16px
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%;
    background: var(--canvas)
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px
}

.app-noise {
    position: fixed;
    inset: 0;
    opacity: .025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 30
}

.is-hidden {
    display: none !important
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px
}

.logo>span:last-child>span {
    color: var(--cyan)
}

.logo-symbol {
    height: 34px;
    width: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #55c5ff, #2f6fed);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 8px 22px rgba(47, 111, 237, .35)
}

.logo-image {
    height: 34px;
    width: auto;
    max-width: 100px;
    display: block;
    object-fit: contain
}

.logo-light {
    color: #fff
}

.logo-dark {
    color: var(--navy)
}

.logo-dark>span:last-child>span {
    color: var(--blue)
}

.login-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.16fr .84fr
}

.login-intro {
    min-height: 100vh;
    padding: 52px clamp(45px, 8vw, 128px);
    background: radial-gradient(circle at 78% 30%, rgba(61, 139, 255, .25), transparent 24%), radial-gradient(circle at 20% 90%, rgba(78, 205, 255, .13), transparent 25%), linear-gradient(145deg, #111b30, #0b1324 54%, #15284a);
    color: #fff;
    position: relative;
    overflow: hidden
}

.login-intro>*:not(.intro-grid):not(.intro-orb) {
    position: relative;
    z-index: 1
}

.intro-copy {
    margin-top: clamp(110px, 20vh, 205px);
    max-width: 610px
}

.eyebrow,
.overline {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.35px;
    color: var(--blue);
    margin: 0 0 14px
}

.eyebrow {
    color: #88d9ff;
    display: flex;
    align-items: center;
    gap: 8px
}

.eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #59d6ae;
    box-shadow: 0 0 0 4px rgba(89, 214, 174, .15)
}

.intro-copy h1 {
    font-size: clamp(39px, 4.1vw, 68px);
    line-height: 1.13;
    letter-spacing: -3px;
    margin: 0 0 24px;
    font-weight: 800
}

.intro-copy h1 em {
    font-style: normal;
    color: #70d4ff
}

.intro-copy p {
    max-width: 480px;
    color: #afbdd1;
    line-height: 1.85;
    font-size: 15px
}

.trust-points {
    position: absolute;
    z-index: 1;
    bottom: 52px;
    left: clamp(45px, 8vw, 128px);
    display: flex;
    gap: 30px;
    color: rgba(181, 196, 215, .9);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .02em
}

.trust-points span {
    display: flex;
    align-items: center;
    gap: 9px;
    opacity: .9
}

.trust-points b {
    font-family: 'DM Mono', monospace;
    color: #8ad9ff;
    font-size: 9px;
    font-weight: 500;
    min-width: 18px;
    display: inline-flex;
    justify-content: center
}

.intro-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(185, 215, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 215, 255, .045) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(150deg, #000, transparent 83%)
}

.intro-orb {
    position: absolute;
    right: -220px;
    bottom: -180px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(137, 203, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(137, 203, 255, .035), 0 0 0 145px rgba(137, 203, 255, .018)
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 44px 30px;
    position: relative
}

.login-panel>.logo {
    display: none
}

.auth-card {
    width: min(100%, 390px)
}

.auth-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700
}

.auth-heading .overline {
    margin: 0 0 3px
}

.auth-heading h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -1px
}

.auth-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 27px
}

.auth-card label {
    font-weight: 700;
    font-size: 11px;
    color: #42516a;
    display: block;
    margin: 0 0 18px
}

.field-helper {
    grid-column: 1 / -1;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin: -8px 0 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .01em;
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid transparent;
    background: rgba(114, 128, 153, .06);
    color: var(--muted);
}

.field-helper.success {
    display: inline-flex;
    background: linear-gradient(180deg, rgba(220, 252, 231, .88), rgba(236, 253, 245, .96));
    border-color: rgba(16, 185, 129, .22);
    color: #0f7a60;
}

.field-helper.danger {
    display: inline-flex;
    background: linear-gradient(180deg, rgba(254, 226, 226, .85), rgba(255, 241, 242, .96));
    border-color: rgba(220, 38, 38, .22);
    color: #b42318;
}

.sunat-status {
    grid-column: 1 / -1;
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 18px;
    margin: -8px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--muted);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(126, 140, 168, .18);
    box-shadow: 0 10px 18px rgba(15, 23, 42, .04);
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
}

.sunat-status.is-loading,
.sunat-status.is-success,
.sunat-status.is-error {
    display: inline-flex;
    justify-content: flex-start;
}

.sunat-status.is-loading {
    color: #9b6b1a;
    background: linear-gradient(180deg, rgba(254, 243, 199, .7), rgba(254, 247, 220, .9));
    border-color: rgba(217, 141, 24, .28);
}

.sunat-status.is-success {
    color: #0f7a60;
    background: linear-gradient(180deg, rgba(220, 252, 231, .9), rgba(236, 253, 245, .96));
    border-color: rgba(16, 185, 129, .25);
}

.sunat-status.is-error {
    color: #b42318;
    background: linear-gradient(180deg, rgba(254, 226, 226, .85), rgba(255, 241, 242, .96));
    border-color: rgba(220, 38, 38, .22);
}

.sunat-indicator {
    position: relative;
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #c5cedc, #7f8ba3);
    box-shadow: 0 0 0 4px rgba(126, 140, 168, .12);
}

.sunat-status.is-loading .sunat-indicator {
    background: linear-gradient(135deg, #f7c661, #d78b1a);
    box-shadow: 0 0 0 4px rgba(217, 141, 24, .12);
    animation: sunatPulse 1.2s ease-in-out infinite;
}

.sunat-status.is-success .sunat-indicator {
    background: linear-gradient(135deg, #34d399, #0f9f76);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.sunat-status.is-success .sunat-indicator::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sunat-status.is-error .sunat-indicator {
    background: linear-gradient(135deg, #ff8b8b, #dc2626);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.sunat-status.is-error .sunat-indicator::before,
.sunat-status.is-error .sunat-indicator::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 2px;
    height: 7px;
    background: #fff;
    border-radius: 2px;
}

.sunat-status.is-error .sunat-indicator::before {
    transform: rotate(45deg);
}

.sunat-status.is-error .sunat-indicator::after {
    transform: rotate(-45deg);
}

@keyframes sunatPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.14); opacity: .8; }
}

.auth-card input,
.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #dce3ee;
    border-radius: 9px;
    background: #fff;
    font: 500 13px Manrope, sans-serif;
    color: var(--ink);
    padding: 12px 13px;
    outline: 0;
    transition: .2s
}

.auth-card input {
    height: 45px
}

.auth-card input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: #69a0f6;
    box-shadow: 0 0 0 4px rgba(47, 111, 237, .1)
}

.password-wrap {
    position: relative
}

.password-wrap input {
    padding-right: 42px
}

.show-password {
    position: absolute;
    right: 7px;
    bottom: 7px;
    border: 0;
    background: transparent;
    color: #8b97aa;
    font-size: 15px;
    cursor: pointer;
    width: 30px;
    height: 30px
}

.auth-error {
    display: none;
    margin: -4px 0 15px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #ad3039;
    background: #fff0f1;
    font-size: 11px;
    font-weight: 600
}

.auth-error.show {
    display: block
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 9px;
    padding: 11px 15px;
    min-height: 40px;
    font: 700 12px Manrope, sans-serif;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px
}

.primary-button {
    background: linear-gradient(135deg, var(--blue), #4282f3);
    color: #fff;
    box-shadow: 0 10px 18px rgba(47, 111, 237, .2)
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(47, 111, 237, .3)
}

.primary-button b {
    font-size: 17px;
    line-height: 0
}

.full {
    width: 100%;
    min-height: 46px
}

.text-button {
    width: 100%;
    margin-top: 14px;
    background: transparent;
    border: 0;
    color: var(--blue);
    font: 700 11px Manrope, sans-serif;
    cursor: pointer
}

.secure-note {
    position: absolute;
    bottom: 32px;
    margin: 0;
    color: #a0aabd;
    font-size: 10px;
    font-family: 'DM Mono', monospace
}

.secure-note span {
    color: #28b28a;
    margin-right: 5px
}

.app-view {
    min-height: 100vh
}

.sidebar {
    width: 254px;
    background: linear-gradient(165deg, #111b30, #10192c);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 25px 15px;
    z-index: 10;
    color: #b5c0d2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0
}

.sidebar-head {
    padding: 0 10px;
    flex-shrink: 0
}

.sidebar-close {
    display: none
}

.nav-label {
    font: 500 10px 'DM Mono', monospace;
    letter-spacing: 1.35px;
    color: #f2f3f5;
    margin: 20px 10px 10px
}

.nav-label.second {
    margin-top: 25px
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 146, 180, .6) transparent
}

.side-nav::-webkit-scrollbar {
    width: 6px
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(126, 146, 180, .6);
    border-radius: 999px
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #aeb9cc;
    font: 600 13px Manrope, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: .2s;
    letter-spacing: .1px
}

.nav-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: Arial;
    color: #9bb0d1;
    flex-shrink: 0
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.nav-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(47, 111, 237, .26), rgba(47, 111, 237, .12));
    color: #fff;
    box-shadow: inset 2px 0 #55bdf9
}

.nav-item.active .nav-icon {
    color: #6ccfff
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 9px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px
}

.sidebar-footer b {
    display: block;
    color: #d9e0ed;
    margin-bottom: 2px
}

.sidebar-footer span {
    color: #71819a
}

.support-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #223452;
    color: #77cff8;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px
}

.workspace {
    margin-left: 254px;
    min-height: 100vh
}

.topbar {
    height: 71px;
    padding: 0 clamp(25px, 4vw, 55px);
    background: linear-gradient(165deg, #4788e3, #2e4263);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 5
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #edf4ff
}

.breadcrumb strong {
    color: #ffffff;
    font-weight: 800
}

.breadcrumb b {
    color: rgba(255, 255, 255, .76)
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px
}

.bell {
    position: relative;
    background: transparent;
    border: 0;
    color: #f3f8ff;
    font-size: 20px;
    cursor: pointer
}

.bell i {
    position: absolute;
    width: 6px;
    height: 6px;
    right: 0;
    top: 1px;
    background: #f05d5d;
    border: 1px solid #fff;
    border-radius: 50%
}

.profile {
    border-left: 1px solid var(--line);
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 9px
}

.profile-avatar {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: linear-gradient(140deg, #d8e7ff, #8db7fb);
    color: #1a4d9e;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 12px
}

.profile b {
    font-size: 11px;
    display: block;
    white-space: nowrap;
    color: #ffffff
}

.profile span {
    font-size: 9px;
    color: #ffffff;
    display: block;
    margin-top: 1px
}

.logout {
    background: transparent;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    transition: .2s
}

.logout svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.logout:hover {
    background: rgba(255, 100, 100, .08);
    color: #ff6b6b
}

.content {
    padding: 35px clamp(25px, 4vw, 55px) 60px;
    max-width: 1580px;
    margin: auto
}

.page {
    display: none
}

.page.active-page {
    display: block
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 27px
}

.page-heading.compact {
    align-items: center
}

.page-heading .overline {
    margin-bottom: 8px
}

.page-heading h1 {
    font-size: 25px;
    letter-spacing: -1.3px;
    margin: 0 0 6px;
    line-height: 1.2
}

.page-heading h1>span:not(.wave) {
    color: var(--blue)
}

.page-heading>div>p:last-child {
    color: var(--muted);
    font-size: 12px;
    margin: 0
}

.wave {
    color: #f8ab36;
    font-size: 19px
}

.date-pill {
    color: #617088;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
   
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 17px
}

.metric-card {
    padding: 20px;
    border: 1px solid rgba(100, 120, 160, .15);
    background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(250, 251, 252, 0.97));
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .12)
}

.metric-card:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    right: -48px;
    top: -48px;
    background: var(--metric-soft);
    opacity: .85
}

.metric-card .metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--metric-soft);
    color: var(--metric-color);
    display: grid;
    place-items: center;
    font-size: 17px;
    border: 1.5px solid rgba(255,255,255,.4);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 4px 12px rgba(0,0,0,.06);
    font-weight: 600
}

.metric-card .metric-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block
}

.metric-card p {
    margin: 16px 0 6px;
    color: #627084;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.metric-card h3 {
    font-size: 26px;
    margin: 0;
    letter-spacing: -1.2px;
    color: #0f172a;
    font-weight: 800
}

.metric-card small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #2e3846
}

.metric-card small b {
    color: var(--green)
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.44fr 1fr;
    gap: 17px;
    margin-bottom: 17px
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 252, .98));
    border: 1px solid rgba(133, 147, 170, .18);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(31, 52, 86, .05), inset 0 0 0 1px rgba(255,255,255,.35)
}

.chart-panel,
.activity-panel {
    min-height: 303px;
    padding: 22px
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start
}

.panel-heading h2 {
    font-size: 14px;
    letter-spacing: -.3px;
    margin: 0 0 4px
}

.panel-heading p {
    color: #000000;
    font-size: 12px;
    margin: 0
}

.chart-key {
    color: #8190a4;
    font-size: 11px;
    font-weight: 600
}

.chart-key i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--blue);
    margin-right: 4px
}

.bar-chart {
    height: 211px;
    padding: 20px 0 0;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    border-bottom: 1px solid #edf0f5;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 52px, #f0f3f7 53px)
}

.bar-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 21px
}

.bar-value {
    color: #60708a;
    font: 500 9px 'DM Mono', monospace
}

.bar {
    max-width: 45px;
    width: 100%;
    min-height: 4px;
    background: linear-gradient(to top, #3371e9, #75bffb);
    border-radius: 6px 6px 2px 2px;
    transition: height .5s
}

.bar-label {
    color: #95a1b1;
    font: 500 9px 'DM Mono', monospace;
    white-space: nowrap
}

.activity-list {
    margin-top: 20px;
    display: grid;
    gap: 0
}

.activity {
    padding: 11px 0;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    gap: 10px;
    align-items: center
}

.activity:last-child {
    border-bottom: 0
}

.activity-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--blue);
    font-size: 13px
}

.activity p {
    font-size: 10px;
    font-weight: 700;
    margin: 0 0 2px;
    white-space: nowrap;
    max-width: 225px;
    overflow: hidden;
    text-overflow: ellipsis
}

.activity span {
    font-size: 11px;
    color: #374966
}

.link-button {
    background: none;
    border: 0;
    color: var(--blue);
    font: 700 11px Manrope, sans-serif;
    cursor: pointer;
    padding: 0
}

.expiring-panel {
    padding: 18px 22px
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px
}

.mini-list-item {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px
}

.mini-list-item b {
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mini-list-item span {
     font-size: 12px;
    color: #cd150b;
    display: block;
    margin-top: 5px
}

.empty-state {
    color: #9ba7b8;
    font-size: 11px;
    padding: 25px 0;
    text-align: center
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -4px 0 16px
}

.search {
    position: relative;
    width: min(100%, 330px)
}

.search span {
    position: absolute;
    left: 13px;
    top: 9px;
    color: #8c9ab0;
    font-size: 18px
}

.search input,
.search select,
.rh-user-select {
    width: 100%;
    border: 1px solid rgba(84, 110, 150, .28);
    border-radius: 12px;
    padding: 11px 42px 11px 14px;
    outline: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,255,.94));
    color: #1f2937;
    font: 600 12px Manrope, sans-serif;
    letter-spacing: .01em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #2f5fd8 50%), linear-gradient(135deg, #2f5fd8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 18px rgba(43, 76, 140, .08);
    transition: all .2s ease;
}

.search input {
    padding-left: 40px;
    cursor: text;
}

.search select,
.rh-user-select {
    padding-left: 16px;
}

.search input:focus,
.search select:focus,
.rh-user-select:focus {
    border-color: rgba(47, 111, 237, .78);
    box-shadow: 0 0 0 4px rgba(47,111,237,.12), 0 12px 22px rgba(47,111,237,.12);
    background-color: #fff;
}

.rh-user-select {
    min-height: 44px;
    padding-left: 16px;
    color: #1b2a3a;
    font-weight: 700;
}

.result-count {
    color: #010814;
    font-size: 12px
}

.table-panel {
    overflow: hidden
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px
}

th {
    text-align: left;
    color: #3756df;
    font-size: 10.5px;
    letter-spacing: .8px;
    padding: 15px 19px;
    background: #fafbfd;
    border-bottom: 1px solid var(--line)
}

td {
    padding: 14px 19px;
    border-bottom: 1px solid #edf0f4;
    color: #5d6b80;
    font-size: 10.5px;
    font-weight: 600;
    vertical-align: middle
}

tbody tr:last-child td {
    border-bottom: 0
}

tbody tr:hover {
    background: #fbfcff
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 10px
}

.person-avatar {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #e8f0ff;
    color: #396dc5;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800
}

.person-cell b,
.company-cell b {
    display: block;
    color: #26344d;
    font-size: 10.5px;
    margin-bottom: 2px
}

.person-cell span,
.company-cell span {
    font-size: 9px;
    color: #8996a9
}

.status {
    padding: 4px 7px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 800;
    display: inline-block;
    letter-spacing: .2px;
    border: 1px solid transparent
}

.status.active {
    color: #0d7457;
    background: linear-gradient(135deg, rgba(38, 201, 138, .18), rgba(38, 201, 138, .26));
    border-color: rgba(21, 163, 111, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35)
}

.status.inactive {
    color: #b64c55;
    background: #ffedef
}

.status.draft {
    color: #9a6b19;
    background: #fff6df
}

.status.published {
    color: #1a67c8;
    background: #eaf3ff
}

.role {
    color: #536c95;
    background: #eef3fc;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 10px;
    font-weight: 800
}

.row-action {
    border: 0;
    background: transparent;
    color: #718098;
    font-size: 17px;
    cursor: pointer
}

.row-edit-btn {
    border: 1px solid rgba(59, 130, 246, .25);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .2px;
    transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, .22);
}

.row-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(59, 130, 246, .35);
    filter: brightness(1.06)
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 17px
}

.plan-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 120, 160, .14);
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(250, 252, 255, .96));
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
    border-radius: 16px;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, border-color .3s ease;
}

.plan-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--plan-color) 18%, transparent), transparent 45%);
    pointer-events: none
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, .15);
    border-color: rgba(100, 120, 160, .25)
}

.plan-card:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--plan-color), color-mix(in srgb, var(--plan-color) 70%, #fff));
    box-shadow: 0 2px 20px color-mix(in srgb, var(--plan-color) 50%, transparent)
}

.plan-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px
}

.plan-card h2 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #0f172a;
    letter-spacing: -.3px;
    font-weight: 800
}

.plan-card p {
    font-size: 11px;
    color: #6b7c93;
    margin: 0;
    min-height: 32px;
    line-height: 1.4;
    font-weight: 500
}

.plan-price {
    margin: 24px 0 8px;
    font-size: 32px;
    letter-spacing: -2px;
    color: var(--plan-color);
    font-weight: 900
}

.plan-price small {
    font-size: 12px;
    letter-spacing: 0;
    color: #6b7c93;
    font-weight: 600
}

.plan-details {
    display: flex;
    gap: 10px;
    color: #6b7c93;
    font-size: 11px;
    margin: 16px 0 22px;
    flex-wrap: wrap
}

.plan-details span {
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(240, 245, 255, .9), rgba(235, 242, 251, .9));
    border-radius: 8px;
    border: 1px solid rgba(100, 120, 160, .12);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px
}

.card-actions {
    display: flex;
    gap: 10px
}

.card-button {
    flex: 1;
    border: 1.5px solid var(--plan-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--plan-color) 85%, #fff), var(--plan-color));
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font: 700 11px Manrope, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--plan-color) 28%, transparent);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, filter .2s ease;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    opacity: 1
}

.card-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--plan-color) 40%, transparent);
    filter: brightness(1.08);
    color: #fff
}

.card-button.delete-btn {
    background: transparent;
    color: var(--danger);
    border-color: rgba(239, 68, 68, .3);
    text-shadow: none;
    box-shadow: none
}

.card-button.delete-btn:hover {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .15)
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px
}

.module-card {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    border: 1.5px solid rgba(100, 120, 160, .14);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, border-color .3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
    border-color: rgba(100, 120, 160, .25);
}

.module-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--module-soft);
    color: var(--module-color);
    font-size: 18px;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4), 0 6px 16px rgba(15, 23, 42, .08);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
    font-weight: 600
}

.module-card:hover .module-mark {
    transform: scale(1.08) rotate(2deg);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5), 0 8px 20px rgba(59, 130, 246, .15);
}

.module-card h2 {
    font-size: 13px;
    margin: 0 0 5px;
    color: #0f172a;
    letter-spacing: -.3px;
    font-weight: 800
}

.module-card p {
    font-size: 11px;
    line-height: 1.5;
    color: #6b7c93;
    margin: 0 0 12px;
    font-weight: 500
}

.module-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #54657d;
    min-height: 22px;
    flex-wrap: wrap
}

.module-meta > span:first-child {
    flex: 0 0 auto
}

.module-meta > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: nowrap
}

.code {
    font: 500 8px 'DM Mono', monospace;
    color: #f10404c2;
    letter-spacing: .04em;
    line-height: 1
}

.tiny-button {
    border: 1px solid rgba(59, 130, 246, .28);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font: 700 9px Manrope, sans-serif;
    cursor: pointer;
    padding: 6px 10px;
    white-space: nowrap;
    line-height: 1;
    align-self: center;
    margin-left: 2px;
    border-radius: 7px;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, .25);
    text-shadow: 0 1px 1px rgba(0,0,0,.1);
}

.tiny-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(59, 130, 246, .35);
    filter: brightness(1.06)
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.report-panel {
    padding: 22px;
    min-height: 205px
}

.report-panel.full-width {
    grid-column: 1/-1
}

.distribution {
    margin-top: 20px;
    display: grid;
    gap: 16px
}

.distribution-item {
    display: grid;
    grid-template-columns: 80px 1fr 26px;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: #607089;
    font-weight: 700
}

.distribution-bar {
    height: 7px;
    border-radius: 10px;
    background: #edf1f6;
    overflow: hidden
}

.distribution-bar i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #4b89f5, #85c9ff)
}

.distribution-item b {
    text-align: right;
    color: #40516b;
    font: 500 10px 'DM Mono', monospace
}

.small-bars {
    height: 160px
}

.secondary-button {
    border: 1px solid var(--line);
    background: #fff;
    color: #52627d
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal.open {
    display: flex
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 33, .52);
    backdrop-filter: blur(3px)
}

.modal-card {
    z-index: 1;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow: auto;
    width: min(100%, 680px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .25);
    padding: 27px
}

.modal-card.large {
    width: min(100%, 820px)
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 17px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    font-weight: 600
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .3);
    filter: brightness(1.08)
}

.modal-heading {
    padding-right: 35px;
    margin-bottom: 22px
}

.modal-heading .overline {
    margin-bottom: 7px
}

.modal-heading h2 {
    font-size: 20px;
    letter-spacing: -.8px;
    margin: 0 0 5px
}

.modal-heading p {
    font-size: 10px;
    color: var(--muted);
    margin: 0
}

.confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.confirm-dialog.open {
    display: flex
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 33, .6);
    backdrop-filter: blur(4px)
}

.confirm-card {
    z-index: 1;
    position: relative;
    width: min(100%, 420px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    padding: 32px;
    text-align: center;
    animation: confirmSlideIn .3s cubic-bezier(.34, 1.56, .64, 1)
}

@keyframes confirmSlideIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(-20px)
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, .12), rgba(239, 68, 68, .08));
    border: 2px solid rgba(239, 68, 68, .25);
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    font-size: 26px;
    position: relative
}

.confirm-icon::before {
    content: "⚠";
    position: absolute;
    color: #dc2626;
}

.confirm-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -.3px
}

.confirm-card p {
    font-size: 13px;
    color: #6b7c93;
    margin: 0 0 28px;
    line-height: 1.5
}

.confirm-actions {
    display: flex;
    gap: 12px
}

.btn-cancel,
.btn-accept {
    flex: 1;
    border: 0;
    padding: 12px 14px;
    border-radius: 10px;
    font: 700 12px Manrope, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    letter-spacing: .2px
}

.btn-cancel {
    background: #f3f7fb;
    color: #6b7c93;
    border: 1px solid #dfe8f5
}

.btn-cancel:hover {
    background: #e9f0f9;
    border-color: #d5dce5;
    transform: translateY(-2px)
}

.btn-accept {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 20px rgba(239, 68, 68, .3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12)
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(239, 68, 68, .4);
    filter: brightness(1.08)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.form-grid label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #4e5e77
}

.form-grid label.full {
    grid-column: 1/-1
}

.form-grid label.ruc-autofilled {
    grid-column: 1/-1;
    animation: rucFieldExpand .25s ease-out
}

@keyframes rucFieldExpand {
    from { opacity: .65; transform: translateY(-3px) }
    to { opacity: 1; transform: translateY(0) }
}

.form-grid textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.55
}

.form-grid .checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 12px;
    background: #fafcff
}

.form-grid .checkbox-label input {
    width: auto;
    margin: 0;
    accent-color: var(--blue)
}

.module-checks {
    grid-column: 1/-1;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px
}

.module-checks>span {
    font-size: 10px;
    font-weight: 800;
    color: #4e5e77;
    display: block;
    margin-bottom: 10px
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
}

.check-grid label {
    font-size: 10px !important;
    font-weight: 600 !important;
    display: flex !important;
    gap: 7px;
    align-items: center
}

.check-grid input {
    width: auto !important;
    margin: 0 !important;
    accent-color: var(--blue)
}

.form-grid .modal-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 23px auto 0;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto
}

.form-grid .modal-actions.full {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important
}

.form-grid .modal-actions .secondary-button,
.form-grid .modal-actions .primary-button {
    min-height: 40px;
    flex: 0 0 auto
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    display: none;
    padding: 13px 16px;
    border-radius: 9px;
    background: #14213a;
    color: #fff;
    box-shadow: 0 14px 35px rgba(7, 15, 30, .25);
    font-size: 11px;
    font-weight: 700
}

.toast.show {
    display: block;
    animation: toast .25s ease-out
}

.toast.error {
    background: #a83542
}

@keyframes toast {
    from {
        transform: translateY(12px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.mobile-menu {
    display: none
}

@media (max-width:1050px) {
    .login-view {
        grid-template-columns: 1fr .9fr
    }

    .login-intro {
        padding-left: 7vw
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .activity-panel {
        min-height: 0
    }

    .activity-list {
        grid-template-columns: 1fr 1fr
    }

    .content {
        padding-left: 30px;
        padding-right: 30px
    }
}

@media (max-width:760px) {
    .login-view {
        display: block
    }

    .login-intro {
        min-height: 255px;
        padding: 28px 25px
    }

    .intro-copy {
        margin-top: 40px
    }

    .intro-copy h1 {
        font-size: 31px;
        letter-spacing: -1.5px;
        margin-bottom: 10px
    }

    .intro-copy p,
    .trust-points {
        display: none
    }

    .login-panel {
        min-height: calc(100vh - 255px);
        justify-content: flex-start;
        padding: 34px 25px
    }

    .login-panel>.logo {
        display: flex;
        align-self: flex-start;
        margin-bottom: 45px
    }

    .sidebar {
        transform: translateX(-105%);
        transition: .25s;
        box-shadow: 12px 0 35px rgba(0, 0, 0, .24)
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .sidebar-close {
        display: block;
        position: absolute;
        right: 13px;
        top: 20px;
        background: none;
        border: 0;
        color: #c8d4e5;
        font-size: 25px
    }

    .mobile-shade {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9;
        background: rgba(2, 7, 16, .4)
    }

    .mobile-shade.open {
        display: block
    }

    .workspace {
        margin-left: 0
    }

    .mobile-menu {
        display: block;
        background: none;
        border: 0;
        color: #ffffff;
        font-size: 20px;
        padding: 0
    }

    .topbar {
        height: 62px;
        padding: 0 20px
    }

    .breadcrumb {
        display: none
    }

    .topbar-actions {
        gap: 10px
    }

    .bell {
        display: none
    }

    .profile {
        border: 0;
        padding: 0
    }

    .profile>div:nth-child(2) {
        display: none
    }

    .content {
        padding: 26px 18px 45px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px
    }

    .page-heading.compact {
        align-items: flex-start
    }

    .page-heading h1 {
        font-size: 23px
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .metric-card {
        padding: 14px
    }

    .metric-card p {
        margin-top: 11px
    }

    .metric-card h3 {
        font-size: 20px
    }

    .chart-panel,
    .activity-panel,
    .expiring-panel {
        padding: 17px
    }

    .bar-chart {
        gap: 10px
    }

    .activity-list {
        grid-template-columns: 1fr
    }

    .mini-list {
        grid-template-columns: 1fr
    }

    .toolbar {
        align-items: flex-start;
        gap: 7px;
        flex-direction: column
    }

    .search {
        width: 100%
    }

    .plan-grid,
    .modules-grid {
        grid-template-columns: 1fr
    }

    .report-grid {
        grid-template-columns: 1fr
    }

    .report-panel.full-width {
        grid-column: auto
    }

    .modal {
        padding: 10px
    }

    .modal-card {
        padding: 23px 17px;
        border-radius: 14px;
        max-height: calc(100vh - 20px)
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .check-grid {
        grid-template-columns: 1fr
    }

    .modal-actions {
        position: sticky;
        bottom: -23px;
        padding: 13px 0 0;
        background: #fff
    }

    .modal-actions button {
        flex: 1
    }

    .date-pill {
        display: none
    }
}

@media print {

    .sidebar,
    .topbar,
    .page:not([data-page-content="reports"]),
    .secondary-button {
        display: none !important
    }

    .workspace {
        margin: 0
    }

    .content {
        padding: 0
    }

    .page[data-page-content="reports"] {
        display: block !important
    }

    .app-noise {
        display: none
    }

    .panel {
        box-shadow: none
    }
}