*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f8fc;color:#14243b}
:root{--sky:#3b82f6;--blue:#1557c0;--royal:#0d47a1;--deep:#071a44;--navy:#061638;--pale:#eef5ff;--line:#c9dbfb;--white:#fff}
.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e0f2fe,#fff,#bae6fd)}
.login-card{width:min(440px,92%);background:#fff;padding:34px;border-radius:22px;box-shadow:0 20px 60px #07598522;border-top:6px solid var(--sky)}
.brand{font-size:25px;font-weight:900;color:var(--deep)}.brand small{display:block;font-size:12px;color:#64748b;letter-spacing:2px}
.shell{display:grid;grid-template-columns:270px 1fr;min-height:100vh}.side{background:linear-gradient(#e0f2fe,#f0f9ff);border-right:1px solid var(--line);padding:22px;position:sticky;top:0;height:100vh;overflow:auto}
.side a{display:block;padding:11px 12px;margin:4px 0;border-radius:10px;color:var(--deep);text-decoration:none;font-weight:700}.side a:hover{background:#7dd3fc;color:#fff}
.main{padding:25px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel,.card{background:#fff;border:1px solid #dbeafe;border-radius:16px;padding:18px;box-shadow:0 8px 25px #0759850c}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:16px 0}.big{font-size:27px;font-weight:900;color:var(--blue)}
.btn{display:inline-block;background:var(--blue);color:#fff;border:0;padding:10px 15px;border-radius:9px;text-decoration:none;font-weight:800;cursor:pointer}
.modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.module{padding:18px;background:linear-gradient(145deg,#fff,#f0f9ff);border:1px solid var(--line);border-radius:15px;text-decoration:none;color:var(--deep);font-weight:800}
input,select,textarea{width:100%;padding:10px;border:1px solid #bae6fd;border-radius:8px;background:#fff}label{display:block;font-size:12px;font-weight:800;margin:8px 0 4px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #e0f2fe;text-align:left}th{background:#f0f9ff;color:var(--deep)}
.progress{height:9px;background:#e0f2fe;border-radius:9px;overflow:hidden}.progress i{display:block;height:100%;background:#38bdf8}
@media(max-width:850px){.shell{grid-template-columns:1fr}.side{position:relative;height:auto}.main{padding:15px}}

.notice{padding:12px 14px;border-radius:10px;margin-bottom:15px;font-weight:700}.success{background:#ecfeff;border:1px solid #a5f3fc;color:#155e75}.danger{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.secondary{background:#64748b}.table-wrap{overflow:auto;margin-top:15px}.actions{white-space:nowrap}.actions form{display:inline}.actions a,.link{border:0;background:none;color:#0284c7;font-weight:800;text-decoration:none;cursor:pointer;padding:0 5px;font:inherit}.danger-link{color:#be123c!important}.span2{grid-column:span 2}.project-hero{display:flex;justify-content:space-between;align-items:center}.status-pill{background:#e0f2fe;color:#075985;border:1px solid #7dd3fc;padding:7px 12px;border-radius:999px;font-weight:800;text-transform:capitalize}@media(max-width:650px){.span2{grid-column:auto}.project-hero{display:block}}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:15px}.photo-card{background:#fff;border:1px solid #dbeafe;border-radius:14px;overflow:hidden;box-shadow:0 8px 25px #0759850c}.photo-card img{width:100%;height:170px;object-fit:cover;display:block}.photo-card>div{padding:12px}.photo-card small{display:block;color:#64748b;margin:5px 0 8px}

.brand-accent{color:var(--blue)}
.sidebar-brand{display:flex;gap:11px;align-items:center;padding:2px 2px 10px}
.sidebar-brand img{width:62px;height:62px;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 6px 18px #092a6618}
.sidebar-brand strong{display:block;color:var(--deep);font-size:17px;letter-spacing:.6px}
.sidebar-brand small{display:block;color:#55708f;font-size:9px;letter-spacing:1.4px;margin-top:4px}
.app-footer{text-align:center;padding:14px;background:#eef5ff;color:#123c78;border-top:1px solid #d7e4fa}

/* CIVILORA split login */
.civilora-login{min-height:100vh;margin:0;background:#edf3fb;color:#10213a}
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.12fr) minmax(390px,.88fr)}
.login-brand-panel{position:relative;overflow:hidden;display:grid;place-items:center;padding:48px;background:
 radial-gradient(circle at 20% 20%,#367eea33 0,transparent 34%),
 linear-gradient(145deg,#061638 0%,#0b347c 46%,#1769d1 100%)}
.login-brand-panel:before,.login-brand-panel:after{content:"";position:absolute;border:1px solid #ffffff1c;border-radius:50%}
.login-brand-panel:before{width:560px;height:560px;left:-170px;bottom:-260px}
.login-brand-panel:after{width:360px;height:360px;right:-170px;top:-150px}
.login-brand-inner{position:relative;z-index:2;width:min(620px,92%);text-align:center}
.login-logo{display:block;width:min(510px,90%);max-height:520px;object-fit:contain;margin:0 auto 22px;background:#fff;border-radius:26px;padding:18px;box-shadow:0 28px 70px #00102e66}
.brand-message{color:#fff}.brand-message>span{font-size:12px;letter-spacing:3px;font-weight:800;color:#bcd7ff}
.brand-message h1{font-size:34px;margin:12px 0 8px}.brand-message p{max-width:620px;margin:auto;line-height:1.65;color:#d8e7ff;font-size:14px}
.login-form-panel{display:grid;place-items:center;padding:48px;background:linear-gradient(145deg,#fff,#f5f9ff)}
.civilora-login-card{width:min(455px,100%);padding:40px 38px;border:1px solid #d8e5f9;background:#fff;border-radius:24px;box-shadow:0 24px 70px #0a2a6618}
.login-kicker{font-size:11px;letter-spacing:3px;color:#6b7f99;font-weight:900}
.civilora-login-card h2{font-size:34px;color:var(--deep);margin:7px 0 4px;letter-spacing:1px}
.login-subtitle{color:#6a7e98;margin:0 0 26px}
.civilora-login-card label{font-size:12px;color:#2c466b;margin-top:15px}
.civilora-login-card input{height:48px;border:1px solid #cedcf3;background:#f9fbff;padding:0 14px}
.civilora-login-card input:focus{outline:3px solid #236cd51b;border-color:#2870d6}
.login-submit{width:100%;height:50px;margin-top:24px;background:linear-gradient(135deg,#092c75,#1d68dc);box-shadow:0 10px 22px #1557c035}
.login-foot{text-align:center;color:#8494aa;font-size:10px;letter-spacing:1px;margin-top:22px}

/* welcome splash */
.welcome-page{margin:0;min-height:100vh;overflow:hidden;background:
 radial-gradient(circle at center,#fff 0,#f4f8ff 44%,#dceaff 100%);transition:opacity .85s ease,transform .85s ease}
.welcome-stage{min-height:100vh;display:grid;place-content:center;text-align:center;position:relative}
.welcome-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:#2878e51d;filter:blur(30px);left:50%;top:50%;transform:translate(-50%,-50%);animation:pulseGlow 2.8s ease-in-out infinite}
.welcome-logo{position:relative;width:min(520px,76vw);max-height:58vh;object-fit:contain;margin:auto;filter:drop-shadow(0 24px 30px #0a347227);animation:civiloraReveal 3.1s ease both}
.welcome-copy{position:relative;margin-top:18px;animation:copyReveal 2.4s .35s ease both}
.welcome-copy strong{display:block;color:#08245d;font-size:24px;letter-spacing:5px}.welcome-copy span{display:block;color:#4b678d;font-size:11px;letter-spacing:3px;margin-top:7px;text-transform:uppercase}
.welcome-loader{position:relative;width:190px;height:3px;background:#d7e5fa;margin:24px auto 0;border-radius:10px;overflow:hidden}
.welcome-loader i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0a2e78,#2a79e5);animation:loadWelcome 3.7s linear forwards}
.welcome-out{opacity:0;transform:scale(1.025)}
@keyframes civiloraReveal{0%{opacity:0;transform:scale(.82);filter:blur(10px)}28%{opacity:1;transform:scale(1);filter:blur(0) drop-shadow(0 24px 30px #0a347227)}78%{opacity:1}100%{opacity:.96}}
@keyframes copyReveal{0%{opacity:0;transform:translateY(12px)}100%{opacity:1;transform:none}}
@keyframes loadWelcome{to{width:100%}}@keyframes pulseGlow{50%{transform:translate(-50%,-50%) scale(1.12);opacity:.55}}
@media(max-width:900px){.login-shell{grid-template-columns:1fr}.login-brand-panel{min-height:42vh;padding:28px}.login-logo{width:min(340px,82%);max-height:300px}.brand-message h1{font-size:25px}.brand-message p{display:none}.login-form-panel{padding:28px 18px}.civilora-login-card{padding:30px 25px}}

/* CIVILORA v3.5 dashboard system */
.ci{display:inline-grid;place-items:center;width:20px;height:20px;color:#1557c0;flex:0 0 20px}
.ci svg{width:100%;height:100%}.btn .ci{color:#fff;width:17px;height:17px;margin-right:7px;vertical-align:-4px}
.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;background:linear-gradient(120deg,#061638,#0c3b8d 58%,#1c68d8);color:#fff;border-radius:20px;box-shadow:0 18px 45px #0a34722b;margin-bottom:18px;overflow:hidden;position:relative}
.dashboard-hero:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;border:45px solid #ffffff10;right:-80px;top:-105px}
.dashboard-hero h1{margin:0 0 7px;font-size:27px}.dashboard-hero p{margin:0;color:#dbe9ff;max-width:720px}.dashboard-hero .ci{width:58px;height:58px;color:#8fc0ff;position:relative;z-index:2}
.dash-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px;margin:16px 0 20px}
.dash-kpi{display:flex;gap:13px;align-items:center;background:#fff;border:1px solid #d9e5f7;border-radius:16px;padding:17px;box-shadow:0 8px 24px #082b650c}
.dash-kpi>.ci{width:34px;height:34px;padding:7px;border-radius:10px;background:#edf4ff;color:#1557c0;flex-basis:34px}
.dash-kpi small{display:block;color:#6b7f99;font-size:10px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.dash-kpi strong{display:block;color:#071a44;font-size:22px;margin-top:3px}.dash-kpi span{display:block;color:#7890ad;font-size:11px;margin-top:2px}
.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:13px}
.dash-module{display:flex;align-items:center;gap:13px;padding:17px;background:#fff;border:1px solid #d9e5f7;border-radius:15px;text-decoration:none;box-shadow:0 7px 20px #082b6509;transition:.18s ease}
.dash-module:hover{transform:translateY(-2px);border-color:#8fb5ee;box-shadow:0 12px 26px #0b3b8518}.dash-module>.ci{width:29px;height:29px;padding:6px;background:#edf4ff;border-radius:9px;flex-basis:29px}
.dash-module div{min-width:0;flex:1}.dash-module strong{display:block;color:#0a2d69;font-size:14px}.dash-module span{display:block;color:#7488a4;font-size:11px;line-height:1.35;margin-top:3px}.dash-module b{color:#2369cb;font-size:21px}
.dashboard-section{margin-top:18px}.dashboard-section h3{display:flex;align-items:center;gap:8px;color:#0a2d69;margin:0 0 12px}.dashboard-section h3 .ci{width:22px;height:22px}
.dashboard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.dashboard-tabs a{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbdcf5;background:#fff;color:#174f9f;padding:8px 11px;border-radius:999px;text-decoration:none;font-size:11px;font-weight:800}.dashboard-tabs a .ci{width:15px;height:15px}
.side a:before{content:"•";display:inline-block;color:#2b72d4;margin-right:7px;font-weight:900}
@media(max-width:650px){.dashboard-hero{align-items:flex-start}.dashboard-hero .ci{width:42px;height:42px}.dashboard-hero h1{font-size:22px}}

.suite-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:8px 0}
.suite-nav a{font-size:10px!important;padding:7px 8px!important;margin:0!important;background:#fff;border:1px solid #d7e4f8;color:#174f9f!important;text-align:center}
.suite-nav a:before{display:none!important}.suite-nav a:hover{background:#1557c0!important;color:#fff!important}

/* CIVILORA v3.5.1 corrective sizing layer */
.civilora-login .login-shell{
  grid-template-columns:minmax(360px,46%) minmax(420px,54%);
}
.civilora-login .login-brand-panel{padding:32px}
.civilora-login .login-brand-inner{width:min(480px,88%)}
.civilora-login .login-logo{
  width:260px !important;
  max-width:72% !important;
  height:auto !important;
  max-height:280px !important;
  padding:10px !important;
  border-radius:18px !important;
  margin:0 auto 18px !important;
}
.civilora-login .brand-message h1{font-size:25px !important}
.civilora-login .brand-message p{font-size:13px !important;max-width:470px}
.civilora-login .civilora-login-card{width:min(430px,100%);padding:32px}
.civilora-login .civilora-login-card h2{font-size:29px}

/* Keep every dashboard icon compact, regardless of inherited SVG rules */
.ci{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  flex:0 0 18px !important;
  overflow:hidden !important;
}
.ci svg{
  display:block !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  min-height:18px !important;
  max-height:18px !important;
}
.dashboard-hero{
  min-height:105px !important;
  padding:19px 22px !important;
  border-radius:16px !important;
}
.dashboard-hero h1{font-size:23px !important}
.dashboard-hero p{font-size:12.5px;line-height:1.55;max-width:760px}
.dashboard-hero>.ci{
  width:32px !important;height:32px !important;min-width:32px !important;max-width:32px !important;
  min-height:32px !important;max-height:32px !important;flex-basis:32px !important;
}
.dashboard-hero>.ci svg{width:32px !important;height:32px !important;min-width:32px !important;max-width:32px !important;min-height:32px !important;max-height:32px !important}
.dash-kpis{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:10px !important}
.dash-kpi{min-height:78px;padding:13px !important;border-radius:13px !important}
.dash-kpi>.ci{
  width:28px !important;height:28px !important;min-width:28px !important;max-width:28px !important;
  min-height:28px !important;max-height:28px !important;flex-basis:28px !important;padding:5px !important;
}
.dash-kpi>.ci svg{width:18px !important;height:18px !important;min-width:18px !important;max-width:18px !important;min-height:18px !important;max-height:18px !important}
.dash-kpi strong{font-size:18px !important}
.dash-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:10px !important}
.dash-module{min-height:72px;padding:13px 14px !important;border-radius:13px !important}
.dash-module>.ci{
  width:26px !important;height:26px !important;min-width:26px !important;max-width:26px !important;
  min-height:26px !important;max-height:26px !important;flex-basis:26px !important;padding:4px !important;
}
.dash-module>.ci svg{width:17px !important;height:17px !important;min-width:17px !important;max-width:17px !important;min-height:17px !important;max-height:17px !important}
.dash-module strong{font-size:13px !important}.dash-module span{font-size:10.5px !important}
.dashboard-section h3 .ci,.dashboard-tabs .ci,.btn .ci{
  width:16px !important;height:16px !important;min-width:16px !important;max-width:16px !important;
  min-height:16px !important;max-height:16px !important;flex-basis:16px !important;padding:0 !important;
}
.dashboard-section h3 .ci svg,.dashboard-tabs .ci svg,.btn .ci svg{width:16px !important;height:16px !important;min-width:16px !important;max-width:16px !important;min-height:16px !important;max-height:16px !important}
.sidebar-brand img{width:46px !important;height:46px !important;padding:3px !important}
.sidebar-brand strong{font-size:15px !important}
.side{width:auto}
.suite-nav{grid-template-columns:repeat(2,minmax(0,1fr)) !important}

/* Main app proportions */
.shell{grid-template-columns:250px minmax(0,1fr) !important}
.main{min-width:0;padding:20px !important}
.top h2{font-size:20px;margin:0}
table{font-size:12px}
th,td{padding:9px 8px !important}

@media(max-width:1180px){
 .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:850px){
 .shell{grid-template-columns:1fr !important}
 .main{padding:14px !important}
 .civilora-login .login-shell{grid-template-columns:1fr}
 .civilora-login .login-brand-panel{min-height:300px}
 .civilora-login .login-logo{width:200px !important;max-height:215px !important}
}
@media(max-width:600px){
 .dash-kpis,.dash-grid{grid-template-columns:1fr !important}
 .dashboard-hero{min-height:auto !important}
 .dashboard-hero>.ci{display:none !important}
 .civilora-login .login-brand-panel{min-height:245px;padding:20px}
 .civilora-login .login-logo{width:165px !important;max-height:180px !important}
 .civilora-login .brand-message h1{font-size:20px !important}
 .civilora-login .brand-message p{display:none}
 .civilora-login .login-form-panel{padding:18px}
}
