*{box-sizing:border-box}

body{
    margin:0;
    background:#f1f5f9;
    color:#1e293b;
    font:15px system-ui,-apple-system,sans-serif;
}

.login-page{
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-card{
    width:100%;
    max-width:390px;
    background:#fff;
    padding:32px;
    border:1px solid #e2e8f0;
    border-radius:18px;
    box-shadow:0 10px 35px #0f172a0a;
}

.logo{
    width:58px;
    height:58px;
    margin:0 auto 20px;
    border-radius:16px;
    background:#e0f2f1;
    color:#0f766e;
    display:grid;
    place-items:center;
    font-weight:800;
}

.login-card h1{
    text-align:center;
    font-size:25px;
    margin:0;
}

.login-card .muted{text-align:center}
.muted{color:#64748b;font-size:13px}

label{
    display:block;
    font-weight:600;
    margin:20px 0 8px;
}

input{
    width:100%;
    border:1px solid #cbd5e1;
    border-radius:8px;
    padding:12px;
    font-size:16px;
    outline:none;
}

input:focus{
    border-color:#0f766e;
    box-shadow:0 0 0 3px #0f766e12;
}

button{
    border:0;
    border-radius:8px;
    background:#0f766e;
    color:white;
    padding:12px 18px;
    cursor:pointer;
    font-size:15px;
}

.login-card button{
    width:100%;
    margin-top:24px;
}

.footer{
    color:#94a3b8;
    font-size:12px;
    text-align:center;
    margin:24px 0 0;
}

.error{
    background:#fef2f2;
    color:#b91c1c;
    border-radius:8px;
    padding:12px;
}

.dashboard{
    max-width:1500px;
    padding:24px;
    margin:auto;
}

header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

header h1{font-size:25px;margin:0}

.panel{
    padding:24px;
    background:white;
    border-radius:12px;
    border:1px solid #e2e8f0;
    margin-top:24px;
}

.actions,.toolbar{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.secondary{
    background:#e2e8f0;
    color:#334155;
}

.notice{
    padding:12px 0;
    color:#64748b;
    font-size:13px;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.stats section,.account-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:18px;
}

.stats strong{
    display:block;
    font-size:28px;
    color:#0f766e;
    margin-top:10px;
}

.accounts{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
}

.account-card p{margin:8px 0}

.toolbar{margin-bottom:20px}
.toolbar input{width:auto;min-width:200px;flex:1}

select{
    border:1px solid #cbd5e1;
    border-radius:8px;
    padding:11px;
    background:white;
    color:#334155;
    font-size:14px;
}

.check{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
    font-size:14px;
}

.check input{width:16px;min-width:16px;flex:none}

.table-scroll{overflow:auto}

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

th,td{
    padding:14px 10px;
    text-align:left;
    border-bottom:1px solid #e2e8f0;
}

th{background:#f8fafc;color:#64748b}
td{white-space:nowrap}

small{
    display:block;
    color:#64748b;
    margin-top:5px;
    font-size:12px;
}

h2 small{display:inline;margin-left:8px}
h2{font-size:18px;margin:0 0 18px}

.mini{
    background:#e0f2f1;
    color:#0f766e;
    padding:5px 8px;
    font-size:12px;
    margin-left:5px;
}

.green{color:#0f766e}
.orange{color:#d97706}
.red{color:#dc2626}

progress{
    display:block;
    width:100%;
    min-width:120px;
    height:8px;
    margin:8px 0;
    accent-color:#0d9488;
}

progress.orange{accent-color:#f59e0b}
progress.red{accent-color:#dc2626}

.detail-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    padding:14px;
    background:#f8fafc;
    white-space:normal;
}

.detail-grid b{
    display:block;
    margin-top:5px;
    overflow-wrap:anywhere;
}

button:disabled{
    opacity:.5;
    cursor:wait;
}

@media(max-width:700px){
    .dashboard{padding:12px}
    .stats{grid-template-columns:repeat(2,1fr)}
    .panel{padding:14px}
    header{align-items:flex-start}
    header h1{font-size:21px}
    .actions button{font-size:12px;padding:9px}
    .toolbar>*{max-width:100%}
    .toolbar input{min-width:100%}
    .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
