@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap');

.cond-portal,
.cond-portal *{
    box-sizing:border-box;
}

.cond-portal{
    --cond-primary:#08152f;
    --cond-secondary:#2563eb;
    --cond-accent:#1d4ed8;
    --cond-bg:#f4f7fb;
    --cond-text:#0f172a;

    width:100%;
    min-height:calc(100vh - 32px);
    display:flex;
    align-items:stretch;
    justify-content:flex-start;
    background:var(--cond-bg);
    color:var(--cond-text);
    font-family:'Inter', Arial, sans-serif;
    border:1px solid #e5e7eb;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 12px 34px rgba(15,23,42,.06);
    margin:0 !important;
    padding:0 !important;
}

.cond-sidebar{
    width:290px;
    min-width:290px;
    background:linear-gradient(180deg, var(--cond-primary) 0%, #0d234d 100%);
    color:#fff;
    padding:28px 22px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cond-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.12);
    margin-bottom:6px;
}

.cond-brand img{
    width:58px;
    height:58px;
    object-fit:contain;
    background:#fff;
    border-radius:14px;
    padding:6px;
    flex-shrink:0;
}

.cond-brand-text strong{
    display:block;
    font-family:'Montserrat',sans-serif;
    font-size:20px;
    line-height:1.15;
    color:#fff;
}

.cond-brand-text small{
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,.76);
    font-size:14px;
    line-height:1.3;
}

.cond-nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cond-nav a{
    display:block;
    text-decoration:none;
    color:#eaf1ff;
    padding:13px 14px;
    border-radius:14px;
    font-size:16px;
    font-weight:700;
    line-height:1.2;
    transition:all .2s ease;
}

.cond-nav a:hover,
.cond-nav a.active{
    background:rgba(255,255,255,.14);
    color:#fff;
}

.cond-nav .cond-logout{
    margin-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
    padding-top:16px;
}

.cond-footer{
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.10);
    color:#cbd5e1;
    font-size:12px;
    line-height:1.5;
}

.cond-body{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    background:var(--cond-bg);
}

.cond-topbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:28px 30px 18px;
    border-bottom:1px solid #e6ebf2;
    background:#fff;
}

.cond-topbar-left{
    min-width:0;
}

.cond-topbar-left h1{
    margin:0 0 8px;
    font-family:'Montserrat',sans-serif;
    font-size:34px;
    line-height:1.1;
    color:#0f172a;
}

.cond-topbar-left p{
    margin:0;
    font-size:15px;
    line-height:1.6;
    color:#64748b;
}

.cond-topbar-right{
    flex-shrink:0;
}

.cond-userbox{
    min-width:220px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px 16px;
    text-align:right;
}

.cond-user-label{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:4px;
}

.cond-userbox strong{
    display:block;
    color:#0f172a;
    font-size:16px;
    line-height:1.2;
}

.cond-userbox small{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:13px;
}

.cond-main{
    flex:1;
    min-width:0;
    padding:30px;
    background:var(--cond-bg);
}

.cond-content-wrap{
    width:100%;
    max-width:100%;
}

.cond-main h2,
.cond-main h3,
.cond-main h4{
    margin-top:0;
    font-family:'Montserrat',sans-serif;
    color:#0f172a;
}

.cond-main p{
    color:#334155;
    line-height:1.6;
}

.cond-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:24px;
    margin-bottom:22px;
    box-shadow:0 10px 28px rgba(15,23,42,.04);
}

.cond-card:last-child{
    margin-bottom:0;
}

.cond-grid{
    display:grid;
    gap:18px;
}

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:18px;
}

.two-col{
    display:grid;
    grid-template-columns:360px 1fr;
    gap:22px;
}

.cond-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
}

.cond-kpi{
    font-size:30px;
    font-weight:800;
    line-height:1.1;
    color:#0f172a;
}

.cond-btn,
.cond-portal button,
.cond-portal input[type="submit"],
.cond-portal .button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--cond-secondary);
    color:#fff;
    border:none;
    border-radius:14px;
    padding:12px 18px;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:all .2s ease;
}

.cond-btn:hover,
.cond-portal button:hover,
.cond-portal input[type="submit"]:hover,
.cond-portal .button:hover{
    background:var(--cond-accent);
    color:#fff;
}

.cond-portal input[type="text"],
.cond-portal input[type="email"],
.cond-portal input[type="number"],
.cond-portal input[type="date"],
.cond-portal input[type="password"],
.cond-portal input[type="file"],
.cond-portal select,
.cond-portal textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #cfd8e3;
    border-radius:14px;
    background:#fff;
    font:inherit;
    color:#0f172a;
    outline:none;
    box-shadow:none;
}

.cond-portal textarea{
    min-height:120px;
    resize:vertical;
}

.cond-portal input:focus,
.cond-portal select:focus,
.cond-portal textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.cond-table-wrap{
    overflow:auto;
    width:100%;
}

.cond-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.cond-table th,
.cond-table td{
    padding:13px 14px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
    vertical-align:top;
    font-size:14px;
}

.cond-table th{
    background:#eff4fb;
    color:#0f172a;
    font-weight:700;
}

.cond-table td{
    color:#334155;
}

.cond-muted{
    opacity:.72;
    font-size:13px;
}

.cond-aviso + .cond-aviso{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #e5e7eb;
}

.cond-login-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:calc(100vh - 32px);
    padding:40px 20px;
}

.cond-login-card{
    width:100%;
    max-width:430px;
    background:#fff;
    padding:28px;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 12px 34px rgba(15,23,42,.08);
}

@media (max-width:1200px){
    .kpi-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .two-col{
        grid-template-columns:1fr;
    }
}

@media (max-width:960px){
    .cond-portal{
        flex-direction:column;
        min-height:auto;
    }

    .cond-sidebar{
        width:100%;
        min-width:100%;
    }

    .cond-topbar{
        flex-direction:column;
        align-items:flex-start;
        padding:22px;
    }

    .cond-userbox{
        text-align:left;
        min-width:100%;
    }

    .cond-main{
        padding:22px;
    }

    .cond-form-grid,
    .kpi-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:640px){
    .cond-main{
        padding:16px;
    }

    .cond-card{
        padding:18px;
        border-radius:18px;
    }

    .cond-topbar-left h1{
        font-size:28px;
    }

    .cond-nav a{
        font-size:15px;
        padding:12px;
    }
}