@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root{--ink:#0c1748;--muted:#66758a;--primary:#0618a8;--cyan:#087fbd;--bg:#f5f8fc;--line:#e4eaf3;--success:#087f5b;--danger:#c43d35;--radius:18px;--shadow:0 10px 30px rgba(12,23,72,.07);--ipcs-yellow:#f39a00;--ipcs-blue:#0618a8}
*{box-sizing:border-box}body{font-family:'DM Sans',sans-serif!important;background:var(--bg)!important;color:var(--ink)!important}h1,h2,h3,h4,h5,h6{font-family:'Manrope',sans-serif!important;color:var(--ink)}a{transition:.2s ease}.pcoded-content,.pcoded-main-container{background:var(--bg)!important}.codir-topbar{height:72px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 26px;position:fixed;inset:0 0 auto 0;z-index:1000}.codir-brand{display:flex;align-items:center;gap:12px;min-width:245px;text-decoration:none}.codir-brand-mark,.landing-logo .mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--cyan));display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(21,94,239,.25)}.codir-brand strong{font:800 18px 'Manrope';color:var(--ink)}.codir-brand small{display:block;color:var(--muted);font-size:11px}.codir-topbar-center{flex:1;max-width:520px;margin:auto}.codir-search{height:42px;border:1px solid var(--line);background:#f8faff;border-radius:12px;display:flex;align-items:center;padding:0 14px;color:#9aa8ba}.codir-search input{border:0;outline:0;background:transparent;width:100%;font:500 13px 'DM Sans';padding-left:9px}.codir-user{display:flex;align-items:center;gap:10px;margin-left:auto}.codir-avatar{width:38px;height:38px;border-radius:50%;background:#e9f1ff;color:var(--primary);display:grid;place-items:center;font-weight:800}.codir-user-name{font-size:13px;font-weight:700}.codir-user-role{font-size:11px;color:var(--muted)}.codir-icon-btn,.codir-menu-toggle{border:0;background:#f5f8fc;width:40px;height:40px;border-radius:11px;color:#5c6c80;display:grid;place-items:center}.codir-icon-btn:hover,.codir-menu-toggle:hover{background:#eaf1ff;color:var(--primary)}.codir-sidebar{position:fixed;left:0;top:72px;bottom:0;width:250px;background:#fff;border-right:1px solid var(--line);padding:22px 14px;z-index:900;overflow-y:auto}.codir-nav-label{text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800;color:#a1adbd;padding:10px 12px}.codir-nav{list-style:none;margin:0;padding:0}.codir-nav li{margin:3px 0}.codir-nav a{display:flex;align-items:center;gap:12px;color:#607087;text-decoration:none;padding:11px 13px;border-radius:12px;font-size:13px;font-weight:600}.codir-nav a:hover{background:#f3f7ff;color:var(--primary)}.codir-nav li.active>a{background:linear-gradient(90deg,#edf4ff,#f7fbff);color:var(--primary);box-shadow:inset 3px 0 0 var(--primary)}.codir-nav-icon{width:21px;text-align:center;font-size:16px}.codir-main{margin-left:250px;padding:100px 28px 28px;min-height:100vh}.codir-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.codir-eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.13em;color:var(--primary);margin-bottom:7px}.codir-page-head h1{font-size:27px;margin:0 0 5px;font-weight:800}.codir-page-head p{margin:0;color:var(--muted);font-size:13px}.codir-actions{display:flex;gap:9px;flex-wrap:wrap}.card,.codir-card{border:1px solid var(--line)!important;border-radius:var(--radius)!important;background:#fff!important;box-shadow:var(--shadow)!important;overflow:hidden}.card-header{background:#fff!important;border-bottom:1px solid var(--line)!important;padding:18px 20px!important}.card-header h5{font-size:15px;font-weight:800;margin:0}.card-block{padding:20px!important}.codir-kpi{padding:20px;border-radius:var(--radius);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.codir-kpi-icon{width:42px;height:42px;border-radius:12px;background:#edf4ff;color:var(--primary);display:grid;place-items:center;margin-bottom:14px}.codir-kpi-value{font:800 28px 'Manrope';margin:0}.codir-kpi-label{color:var(--muted);font-size:12px;margin-top:4px}.table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#8a98aa;border:0!important;background:#f8fafc!important;padding:13px 15px!important}.table tbody td{border-color:#eef2f6!important;padding:14px 15px!important;color:#3c4b5f;font-size:12px;vertical-align:middle}.table tbody tr:hover{background:#fbfdff}.badge{border-radius:999px!important;padding:6px 10px!important;font-size:10px!important;font-weight:700}.btn{border-radius:11px!important;font-weight:700!important;font-size:12px!important;padding:9px 14px!important;border:0}.btn-primary{background:var(--primary)!important;box-shadow:0 7px 16px rgba(21,94,239,.18)}.btn-primary:hover{background:#0b4dcc!important;transform:translateY(-1px)}.btn-success{background:var(--success)!important}.btn-danger{background:var(--danger)!important}.btn-secondary,.btn-light{background:#f2f5f9!important;color:#506075!important}.form-control,.form-select,select.form-control,textarea.form-control{border:1px solid #dfe7f1!important;border-radius:11px!important;min-height:42px!important;box-shadow:none!important;font-size:13px!important;color:var(--ink)!important}.form-control:focus,.form-select:focus{border-color:#8fb5ff!important;box-shadow:0 0 0 3px #eaf2ff!important}.form-group label{font-size:11px;font-weight:800;color:#56667b;margin-bottom:7px}.alert{border:0!important;border-radius:12px!important;font-size:12px}.page-header{display:none!important}.pcoded-inner-content,.main-body,.page-wrapper,.page-body{padding:0!important;margin:0!important;background:transparent!important}.breadcrumb-title{display:none!important}.codir-menu-toggle{display:none}.codir-sidebar-backdrop{display:none;position:fixed;inset:72px 0 0;background:rgba(10,25,45,.28);z-index:850}.codir-empty{padding:38px 20px;text-align:center;color:var(--muted)}
.codir-auth{min-height:100vh;background:radial-gradient(circle at 15% 20%,#eaf2ff 0,transparent 30%),radial-gradient(circle at 90% 80%,#dffbff 0,transparent 28%),#f5f8fc;display:grid;place-items:center;padding:28px}.codir-auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:0 25px 70px rgba(16,35,63,.12)}
/* landing */
.landing{color:var(--ink);background:#fff}.landing-container{width:min(1160px,calc(100% - 40px));margin:auto}.landing-nav{position:absolute;top:0;left:0;right:0;z-index:20;padding:20px 0}.landing-nav-inner{display:flex;align-items:center;justify-content:space-between}.landing-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.landing-logo span:last-child{font:800 18px 'Manrope'}.landing-links{display:flex;gap:28px;align-items:center}.landing-links a{color:#56667b;text-decoration:none;font-size:13px;font-weight:600}.landing-links a:hover{color:var(--primary)}.landing-nav-cta{padding:11px 17px;background:var(--primary)!important;color:#fff!important;border-radius:10px}.landing-hero{padding:150px 0 90px;background:linear-gradient(180deg,#f4f8ff 0%,#fff 75%);position:relative;overflow:hidden}.landing-hero:before{content:'';position:absolute;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,#dff6ff 0,transparent 65%);right:-180px;top:-180px}.landing-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}.landing-pill{display:inline-flex;align-items:center;gap:8px;background:#eaf2ff;color:var(--primary);padding:7px 11px;border-radius:999px;font-size:11px;font-weight:800;margin-bottom:18px}.landing-pill:before{content:'';width:7px;height:7px;border-radius:50%;background:#12b76a}.landing-hero h1{font:800 clamp(38px,5vw,62px) 'Manrope';letter-spacing:-.045em;line-height:1.03;margin:0 0 20px;max-width:680px}.landing-hero h1 span{color:var(--primary)}.landing-hero p{font-size:17px;line-height:1.7;color:#68788e;max-width:590px;margin:0 0 28px}.landing-cta{display:flex;gap:12px;flex-wrap:wrap}.landing-btn{display:inline-flex;align-items:center;gap:9px;text-decoration:none;padding:13px 18px;border-radius:11px;font-weight:800;font-size:13px}.landing-btn.primary{background:var(--primary);color:#fff;box-shadow:0 14px 25px rgba(21,94,239,.2)}.landing-btn.secondary{background:#fff;color:var(--ink);border:1px solid #dfe7f1}.landing-dashboard{background:#fff;border:1px solid #e0e8f2;border-radius:24px;box-shadow:0 30px 80px rgba(20,54,96,.15);padding:14px;transform:rotate(1deg)}.dash-top{height:35px;display:flex;align-items:center;gap:6px;padding:0 8px}.dot{width:7px;height:7px;border-radius:50%;background:#d9e1ec}.dash-body{background:#f5f8fc;border-radius:15px;padding:18px}.mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.mini-title{font:800 14px 'Manrope'}.mini-btn{background:var(--primary);color:#fff;padding:7px 10px;border-radius:8px;font-size:9px;font-weight:700}.mini-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.mini-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}.mini-card small{font-size:8px;color:#8391a4}.mini-card strong{display:block;font:800 18px 'Manrope';margin-top:4px}.mini-chart{height:130px;margin-top:10px;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#fff);overflow:hidden}.mini-chart svg{width:100%;height:100%}.landing-section{padding:90px 0}.landing-section.alt{background:#f7faff}.section-head{text-align:center;max-width:700px;margin:0 auto 42px}.section-head .eyebrow{color:var(--primary);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.section-head h2{font:800 36px 'Manrope';letter-spacing:-.03em;margin:10px 0}.section-head p{color:#718096;line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{padding:25px;background:#fff;border:1px solid #e6edf5;border-radius:18px;box-shadow:0 12px 30px rgba(16,35,63,.05)}.feature-icon{width:44px;height:44px;border-radius:12px;background:#edf4ff;color:var(--primary);display:grid;place-items:center;font-size:18px;margin-bottom:16px}.feature-card h3{font-size:16px;margin:0 0 8px}.feature-card p{font-size:13px;color:#748398;line-height:1.7;margin:0}.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.module{padding:20px;border:1px solid #e6edf5;border-radius:16px;background:#fff}.module b{display:block;margin-bottom:6px}.module span{font-size:12px;color:#78879a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe7f1;border:1px solid #dfe7f1;border-radius:20px;overflow:hidden}.stat{background:#fff;text-align:center;padding:30px 15px}.stat strong{display:block;font:800 31px 'Manrope';color:var(--primary)}.stat span{font-size:11px;color:#7a889a}.landing-final{background:linear-gradient(135deg,#0e2c58,#155eef);color:#fff;border-radius:28px;padding:55px;overflow:hidden}.landing-final h2{color:#fff;font:800 34px 'Manrope';margin:0 0 12px}.landing-final p{color:#d7e4fb;max-width:640px;line-height:1.7}.landing-footer{padding:35px 0;color:#8a98aa;font-size:12px}.footer-inner{display:flex;justify-content:space-between;gap:20px}.footer-links{display:flex;gap:18px}.footer-links a{color:#728095;text-decoration:none}
@media(max-width:991px){.codir-sidebar{transform:translateX(-100%);transition:.25s ease}.codir-sidebar.open{transform:translateX(0);box-shadow:20px 0 50px rgba(16,35,63,.16)}.codir-main{margin-left:0}.codir-menu-toggle{display:grid}.codir-sidebar-backdrop{display:none}.codir-brand{min-width:auto}.codir-brand small{display:none}.codir-topbar-center{display:none}.codir-user-name,.codir-user-role{display:none}.codir-page-head{align-items:flex-start;flex-direction:column}.landing-grid{grid-template-columns:1fr;gap:40px}.feature-grid{grid-template-columns:1fr 1fr}.module-grid{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.landing-links{display:none}}
@media(max-width:575px){.codir-main{padding:88px 16px 20px}.codir-page-head h1{font-size:22px}.codir-kpi{margin-bottom:12px}.codir-card .card-block,.card-block{padding:15px!important}.codir-topbar{height:64px;padding:0 14px}.codir-sidebar{top:64px}.codir-sidebar-backdrop{inset:64px 0 0}.feature-grid,.module-grid,.stats{grid-template-columns:1fr}.landing-container{width:calc(100% - 28px)}.landing-hero{padding-top:120px}.landing-hero p{font-size:15px}.landing-section{padding:65px 0}.landing-final{padding:32px 25px}.landing-final h2{font-size:27px}.footer-inner{flex-direction:column}}

/* ==========================================================
   IPCS x Comigest brand fusion
   ========================================================== */
:root{
  --ipcs-blue:#0618a8;
  --ipcs-yellow:#f39a00;
  --ipcs-orange:#f39a00;
  --ipcs-ink:#0c1748;
}
.ipcs-topbar{border-bottom-color:#e8ebf5}
.ipcs-brand{gap:11px!important}
.ipcs-brand-logo{width:50px;height:38px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e9edf7;box-shadow:0 5px 14px rgba(6,24,168,.08)}
.ipcs-brand-logo img{width:94px;height:auto;display:block}
.ipcs-brand strong{color:var(--ipcs-ink)!important}
.ipcs-brand strong em{font-style:normal;color:var(--ipcs-orange)}
.ipcs-brand small{color:#7b849c!important}
.ipcs-site-link{height:34px;align-items:center;gap:7px;padding:0 11px;border:1px solid #e4e8f3;border-radius:10px;color:var(--ipcs-blue);text-decoration:none;font-size:11px;font-weight:800;background:#fff;margin-right:4px}
.ipcs-site-link:hover{background:#f7f8ff;color:var(--ipcs-blue);text-decoration:none}
.ipcs-sidebar{background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);border-right-color:#e7eaf3}
.ipcs-side-brand{display:flex;align-items:center;gap:9px;padding:4px 5px 18px;margin-bottom:4px;border-bottom:1px solid #edf0f7}
.ipcs-side-brand img{width:74px;height:38px;object-fit:contain;border-radius:7px}
.ipcs-side-brand strong{display:block;font-size:14px;line-height:1;color:var(--ipcs-blue);font-weight:900}
.ipcs-side-brand small{display:block;margin-top:5px;color:#8992a6;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.ipcs-sidebar .codir-nav li.active>a{background:linear-gradient(90deg,#fff9d8,#f7f9ff);color:var(--ipcs-blue);box-shadow:inset 3px 0 0 var(--ipcs-orange)}
.ipcs-sidebar .codir-nav a:hover{color:var(--ipcs-blue);background:#fafaff}
.ipcs-sidebar .codir-nav-icon{color:var(--ipcs-blue)}
.ipcs-side-card{margin-top:20px;padding:15px;border-radius:16px;background:linear-gradient(145deg,#fffbea,#f5f7ff);border:1px solid #f0e9bf;box-shadow:0 8px 20px rgba(6,24,168,.05);font-size:10px;line-height:1.5;color:#7a8397}
.ipcs-side-card-title{font-size:11px;font-weight:900;color:var(--ipcs-ink);margin-bottom:5px}.ipcs-side-card-title i{color:var(--ipcs-orange);margin-right:4px}.ipcs-side-card a{display:inline-block;margin-top:9px;color:var(--ipcs-blue);font-weight:800;text-decoration:none}.ipcs-side-card a:hover{text-decoration:underline}
.ipcs-app-footer{display:flex;justify-content:space-between;gap:15px;padding:18px 3px 4px;color:#9aa4b7;font-size:10px}.ipcs-app-footer a{color:var(--ipcs-blue);font-weight:800;text-decoration:none}
/* Public IPCS landing */
.ipcs-landing{background:#fff;color:var(--ipcs-ink)}
.ipcs-landing .landing-nav{background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid #eef0f6}
.ipcs-logo-lockup{display:flex;align-items:center;gap:9px;text-decoration:none}.ipcs-logo-lockup img{width:108px;height:43px;object-fit:contain}.ipcs-logo-lockup strong{font-size:11px;color:#778098;border-left:1px solid #dfe3ed;padding-left:10px}
.ipcs-hero{padding:150px 0 95px;background:radial-gradient(circle at 86% 18%,rgba(255,224,0,.22),transparent 25%),linear-gradient(180deg,#f7f8ff 0%,#fff 76%);position:relative;overflow:hidden}
.ipcs-hero .landing-pill{background:#fff8c7;color:#766800}.ipcs-hero h1 span{color:var(--ipcs-blue)}
.ipcs-hero-card{position:relative;min-height:430px;border-radius:28px;background:linear-gradient(145deg,#0618a8 0%,#1230bd 55%,#f39a00 160%);box-shadow:0 30px 70px rgba(6,24,168,.23);overflow:hidden;padding:28px;color:#fff}
.ipcs-hero-card:before{content:'';position:absolute;width:280px;height:280px;border-radius:50%;right:-80px;top:-90px;background:rgba(255,224,0,.32)}
.ipcs-hero-card:after{content:'';position:absolute;width:220px;height:220px;border-radius:50%;left:-110px;bottom:-120px;background:rgba(255,255,255,.08)}
.ipcs-hero-panel{position:absolute;left:28px;right:28px;bottom:28px;padding:22px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);backdrop-filter:blur(10px);border-radius:20px}.ipcs-hero-panel h3{font-size:19px;margin:0 0 8px;color:#fff}.ipcs-hero-panel p{font-size:12px;line-height:1.7;color:#e7ecff;margin:0}.ipcs-hero-metric{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.ipcs-hero-metric span{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.12);font-size:10px;font-weight:800}.ipcs-hero-metric i{color:var(--ipcs-yellow);margin-right:4px}
.ipcs-service-card{position:relative;overflow:hidden}.ipcs-service-card:after{content:'';position:absolute;right:-35px;bottom:-50px;width:120px;height:120px;border-radius:50%;background:rgba(255,224,0,.12)}.ipcs-service-card .feature-icon{background:#f2f4ff;color:var(--ipcs-blue)}
.ipcs-company-band{background:linear-gradient(135deg,#0618a8,#0d238d);border-radius:28px;padding:45px;color:#fff;position:relative;overflow:hidden}.ipcs-company-band:after{content:'';position:absolute;right:-70px;top:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,224,0,.15)}.ipcs-company-band h2{color:#fff}.ipcs-company-band p{color:#dbe1ff}.ipcs-company-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.ipcs-company-meta span{padding:8px 11px;border-radius:10px;background:rgba(255,255,255,.1);font-size:10px}
.ipcs-landing .landing-btn.primary{background:var(--ipcs-blue);box-shadow:0 14px 25px rgba(6,24,168,.2)}.ipcs-landing .landing-btn.primary:hover{background:#00138c}.ipcs-landing .landing-final{background:linear-gradient(135deg,#0618a8,#102db4 70%,#f39a00)}
@media(max-width:575px){.ipcs-app-footer{flex-direction:column}.ipcs-brand-logo{width:42px}.ipcs-brand-logo img{width:78px}}

/* Palette IPCS : bleu profond, orange doré et accents émeraude. */
:root{--ink:#0c1748;--muted:#66758a;--primary:#0618a8;--cyan:#087fbd;--bg:#f5f8fc;--line:#e4eaf3;--success:#07845b;--danger:#c43d35;--ipcs-blue:#0618a8;--ipcs-yellow:#f39a00;--ipcs-orange:#f39a00;--ipcs-ink:#0c1748}
.codir-brand-mark,.landing-logo .mark{background:linear-gradient(135deg,#0618a8,#087fbd);box-shadow:0 8px 20px rgba(6,24,168,.2)}
.codir-nav a:hover{background:#edf5ff;color:#0618a8}
.codir-nav li.active>a{background:linear-gradient(90deg,#e8f2ff,#f7fbff);color:#0618a8;box-shadow:inset 3px 0 0 #f39a00}
.codir-avatar{background:#e8f2ff;color:#0618a8}
.codir-icon-btn:hover,.codir-menu-toggle:hover{background:#e8f2ff;color:#0618a8}
.codir-eyebrow,.landing-links a:hover,.landing-hero h1 span,.landing-section .eyebrow,.feature-icon{color:#0618a8}
.landing-pill,.feature-icon{background:#e8f2ff}
.btn-primary{background:#0618a8!important;color:#fff!important;box-shadow:0 7px 16px rgba(6,24,168,.18)}
.btn-primary:hover{background:#001078!important;color:#fff!important}
.landing-nav-cta,.landing-btn.primary,.ipcs-landing .landing-btn.primary,.mini-btn{background:#0618a8!important;color:#fff!important}
.landing-final,.ipcs-company-band{background:linear-gradient(135deg,#0618a8,#0c1748)!important}
.landing-hero{background:linear-gradient(180deg,#edf5ff 0%,#fff 75%)}
.landing-hero:before{background:radial-gradient(circle,#dcecff 0,transparent 65%)}
.form-control:focus,.form-select:focus{border-color:#4d7ee8!important;box-shadow:0 0 0 3px rgba(6,24,168,.13)!important}
.codir-auth{background:radial-gradient(circle at 15% 20%,#e8f2ff 0,transparent 30%),radial-gradient(circle at 90% 80%,#fff0d6 0,transparent 28%),#f5f8fc}
.bg-gray-100{background-color:var(--bg)!important}
.focus\:ring-indigo-500:focus,.focus\:border-indigo-500:focus{--tw-ring-color:#4d7ee8!important;border-color:#4d7ee8!important}
.border-indigo-400,.focus\:border-indigo-700:focus{border-color:#f39a00!important}
.text-indigo-700,.text-indigo-800{color:#0618a8!important}
.bg-indigo-50{background-color:#edf5ff!important}
.focus\:bg-indigo-100:focus{background-color:#dcecff!important}
.modern-dashboard .kpi-card.purple{--gradient-start:#0618a8!important;--gradient-end:#0c1748!important}
.modern-dashboard .kpi-card.green{--gradient-start:#087f5b!important;--gradient-end:#52b987!important}
.modern-dashboard .kpi-card.red{--gradient-start:#f39a00!important;--gradient-end:#c97800!important}
.modern-dashboard .kpi-card.blue{--gradient-start:#0618a8!important;--gradient-end:#f39a00!important}
.modern-dashboard{background:linear-gradient(135deg,#e7f0ff 0%,#f5f8fc 70%)!important}
.page-header-modern h5{background:linear-gradient(135deg,#0618a8,#f39a00)!important;-webkit-background-clip:text!important}
.kpi-card.purple{--gradient-start:#0618a8;--gradient-end:#087fbd}
.kpi-card.green{--gradient-start:#087f5b;--gradient-end:#46aa78}
.kpi-card.red{--gradient-start:#b34836;--gradient-end:#f39a00}
.kpi-card.blue{--gradient-start:#0618a8;--gradient-end:#f39a00}
.login-page .login-showcase{background:linear-gradient(145deg,#0618a8 0%,#0c2868 68%,#f39a00 145%)}
.login-page .login-showcase h1 span,.login-page .login-feature i{color:#f5ad24}
.login-page .login-mobile-brand .mark{background:linear-gradient(135deg,#0618a8,#087fbd)}
.login-page .login-eyebrow,.login-page .login-toggle:hover,.login-page .login-forgot,.login-page .login-back a:hover{color:#0618a8}
.login-page .login-input:focus{border-color:#4d7ee8;box-shadow:0 0 0 4px rgba(6,24,168,.13)}
.login-page .login-check input{accent-color:#0618a8}
.login-page .login-submit{background:linear-gradient(135deg,#0618a8,#087fbd);color:#fff;box-shadow:0 12px 25px rgba(6,24,168,.22)}
.login-page .login-submit:hover{box-shadow:0 15px 28px rgba(6,24,168,.27)}
.ipcs-brand-logo{width:94px;height:40px}
.ipcs-brand-logo img{width:92px;height:38px;object-fit:contain}
.ipcs-side-brand img{width:86px;height:38px;object-fit:contain}
.assigned-users-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;max-height:220px;overflow-y:auto;padding:10px;border:1px solid #dce3ed;border-radius:10px;background:#fff}
.assigned-user-option{display:flex;align-items:center;gap:9px;margin:0;padding:9px 10px;border-radius:8px;background:#f5f8fc;color:#0c1748;cursor:pointer;transition:background-color .15s ease}
.assigned-user-option:hover{background:#e8f2ff}
.assigned-user-option input[type="checkbox"]{width:17px;height:17px;margin:0;flex:0 0 auto;accent-color:#0618a8}
.assigned-user-option input[type="checkbox"]:focus-visible{outline:3px solid rgba(243,154,0,.45);outline-offset:2px}
.assigned-users-list .select-all-users-option{grid-column:1/-1;background:#edf5ff;border:1px solid #dcecff;color:#0618a8}

html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e7edf7;--muted:#a4b0c3;--primary:#91aaff;--cyan:#55b9d7;
  --bg:#0b1220;--line:#29364a;--success:#48bd91;--danger:#f07c7c;
  --surface:#121d2e;--surface-raised:#18263a;--surface-input:#0f1929;
  --shadow:0 10px 30px rgba(0,0,0,.26);--ipcs-blue:#91aaff;--ipcs-orange:#f3a52f;--ipcs-yellow:#f3a52f;--ipcs-ink:#e7edf7;
}
html[data-theme="dark"] body{background:var(--bg)!important;color:var(--ink)!important}
html[data-theme="dark"] .codir-topbar,
html[data-theme="dark"] .codir-sidebar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .codir-card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .codir-auth-card,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .assigned-users-list{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .card-header{border-bottom-color:var(--line)!important}
html[data-theme="dark"] .codir-main,
html[data-theme="dark"] .pcoded-content,
html[data-theme="dark"] .pcoded-main-container,
html[data-theme="dark"] .main-body,
html[data-theme="dark"] .page-wrapper,
html[data-theme="dark"] .page-body,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-light{background:var(--bg)!important}
html[data-theme="dark"] nav.bg-white,
html[data-theme="dark"] header.bg-white,
html[data-theme="dark"] .bg-white{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme="dark"] .codir-search,
html[data-theme="dark"] .codir-icon-btn,
html[data-theme="dark"] .codir-menu-toggle,
html[data-theme="dark"] .codir-nav a:hover,
html[data-theme="dark"] .codir-nav li.active>a{background:var(--surface-raised)!important;color:var(--ink)!important}
html[data-theme="dark"] .codir-nav a,
html[data-theme="dark"] .codir-user-name,
html[data-theme="dark"] .codir-brand strong,
html[data-theme="dark"] .codir-sidebar .ipcs-side-brand strong,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-indigo-700,
html[data-theme="dark"] .text-indigo-800,
html[data-theme="dark"] .text-dark{color:var(--ink)!important}
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400,
html[data-theme="dark"] .codir-user-role,
html[data-theme="dark"] .codir-nav-label{color:var(--muted)!important}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] textarea.form-control,
html[data-theme="dark"] .login-input,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background-color:var(--surface-input)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8997ad!important}
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-label{color:#c4cede!important}
html[data-theme="dark"] .table,
html[data-theme="dark"] .table tbody td,
html[data-theme="dark"] .table thead th{background-color:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd){background-color:var(--surface-raised)!important}
html[data-theme="dark"] .table tbody tr:hover{background-color:#1c2b41!important}
html[data-theme="dark"] .dropdown-item{color:var(--ink)}
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus{background:var(--surface-raised);color:var(--ink)}
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .secondary-button{background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .btn-primary{background:#29488f!important;color:#fff!important}
html[data-theme="dark"] .btn-success{background:#176c54!important;color:#fff!important}
html[data-theme="dark"] .btn-warning{background:#9b6519!important;color:#fff!important}
html[data-theme="dark"] .btn-danger{background:#893f4a!important;color:#fff!important}
html[data-theme="dark"] .alert-success{background:#163d34!important;color:#b6f0d8!important}
html[data-theme="dark"] .alert-danger{background:#4a2630!important;color:#ffd0d6!important}
html[data-theme="dark"] .alert-warning{background:#46351e!important;color:#ffe3ad!important}
html[data-theme="dark"] .alert-info{background:#1b3548!important;color:#c3eaff!important}
html[data-theme="dark"] .ipcs-side-card{background:linear-gradient(145deg,#1b2b42,#172338)!important;border-color:var(--line)!important;color:#b9c5d8!important}
html[data-theme="dark"] .ipcs-brand-logo{background:#fff!important}
html[data-theme="dark"] .ipcs-site-link{background:var(--surface-raised)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .ipcs-app-footer{color:var(--muted)}
html[data-theme="dark"] .assigned-user-option{background:var(--surface-raised)!important;color:var(--ink)!important}
html[data-theme="dark"] .assigned-users-list .select-all-users-option{background:#20314c!important;border-color:#354a69!important;color:#e8efff!important}
html[data-theme="dark"] .section,
html[data-theme="dark"] .tache-card,
html[data-theme="dark"] .tache-card .card-header{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .task-order-help{background:#1b2d46!important;border-color:#344b6d!important;color:#d9e5ff!important}
html[data-theme="dark"] .task-position{background:#26395a!important;color:#e2eaff!important}
html[data-theme="dark"] .login-page{background:var(--bg)!important}
html[data-theme="dark"] .login-page .login-panel{background:var(--surface)!important}
html[data-theme="dark"] .login-page .login-title,
html[data-theme="dark"] .login-page .login-mobile-brand{color:var(--ink)!important}
html[data-theme="dark"] .login-page .login-subtitle,
html[data-theme="dark"] .login-page .login-label,
html[data-theme="dark"] .login-page .login-check,
html[data-theme="dark"] .login-page .login-back{color:#b9c5d8!important}
html[data-theme="dark"] .login-page .login-divider{color:#8795aa}
html[data-theme="dark"] .login-page .login-divider:before,
html[data-theme="dark"] .login-page .login-divider:after{background:var(--line)}
html[data-theme="dark"] .login-page .login-input{background:var(--surface-input)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .modern-dashboard .page-header-modern,
html[data-theme="dark"] .modern-dashboard .modern-card,
html[data-theme="dark"] .modern-dashboard .status-card,
html[data-theme="dark"] .modern-dashboard .kpi-card{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .modern-dashboard .modern-card-header,
html[data-theme="dark"] .modern-dashboard .modern-card-body{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme="dark"] .modern-dashboard .modern-table{color:var(--ink)!important}
html[data-theme="dark"] .modern-dashboard .badge-light{background:#25354d!important;color:#e7edf7!important}
html[data-theme="dark"] .theme-toggle{color:#f5c36b!important}
html[data-theme="dark"] body[themebg-pattern],
html[data-theme="dark"] .login-block{background:#0b1220!important}
html[data-theme="dark"] .login-block .auth-box,
html[data-theme="dark"] .login-block .card-block{background:#121d2e!important;color:#e7edf7!important}
html[data-theme="dark"] .login-block h3,
html[data-theme="dark"] .login-block label,
html[data-theme="dark"] .login-block .text-inverse{color:#e7edf7!important}
html[data-theme="dark"] .login-block .form-control{background:#0f1929!important;color:#e7edf7!important;border-color:#29364a!important}
.theme-toggle{transition:background-color .18s ease,color .18s ease,transform .18s ease}
.theme-toggle-with-label{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;padding:0 12px}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:3px solid var(--ipcs-orange,#f39a00);outline-offset:3px}
.filter-panel{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}
.filter-panel label{display:block;margin-bottom:6px;font-size:11px;font-weight:700;color:var(--muted)}
.calendar-card{padding:22px;border:1px solid var(--line);border-radius:var(--radius,18px);background:var(--surface,#fff);box-shadow:var(--shadow)}
.calendar-card>h2{text-align:center;margin:0 0 18px;text-transform:capitalize;font-size:22px}
.calendar-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.calendar-filters>label:first-child{min-width:200px}
.calendar-filters .calendar-type-filter{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:9px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.calendar-weekday{padding:9px;text-align:center;background:var(--surface-raised,#f4f7fb);border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;font-weight:800}
.calendar-day{min-height:125px;padding:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface,#fff)}
.calendar-day.is-outside{background:var(--bg,#f8fafc);opacity:.55}.calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--ipcs-orange,#f39a00)}
.calendar-day-number{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;font-weight:700;font-size:12px}
.calendar-day.is-today .calendar-day-number{background:var(--ipcs-blue,#0618a8);color:#fff}
.calendar-day-events{display:grid;gap:4px;margin-top:5px}
.calendar-event{display:block;padding:4px 6px;border-radius:5px;text-decoration:none;font-size:10px;line-height:1.3;overflow:hidden}
.calendar-event strong,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event small{opacity:.8}
.event-reunion{background:#e7efff;color:#0c347c}.event-tache{background:#e2f5ed;color:#116545}.event-obligation{background:#fff0d6;color:#754800}
.calendar-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.calendar-legend span{padding:5px 9px;border-radius:7px;font-size:11px;font-weight:700}
.quality-indicator{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised,#f7f9fc)}.quality-indicator strong{font-size:20px;color:var(--ipcs-orange,#f39a00)}.quality-indicator span{font-size:12px}
.dashboard-customizer[hidden]{display:none}
.table-responsive{-webkit-overflow-scrolling:touch}
@media(max-width:767px){.calendar-card{padding:12px}.calendar-day{min-height:84px;padding:4px}.calendar-event{font-size:9px;padding:3px}.calendar-weekday{font-size:9px;padding:6px 2px}.calendar-day-number{width:22px;height:22px}.calendar-event small{display:none}}
html[data-theme="dark"] .calendar-weekday{background:var(--surface-raised);color:var(--ink)}
html[data-theme="dark"] .calendar-day{background:var(--surface);color:var(--ink)}
html[data-theme="dark"] .calendar-day.is-outside{background:var(--bg)}
html[data-theme="dark"] .event-reunion{background:#20375f;color:#c9d9ff}
html[data-theme="dark"] .event-tache{background:#173c34;color:#a9e8cb}
html[data-theme="dark"] .event-obligation{background:#46351e;color:#ffe3ad}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #f39a00;outline-offset:2px}
.guest-theme-toggle{position:fixed;top:20px;right:20px;z-index:1100}
.login-theme-toggle{position:fixed;top:20px;right:20px;z-index:1100;width:42px;height:42px;border:0;border-radius:12px;background:rgba(255,255,255,.92);color:#0c1748;box-shadow:0 8px 24px rgba(12,23,72,.16);cursor:pointer}
html[data-theme="dark"] .login-theme-toggle{background:#18263a;color:#f5c36b}
