/* Qardan Hasana V34.0 — styles complémentaires */
/* Œil du mot de passe */
.qh-pw-wrap{position:relative}
.qh-pw-wrap input{padding-right:46px!important;width:100%}
.qh-pw-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:34px;border:0;border-radius:8px;background:transparent;color:#5b6b7b;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.qh-pw-eye:hover,.qh-pw-eye:focus-visible{background:#eef3f7;color:#123b52;outline:none}
.qh-pw-eye svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qh-pw-eye .eye-closed{display:none}.qh-pw-eye.on .eye-open{display:none}.qh-pw-eye.on .eye-closed{display:block}

/* Journal : filtres */
.audit-filters{display:grid;grid-template-columns:minmax(200px,1.6fr) repeat(3,minmax(150px,1fr)) repeat(2,140px) 110px;gap:8px;align-items:end;margin:6px 0 4px}
.audit-filters .field{margin:0}.audit-filters label{font-size:11px}
.audit-f-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.audit-user-link{color:inherit;text-decoration:none}.audit-user-link:hover strong{text-decoration:underline}
@media(max-width:1100px){.audit-filters{grid-template-columns:1fr 1fr}.audit-f-search{grid-column:1/-1}}

/* Photos Base ITS */
.hs-photo-cell{white-space:nowrap}
.hs-photo-thumb{width:42px;height:52px;border-radius:7px;object-fit:cover;border:1px solid #d6dee6;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:zoom-in;background:#f3f6f8}
.hs-photo-none{cursor:default;color:#8aa0b2;font-weight:800;font-size:18px}
.hs-photo-actions{display:inline-flex;flex-direction:column;gap:3px;margin-left:6px;vertical-align:middle}
.hs-mini-btn{border:1px solid #cfdbe8;background:#fff;color:#173a59;border-radius:7px;padding:3px 7px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.hs-mini-btn:hover{background:#f2f6fa}.hs-mini-btn.danger{color:#a12626;border-color:#efc9c9}.hs-mini-btn:disabled{opacity:.45;cursor:not-allowed}
.hs-people-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.hs-people-tools input{flex:1;min-width:200px}
.hs-account-person{position:relative}
.hs-account-photo{float:left;width:52px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #d6dee6;margin:0 12px 0 0;cursor:zoom-in}
.its-info-photo{width:40px;height:50px;object-fit:cover;border-radius:6px;border:1px solid #d6dee6;float:left;margin:0 9px 2px 0;cursor:zoom-in}
.its-info:after{content:"";display:block;clear:both}
.v34-photo-view{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.v34-photo-view img{max-width:min(320px,80vw);max-height:60vh;border-radius:10px;border:1px solid #d6dee6}

/* Fenêtres + messages */
.v34-modal-ov{position:fixed;inset:0;background:rgba(15,28,40,.45);z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px}
.v34-modal{background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.3);width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column}
.v34-modal.wide{width:min(980px,100%)}
.v34-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e5ebf0}
.v34-modal-head h3{margin:0;font-size:17px}
.v34-x{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#5b6b7b;padding:2px 8px}
.v34-modal-body{padding:16px 18px;overflow:auto}
.v34-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e5ebf0;flex-wrap:wrap}
.v34-form{display:grid;gap:10px;margin:10px 0}
.v34-form.two{grid-template-columns:1fr 1fr}.v34-form .span2{grid-column:1/-1}
.v34-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#425466}
.v34-form input,.v34-form textarea,.v34-form select{font:inherit;font-weight:400;padding:8px 10px;border:1px solid #cfd9e3;border-radius:8px}
.v34-form .rh-check{flex-direction:row;align-items:center;gap:8px;font-weight:600}
.v34-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,30px);background:#123b52;color:#fff;padding:11px 18px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.25s;z-index:10001;max-width:90vw;font-weight:600}
.v34-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:600px){.v34-form.two{grid-template-columns:1fr}}

/* Rehen */
.rh-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:14px}
.rh-head h2{margin:2px 0}
.rh-kpis{display:flex;gap:8px;flex-wrap:wrap}
.rh-kpis>div{border:1px solid #dfe6ec;border-radius:10px;padding:8px 14px;min-width:92px;background:#f8fafb}
.rh-kpis span{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#6a7b8b;font-weight:800}
.rh-kpis b{font-size:22px;color:#123b52}
.rh-kpis .warn b{color:#b26a00}.rh-kpis .out b{color:#c62828}.rh-kpis .late{background:#fff3e0;border-color:#ffcc80}.rh-kpis .late b{color:#b26a00}
.rh-entry{border:1px solid #d6e2ec;background:#f7fafc;border-radius:12px;padding:12px 14px;margin-bottom:12px}
.rh-entry-title{font-weight:800;color:#123b52;margin-bottom:8px}
.rh-entry-grid{display:grid;grid-template-columns:minmax(230px,1.4fr) repeat(5,minmax(120px,1fr));gap:10px;align-items:end}
.rh-entry-grid .field{margin:0}.rh-span2{grid-column:span 3}
.rh-entry-person{display:flex;gap:10px;align-items:flex-start}
.rh-entry-person label{font-size:12px;font-weight:700}
.rh-new-photo{width:52px;height:64px;border-radius:8px;object-fit:cover;border:1px solid #d6dee6}
.rh-entry-btn{display:flex;align-items:end}
.rh-no-box{display:flex;gap:6px;align-items:center}.rh-no-box input{width:90px;font-weight:800;font-size:16px;color:#c62828;text-align:center}
.rh-manual{font-size:11px;display:flex;gap:3px;align-items:center;white-space:nowrap}
.rh-good{color:#17633a}.rh-bad{color:#a12626}.rh-warnline{color:#b26a00;font-weight:700}
.rh-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.rh-filters input[type=search]{flex:1;min-width:220px}
.rh-filters label{font-size:12px;display:flex;gap:5px;align-items:center}
.rh-bulk{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:8px 10px;background:#f3f6f8;border-radius:10px}
.rh-bulk #rh_selinfo{min-width:120px;font-weight:700}
.rh-bulk .btn:disabled{opacity:.45;cursor:not-allowed}
.rh-table-wrap{overflow:auto;max-height:70vh;border:1px solid #e1e8ee;border-radius:10px}
.rh-table{width:100%;border-collapse:collapse;font-size:13px}
.rh-table th{position:sticky;top:0;background:#123b52;color:#fff;text-align:left;padding:8px;font-size:11.5px;z-index:1}
.rh-table td{padding:7px 8px;border-top:1px solid #edf1f4;vertical-align:top}
.rh-row.rh-sel td{background:#eef6ff}
.rh-no{font-weight:900;font-size:16px;color:#123b52;white-space:nowrap}
.rh-row.rh-sorti .rh-no{color:#c62828}
.rh-row.rh-sorti td{background:#fff6f6}.rh-row.rh-sorti.rh-sel td{background:#fde8e8}
.rh-row.rh-sorti td:not(.rh-actions){color:#8a2a2a}
.rh-row.rh-temporaire .rh-no{color:#b26a00}
.rh-old{font-size:9.5px;font-weight:700;color:#7b8794;text-transform:uppercase}
.rh-thumb{width:36px;height:44px;object-fit:cover;border-radius:6px;border:1px solid #d6dee6;cursor:zoom-in;display:block}
.rh-thumb.none{background:#f1f4f6;cursor:default}
.rh-its{font-family:ui-monospace,Menlo,Consolas,monospace}
.rh-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.rh-pill.ok{background:#e6f4ea;color:#17633a}.rh-pill.warn{background:#fff3e0;color:#9a5b00}.rh-pill.out{background:#fde4e4;color:#c62828}.rh-pill.late{outline:2px solid #f0a64a}
.rh-who{font-size:11px;color:#6a7b8b;margin-top:3px}
.rh-actions{white-space:nowrap}.rh-actions .hs-mini-btn{margin:0 3px 3px 0}
.rh-desc,.rh-obs{max-width:260px}
.rh-mini-list{max-height:180px;overflow:auto;border:1px solid #e5ebf0;border-radius:8px;padding:6px 10px;font-size:13px}
.rh-hist{width:100%;border-collapse:collapse;font-size:12.5px}.rh-hist th,.rh-hist td{border-bottom:1px solid #edf1f4;padding:6px;text-align:left;vertical-align:top}
.rh-hist-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}.rh-hist-head img{width:48px;height:60px;object-fit:cover;border-radius:7px}
.rh-imp-wrap{max-height:55vh;overflow:auto}.rh-imp-bad td{background:#fff0f0}.rh-imp-out td{color:#c62828}
.rh-readonly .rh-entry{display:none}
@media(max-width:1100px){.rh-entry-grid{grid-template-columns:1fr 1fr}.rh-span2,.rh-entry-person{grid-column:1/-1}}

/* Impression (étiquettes / liste) */
#v34PrintArea{display:none}
@media print{
  body.v34-printing>*:not(#v34PrintArea){display:none!important}
  body.v34-printing{background:#fff!important;margin:0!important;padding:0!important}
  body.v34-printing #v34PrintArea{display:block!important}
}
@page v34lab{size:A4 portrait;margin:10mm 10mm}
@page v34list{size:A4 landscape;margin:10mm}
.v34-labels .lb-page{page:v34lab;break-after:page;width:190mm;font-family:Arial,Helvetica,sans-serif;color:#000}
.v34-labels .lb-page:last-child{break-after:auto}
.v34-labels .lb-row{display:flex}
.v34-labels .lb{width:47.5mm;box-sizing:border-box;border:.25mm solid #000;margin:0 -.25mm -.25mm 0;overflow:hidden;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.v34-labels .lb-empty{border-color:transparent}
.v34-labels .lb-big{height:55mm;display:flex;flex-direction:column;align-items:center;padding:2mm 2.5mm}
.v34-labels .lb-no{font-size:19pt;font-weight:700;line-height:1.1;width:88%;text-align:center;border-bottom:.3mm solid #000;padding-bottom:1mm}
.v34-labels .lb-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1mm;width:100%}
.v34-labels .lb-body img{width:15mm;height:18mm;object-fit:cover;border-radius:1mm}
.v34-labels .lb-name{font-size:11.5pt;font-weight:700;line-height:1.15;max-height:4.6em;overflow:hidden;word-break:break-word}
.v34-labels .lb-its{font-size:9pt;font-weight:700;letter-spacing:.02em}
.v34-labels .lb-small{height:27.5mm;display:flex;align-items:stretch;padding:2mm 1.5mm}
.v34-labels .lb-sno{font-size:13pt;font-weight:700;display:flex;align-items:center;padding-right:1.5mm;border-right:.3mm solid #000;margin-right:1.8mm;white-space:nowrap}
.v34-labels .lb-sbody{flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}
.v34-labels .lb-sname{font-size:8.5pt;font-weight:700;line-height:1.15;max-height:3.5em;overflow:hidden;word-break:break-word}
.v34-labels .lb-small .lb-its{font-size:7.5pt;margin-top:.6mm}
.v34-labels .lb-small img{width:11mm;height:14mm;object-fit:cover;border-radius:.8mm;align-self:center;margin-left:1mm}
.v34-list{font-family:Arial,Helvetica,sans-serif;color:#000;page:v34list}
.v34-list .pl-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:.5mm solid #000;padding-bottom:3mm;margin-bottom:3mm}
.v34-list h1{font-size:16pt;margin:1mm 0}.v34-list .pl-site{font-size:9pt;text-transform:uppercase;letter-spacing:.08em}
.v34-list .pl-date{text-align:right;font-size:12pt}.v34-list .pl-date span{font-size:8.5pt}
.v34-list .pl-sum{font-size:10pt;margin-bottom:3mm}
.v34-list .pl-table{width:100%;border-collapse:collapse;font-size:9pt}
.v34-list .pl-table th{background:#e8e8e8!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;text-align:left}
.v34-list .pl-table th,.v34-list .pl-table td{border:.2mm solid #888;padding:1.2mm 1.6mm;vertical-align:top}
.v34-list .pl-table thead{display:table-header-group}.v34-list .pl-table tr{break-inside:avoid}
.v34-list .pl-no{font-weight:700;white-space:nowrap}
.v34-list .pl-out td{color:#c00!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.v34-list .pl-temp td{color:#a05a00!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.v34-list .pl-sign{display:flex;justify-content:space-between;margin-top:10mm;font-size:10pt}

/* Ajustements par rapport aux styles généraux des champs */
.rh-filters>select,.rh-filters label input[type=date]{width:auto;min-width:150px}
.rh-filters>input[type=search]{width:auto}
.rh-filters label{font-weight:700;color:#425466}
.rh-manual input[type=checkbox],.rh-check input[type=checkbox],.v34-form .rh-check input{width:16px!important;height:16px;padding:0!important;margin:0;flex:none}
.rh-table input[type=checkbox]{width:17px;height:17px;padding:0}
@media(min-width:1101px){.rh-entry-grid{grid-template-columns:minmax(240px,1.4fr) 185px repeat(4,minmax(120px,1fr))}}
@media(max-width:600px){.rh-entry-grid{grid-template-columns:1fr}.rh-span2{grid-column:1/-1}.rh-filters>select,.rh-filters label,.rh-filters label input[type=date]{width:100%}.rh-kpis>div{min-width:72px;padding:6px 10px}}
.rh-no-box input{padding:8px 6px!important}
.rh-entry-person>div{flex:1}
.hs-people-tools select{width:auto}
.hs-people-tools input[type=search]{width:auto}
.audit-filters select,.audit-filters input{width:100%}
@media print{
  html:has(body.v34-printing),body.v34-printing{background:#fff!important;background-image:none!important}
  body.v34-printing::before,body.v34-printing::after{display:none!important;content:none!important}
}
.v34-list .pl-table th{color:#000!important;font-size:8.5pt;text-transform:none;letter-spacing:0;font-weight:700}
.v34-list .pl-table td{color:#000;font-size:9pt}
.rh-actions{white-space:normal;min-width:200px}
.rh-table td:nth-child(5){min-width:150px}
.rh-desc{min-width:120px}
/* V34.1 */
.rh-val{font-weight:800;color:#123b52;font-size:12px;margin-top:2px}
.rh-docs-btn{margin-top:4px}
.rh-doc-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.rh-doc-thumbs img{height:110px;max-width:160px;object-fit:cover;border-radius:8px;border:1px solid #d6dee6}
.rh-doc-gone td{opacity:.55;text-decoration:line-through}.rh-doc-gone td:last-child{text-decoration:none;opacity:1}
a.hs-mini-btn{text-decoration:none;display:inline-block}
.rh-settings-card{grid-column:1/-1;margin-top:14px}
.rh-settings-grid{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:10px}
.rh-settings-grid .rh-check{display:flex;align-items:center;gap:8px;font-weight:700}
.rh-settings-grid input[type=checkbox]{width:17px!important;height:17px;padding:0!important}
.rh-pkg-thumb{width:46px;height:46px;object-fit:cover;border-radius:7px;border:1px solid #d6dee6;margin-top:4px;display:block}
.rh-doc-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
/* V34.3 : prise de photo + cadrage */
.v34-crop-wrap{position:relative;width:300px;height:400px;margin:0 auto 10px;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px #cfd9e3}
.v34-crop-wrap canvas{width:300px;height:400px;display:block;touch-action:none;cursor:grab}
.v34-crop-wrap canvas:active{cursor:grabbing}
.v34-crop-oval{position:absolute;left:18%;right:18%;top:12%;bottom:22%;border:2px dashed rgba(255,255,255,.9);border-radius:50%;box-shadow:0 0 0 2000px rgba(0,0,0,.18);pointer-events:none}
.v34-crop-tools{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:6px}
.v34-crop-tools label{display:flex;gap:8px;align-items:center;font-weight:700;font-size:12px}
.v34-crop-tools input[type=range]{width:170px;padding:0}
.v34-cam{position:relative;max-width:640px;margin:0 auto 8px;border-radius:12px;overflow:hidden;background:#000}
.v34-cam video{width:100%;display:block;transform:scaleX(-1)}
.v34-cam-guide{position:absolute;left:32%;right:32%;top:12%;bottom:12%;border:2px dashed rgba(255,255,255,.85);border-radius:50%;pointer-events:none}
