:root{
  --navy-950:#07152f;
  --navy-900:#081c42;
  --navy-850:#0b2451;
  --navy-800:#102d62;
  --navy-700:#173c7d;
  --blue:#4d8dff;
  --blue-strong:#2f7cff;
  --blue-soft:rgba(77,141,255,.15);
  --ink:#102142;
  --text:#25375a;
  --muted:#7180a0;
  --line:#dce5f4;
  --bg:#eff4fc;
  --surface:#ffffff;
  --success:#18a874;
  --success-soft:#eafaf3;
  --gold:#e7ae3c;
  --gold-soft:#fff6dd;
  --purple:#9a62f6;
  --purple-soft:#f4edff;
  --danger:#d64f61;
  --danger-soft:#fff0f2;
  --shadow:0 18px 44px rgba(24,56,111,.10);
  --shadow-soft:0 8px 24px rgba(24,56,111,.08);
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);font-size:15px;line-height:1.5;background:var(--bg)}
a{color:var(--blue-strong)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}

/* Navigation */
.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:280px;padding:22px 14px 18px;background:linear-gradient(175deg,#081b40 0%,#06142e 72%,#071a39 100%);color:#fff;display:flex;flex-direction:column;box-shadow:18px 0 45px rgba(6,22,55,.09)}
.brand{display:flex;align-items:center;gap:12px;padding:5px 10px 26px;text-decoration:none;color:#fff}
.brand-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#5d9aff,#2f62db);font-size:28px;line-height:1;font-weight:900;font-style:italic;letter-spacing:-2px;box-shadow:0 12px 24px rgba(42,104,229,.32)}.brand-mark--image{overflow:hidden;padding:3px;background:#fff;border:1px solid rgba(255,255,255,.35)}.brand-mark--image img{width:100%;height:100%;object-fit:contain;border-radius:10px;background:#fff}
.brand-copy{display:grid;gap:1px;min-width:0}.brand-copy strong{font-size:19px;letter-spacing:-.5px}.brand-copy small{font-size:11px;color:#b8cbed;white-space:nowrap}
.main-nav{display:grid;gap:4px;overflow:auto;padding:0 2px 8px}.main-nav a,.logout-link{display:flex;align-items:center;gap:11px;min-height:45px;padding:0 11px;border-radius:12px;color:#aebfdd;text-decoration:none;font-weight:650;transition:background .18s ease,color .18s ease,transform .18s ease}.main-nav a:hover{background:rgba(117,162,255,.10);color:#fff}.main-nav a.is-active{background:linear-gradient(90deg,rgba(67,134,255,.26),rgba(61,112,225,.08));color:#fff;box-shadow:inset 2px 0 0 #5e9bff}.main-nav a.is-active .nav-icon{color:#75abff}.nav-icon{width:20px;height:20px;flex:0 0 auto;color:#9eb4da}.nav-label{margin:13px 10px 5px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#7388ac}.nav-label--second{margin-top:21px}
.sidebar-foot{margin-top:auto;border-top:1px solid rgba(162,194,242,.13);padding:16px 7px 0}.user-card{display:flex;align-items:center;gap:10px;padding:0 4px 12px}.user-initials{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:linear-gradient(145deg,#f5c763,#c87d16);color:#17253e;font-weight:850}.user-card strong,.user-card small{display:block}.user-card strong{font-size:13px}.user-card small{font-size:11px;color:#90a5c9;text-transform:capitalize}.logout-link{min-height:35px;padding:0 5px;font-size:13px}.logout-link:hover{color:#fff}

/* Application frame */
.app{margin-left:280px;min-height:100vh;padding:34px clamp(22px,3.2vw,54px) 48px;max-width:1700px;background:radial-gradient(circle at 80% 0%,rgba(157,194,255,.35),transparent 32rem),linear-gradient(180deg,#f5f8fd 0%,#eef4fc 100%)}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 auto 28px;max-width:1320px}.topbar h1{margin:3px 0 0;font-size:clamp(25px,2.8vw,35px);line-height:1.1;letter-spacing:-1.1px}.muted{margin:7px 0 0;color:var(--muted);font-size:14px}.eyebrow{display:flex;align-items:center;gap:7px;color:#7990b8;font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:850}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.quick-create{display:inline-flex;align-items:center;gap:7px;border-radius:11px;padding:10px 13px;background:var(--navy-900);box-shadow:0 8px 16px rgba(9,35,83,.17);color:#fff;text-decoration:none;font-weight:760;font-size:13px}.quick-create:hover{background:#102d62}.mini-icon{width:18px;height:18px;vertical-align:middle}.large-icon{width:26px;height:26px}.role-chip,.pill{display:inline-flex;align-items:center;gap:5px;min-height:28px;border:1px solid #d8e3f3;border-radius:999px;padding:4px 10px;background:#fff;color:#607191;text-transform:capitalize;font-size:12px;font-weight:760}.role-chip--admin,.pill.success{border-color:#c1ead9;background:var(--success-soft);color:#117752}

/* Standard card, forms and actions */
.card{margin:0 auto 20px;max-width:1320px;padding:23px;border:1px solid rgba(204,218,239,.92);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-soft);overflow:auto}.card h2{font-size:19px;line-height:1.2;letter-spacing:-.4px}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-5{grid-column:span 5}.col-6{grid-column:span 6}.col-7{grid-column:span 7}.col-8{grid-column:span 8}.col-9{grid-column:span 9}.col-12{grid-column:span 12}
label{display:block;margin:0 0 7px;color:#455a7e;font-size:12px;font-weight:800;letter-spacing:.01em}input,select,textarea{width:100%;border:1px solid #d7e1f1;border-radius:11px;padding:10px 12px;background:#fbfdff;color:var(--ink);outline:0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}textarea{min-height:94px;resize:vertical}input::placeholder,textarea::placeholder{color:#a9b7cf}input:hover,select:hover,textarea:hover{border-color:#b6c9e7}input:focus,select:focus,textarea:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px rgba(77,141,255,.13)}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:9px 14px;border:1px solid transparent;border-radius:11px;background:linear-gradient(135deg,#397eff,#2d67dc);box-shadow:0 8px 17px rgba(47,103,220,.18);color:#fff;text-decoration:none;font-size:13px;font-weight:800;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.btn:hover{filter:brightness(1.02);transform:translateY(-1px);box-shadow:0 11px 22px rgba(47,103,220,.23)}.btn-primary{background:linear-gradient(135deg,#4d8dff,#2e70ed)}.btn-quiet,.btn.ghost{background:#f3f7fd;color:#36537e;border-color:#dbe6f5;box-shadow:none}.btn-quiet:hover,.btn.ghost:hover{background:#eaf1fb}.btn.danger{background:linear-gradient(135deg,#e26473,#c94357)}.btn.success{background:linear-gradient(135deg,#21b982,#118a61)}
.flash{max-width:1320px;margin:0 auto 18px;padding:13px 15px;border:1px solid transparent;border-radius:14px;font-weight:690;box-shadow:0 7px 18px rgba(23,58,109,.05)}.flash.success{color:#117652;background:var(--success-soft);border-color:#c5ebda}.flash.error{color:#a13241;background:var(--danger-soft);border-color:#f2c9cf}.flash.warning{color:#8c6211;background:#fff8e8;border-color:#f2dfa6}.notice{max-width:1320px;margin:0 auto 20px;padding:14px 16px;border:1px solid #d8e6ff;border-radius:14px;background:linear-gradient(115deg,#f7fbff,#edf4ff);color:#3a5b89;font-size:13px}.notice strong{color:#203d69}.empty{padding:28px;text-align:center;color:var(--muted)}

/* Tables */
table{width:100%;border-collapse:separate;border-spacing:0;min-width:610px}th,td{padding:12px 10px;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:top}th{color:#7889a6;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;background:#fbfcff}th:first-child{border-radius:9px 0 0 9px}th:last-child{border-radius:0 9px 9px 0}tbody tr:hover td{background:#fbfdff}tbody tr:last-child td{border-bottom:0}td{color:#405273;font-size:13px}td strong{color:#16294b}td.num{text-align:right;font-variant-numeric:tabular-nums}.pill{font-size:11px;padding:4px 8px;min-height:25px}.calc{padding:16px;border:1px solid #dce7f9;border-radius:14px;background:linear-gradient(145deg,#fbfdff,#f1f6ff)}.calc .line{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px dashed #d9e4f2;font-size:13px}.calc .line:last-child{border-bottom:0}.calc .total{padding-top:13px;font-size:16px;font-weight:850;color:#102a56}.payslip-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.warning-stamp{display:inline-block;margin-top:5px;border:1px solid #ce9b37;border-radius:7px;padding:4px 7px;color:#9a6412;background:#fff4d8;font-size:11px;font-weight:900;letter-spacing:.04em}

/* Dashboard */
.dashboard-hero,.protection-card,.metric-grid,.workflow-card,.setup-callout{max-width:1320px;margin-left:auto;margin-right:auto}.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.85fr);gap:22px;align-items:stretch;margin-bottom:20px;padding:31px 34px;border-radius:24px;color:#fff;overflow:hidden;position:relative;background:radial-gradient(circle at 92% 12%,rgba(105,164,255,.54),transparent 18rem),linear-gradient(125deg,#0a1d46,#0c316d 68%,#164889);box-shadow:0 21px 46px rgba(17,55,126,.20)}.dashboard-hero:after{content:"";position:absolute;width:240px;height:240px;right:24%;bottom:-165px;border:38px solid rgba(137,184,255,.07);border-radius:50%}.hero-copy,.hero-panel{position:relative;z-index:1}.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:5px 9px;border:1px solid rgba(184,214,255,.23);border-radius:999px;background:rgba(255,255,255,.06);color:#c9dcff;font-size:11px;font-weight:750}.hero-copy h2{margin:14px 0 7px;font-size:32px;line-height:1.1;letter-spacing:-1.2px}.hero-copy p{max-width:550px;margin:0;color:#c1d4f6;font-size:14px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hero-actions .btn-primary{background:#fff;color:#163c82;box-shadow:0 12px 20px rgba(3,17,49,.15)}.hero-actions .btn-quiet{color:#d9e8ff;background:rgba(255,255,255,.10);border-color:rgba(219,234,255,.22)}.hero-actions .btn-quiet:hover{background:rgba(255,255,255,.16)}.hero-panel{display:flex;gap:12px;align-items:center;align-self:center;padding:18px;border:1px solid rgba(194,220,255,.19);border-radius:18px;background:rgba(2,18,52,.26);backdrop-filter:blur(10px)}.hero-panel-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:rgba(83,150,255,.23);color:#dbeaff}.hero-panel div{display:grid;gap:3px;min-width:0}.hero-panel span{color:#b7ccef;font-size:11px}.hero-panel strong{color:#fff;font-size:14px;line-height:1.28}.hero-panel>a{margin-left:auto;color:#9fcbff}.hero-panel>a .mini-icon{width:21px;height:21px}
.protection-card{display:flex;align-items:flex-start;gap:16px;margin-bottom:17px;padding:18px;border:1px solid #d8e4fb;border-radius:18px;background:linear-gradient(115deg,#fff,#f4f8ff);box-shadow:0 8px 22px rgba(28,68,131,.05)}.protection-icon{width:52px;height:52px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;color:#fff;background:linear-gradient(145deg,#3a7ff1,#2459bf);box-shadow:0 10px 18px rgba(38,89,191,.18)}.protection-copy{min-width:0}.protection-copy h2{margin:0;color:#17386c;font-size:16px;letter-spacing:-.25px}.protection-copy p{margin:5px 0 0;color:#617596;font-size:13px;line-height:1.55}.security-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;margin-left:auto;padding:6px 9px;border:1px solid #cbeadb;border-radius:999px;background:#f0faf5;color:#277a5b;font-size:11px;font-weight:790}.security-status i{width:7px;height:7px;border-radius:50%;background:#23b87c;box-shadow:0 0 0 4px rgba(35,184,124,.12)}
.setup-callout{display:flex;align-items:center;gap:13px;margin-bottom:18px;padding:13px 16px;border:1px solid #91bcff;border-radius:15px;background:linear-gradient(90deg,#edf5ff,#f7fbff);box-shadow:0 7px 18px rgba(32,81,151,.06);color:#1f4e99;text-decoration:none}.setup-callout:hover{background:#e5f0ff}.setup-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;color:#2c79e9;background:#dcecff}.setup-callout>span:nth-child(2){display:grid;gap:1px}.setup-callout strong{font-size:13px}.setup-callout small{color:#6380aa;font-size:12px}.setup-callout>.mini-icon{width:20px;height:20px;margin-left:auto;color:#2f79e4}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric-card{display:flex;gap:13px;align-items:center;min-height:128px;padding:17px;border:1px solid rgba(210,222,240,.96);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-soft)}.metric-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px}.metric-card>div{display:grid;min-width:0}.metric-card small{color:#687b9c;font-size:12px;font-weight:700}.metric-card strong{margin-top:2px;color:#1c335d;font-size:24px;line-height:1.13;letter-spacing:-.7px;white-space:nowrap}.metric-card em{margin-top:4px;color:#97a7c0;font-size:10px;font-style:normal}.metric-card--blue .metric-icon{color:#4988f8;background:#e6efff}.metric-card--gold .metric-icon{color:#c68a18;background:#fff1cf}.metric-card--green .metric-icon{color:#109875;background:#ddf8ef}.metric-card--purple .metric-icon{color:#864ee4;background:#f0e7ff}.metric-card--green strong{color:#147f64}.metric-card--purple strong{color:#6f3fc4}
.workflow-card{padding:22px;border:1px solid #d9e4f4;border-radius:20px;background:rgba(255,255,255,.93);box-shadow:var(--shadow-soft)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:14px}.section-heading h2{margin:5px 0 0;color:#172e56;font-size:21px;letter-spacing:-.55px}.section-note{border-radius:999px;padding:4px 8px;background:#f1f5fb;color:#7585a2;font-size:11px;font-weight:770}.workflow-list{border:1px solid #e6edf7;border-radius:16px;overflow:hidden}.workflow-step{display:grid;grid-template-columns:32px 44px minmax(0,1fr) 22px;gap:12px;align-items:center;min-height:78px;padding:10px 14px;border-bottom:1px solid #e9eff8;color:inherit;text-decoration:none;transition:background .17s ease}.workflow-step:last-child{border-bottom:0}.workflow-step:hover{background:#fafcff}.workflow-number{color:#9aabc4;font-size:11px;font-weight:850}.workflow-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px}.workflow-copy{display:grid;gap:2px}.workflow-copy strong{font-size:14px;color:#20385f}.workflow-copy small{color:#7789a8;font-size:12px}.workflow-step>.mini-icon{margin-left:auto;color:#4a86ea}.step-blue .workflow-icon{color:#3e7eea;background:#e7efff}.step-gold .workflow-icon{color:#bf8520;background:#fff1d2}.step-green .workflow-icon{color:#0f9c74;background:#dff8ef}.step-purple .workflow-icon{color:#8954e6;background:#f0e8ff}

/* Login */
.auth-shell{display:grid;min-height:100vh;place-items:center;padding:22px;background:radial-gradient(circle at 30% 10%,rgba(105,160,255,.4),transparent 26rem),linear-gradient(135deg,#071631 0%,#0b2b62 52%,#114583 100%)}.auth{width:min(100%,450px);padding:0}.auth .card{position:relative;margin:0;padding:32px;border:1px solid rgba(255,255,255,.40);border-radius:23px;background:rgba(255,255,255,.96);box-shadow:0 30px 65px rgba(2,15,43,.28);overflow:visible}.auth .card:before{content:"P";position:absolute;top:-23px;left:31px;width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#5f9eff,#2b60d5);box-shadow:0 12px 25px rgba(34,79,180,.28);color:#fff;font-size:28px;font-weight:900;font-style:italic;letter-spacing:-2px}.auth .login-logo{margin:12px 0 5px;color:#132d59;font-size:26px;font-weight:900;letter-spacing:-1px}.auth .login-logo span{color:#3477ee!important}.auth .actions{margin-top:22px}.auth .actions .btn{width:100%}


/* Logo de l’entreprise */
.logo-upload-panel{display:flex;align-items:center;gap:18px;padding:15px;border:1px solid #dbe7f7;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#f0f6ff)}
.company-logo-preview{width:78px;height:78px;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:1px dashed #a9bee0;border-radius:18px;background:#e5efff;color:#4778ca;font-size:34px;font-weight:900;font-style:italic}
.company-logo-preview.has-logo{padding:5px;border-style:solid;background:#fff}.company-logo-preview img{width:100%;height:100%;object-fit:contain;border-radius:13px;background:#fff}
.logo-upload-copy{display:grid;gap:7px;min-width:0}.logo-upload-copy label{margin:0}.logo-upload-copy input[type=file]{padding:8px 10px;background:#fff;font-size:13px}.logo-upload-copy small{color:#7083a4;font-size:11px;line-height:1.45}.logo-remove{display:flex!important;align-items:center;gap:7px!important;margin-top:2px!important;color:#a13f4c!important;font-size:12px!important;font-weight:750!important}.logo-remove input{width:auto!important;accent-color:#d64f61}
.print-company-block{display:flex;align-items:flex-start;gap:12px}.print-company-logo{width:70px;height:70px;object-fit:contain;border:1px solid #dce6f3;border-radius:8px;padding:3px;background:#fff}

.mobile-tabs{display:none}

/* Responsive */
@media(max-width:1120px){.sidebar{width:242px}.app{margin-left:242px;padding:28px 24px 40px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{grid-template-columns:1fr}.hero-panel{max-width:460px}}
@media(max-width:860px){
  .logo-upload-panel{align-items:flex-start;gap:12px;padding:12px}.company-logo-preview{width:62px;height:62px;border-radius:15px;font-size:26px}.logo-upload-copy{width:100%}.logo-upload-copy input[type=file]{font-size:12px}
  body{font-size:14px}.sidebar{position:static;width:auto;padding:12px 14px 10px;box-shadow:none}.brand{padding:2px 3px 10px}.brand-mark{width:37px;height:37px;border-radius:12px;font-size:24px}.brand-copy strong{font-size:17px}.brand-copy small{font-size:10px}.main-nav{display:flex;gap:6px;overflow:auto;padding:0 0 3px}.main-nav .nav-label,.main-nav .nav-label--second{display:none}.main-nav a{min-height:36px;padding:0 9px;gap:6px;white-space:nowrap;border-radius:10px;font-size:12px}.main-nav a .nav-icon{width:17px;height:17px}.main-nav a:nth-of-type(n+6){display:none}.sidebar-foot{display:none}
  .app{margin:0;min-height:calc(100vh - 103px);padding:20px 14px 89px}.topbar{margin-bottom:17px;align-items:flex-start}.topbar h1{font-size:26px}.topbar .muted{max-width:240px;font-size:12px}.topbar-actions{gap:6px}.quick-create{width:37px;height:37px;min-height:37px;padding:0;border-radius:11px}.quick-create span{display:none}.role-chip{display:none}
  .card{padding:17px;border-radius:16px}.grid{display:block}.grid>[class^=col-]{margin-bottom:14px}.grid>[class^=col-]:last-child{margin-bottom:0}.actions{justify-content:stretch;flex-direction:column}.actions .btn{width:100%}.payslip-grid{grid-template-columns:1fr;gap:16px}.card table{min-width:600px}
  .dashboard-hero{gap:15px;margin-bottom:15px;padding:23px 20px;border-radius:21px}.hero-copy h2{margin-top:12px;font-size:27px}.hero-copy p{font-size:13px}.hero-actions{margin-top:17px}.hero-panel{padding:14px;border-radius:15px}.protection-card{gap:12px;align-items:flex-start;margin-bottom:14px;padding:14px;border-radius:16px}.protection-icon{width:43px;height:43px;border-radius:13px}.protection-icon .large-icon{width:22px;height:22px}.protection-copy h2{font-size:14px}.protection-copy p{font-size:12px}.security-status{display:none}.setup-callout{gap:10px;padding:11px 12px}.setup-icon{width:35px;height:35px}.setup-callout small{font-size:11px}.metric-grid{gap:11px;margin-bottom:17px}.metric-card{min-height:117px;padding:13px;gap:10px;border-radius:16px}.metric-icon{width:39px;height:39px;border-radius:12px}.metric-icon .large-icon{width:21px;height:21px}.metric-card small{font-size:11px}.metric-card strong{font-size:20px}.metric-card em{font-size:9px}.workflow-card{padding:17px;border-radius:17px}.section-heading h2{font-size:19px}.workflow-step{grid-template-columns:27px 38px minmax(0,1fr) 16px;gap:9px;min-height:69px;padding:9px 10px}.workflow-icon{width:37px;height:37px;border-radius:12px}.workflow-icon .large-icon{width:20px;height:20px}.workflow-copy strong{font-size:13px}.workflow-copy small{font-size:11px}.workflow-number{font-size:10px}.workflow-step>.mini-icon{width:17px;height:17px}
  .mobile-tabs{position:fixed;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;left:0;right:0;bottom:0;padding:8px max(12px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));border-top:1px solid rgba(205,218,240,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(15px);box-shadow:0 -10px 27px rgba(26,57,109,.09)}.mobile-tabs a{display:grid;justify-items:center;gap:3px;padding:4px 2px;border-radius:9px;color:#8392ad;text-decoration:none;font-size:10px;font-weight:760}.mobile-tabs .nav-icon{width:18px;height:18px}.mobile-tabs a.is-active{color:#2f78ef}.mobile-tabs a.is-active .nav-icon{color:#2f78ef}.auth-shell{padding:18px}.auth .card{padding:29px 23px}.auth .login-logo{font-size:24px}
}
@media(max-width:480px){.topbar h1{font-size:24px}.topbar .muted{line-height:1.42}.dashboard-hero{padding:20px 17px}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.hero-actions .btn{min-height:40px;padding:8px 8px;font-size:12px}.metric-card{min-width:0}.metric-card strong{font-size:18px}.metric-card>div{overflow:hidden}.metric-card small,.metric-card em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.setup-callout>.mini-icon{display:none}.workflow-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notice{padding:12px 13px;font-size:12px}}

/* Print stays sober and readable */
.print-only{display:none}
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.sidebar,.topbar,.mobile-tabs,.no-print,.flash{display:none!important}body,.app{background:#fff!important}.app{margin:0!important;max-width:none!important;padding:0!important}.card{max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}.print-only{display:block}.payslip-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #1f5eaa;padding-bottom:12px;margin-bottom:16px}.payslip-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.payslip-table{min-width:0!important}.payslip-table td,.payslip-table th{padding:7px 4px}.payslip-table tr.total td{font-size:14px;font-weight:800;border-top:2px solid #172230}.warning-stamp{border:1px solid #a36400;color:#a36400;background:#fff;padding:5px;font-weight:800}.calc{background:#fff!important}.grid{display:grid!important}.col-7{grid-column:span 7}.col-5{grid-column:span 5}.col-6{grid-column:span 6}}

/* Types de contrat */
.form-hint{display:block;margin-top:6px;color:#7383a0;font-size:11px;line-height:1.35}


/* Préremplissage automatique de la fiche depuis le contrat */
.contract-prefill{display:flex;align-items:flex-start;gap:11px;margin:-2px 0 4px;padding:12px 14px;border:1px solid #b9d3ff;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fbff);color:#16345f}
.contract-prefill-badge{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:#2f78ef;color:#fff;font-weight:900}
.contract-prefill strong{display:block;font-size:13px;font-weight:850}
.contract-prefill small{display:block;margin-top:3px;color:#536b91;line-height:1.45;font-size:12px}
@media(max-width:860px){.contract-prefill{padding:11px 12px;border-radius:13px}.contract-prefill small{font-size:11px}}


/* Prestations : jours, heures et détail de calcul */
.form-section-title{font-size:14px;font-weight:850;letter-spacing:.01em;color:#1d3b69;padding-top:3px}
.section-hint{margin:-4px 0 2px!important}
.payslip-performance-block{border:1px solid #d9e6fa;border-radius:16px;padding:13px 14px;background:linear-gradient(180deg,#fbfdff,#f4f8ff)}
.payslip-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;color:#193864;font-size:13px}
.payslip-section-heading span{font-size:11px;color:#7184a5;white-space:nowrap}
.prestations-table th,.prestations-table td{font-size:12px}
.prestations-table th:nth-child(n+2),.prestations-table td:nth-child(n+2){white-space:nowrap}
.prestations-table td:nth-child(4){color:#63799c}
@media(max-width:860px){
  .payslip-performance-block{padding:11px;border-radius:14px;overflow-x:auto}
  .prestations-table{min-width:610px}
  .payslip-section-heading{align-items:flex-start;flex-direction:column;gap:3px}
}
@media print{
  .payslip-performance-block{break-inside:avoid;border-color:#cbd6e4;background:#fff;padding:10px}
  .prestations-table th,.prestations-table td{font-size:9.5px;padding:5px 6px}
  .payslip-section-heading{font-size:10px;margin-bottom:6px}
}
