/* ============ NADCI BACKOFFICE — RESPONSIVE ADMIN UI ============ */
*,*::before,*::after{box-sizing:border-box;}
body{margin:0;font-family:'Inter','Segoe UI',sans-serif;background:#F4F6FA;color:#1A2238;font-size:14px;line-height:1.55;}
a{color:#003B7A;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}

/* === VARIABLES === */
:root{
    --bo-blue:#003B7A;--bo-blue-light:#0057B7;--bo-yellow:#FFC72C;
    --bo-dark:#1A2238;--bo-gray:#64748B;--bo-gray-100:#F1F5F9;
    --bo-gray-200:#E2E8F0;--bo-gray-300:#CBD5E1;--bo-white:#FFFFFF;
    --bo-success:#16A34A;--bo-warning:#F59E0B;--bo-danger:#DC2626;--bo-info:#0284C7;
    --bo-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
    --bo-shadow-md:0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
    --bo-shadow-lg:0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.05);
}

/* === LAYOUT === */
.bo-app{display:flex;min-height:100vh;}

/* SIDEBAR */
.bo-sidebar{
    width:260px;background:var(--bo-dark);color:#94A3B8;
    display:flex;flex-direction:column;
    position:fixed;left:0;top:0;bottom:0;z-index:50;
    transition:transform .3s ease;
    overflow-y:auto;scrollbar-width:thin;
}
.bo-sidebar::-webkit-scrollbar{width:6px;}
.bo-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:3px;}
.bo-sidebar-head{
    padding:20px;border-bottom:1px solid rgba(255,255,255,.06);
    display:flex;align-items:center;gap:12px;
}
.bo-sidebar-head svg{flex-shrink:0;}
.bo-sidebar-head .bs-brand{display:flex;flex-direction:column;line-height:1.2;}
.bo-sidebar-head .bs-brand strong{color:#fff;font-size:18px;font-weight:700;}
.bo-sidebar-head .bs-brand span{font-size:11px;color:#94A3B8;text-transform:uppercase;letter-spacing:.5px;}

.bo-nav{padding:14px 12px;flex:1;}
.bo-nav-section{margin-top:18px;}
.bo-nav-section:first-child{margin-top:0;}
.bo-nav-section-title{
    padding:0 10px 8px;font-size:11px;text-transform:uppercase;
    color:#64748B;letter-spacing:.6px;font-weight:600;
}
.bo-nav-item{
    display:flex;align-items:center;gap:12px;
    padding:10px 12px;border-radius:8px;color:#CBD5E1;
    margin-bottom:2px;font-size:14px;transition:all .15s;
}
.bo-nav-item:hover{background:rgba(255,255,255,.05);color:#fff;}
.bo-nav-item.active{background:var(--bo-blue);color:#fff;font-weight:600;}
.bo-nav-item svg{flex-shrink:0;width:18px;height:18px;}
.bo-nav-item .bo-badge{margin-left:auto;background:var(--bo-yellow);color:var(--bo-dark);font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px;}

.bo-sidebar-foot{
    padding:16px;border-top:1px solid rgba(255,255,255,.06);
    display:flex;align-items:center;gap:10px;
}
.bo-sidebar-foot img{width:36px;height:36px;border-radius:50%;}
.bo-sidebar-foot .bsf-user{flex:1;min-width:0;}
.bo-sidebar-foot .bsf-user strong{color:#fff;display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bo-sidebar-foot .bsf-user span{font-size:11px;color:#94A3B8;}
.bo-sidebar-foot form button{background:transparent;border:none;color:#94A3B8;cursor:pointer;padding:6px;border-radius:6px;}
.bo-sidebar-foot form button:hover{color:#fff;background:rgba(255,255,255,.08);}

/* MAIN */
.bo-main{
    flex:1;margin-left:260px;
    display:flex;flex-direction:column;
    transition:margin-left .3s;
}

/* TOPBAR */
.bo-topbar{
    background:#fff;height:64px;
    display:flex;align-items:center;gap:18px;
    padding:0 24px;border-bottom:1px solid var(--bo-gray-200);
    position:sticky;top:0;z-index:40;
    box-shadow:var(--bo-shadow);
}
.bo-burger{
    background:none;border:none;width:40px;height:40px;
    display:none;align-items:center;justify-content:center;
    border-radius:8px;color:var(--bo-dark);
}
.bo-burger:hover{background:var(--bo-gray-100);}
.bo-topbar h1{font-size:18px;font-weight:700;margin:0;color:var(--bo-dark);}
.bo-topbar-spacer{flex:1;}
.bo-topbar-actions{display:flex;align-items:center;gap:10px;}
.bo-topbar-search{
    display:flex;align-items:center;gap:8px;
    background:var(--bo-gray-100);padding:8px 14px;border-radius:10px;
    width:260px;
}
.bo-topbar-search input{background:transparent;border:none;outline:none;flex:1;font-size:14px;}
.bo-icon-btn{
    width:38px;height:38px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:var(--bo-gray-100);color:var(--bo-dark);
    border:none;position:relative;
}
.bo-icon-btn:hover{background:var(--bo-gray-200);}
.bo-icon-btn .dot{
    position:absolute;top:8px;right:8px;
    width:8px;height:8px;border-radius:50%;background:var(--bo-danger);
}
.bo-user-chip{
    display:flex;align-items:center;gap:10px;
    padding:6px 14px 6px 6px;background:var(--bo-gray-100);border-radius:30px;
    cursor:pointer;
}
.bo-user-chip img{width:30px;height:30px;border-radius:50%;}
.bo-user-chip strong{font-size:13px;color:var(--bo-dark);}

/* CONTENT */
.bo-content{padding:28px;flex:1;max-width:100%;}
.bo-page-head{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:24px;gap:14px;flex-wrap:wrap;
}
.bo-page-head h2{font-size:24px;margin:0 0 4px;color:var(--bo-dark);}
.bo-page-head p{margin:0;color:var(--bo-gray);font-size:14px;}

/* CARDS */
.bo-card{background:#fff;border-radius:14px;padding:22px;box-shadow:var(--bo-shadow);}
.bo-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;}
.bo-card-head h3{margin:0;font-size:16px;color:var(--bo-dark);}

/* STATS */
.bo-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px;}
.bo-stat{
    background:#fff;border-radius:14px;padding:20px;
    display:flex;gap:14px;align-items:center;box-shadow:var(--bo-shadow);
    border-left:4px solid var(--bo-blue);
}
.bo-stat.alt{border-left-color:var(--bo-yellow);}
.bo-stat.success{border-left-color:var(--bo-success);}
.bo-stat.danger{border-left-color:var(--bo-danger);}
/* KPI cliquables */
a.bo-stat{text-decoration:none;color:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s;}
a.bo-stat:hover{transform:translateY(-3px);box-shadow:var(--bo-shadow-md);}
.bo-stat-icon{
    width:50px;height:50px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    background:#E6F0FA;color:var(--bo-blue);flex-shrink:0;
}
.bo-stat.alt .bo-stat-icon{background:#FFF6D9;color:#B58200;}
.bo-stat.success .bo-stat-icon{background:#DCFCE7;color:var(--bo-success);}
.bo-stat.danger .bo-stat-icon{background:#FEE2E2;color:var(--bo-danger);}
.bo-stat-body strong{display:block;font-size:24px;font-weight:700;color:var(--bo-dark);line-height:1;}
.bo-stat-body span{display:block;font-size:13px;color:var(--bo-gray);margin-top:4px;}
.bo-stat-trend{font-size:12px;margin-top:6px;display:inline-flex;align-items:center;gap:3px;font-weight:600;}
.bo-stat-trend.up{color:var(--bo-success);}
.bo-stat-trend.down{color:var(--bo-danger);}

/* TABLE */
.bo-table-wrap{background:#fff;border-radius:14px;box-shadow:var(--bo-shadow);overflow:hidden;}
.bo-table{width:100%;border-collapse:collapse;font-size:14px;}
.bo-table th{
    background:var(--bo-gray-100);text-align:left;
    padding:12px 16px;font-size:12px;font-weight:600;
    color:var(--bo-gray);text-transform:uppercase;letter-spacing:.5px;
}
.bo-table td{padding:14px 16px;border-top:1px solid var(--bo-gray-200);vertical-align:middle;}
.bo-table tr:hover td{background:#FAFBFC;}

/* FORMS */
.bo-form-row{display:grid;grid-template-columns:1fr;gap:18px;margin-bottom:16px;}
.bo-form-row > label,
.bo-form-row > div > label{display:block;font-size:13px;font-weight:600;color:var(--bo-dark);margin-bottom:6px;}

/* Wrapper usage: <div class="bo-field"><label>…</label><input>…</div> */
div.bo-field{margin-bottom:16px;}
div.bo-field > label{display:block;font-size:13px;font-weight:600;color:var(--bo-dark);margin-bottom:6px;}
div.bo-field .hint{font-size:12px;color:var(--bo-gray);margin-top:4px;}
div.bo-field .error{font-size:12px;color:var(--bo-danger);margin-top:4px;}

/* Shared input styling — works for both wrapper (.bo-field input)
   and direct usage (input.bo-field) */
.bo-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.bo-field select,
.bo-field textarea,
input.bo-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select.bo-field,
textarea.bo-field{
    width:100%;padding:10px 14px;border:1px solid var(--bo-gray-200);
    border-radius:9px;font-size:14px;font-family:inherit;color:var(--bo-dark);
    background:#fff;line-height:1.4;
    transition:border-color .15s,box-shadow .15s,background-color .15s;
    -webkit-appearance:none;-moz-appearance:none;appearance:none;
}
.bo-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.bo-field select:hover,
.bo-field textarea:hover,
input.bo-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
select.bo-field:hover,
textarea.bo-field:hover{border-color:var(--bo-gray-300);}
.bo-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.bo-field select:focus,
.bo-field textarea:focus,
input.bo-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select.bo-field:focus,
textarea.bo-field:focus{
    outline:none;border-color:var(--bo-blue);
    box-shadow:0 0 0 3px rgba(0,59,122,.12);background-color:#fff;
}
.bo-field input::placeholder,
.bo-field textarea::placeholder,
input.bo-field::placeholder,
textarea.bo-field::placeholder{color:#94A3B8;opacity:1;}
.bo-field input:disabled,
.bo-field select:disabled,
.bo-field textarea:disabled,
input.bo-field:disabled,
select.bo-field:disabled,
textarea.bo-field:disabled{
    background:var(--bo-gray-100);color:var(--bo-gray);
    cursor:not-allowed;border-color:var(--bo-gray-200);
}
.bo-field textarea,textarea.bo-field{min-height:90px;resize:vertical;}

/* Search input: subtle icon padding */
.bo-field input[type="search"],input[type="search"].bo-field{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:12px center;
    padding-left:38px;
}

/* Native select chevron */
.bo-field select,select.bo-field{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A2238' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 12px center;
    padding-right:36px;cursor:pointer;
}

/* File input — style the picker button cross-browser */
.bo-field input[type="file"],input[type="file"].bo-field{
    width:100%;font-size:13px;color:var(--bo-dark);
    background:#fff;border:1px solid var(--bo-gray-200);
    border-radius:9px;padding:6px 10px;font-family:inherit;
    transition:border-color .15s,box-shadow .15s;cursor:pointer;
}
.bo-field input[type="file"]:hover,input[type="file"].bo-field:hover{border-color:var(--bo-gray-300);}
.bo-field input[type="file"]:focus,input[type="file"].bo-field:focus{
    outline:none;border-color:var(--bo-blue);box-shadow:0 0 0 3px rgba(0,59,122,.12);
}
.bo-field input[type="file"]::file-selector-button,
input[type="file"].bo-field::file-selector-button{
    margin-right:12px;padding:7px 14px;border:none;border-radius:7px;
    background:var(--bo-blue);color:#fff;font-weight:600;font-size:13px;
    font-family:inherit;cursor:pointer;transition:background-color .15s;
}
.bo-field input[type="file"]::file-selector-button:hover,
input[type="file"].bo-field::file-selector-button:hover{background:#002a5c;}

/* Checkbox / radio (used in filter rows like messages/unread) */
.bo-field input[type="checkbox"],.bo-field input[type="radio"],
input[type="checkbox"].bo-field,input[type="radio"].bo-field{
    width:16px;height:16px;accent-color:var(--bo-blue);cursor:pointer;
    vertical-align:middle;margin-right:4px;
}

/* Filter bar — apply to <form> wrapping search/select filters above tables.
   Existing pages use inline styles; this class is opt-in but also auto-applies
   to forms that already match the canonical pattern via :has(). */
.bo-filters,
.bo-card > form[method="GET"]{
    display:flex;gap:10px;align-items:center;flex-wrap:wrap;
    margin-bottom:18px;padding:14px 16px;background:var(--bo-gray-100);
    border:1px solid var(--bo-gray-200);border-radius:11px;
}
.bo-filters > label,
.bo-card > form[method="GET"] > label{
    display:inline-flex;align-items:center;gap:6px;font-size:13px;
    color:var(--bo-dark);font-weight:500;
}

/* BUTTONS */
.bo-btn{
    display:inline-flex;align-items:center;gap:8px;justify-content:center;
    padding:10px 18px;border-radius:9px;font-weight:600;font-size:14px;
    border:1px solid transparent;cursor:pointer;transition:all .15s;
    text-decoration:none;
}
.bo-btn-primary{background:var(--bo-blue);color:#fff;}
.bo-btn-primary:hover{background:#002a5c;color:#fff;}
.bo-btn-yellow{background:var(--bo-yellow);color:var(--bo-dark);}
.bo-btn-yellow:hover{background:#e6b324;}
.bo-btn-outline{background:#fff;color:var(--bo-blue);border-color:var(--bo-blue);}
.bo-btn-outline:hover{background:var(--bo-blue);color:#fff;}
.bo-btn-danger{background:var(--bo-danger);color:#fff;}
.bo-btn-danger:hover{background:#b91c1c;}
.bo-btn-sm{padding:6px 12px;font-size:12px;}
.bo-btn-icon{padding:8px;width:36px;height:36px;}

/* BADGES */
.bo-badge-pill{
    display:inline-flex;padding:4px 10px;border-radius:30px;
    font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;
}
.bg-gray-100{background:#F1F5F9;}.text-gray-700{color:#334155;}
.bg-blue-100{background:#DBEAFE;}.text-blue-700{color:#1D4ED8;}
.bg-green-100{background:#DCFCE7;}.text-green-700{color:#15803D;}
.bg-yellow-100{background:#FEF3C7;}.text-yellow-700{color:#A16207;}
.bg-red-100{background:#FEE2E2;}.text-red-700{color:#B91C1C;}
.bg-orange-100{background:#FED7AA;}.text-orange-700{color:#C2410C;}
.bg-indigo-100{background:#E0E7FF;}.text-indigo-700{color:#4338CA;}
.bg-purple-100{background:#F3E8FF;}.text-purple-700{color:#7E22CE;}

/* SECTIONED FORM LAYOUT (create.blade.php / edit.blade.php) */
.bo-form-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;align-items:start;}
.bo-form-main,.bo-form-side{display:flex;flex-direction:column;gap:18px;min-width:0;}
.bo-form-side{position:sticky;top:84px;}

.bo-card-section-head{margin:-22px -22px 18px;padding:16px 22px;border-bottom:1px solid var(--bo-gray-200);background:linear-gradient(180deg,#FAFBFC 0%,#fff 100%);border-radius:14px 14px 0 0;}
.bo-card-section-head h3{margin:0;font-size:15px;font-weight:700;color:var(--bo-dark);}
.bo-card-section-head p{margin:2px 0 0;font-size:12.5px;color:var(--bo-gray);}

.bo-req{color:var(--bo-danger);font-weight:700;margin-left:2px;}
.bo-hint{display:block;font-size:12px;color:var(--bo-gray);margin-top:6px;line-height:1.4;}
.bo-hint code{font-family:"SF Mono",Monaco,Consolas,monospace;font-size:11px;background:var(--bo-gray-100);padding:1px 5px;border-radius:4px;color:var(--bo-blue);}

/* iOS-style toggle switch */
.bo-switch-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--bo-gray-100);}
.bo-switch-row:first-of-type{border-top:none;padding-top:0;}
.bo-switch-input{position:absolute;opacity:0;pointer-events:none;width:0;height:0;}
.bo-switch{
    flex-shrink:0;width:42px;height:24px;background:var(--bo-gray-300);
    border-radius:24px;position:relative;cursor:pointer;transition:background-color .2s;
}
.bo-switch::after{
    content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;
    background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.2);
    transition:transform .2s;
}
.bo-switch-input:checked + .bo-switch{background:var(--bo-blue);}
.bo-switch-input:checked + .bo-switch::after{transform:translateX(18px);}
.bo-switch-input:focus-visible + .bo-switch{box-shadow:0 0 0 3px rgba(0,59,122,.18);}
.bo-switch-label{flex:1;min-width:0;}
.bo-switch-label strong{display:block;font-size:14px;color:var(--bo-dark);font-weight:600;}
.bo-switch-label span{display:block;font-size:12px;color:var(--bo-gray);margin-top:2px;line-height:1.4;}

/* Media preview (existing image thumbnail) */
.bo-media-preview{margin-bottom:8px;padding:8px;background:var(--bo-gray-100);border-radius:9px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
.bo-media-preview img{max-width:100%;max-height:140px;border-radius:6px;background:#fff;display:block;}
.bo-media-link{font-size:11px;color:var(--bo-blue);text-decoration:underline;}

/* Role chips (utilisateurs form) */
.bo-roles-grid{display:flex;flex-wrap:wrap;gap:8px;}
.bo-role-chip{
    display:inline-flex;align-items:center;gap:8px;
    padding:8px 14px;border-radius:999px;
    background:var(--bo-gray-100);border:1px solid var(--bo-gray-200);
    color:var(--bo-dark);font-size:13px;font-weight:500;
    cursor:pointer;transition:all .15s;user-select:none;
}
.bo-role-chip:hover{border-color:var(--bo-blue);background:#EEF4FB;}
.bo-role-chip input{accent-color:var(--bo-blue);margin:0;width:14px;height:14px;}
.bo-role-chip.is-checked{
    background:var(--bo-blue);color:#fff;border-color:var(--bo-blue);
}
.bo-role-chip.is-checked input{filter:brightness(1.4);}

/* Drag & drop file input — @include('partials.backoffice.dropzone') */
.bo-dropzone{position:relative;}
.bo-dropzone-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.bo-dropzone-zone{
    display:flex;align-items:center;justify-content:center;
    min-height:160px;padding:22px;
    border:2px dashed var(--bo-gray-300);border-radius:11px;
    background:var(--bo-gray-100);cursor:pointer;
    transition:border-color .15s,background-color .15s,box-shadow .15s;
    outline:none;
}
.bo-dropzone-zone:hover{border-color:var(--bo-blue);background:#EEF4FB;}
.bo-dropzone-zone:focus-visible{border-color:var(--bo-blue);box-shadow:0 0 0 3px rgba(0,59,122,.18);}
.bo-dropzone.drag-over .bo-dropzone-zone{
    border-color:var(--bo-blue);border-style:solid;background:#DBEAFE;
    box-shadow:inset 0 0 0 2px rgba(0,59,122,.15);
}
.bo-dropzone-empty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;pointer-events:none;}
.bo-dropzone-empty svg{color:var(--bo-blue);opacity:.85;}
.bo-dropzone-empty p{margin:0;font-size:14px;color:var(--bo-dark);}
.bo-dropzone-empty p strong{color:var(--bo-blue);font-weight:600;}
.bo-dropzone-empty small{font-size:12px;color:var(--bo-gray);}

.bo-dropzone-preview{display:none;align-items:center;gap:14px;width:100%;}
.bo-dropzone.has-file .bo-dropzone-empty,
.bo-dropzone.has-existing .bo-dropzone-empty{display:none;}
.bo-dropzone.has-file .bo-dropzone-preview,
.bo-dropzone.has-existing .bo-dropzone-preview{display:flex;}
.bo-dropzone-img{
    width:96px;height:96px;object-fit:cover;border-radius:9px;
    background:#fff;border:1px solid var(--bo-gray-200);flex-shrink:0;
    box-shadow:var(--bo-shadow);
}
.bo-dropzone-info{flex:1;min-width:0;pointer-events:none;}
.bo-dropzone-name{display:block;font-size:14px;color:var(--bo-dark);font-weight:600;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bo-dropzone-size{display:block;font-size:12px;color:var(--bo-gray);margin-top:3px;}
.bo-dropzone-remove{
    background:#fff;color:var(--bo-danger);
    border:1px solid var(--bo-gray-200);border-radius:50%;
    width:32px;height:32px;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;cursor:pointer;
    transition:all .15s;
}
.bo-dropzone-remove:hover{background:var(--bo-danger);color:#fff;border-color:var(--bo-danger);transform:scale(1.05);}
.bo-dropzone-remove:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(220,38,38,.25);}

/* Sticky form actions bar */
.bo-form-actions{
    position:sticky;bottom:0;margin-top:18px;
    background:#fff;padding:14px 18px;border-radius:12px;
    box-shadow:0 -4px 20px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.05);
    display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;z-index:5;
    border:1px solid var(--bo-gray-200);
}

/* Review banner — admin validation prompt on pending_review offers */
.bo-review-banner{
    display:flex;align-items:center;gap:16px;flex-wrap:wrap;
    background:linear-gradient(180deg,#FEF3C7 0%,#FDE68A 100%);
    border:1px solid #F59E0B;border-left:5px solid #F59E0B;
    border-radius:12px;padding:18px 20px;margin-bottom:18px;
    box-shadow:var(--bo-shadow);
}
.bo-review-banner-icon{flex-shrink:0;color:#92400E;}
.bo-review-banner-body{flex:1;min-width:220px;}
.bo-review-banner-body strong{display:block;font-size:15px;color:#78350F;}
.bo-review-banner-body p{margin:4px 0 0;font-size:13px;color:#92400E;line-height:1.5;}
.bo-review-banner-actions{display:flex;gap:8px;flex-wrap:wrap;}

/* DETAIL PAGES (show.blade.php) */
.bo-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;align-items:start;}
.bo-detail-main{display:flex;flex-direction:column;gap:18px;min-width:0;}
.bo-detail-side{display:flex;flex-direction:column;gap:18px;position:sticky;top:84px;}
.bo-section-title{
    margin:0 0 12px;font-size:13px;font-weight:700;text-transform:uppercase;
    letter-spacing:.6px;color:var(--bo-gray);
    padding-bottom:8px;border-bottom:1px solid var(--bo-gray-200);
}
.bo-lead{font-size:15px;line-height:1.6;color:var(--bo-dark);margin:0;}
.bo-ref{
    background:var(--bo-gray-100);color:var(--bo-blue);
    padding:2px 8px;border-radius:6px;font-size:12px;
    font-family:"SF Mono",Monaco,Consolas,monospace;
}

/* Rendered rich-text content (description, mission, etc.) */
.bo-prose{color:var(--bo-dark);font-size:14.5px;line-height:1.7;}
.bo-prose > *:first-child{margin-top:0;}
.bo-prose > *:last-child{margin-bottom:0;}
.bo-prose p{margin:0 0 12px;}
.bo-prose h1,.bo-prose h2,.bo-prose h3,.bo-prose h4{
    color:var(--bo-dark);font-weight:700;
    margin:18px 0 10px;line-height:1.3;
}
.bo-prose h1{font-size:22px;}
.bo-prose h2{font-size:19px;}
.bo-prose h3{font-size:16px;}
.bo-prose h4{font-size:15px;}
.bo-prose ul,.bo-prose ol{margin:0 0 12px;padding-left:22px;}
.bo-prose li{margin-bottom:6px;}
.bo-prose li::marker{color:var(--bo-blue);}
.bo-prose strong,.bo-prose b{color:var(--bo-dark);font-weight:600;}
.bo-prose em,.bo-prose i{font-style:italic;}
.bo-prose a{color:var(--bo-blue);text-decoration:underline;}
.bo-prose a:hover{color:#002a5c;}
.bo-prose blockquote{
    margin:14px 0;padding:10px 16px;
    border-left:3px solid var(--bo-blue);
    background:var(--bo-gray-100);color:#334155;border-radius:0 8px 8px 0;
}
.bo-prose code{
    background:var(--bo-gray-100);color:var(--bo-blue);
    padding:1px 6px;border-radius:4px;font-size:.92em;
    font-family:"SF Mono",Monaco,Consolas,monospace;
}
.bo-prose pre{
    background:var(--bo-dark);color:#E2E8F0;
    padding:14px 16px;border-radius:9px;overflow-x:auto;
    font-size:13px;line-height:1.5;margin:0 0 12px;
}
.bo-prose pre code{background:transparent;color:inherit;padding:0;}
.bo-prose img{max-width:100%;height:auto;border-radius:8px;margin:8px 0;}
.bo-prose hr{border:none;border-top:1px solid var(--bo-gray-200);margin:18px 0;}
.bo-prose table{width:100%;border-collapse:collapse;margin:0 0 12px;font-size:13.5px;}
.bo-prose th,.bo-prose td{padding:8px 12px;border:1px solid var(--bo-gray-200);text-align:left;}
.bo-prose th{background:var(--bo-gray-100);font-weight:600;}

/* Two-column meta list (sidebar) */
.bo-meta-list{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0;font-size:13px;}
.bo-meta-list dt{color:var(--bo-gray);font-weight:500;}
.bo-meta-list dd{margin:0;color:var(--bo-dark);font-weight:600;text-align:right;}

/* KPI mini-cards in side column */
.bo-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.bo-kpi{
    background:var(--bo-gray-100);border-radius:10px;padding:12px;text-align:center;
}
.bo-kpi strong{display:block;font-size:22px;font-weight:700;color:var(--bo-blue);line-height:1.1;}
.bo-kpi span{display:block;font-size:11px;color:var(--bo-gray);text-transform:uppercase;letter-spacing:.4px;margin-top:4px;}

/* CHARTS placeholder */
.bo-chart{background:#fff;border-radius:14px;padding:22px;box-shadow:var(--bo-shadow);}
.bo-chart-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}
.bo-chart canvas{max-height:280px;}

/* ALERT */
.bo-alert{padding:14px 18px;border-radius:10px;margin-bottom:18px;display:flex;gap:10px;align-items:center;font-size:14px;}
.bo-alert-success{background:#DCFCE7;color:#166534;border:1px solid #86EFAC;}
.bo-alert-error{background:#FEE2E2;color:#991B1B;border:1px solid #FCA5A5;}
.bo-alert-info{background:#DBEAFE;color:#1E40AF;border:1px solid #93C5FD;}
.bo-alert-warning{background:#FEF3C7;color:#92400E;border:1px solid #FBBF24;}

/* PAGINATION */
.bo-pagination{display:flex;gap:6px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap;}
.bo-pagination a,.bo-pagination span{
    padding:8px 12px;border-radius:7px;
    background:#fff;border:1px solid var(--bo-gray-200);
    color:var(--bo-blue);font-size:13px;font-weight:600;text-decoration:none;
}
.bo-pagination .active{background:var(--bo-blue);color:#fff;border-color:var(--bo-blue);}
.bo-pagination .disabled{opacity:.45;cursor:not-allowed;}

/* RESPONSIVE */
@media (max-width:1100px){
    .bo-stats{grid-template-columns:repeat(2,1fr);}
    .bo-form-row{grid-template-columns:1fr !important;}
    .bo-detail-grid,.bo-form-grid{grid-template-columns:1fr;}
    .bo-detail-side,.bo-form-side{position:static;}
}
@media (max-width:980px){
    .bo-sidebar{transform:translateX(-100%);}
    .bo-sidebar.open{transform:translateX(0);}
    .bo-main{margin-left:0;}
    .bo-burger{display:flex;}
    .bo-topbar-search{display:none;}
}
@media (max-width:640px){
    .bo-content{padding:18px;}
    .bo-stats{grid-template-columns:1fr;}
    .bo-table-wrap{overflow-x:auto;}
    .bo-table{min-width:640px;}
    .bo-page-head{flex-direction:column;align-items:flex-start;}
    .bo-card,.bo-stat{padding:16px;}
    .bo-topbar{padding:0 14px;}
}

/* SIDEBAR OVERLAY (mobile) */
.bo-overlay{
    position:fixed;inset:0;background:rgba(15,23,42,.45);
    z-index:45;display:none;
}
.bo-overlay.show{display:block;}

/* ============ LOGIN PAGE ============ */
.bo-login{
    min-height:100vh;display:grid;grid-template-columns:1fr 1fr;
    background:linear-gradient(135deg,#003B7A 0%,#1A2238 100%);
}
.bo-login-left{
    padding:60px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;
    position:relative;overflow:hidden;
}
.bo-login-left::before{
    content:'';position:absolute;width:300px;height:300px;
    background:rgba(255,199,44,.18);border-radius:50%;
    top:-100px;right:-100px;filter:blur(40px);
}
.bo-login-left::after{
    content:'';position:absolute;width:240px;height:240px;
    background:rgba(0,87,183,.3);border-radius:50%;
    bottom:-80px;left:-80px;filter:blur(40px);
}
.bo-login-brand{display:flex;align-items:center;gap:14px;position:relative;z-index:1;}
.bo-login-brand strong{font-size:22px;color:#fff;}
.bo-login-brand span{color:#FFC72C;font-size:12px;letter-spacing:.5px;text-transform:uppercase;}
.bo-login-headline{position:relative;z-index:1;max-width:440px;}
.bo-login-headline h1{font-size:38px;line-height:1.15;color:#fff;margin-bottom:18px;font-family:'Poppins',sans-serif;}
.bo-login-headline h1 .hl-y{color:#FFC72C;}
.bo-login-headline p{color:#CBD5E1;font-size:16px;line-height:1.6;}
.bo-login-features{position:relative;z-index:1;display:flex;flex-direction:column;gap:14px;}
.bo-login-features li{display:flex;gap:12px;color:#E2E8F0;font-size:14px;}
.bo-login-features li svg{color:#FFC72C;flex-shrink:0;}
.bo-login-right{background:#fff;display:flex;align-items:center;justify-content:center;padding:40px;}
.bo-login-box{width:100%;max-width:420px;}
.bo-login-box h2{font-size:26px;color:var(--bo-dark);margin-bottom:6px;}
.bo-login-box .sub{color:var(--bo-gray);margin-bottom:30px;font-size:14px;}
.bo-login-box .demo{
    background:#F1F5F9;border:1px dashed #CBD5E1;border-radius:10px;
    padding:14px;margin-top:24px;font-size:12px;color:var(--bo-gray);
}
.bo-login-box .demo strong{color:var(--bo-blue);}

@media (max-width:980px){
    .bo-login{grid-template-columns:1fr;}
    .bo-login-left{padding:40px 30px;text-align:center;align-items:center;}
    .bo-login-headline{margin:30px auto;}
    .bo-login-features{display:none;}
}
@media (max-width:480px){
    .bo-login-left{padding:30px 20px;}
    .bo-login-headline h1{font-size:28px;}
    .bo-login-right{padding:30px 20px;}
}

/* ============ DATATABLES OVERRIDES ============ */

/* Top toolbar : boutons + length + search alignés */
.bo-dt-top{
    display:flex;align-items:center;gap:12px;flex-wrap:wrap;
    margin-bottom:16px;padding:12px 14px;background:var(--bo-gray-100);
    border:1px solid var(--bo-gray-200);border-radius:11px;
}
.bo-dt-top .dataTables_length{margin:0;}
.bo-dt-top .dataTables_filter{margin:0 0 0 auto;}

/* Boutons d'export */
.bo-dt-top .dt-buttons{display:inline-flex;gap:6px;flex-wrap:wrap;}
.bo-dt-top .dt-buttons .dt-button{
    display:inline-flex;align-items:center;gap:6px;
    padding:6px 12px;border-radius:7px;font-weight:600;font-size:12px;
    background:#fff;color:var(--bo-blue);border:1px solid var(--bo-blue);
    cursor:pointer;transition:all .15s;line-height:1;
    box-shadow:none;text-shadow:none;
}
.bo-dt-top .dt-buttons .dt-button:hover,
.bo-dt-top .dt-buttons .dt-button:focus{
    background:var(--bo-blue);color:#fff;border-color:var(--bo-blue);outline:none;
}
.bo-dt-top .dt-buttons .dt-button:active{transform:translateY(1px);}
.bo-dt-top .dt-buttons .dt-button span{color:inherit;}

/* Icônes virtuelles avant chaque bouton (cohérence visuelle) */
.bo-dt-top .dt-buttons .buttons-copy::before{content:"⧉ ";font-size:11px;}
.bo-dt-top .dt-buttons .buttons-csv::before{content:"⌃ ";font-size:11px;}
.bo-dt-top .dt-buttons .buttons-excel::before{content:"▦ ";font-size:11px;}
.bo-dt-top .dt-buttons .buttons-pdf::before{content:"▤ ";font-size:11px;}
.bo-dt-top .dt-buttons .buttons-print::before{content:"⎙ ";font-size:11px;}

/* Sélecteur "Afficher N entrées" */
.dataTables_wrapper .dataTables_length label{
    display:inline-flex;align-items:center;gap:8px;
    font-size:13px;color:var(--bo-gray);font-weight:500;margin:0;
}
.dataTables_wrapper .dataTables_length select{
    padding:6px 28px 6px 10px;border:1px solid var(--bo-gray-300);
    border-radius:7px;background:#fff;color:var(--bo-dark);
    font-size:13px;font-weight:500;cursor:pointer;
    appearance:none;-webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%2364748B' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat:no-repeat;background-position:right 10px center;
}
.dataTables_wrapper .dataTables_length select:hover{border-color:var(--bo-blue-light);}
.dataTables_wrapper .dataTables_length select:focus{
    outline:none;border-color:var(--bo-blue);
    box-shadow:0 0 0 3px rgba(0,87,183,.15);
}

/* Champ de recherche */
.dataTables_wrapper .dataTables_filter label{
    display:inline-flex;align-items:center;gap:8px;
    font-size:13px;color:var(--bo-gray);font-weight:500;margin:0;
}
.dataTables_wrapper .dataTables_filter input{
    padding:7px 12px 7px 32px;border:1px solid var(--bo-gray-300);
    border-radius:7px;background:#fff;color:var(--bo-dark);
    font-size:13px;min-width:220px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat:no-repeat;background-position:10px center;
    transition:border-color .15s, box-shadow .15s;
}
.dataTables_wrapper .dataTables_filter input::placeholder{color:var(--bo-gray-300);}
.dataTables_wrapper .dataTables_filter input:hover{border-color:var(--bo-blue-light);}
.dataTables_wrapper .dataTables_filter input:focus{
    outline:none;border-color:var(--bo-blue);
    box-shadow:0 0 0 3px rgba(0,87,183,.15);
}

/* Bottom toolbar : info + pagination */
.bo-dt-bottom{
    display:flex;align-items:center;justify-content:space-between;
    gap:16px;flex-wrap:wrap;margin-top:14px;padding-top:14px;
    border-top:1px solid var(--bo-gray-200);
}
.bo-dt-bottom .dataTables_info{margin:0;font-size:13px;color:var(--bo-gray);}
.bo-dt-bottom .dataTables_paginate{margin:0;}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:34px;height:34px;padding:0 10px;margin-left:4px;
    border:1px solid var(--bo-gray-200) !important;border-radius:7px !important;
    background:#fff !important;color:var(--bo-blue) !important;
    font-size:13px;font-weight:600;cursor:pointer;transition:all .15s;
    box-shadow:none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background:var(--bo-blue-light) !important;color:#fff !important;
    border-color:var(--bo-blue-light) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
    background:var(--bo-blue) !important;color:#fff !important;
    border-color:var(--bo-blue) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover{
    background:#fff !important;color:var(--bo-gray-300) !important;
    border-color:var(--bo-gray-200) !important;cursor:not-allowed;
}

/* Indicateur "Traitement…" */
.dataTables_wrapper .dataTables_processing{
    background:rgba(255,255,255,.92);color:var(--bo-blue);
    border:1px solid var(--bo-gray-200);border-radius:9px;
    box-shadow:var(--bo-shadow-md);font-weight:600;font-size:13px;
    padding:14px 22px;
}

/* Indicateurs de tri sur les en-têtes de colonne */
.bo-table thead th.sorting,
.bo-table thead th.sorting_asc,
.bo-table thead th.sorting_desc{
    cursor:pointer;position:relative;padding-right:26px;user-select:none;
}
.bo-table thead th.sorting::after,
.bo-table thead th.sorting_asc::after,
.bo-table thead th.sorting_desc::after{
    position:absolute;right:10px;top:50%;transform:translateY(-50%);
    font-size:10px;opacity:.4;font-family:sans-serif;
}
.bo-table thead th.sorting::after{content:"▲▼";letter-spacing:-2px;}
.bo-table thead th.sorting_asc::after{content:"▲";opacity:1;color:var(--bo-blue);}
.bo-table thead th.sorting_desc::after{content:"▼";opacity:1;color:var(--bo-blue);}

/* Ligne d'actions de la table */
.bo-table td.bo-actions-cell{white-space:nowrap;}
.bo-table td.bo-actions-cell .bo-btn{margin-right:4px;}
.bo-table td.bo-actions-cell form{margin-right:4px;}

/* Responsive : pile les zones bas/haut en colonne */
@media (max-width:768px){
    .bo-dt-top{flex-direction:column;align-items:stretch;}
    .bo-dt-top .dataTables_filter{margin-left:0;}
    .bo-dt-top .dataTables_filter input{width:100%;}
    .bo-dt-bottom{flex-direction:column;align-items:flex-start;}
}
