:root{--bg:#f5f7fb;--panel:rgba(255,255,255,.82);--text:#111827;--muted:#6b7280;--border:rgba(17,24,39,.09);--primary:#172554;--primary2:#2563eb;--accent:#f59e0b;--shadow:0 24px 70px rgba(15,23,42,.10);--radius:24px}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family: Verdana, sans-serif;color:var(--text);background:radial-gradient(circle at top left,rgba(37,99,235,.18),transparent 32rem),radial-gradient(circle at bottom right,rgba(245,158,11,.18),transparent 34rem),var(--bg)}
a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:grid;grid-template-columns:286px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:22px;border-right:1px solid var(--border);background:rgba(255,255,255,.72);backdrop-filter:blur(18px);display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:14px;padding:12px;border-radius:20px;background:white;box-shadow:var(--shadow)}.brand-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));font-weight:900}.brand strong{display:block;font-size:18px}.brand span{display:block;margin-top:3px;color:var(--muted);font-size:13px}.nav{display:grid;gap:7px}.nav a{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:17px;color:#334155;transition:.18s}.nav a:hover,.nav a.active{background:white;color:var(--primary);box-shadow:0 12px 35px rgba(15,23,42,.08)}.nav span{width:26px;text-align:center}.nav em{font-style:normal;font-weight:650}.lang-switch{margin-top:auto;display:flex;gap:8px;padding:8px;background:rgba(255,255,255,.66);border:1px solid var(--border);border-radius:16px}.lang-switch a{flex:1;text-align:center;padding:9px;border-radius:12px;font-weight:800;color:var(--muted)}.lang-switch a.active{background:var(--primary);color:white}.main{padding:30px;min-width:0;max-width:100%;overflow-x:hidden;box-sizing:border-box}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.topbar h1{margin:0;font-size:clamp(28px,4vw,46px);letter-spacing:-.04em}.topbar p{margin:8px 0 0;color:var(--muted)}.primary-btn{border:0;border-radius:16px;padding:13px 18px;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));font-weight:800;box-shadow:0 18px 35px rgba(37,99,235,.22)}.hero-card{min-height:210px;display:flex;align-items:end;padding:30px;border-radius:var(--radius);background:linear-gradient(135deg,rgba(23,37,84,.95),rgba(37,99,235,.84));color:white;box-shadow:var(--shadow);overflow:hidden}.hero-card h2{margin:14px 0 8px;font-size:clamp(30px,5vw,58px);letter-spacing:-.05em}.hero-card p{margin:0;max-width:760px;color:rgba(255,255,255,.78);font-size:17px}.pill{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);color:white;border:1px solid rgba(255,255,255,.22);font-weight:800;font-size:13px}.grid{margin-top:24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.module-card{padding:20px;border-radius:22px;background:var(--panel);border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}.module-card span{font-size:28px}.module-card h3{margin:14px 0 6px}.module-card p{margin:0;color:var(--muted)}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid var(--border)}.nav{grid-template-columns:repeat(4,minmax(0,1fr))}.nav a{justify-content:center}.nav em{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.main,.sidebar{padding:16px}.grid{grid-template-columns:1fr}.nav{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-card{padding:22px;min-height:190px}}


.login-body{display:grid;place-items:center;padding:22px}
.login-card{width:min(440px,100%);padding:26px;border-radius:28px;background:rgba(255,255,255,.86);border:1px solid var(--border);box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.login-brand{box-shadow:none;border:1px solid var(--border);margin-bottom:24px}
.login-card h1{font-size:42px;letter-spacing:-.05em;margin:0 0 8px}
.login-card p{color:var(--muted);margin:0 0 22px}
.login-form{display:grid;gap:16px}
.login-form label{display:grid;gap:7px;font-weight:750;color:#334155}
.login-form input{width:100%;border:1px solid var(--border);border-radius:16px;padding:14px 15px;font:inherit;background:white;outline:none}
.login-form input:focus{border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.alert{padding:12px 14px;border-radius:16px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;margin-bottom:16px;font-weight:700}
.user-chip{display:inline-flex;align-items:center;gap:9px;padding:10px 12px;border-radius:999px;background:white;border:1px solid var(--border);color:#334155;font-weight:750}
.logout-link{font-size:13px;color:var(--muted);font-weight:800}

.section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:28px 0 14px}
.section-title h2{margin:0;font-size:28px;letter-spacing:-.04em}
.section-title p{margin:6px 0 0;color:var(--muted)}
.session-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.session-card{position:relative;display:flex;align-items:center;gap:15px;padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06);overflow:hidden}
.session-card:before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:var(--session-color)}
.session-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:color-mix(in srgb,var(--session-color) 14%,white);font-size:25px}
.session-card h3{margin:0 0 5px;font-size:18px}
.session-card p{margin:0;color:var(--muted);font-size:14px}
.session-card a{margin-left:auto;padding:9px 12px;border-radius:14px;background:#f8fafc;border:1px solid var(--border);font-weight:800;color:#334155}
@media(max-width:1000px){.session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.section-title{align-items:flex-start;flex-direction:column}.session-grid{grid-template-columns:1fr}.session-card a{display:none}}


.wide-card{width:min(620px,100%)}
.login-form select,.login-form textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:14px 15px;font:inherit;background:white;outline:none}
.login-form textarea{resize:vertical;min-height:110px}
.form-row{display:grid;grid-template-columns:1fr 140px;gap:14px}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:4px}
.ghost-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:16px;padding:13px 18px;background:white;border:1px solid var(--border);font-weight:800;color:#334155}
@media(max-width:520px){.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column-reverse;align-items:stretch}.form-actions a,.form-actions button{width:100%}}

.session-mini-list{display:grid;gap:7px;padding:12px;border-radius:20px;background:rgba(255,255,255,.58);border:1px solid var(--border)}
.session-mini-list strong{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.session-mini-list a{padding:10px 11px;border-radius:14px;font-weight:750;color:#334155}
.session-mini-list a.active,.session-mini-list a:hover{background:white;color:var(--primary);box-shadow:0 10px 28px rgba(15,23,42,.07)}
.session-hero{min-height:230px;display:flex;align-items:end;gap:22px;padding:30px;border-radius:var(--radius);background:linear-gradient(135deg,color-mix(in srgb,var(--session-color) 88%,#111827),color-mix(in srgb,var(--session-color) 62%,#2563eb));color:white;box-shadow:var(--shadow);overflow:hidden}
.session-hero-icon{width:86px;height:86px;border-radius:30px;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);font-size:42px;flex:0 0 auto}
.session-hero h2{margin:14px 0 8px;font-size:clamp(34px,5vw,64px);letter-spacing:-.06em}
.session-hero p{margin:0;color:rgba(255,255,255,.8);font-size:17px}
.module-card-click{position:relative;padding-bottom:58px}
.module-card-click a{position:absolute;left:18px;right:18px;bottom:16px;text-align:center;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid var(--border);font-weight:850;color:#334155}
.office-panel{margin-top:24px;padding:24px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.office-panel h2{margin:0 0 14px;font-size:24px;letter-spacing:-.04em}
.action-row{display:flex;flex-wrap:wrap;gap:10px}
.action-row span{padding:10px 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);font-weight:800;color:#334155}
@media(max-width:620px){.session-hero{align-items:flex-start;flex-direction:column}.session-hero-icon{width:70px;height:70px;border-radius:24px;font-size:34px}.session-mini-list{display:none}}

.module-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.empty-state{min-height:420px;display:grid;place-items:center;text-align:center;padding:40px 24px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.empty-icon{width:92px;height:92px;border-radius:32px;display:grid;place-items:center;background:#f8fafc;border:1px solid var(--border);font-size:46px;margin-bottom:18px}
.empty-state h2{margin:0 0 8px;font-size:34px;letter-spacing:-.05em}
.empty-state p{margin:0 auto 22px;max-width:620px;color:var(--muted);font-size:17px}
@media(max-width:620px){.module-toolbar{align-items:stretch;flex-direction:column}.module-toolbar a,.module-toolbar button{width:100%}.empty-state{min-height:360px}.empty-state h2{font-size:28px}}

.object-list{display:grid;gap:14px}
.object-card{display:flex;justify-content:space-between;gap:18px;padding:20px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.object-card h2{margin:8px 0 8px;font-size:22px;letter-spacing:-.04em}
.object-card p{margin:0;color:var(--muted);line-height:1.5}
.object-type{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);font-size:12px;font-weight:850;color:#475569;text-transform:uppercase;letter-spacing:.06em}
.object-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.object-actions a{padding:9px 11px;border-radius:13px;background:#f8fafc;border:1px solid var(--border);font-weight:800;color:#334155;font-size:13px}
@media(max-width:720px){.object-card{flex-direction:column}.object-actions{justify-content:flex-start}}

.object-view-card h1{font-size:38px;letter-spacing:-.05em;margin:12px 0 18px}
.object-content{text-align:left;padding:20px;border-radius:20px;background:#f8fafc;border:1px solid var(--border);line-height:1.65;color:#334155;white-space:normal}
.object-content em{color:var(--muted)}
.object-actions-bar{flex-wrap:wrap;justify-content:flex-start}
.danger-soft{color:#991b1b;background:#fff1f2;border-color:#fecdd3}
@media print{.sidebar,.topbar,.module-toolbar,.form-actions,.object-actions-bar,.login-brand{display:none!important}.login-body{display:block;background:white;padding:0}.login-card{box-shadow:none;border:0;width:100%;padding:0}.object-content{border:0;background:white;padding:0}}


.flash{position:sticky;top:14px;z-index:20;margin:0 0 18px;padding:14px 16px;border-radius:18px;font-weight:850;box-shadow:0 16px 40px rgba(15,23,42,.10);animation:flashIn .22s ease-out}
.flash.success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
@keyframes flashIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

.admin-nav{margin-top:auto}
.admin-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}
.admin-stat-card{padding:18px;border-radius:22px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.admin-stat-card strong{display:block;font-size:34px;letter-spacing:-.05em;color:var(--primary)}
.admin-stat-card span{display:block;margin-top:4px;color:var(--muted);font-weight:800}
.table-wrap{overflow:auto;border-radius:18px;border:1px solid var(--border)}
.office-table{width:100%;border-collapse:collapse;background:white;min-width:760px}
.office-table th,.office-table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--border);font-size:14px}
.office-table th{background:#f8fafc;color:#475569;font-weight:900}
.office-table td{color:#334155}
.office-table tr:last-child td{border-bottom:0}
@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.admin-stats{grid-template-columns:1fr}.admin-nav{margin-top:0}}


.admin-top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.check-line{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:10px!important}
.check-line input{width:auto!important}
@media(max-width:720px){.admin-top-actions{justify-content:flex-start;width:100%}}


.table-actions{display:flex;gap:8px;flex-wrap:wrap}
.table-actions a{display:inline-flex;padding:7px 9px;border-radius:11px;background:#f8fafc;border:1px solid var(--border);font-weight:850;color:#334155;font-size:12px}
.table-actions a.danger-link{background:#fff1f2;border-color:#fecdd3;color:#991b1b}


.module-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.module-check-card{display:grid!important;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;padding:14px;border-radius:18px;background:white;border:1px solid var(--border);box-shadow:0 10px 30px rgba(15,23,42,.05);cursor:pointer}
.module-check-card input{width:auto!important}
.module-check-card span{font-size:24px}
.module-check-card strong{font-weight:900;color:#111827}
.module-check-card em{grid-column:3;font-style:normal;color:var(--muted);font-size:12px;font-weight:800}
@media(max-width:620px){.module-check-grid{grid-template-columns:1fr}}


.share-list{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.share-list h2{margin:0 0 14px;font-size:22px;letter-spacing:-.04em}
.share-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border-radius:16px;background:#f8fafc;border:1px solid var(--border);margin-bottom:10px}
.share-row strong{display:block;color:#111827}
.share-row span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.share-row a,.danger-link{display:inline-flex;padding:8px 10px;border-radius:12px;background:#fff1f2;border:1px solid #fecdd3;color:#991b1b;font-weight:850;font-size:13px}
.muted-text{color:var(--muted)}


.shared-nav{margin-top:auto}
.shared-object-card .object-type{margin-bottom:4px}
@media(max-width:620px){.shared-nav{margin-top:0}}


.nav a{position:relative}
.nav-badge{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f59e0b;color:#111827;font-size:12px;font-style:normal;font-weight:950}
.title-badge{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:18px;font-weight:950;letter-spacing:0}
@media(max-width:850px){.nav-badge{position:absolute;right:6px;top:5px;margin-left:0}}


.notification-list{display:grid;gap:14px}
.notification-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.notification-card.unread{border-color:#fed7aa;background:#fffaf0}
.notification-card h2{margin:8px 0 6px;font-size:21px;letter-spacing:-.04em}
.notification-card p{margin:0;color:var(--muted)}
.notification-card small{display:block;margin-top:8px;color:#94a3b8;font-weight:750}
@media(max-width:720px){.notification-card{align-items:flex-start;flex-direction:column}.notification-card a{width:100%;justify-content:center}}


.module-count-line{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:8px 10px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);color:#334155}
.module-count-line strong{color:var(--primary);font-weight:950}
.module-count-line span{font-size:13px;color:var(--muted);font-weight:800}


.search-page-form{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:22px}
.search-page-form input{width:100%;border:1px solid var(--border);border-radius:18px;padding:15px 16px;font:inherit;background:white;outline:none;box-shadow:0 12px 35px rgba(15,23,42,.05)}
.search-page-form input:focus{border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
@media(max-width:620px){.search-page-form{grid-template-columns:1fr}.search-page-form button{width:100%}}


.dashboard-quick-search{display:grid;grid-template-columns:1fr auto;gap:12px;margin:22px 0 4px}
.dashboard-quick-search input{width:100%;border:1px solid var(--border);border-radius:20px;padding:16px 18px;font:inherit;background:white;outline:none;box-shadow:0 16px 45px rgba(15,23,42,.06)}
.dashboard-quick-search input:focus{border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
@media(max-width:620px){.dashboard-quick-search{grid-template-columns:1fr}.dashboard-quick-search button{width:100%}}


.quick-create-panel{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start;margin:22px 0 6px;padding:20px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.quick-create-panel h2{margin:0 0 6px;font-size:24px;letter-spacing:-.04em}
.quick-create-panel p{margin:0;color:var(--muted);line-height:1.45}
.quick-create-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quick-create-form input,.quick-create-form select,.quick-create-form textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:13px 14px;font:inherit;background:#f8fafc;outline:none}
.quick-create-form textarea{grid-column:1 / -1;resize:vertical}
.quick-create-form button{grid-column:1 / -1}
.quick-create-form input:focus,.quick-create-form select:focus,.quick-create-form textarea:focus{border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(37,99,235,.10);background:white}
@media(max-width:900px){.quick-create-panel{grid-template-columns:1fr}.quick-create-form{grid-template-columns:1fr}}


.object-meta-line{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.object-meta-line span{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f8fafc;border:1px solid var(--border);font-size:12px;font-weight:850;color:#334155}
.object-meta-large{margin:0 0 14px}


.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 6px}
.dashboard-stat{display:block;padding:18px;border-radius:22px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.dashboard-stat strong{display:block;font-size:34px;letter-spacing:-.05em;color:var(--primary)}
.dashboard-stat span{display:block;margin-top:4px;color:var(--muted);font-weight:850}
.dashboard-recent{margin-bottom:8px}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.dashboard-stats{grid-template-columns:1fr}}


.module-filter-bar{display:grid;grid-template-columns:1.7fr .8fr .9fr .9fr auto;gap:10px;margin:-4px 0 22px}
.module-filter-bar input,.module-filter-bar select{width:100%;border:1px solid var(--border);border-radius:16px;padding:12px 13px;font:inherit;background:white;outline:none;box-shadow:0 10px 28px rgba(15,23,42,.04)}
.module-filter-bar input:focus,.module-filter-bar select:focus{border-color:rgba(37,99,235,.45);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
@media(max-width:980px){.module-filter-bar{grid-template-columns:1fr 1fr}.module-filter-bar button{grid-column:1 / -1}}
@media(max-width:560px){.module-filter-bar{grid-template-columns:1fr}}


.attachment-list{margin:18px 0;padding:18px;border-radius:22px;background:#f8fafc;border:1px solid var(--border)}
.attachment-list h2{margin:0 0 12px;font-size:22px;letter-spacing:-.04em}
.attachment-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border-radius:16px;background:white;border:1px solid var(--border);margin-top:10px}
.attachment-row strong{display:block;color:#111827}
.attachment-row span{display:block;margin-top:3px;color:var(--muted);font-size:13px;font-weight:800}
@media(max-width:680px){.attachment-row{align-items:flex-start;flex-direction:column}}


.activity-list{display:grid;gap:14px}
.activity-card{display:grid;grid-template-columns:58px 1fr;gap:14px;padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.activity-icon{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:#f8fafc;border:1px solid var(--border);font-size:28px}
.activity-card h2{margin:8px 0 6px;font-size:21px;letter-spacing:-.04em}
.activity-card p{margin:0;color:var(--muted)}
.activity-card small{display:block;margin-top:8px;color:#94a3b8;font-weight:800}
@media(max-width:560px){.activity-card{grid-template-columns:1fr}.activity-icon{width:52px;height:52px}}


.dashboard-activity{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:8px}
.dashboard-activity .activity-card{box-shadow:0 12px 35px rgba(15,23,42,.05)}
@media(max-width:900px){.dashboard-activity{grid-template-columns:1fr}}


.user-chip a:first-child{color:#334155;font-weight:850}
.user-chip a:first-child:hover{color:var(--primary)}


.theme-dark{--bg:#0f172a;--panel:rgba(15,23,42,.82);--text:#e5e7eb;--muted:#94a3b8;--border:rgba(255,255,255,.10)}
.theme-dark .sidebar,.theme-dark .brand,.theme-dark .module-card,.theme-dark .session-card,.theme-dark .object-card,.theme-dark .office-panel,.theme-dark .dashboard-stat,.theme-dark .quick-create-panel,.theme-dark .activity-card,.theme-dark .notification-card,.theme-dark .admin-stat-card,.theme-dark .login-card{background:rgba(15,23,42,.88);color:var(--text)}
.theme-dark .nav a:hover,.theme-dark .nav a.active,.theme-dark .lang-switch a.active{background:rgba(255,255,255,.10)}
.theme-dark input,.theme-dark select,.theme-dark textarea,.theme-dark .ghost-btn{background:#111827!important;color:#e5e7eb!important;border-color:rgba(255,255,255,.12)!important}
.density-compact .main,.density-compact .sidebar{padding:14px}
.density-compact .module-card,.density-compact .session-card,.density-compact .object-card,.density-compact .office-panel,.density-compact .quick-create-panel{padding:14px}
.density-compact .grid,.density-compact .session-grid,.density-compact .object-list{gap:10px}


.mobile-bottom-nav{display:none}
@media(max-width:850px){
    body{padding-bottom:86px}
    .mobile-bottom-nav{
        position:fixed;
        left:10px;
        right:10px;
        bottom:10px;
        z-index:80;
        display:grid;
        grid-template-columns:repeat(5,1fr);
        gap:6px;
        padding:8px;
        border-radius:24px;
        background:rgba(255,255,255,.86);
        border:1px solid var(--border);
        box-shadow:0 20px 60px rgba(15,23,42,.18);
        backdrop-filter:blur(18px);
    }
    .mobile-bottom-nav a{
        position:relative;
        display:grid;
        place-items:center;
        gap:2px;
        min-height:54px;
        border-radius:18px;
        color:#475569;
        font-weight:900;
    }
    .mobile-bottom-nav a.active{
        background:#f8fafc;
        color:var(--primary);
    }
    .mobile-bottom-nav span{
        font-size:20px;
        line-height:1;
    }
    .mobile-bottom-nav em{
        font-style:normal;
        font-size:11px;
        line-height:1;
    }
    .mobile-bottom-nav b{
        position:absolute;
        top:4px;
        right:8px;
        min-width:18px;
        height:18px;
        padding:0 5px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        border-radius:999px;
        background:#f59e0b;
        color:#111827;
        font-size:10px;
        font-weight:950;
    }
    .mobile-bottom-nav .create-main{
        color:white;
        background:linear-gradient(135deg,var(--primary),var(--primary2));
        box-shadow:0 12px 28px rgba(37,99,235,.25);
    }
    .mobile-bottom-nav .create-main span{
        font-size:25px;
        font-weight:950;
    }
    .theme-dark .mobile-bottom-nav{
        background:rgba(15,23,42,.90);
        border-color:rgba(255,255,255,.12);
    }
    .theme-dark .mobile-bottom-nav a.active{
        background:rgba(255,255,255,.10);
    }
}
@media(min-width:851px){
    body{padding-bottom:0}
}


.create-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.create-hub-card{padding:24px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.create-hub-icon{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:#f8fafc;border:1px solid var(--border);font-size:32px;margin-bottom:16px}
.create-hub-card h2{margin:0 0 8px;font-size:28px;letter-spacing:-.05em}
.create-hub-card p{margin:0 0 18px;color:var(--muted);line-height:1.5}
.create-page-form{grid-template-columns:1fr}
.theme-dark .create-hub-card{background:rgba(15,23,42,.88)}
@media(max-width:850px){.create-hub-grid{grid-template-columns:1fr}}


.logs-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}
.logs-panel{padding:22px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06);min-width:0}
.logs-panel h2{margin:0 0 14px;font-size:24px;letter-spacing:-.04em}
.log-list{display:grid;gap:10px;max-height:70vh;overflow:auto;padding-right:4px}
.log-item{border:1px solid var(--border);border-radius:18px;background:#f8fafc;overflow:hidden}
.log-item summary{cursor:pointer;display:grid;gap:4px;padding:12px 14px}
.log-item summary strong{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--primary)}
.log-item summary span{font-size:12px;color:var(--muted)}
.log-item summary em{font-style:normal;font-weight:800;color:#334155;word-break:break-word}
.log-item pre,.log-raw{margin:0;padding:12px 14px;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.45;background:#0f172a;color:#e5e7eb;border-radius:14px;overflow:auto}
.log-item pre{border-radius:0}
.theme-dark .logs-panel{background:rgba(15,23,42,.88)}
.theme-dark .log-item{background:rgba(255,255,255,.05)}
.theme-dark .log-item summary em{color:#e5e7eb}
@media(max-width:1000px){.logs-grid{grid-template-columns:1fr}}


.health-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.health-summary article{padding:20px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.health-summary strong{display:block;font-size:30px;letter-spacing:-.06em}
.health-summary span{color:var(--muted);font-weight:800}
.health-list{display:grid;gap:10px;margin-top:18px}
.health-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:20px;background:white;border:1px solid var(--border);box-shadow:0 10px 30px rgba(15,23,42,.04)}
.health-item strong{display:block}
.health-item span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.health-item em{font-style:normal;font-weight:950;border-radius:999px;padding:7px 10px;font-size:12px}
.health-item.ok em{background:#dcfce7;color:#166534}
.health-item.bad em{background:#fee2e2;color:#991b1b}
.theme-dark .health-summary article,.theme-dark .health-item{background:rgba(15,23,42,.88)}
@media(max-width:850px){.health-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.health-item{align-items:flex-start;flex-direction:column}}


.backup-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.backup-info article{padding:20px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.backup-info strong{display:block;font-size:20px;letter-spacing:-.04em;margin-bottom:6px}
.backup-info span{color:var(--muted);font-weight:800}
.theme-dark .backup-info article{background:rgba(15,23,42,.88)}
@media(max-width:850px){.backup-info{grid-template-columns:1fr}}


.health-summary-wide{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.health-summary-wide{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.health-summary-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}


.form-row-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-row-2 label{margin:0}
.quick-create-form input[type=file]{padding:10px;background:#f8fafc;border:1px dashed var(--border);border-radius:16px}
.theme-dark .quick-create-form input[type=file]{background:#111827!important}
@media(max-width:700px){.form-row-2{grid-template-columns:1fr}}


.office-live-toast{
    position:fixed;
    right:18px;
    bottom:22px;
    z-index:120;
    width:min(380px,calc(100vw - 28px));
    display:grid;
    gap:5px;
    padding:16px 18px;
    border-radius:22px;
    background:rgba(15,23,42,.94);
    color:white;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 24px 70px rgba(15,23,42,.28);
    transform:translateY(24px);
    opacity:0;
    pointer-events:none;
    transition:.28s ease;
    backdrop-filter:blur(18px);
}
.office-live-toast.show{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
}
.office-live-toast strong{font-size:15px}
.office-live-toast span{font-size:13px;line-height:1.35;color:#cbd5e1}
@media(max-width:850px){
    .office-live-toast{
        right:10px;
        bottom:92px;
    }
}


.comments-panel{margin-top:22px;padding:22px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.comments-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.comments-head h2{margin:0;font-size:24px;letter-spacing:-.04em}
.comments-head p{margin:4px 0 0;color:var(--muted);font-weight:800}
.comments-empty{padding:16px;border-radius:18px;background:#f8fafc;color:var(--muted);font-weight:800}
.comments-list{display:grid;gap:12px;margin-bottom:16px}
.comment-card{display:flex;gap:12px;padding:14px;border-radius:20px;background:#f8fafc;border:1px solid var(--border)}
.comment-avatar{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;font-weight:950;flex:0 0 auto}
.comment-body{min-width:0;flex:1}
.comment-body header{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.comment-body header strong{font-size:14px}
.comment-body header span{font-size:12px;color:var(--muted);font-weight:800}
.comment-body p{margin:0;color:#334155;line-height:1.5}
.comment-form{display:grid;gap:10px;margin-top:16px}
.comment-form textarea{width:100%;resize:vertical}
.tiny-link{font-size:12px;margin-top:8px;display:inline-block}
.theme-dark .comments-panel{background:rgba(15,23,42,.88)}
.theme-dark .comments-empty,.theme-dark .comment-card{background:rgba(255,255,255,.05)}
.theme-dark .comment-body p{color:#e5e7eb}


.object-history-panel{margin-top:22px;padding:22px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.object-timeline{display:grid;gap:12px}
.timeline-item{display:grid;grid-template-columns:22px 1fr;gap:10px;padding:12px;border-radius:18px;background:#f8fafc;border:1px solid var(--border)}
.timeline-dot{width:22px;height:22px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;display:grid;place-items:center;font-size:22px;line-height:0;font-weight:950;margin-top:2px}
.timeline-item header{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:4px}
.timeline-item header strong{font-size:14px}
.timeline-item header span{font-size:12px;color:var(--muted);font-weight:850}
.timeline-item p{margin:0;color:#334155;line-height:1.45}
.timeline-item details{margin-top:8px}
.timeline-item summary{cursor:pointer;font-size:12px;font-weight:900;color:var(--primary)}
.timeline-item pre{margin:8px 0 0;padding:10px;border-radius:12px;background:#0f172a;color:#e5e7eb;white-space:pre-wrap;word-break:break-word;font-size:12px}
.theme-dark .object-history-panel{background:rgba(15,23,42,.88)}
.theme-dark .timeline-item{background:rgba(255,255,255,.05)}
.theme-dark .timeline-item p{color:#e5e7eb}


.favorite-card{background:linear-gradient(180deg,rgba(255,251,235,.94),#fff)}
.theme-dark .favorite-card{background:rgba(15,23,42,.88)}


.tag-cloud{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.tag-cloud a,.object-tag-row a,.tag-checkbox-grid span{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:color-mix(in srgb,var(--tag-color) 14%,white);color:var(--tag-color);font-weight:950;border:1px solid color-mix(in srgb,var(--tag-color) 28%,transparent)}
.tag-cloud a.active{background:var(--tag-color);color:white}
.object-tag-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.edit-tags-panel{padding:16px;border-radius:22px;background:#f8fafc;border:1px solid var(--border);display:grid;gap:12px}
.edit-tags-panel h2{margin:0;font-size:20px;letter-spacing:-.04em}
.tag-checkbox-grid{display:flex;flex-wrap:wrap;gap:8px}
.tag-checkbox-grid label{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;cursor:pointer}
.tag-checkbox-grid input{width:auto!important}
.theme-dark .edit-tags-panel{background:rgba(255,255,255,.05)}
.theme-dark .tag-cloud a,.theme-dark .object-tag-row a,.theme-dark .tag-checkbox-grid span{background:rgba(255,255,255,.08)}
.compact-empty{margin-top:10px}


.object-mini-tags{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 8px}
.object-mini-tags a,.object-mini-tags span{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:950;line-height:1}
.object-mini-tags a{background:color-mix(in srgb,var(--tag-color) 13%,white);color:var(--tag-color);border:1px solid color-mix(in srgb,var(--tag-color) 25%,transparent)}
.object-mini-tags .mini-fav{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.tag-search-results{margin-bottom:18px;padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.tag-search-results h2{margin:0 0 12px;font-size:22px;letter-spacing:-.04em}
.theme-dark .tag-search-results{background:rgba(15,23,42,.88)}
.theme-dark .object-mini-tags a{background:rgba(255,255,255,.08)}
.theme-dark .object-mini-tags .mini-fav{background:rgba(251,191,36,.16);color:#fbbf24;border-color:rgba(251,191,36,.25)}


.quick-create-form input[name="new_tags"]{border-style:dashed}
.edit-tags-panel input[name="new_tags"]{width:100%}


.tag-manager-panel,.tag-manager-row{padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.tag-manager-panel{margin-bottom:16px}
.tag-manager-panel h2{margin:0 0 12px;font-size:22px;letter-spacing:-.04em}
.tag-manager-list{display:grid;gap:12px}
.tag-manager-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.tag-manager-form{display:grid;grid-template-columns:auto minmax(160px,1fr) 74px auto;gap:10px;align-items:center}
.tag-manager-form input[type=color]{height:44px;min-width:68px;padding:4px}
.tag-preview{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:999px;background:color-mix(in srgb,var(--tag-color) 14%,white);color:var(--tag-color);font-weight:950;border:1px solid color-mix(in srgb,var(--tag-color) 28%,transparent);white-space:nowrap}
.theme-dark .tag-manager-panel,.theme-dark .tag-manager-row{background:rgba(15,23,42,.88)}
.theme-dark .tag-preview{background:rgba(255,255,255,.08)}
@media(max-width:850px){
    .tag-manager-row{grid-template-columns:1fr}
    .tag-manager-form{grid-template-columns:1fr}
}


.command-open-btn{
    border:1px solid var(--border);
    background:white;
    color:#475569;
    border-radius:999px;
    padding:10px 14px;
    font-weight:950;
    box-shadow:0 10px 30px rgba(15,23,42,.04);
    cursor:pointer;
}
.command-open-btn:hover{color:var(--primary);transform:translateY(-1px)}
.command-palette{position:fixed;inset:0;z-index:200;display:none}
.command-palette.open{display:block}
.command-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(8px)}
.command-box{
    position:relative;
    width:min(720px,calc(100vw - 24px));
    margin:9vh auto 0;
    border-radius:28px;
    overflow:hidden;
    background:rgba(255,255,255,.96);
    border:1px solid var(--border);
    box-shadow:0 35px 100px rgba(15,23,42,.35);
}
.command-box header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
    padding:14px;
    border-bottom:1px solid var(--border);
}
.command-box header span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:34px;
    min-width:44px;
    padding:0 10px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid var(--border);
    color:#64748b;
    font-weight:950;
}
.command-box input{
    border:0!important;
    background:transparent!important;
    outline:0!important;
    font-size:18px;
    font-weight:850;
    color:#0f172a;
    padding:10px!important;
}
.command-box header button{
    border:0;
    width:36px;
    height:36px;
    border-radius:14px;
    background:#f1f5f9;
    color:#475569;
    font-size:24px;
    cursor:pointer;
}
.command-results{
    display:grid;
    gap:6px;
    padding:10px;
    max-height:min(620px,68vh);
    overflow:auto;
}
.command-item{
    display:grid;
    gap:3px;
    padding:13px 14px;
    border-radius:18px;
    color:#0f172a;
}
.command-item:hover{
    background:#f8fafc;
    transform:none;
}
.command-item strong{font-size:15px}
.command-item small{color:#64748b;font-weight:800}
.command-loading,.command-empty{
    padding:18px;
    color:#64748b;
    font-weight:900;
    text-align:center;
}
.theme-dark .command-open-btn,
.theme-dark .command-box{
    background:rgba(15,23,42,.96);
    color:#e5e7eb;
}
.theme-dark .command-box header span,
.theme-dark .command-box header button,
.theme-dark .command-item:hover{
    background:rgba(255,255,255,.08);
}
.theme-dark .command-box input,
.theme-dark .command-item{
    color:#e5e7eb!important;
}
.theme-dark .command-item small{color:#94a3b8}
@media(max-width:850px){
    .command-open-btn{display:none}
    .command-box{margin:7vh auto 0;border-radius:24px}
}


.recent-card{background:linear-gradient(180deg,rgba(239,246,255,.92),#fff)}
.theme-dark .recent-card{background:rgba(15,23,42,.88)}


.recent-views-widget{margin-bottom:18px}
.recent-view-list{display:grid;gap:9px}
.recent-view-item{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:10px 12px;border-radius:18px;background:#f8fafc;border:1px solid var(--border);color:#0f172a}
.recent-view-item:hover{background:white;transform:translateY(-1px)}
.recent-view-item>span{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:white;border:1px solid var(--border);font-size:20px}
.recent-view-item strong{display:block;font-size:14px;letter-spacing:-.02em}
.recent-view-item em{display:block;font-style:normal;color:var(--muted);font-size:12px;font-weight:800;margin-top:2px}
.theme-dark .recent-view-item{background:rgba(255,255,255,.05);color:#e5e7eb}
.theme-dark .recent-view-item:hover{background:rgba(255,255,255,.08)}
.theme-dark .recent-view-item>span{background:rgba(255,255,255,.06)}


.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.calendar-weekday{text-align:center;color:var(--muted);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;padding:0 0 4px}
.calendar-day{min-height:154px;padding:12px;border-radius:22px;background:white;border:1px solid var(--border);box-shadow:0 12px 34px rgba(15,23,42,.04);display:grid;align-content:start;gap:9px}
.calendar-day.other-month{opacity:.42}
.calendar-day.today{outline:3px solid color-mix(in srgb,var(--primary2) 25%,transparent)}
.calendar-day header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.calendar-day header strong{font-size:18px;letter-spacing:-.05em}
.calendar-day header span{min-width:22px;height:22px;border-radius:999px;background:#f59e0b;color:#111827;display:grid;place-items:center;font-size:12px;font-weight:950}
.calendar-events{display:grid;gap:6px}
.calendar-event{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;padding:7px 8px;border-radius:12px;background:#f8fafc;border:1px solid var(--border);color:#0f172a;font-size:12px;font-weight:900}
.calendar-event:hover{transform:none;background:white}
.calendar-event b{font-weight:400}
.calendar-event span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-event em{font-style:normal;color:var(--muted);font-size:11px}
.calendar-event.priority-urgent{background:#fee2e2;border-color:#fecaca}
.calendar-event.priority-high{background:#ffedd5;border-color:#fed7aa}
.calendar-more{padding:5px 8px;border-radius:999px;background:#eef2ff;color:var(--primary);font-size:12px;font-weight:950;text-align:center}
.theme-dark .calendar-day{background:rgba(15,23,42,.88)}
.theme-dark .calendar-event{background:rgba(255,255,255,.06);color:#e5e7eb}
.theme-dark .calendar-event:hover{background:rgba(255,255,255,.10)}
@media(max-width:1050px){.calendar-grid{grid-template-columns:1fr}.calendar-weekday{display:none}.calendar-day{min-height:auto}.calendar-day.other-month{display:none}}


.calendar-toolbar{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.calendar-toolbar a{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:999px;background:white;border:1px solid var(--border);font-weight:950;color:#475569}
.calendar-toolbar a.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;border-color:transparent}
.calendar-list-view{display:grid;gap:12px}
.calendar-list-card{background:linear-gradient(180deg,rgba(240,253,250,.92),#fff)}
.calendar-widget{margin-bottom:18px}
.calendar-widget-list{display:grid;gap:9px}
.calendar-widget-item{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:10px 12px;border-radius:18px;background:#f8fafc;border:1px solid var(--border);color:#0f172a}
.calendar-widget-item:hover{background:white;transform:translateY(-1px)}
.calendar-widget-item>span{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;background:white;border:1px solid var(--border);font-size:20px}
.calendar-widget-item strong{display:block;font-size:14px;letter-spacing:-.02em}
.calendar-widget-item em{display:block;font-style:normal;color:var(--muted);font-size:12px;font-weight:800;margin-top:2px}
.calendar-widget-item.priority-urgent{background:#fee2e2;border-color:#fecaca}
.calendar-widget-item.priority-high{background:#ffedd5;border-color:#fed7aa}
.theme-dark .calendar-toolbar a,
.theme-dark .calendar-list-card{background:rgba(15,23,42,.88)}
.theme-dark .calendar-widget-item{background:rgba(255,255,255,.05);color:#e5e7eb}
.theme-dark .calendar-widget-item:hover{background:rgba(255,255,255,.08)}
.theme-dark .calendar-widget-item>span{background:rgba(255,255,255,.06)}


.calendar-week-view{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.week-day-card{min-height:420px;padding:14px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 12px 34px rgba(15,23,42,.04)}
.week-day-card.today{outline:3px solid color-mix(in srgb,var(--primary2) 25%,transparent)}
.week-day-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.week-day-card header strong{font-size:16px;letter-spacing:-.04em}
.week-day-card header span{font-size:11px;color:var(--muted);font-weight:950}
.week-empty{padding:12px;border-radius:16px;background:#f8fafc;color:var(--muted);font-weight:850;text-align:center}
.week-events{display:grid;gap:8px}
.week-event{display:grid;grid-template-columns:44px 1fr;gap:8px;padding:10px;border-radius:16px;background:#f8fafc;border:1px solid var(--border);color:#0f172a}
.week-event:hover{transform:none;background:white}
.week-event time{font-size:12px;font-weight:950;color:var(--primary)}
.week-event strong{display:block;font-size:13px;line-height:1.2}
.week-event em{display:block;margin-top:3px;font-style:normal;font-size:11px;color:var(--muted);font-weight:800}
.week-event.priority-urgent{background:#fee2e2;border-color:#fecaca}
.week-event.priority-high{background:#ffedd5;border-color:#fed7aa}
.theme-dark .week-day-card{background:rgba(15,23,42,.88)}
.theme-dark .week-empty,.theme-dark .week-event{background:rgba(255,255,255,.06);color:#e5e7eb}
.theme-dark .week-event:hover{background:rgba(255,255,255,.10)}
@media(max-width:1200px){.calendar-week-view{grid-template-columns:1fr}.week-day-card{min-height:auto}}


.calendar-feed-box{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;margin-bottom:14px;padding:18px;border-radius:24px;background:white;border:1px solid var(--border);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.calendar-feed-box strong{display:block;font-size:20px;letter-spacing:-.04em;margin-bottom:4px}
.calendar-feed-box p{margin:0 0 10px;color:var(--muted);font-weight:800}
.calendar-feed-box input{width:100%;font-family: Verdana, sans-serif;font-size:12px}
.theme-dark .calendar-feed-box{background:rgba(15,23,42,.88)}
@media(max-width:850px){.calendar-feed-box{grid-template-columns:1fr}.calendar-feed-box .object-actions{justify-content:flex-start}}


.snooze-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 14px}
.snooze-actions span{font-size:12px;color:var(--muted);font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.snooze-actions a{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:#eef2ff;color:var(--primary);border:1px solid color-mix(in srgb,var(--primary) 18%,transparent);font-size:12px;font-weight:950}
.snooze-actions a:hover{background:var(--primary);color:white;transform:translateY(-1px)}
.theme-dark .snooze-actions a{background:rgba(255,255,255,.08)}


.repeat-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.repeat-actions span{font-size:12px;color:var(--muted);font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.repeat-actions a{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;font-size:12px;font-weight:950}
.repeat-actions a:hover{background:#16a34a;color:white;transform:translateY(-1px)}
.theme-dark .repeat-actions a{background:rgba(34,197,94,.12);color:#86efac;border-color:rgba(34,197,94,.24)}


.checklist-panel{margin-top:22px;padding:22px;border-radius:28px;background:white;border:1px solid var(--border);box-shadow:0 16px 45px rgba(15,23,42,.06)}
.check-percent{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:34px;border-radius:999px;background:#ecfeff;color:#0e7490;font-weight:950}
.check-progress{height:10px;border-radius:999px;background:#f1f5f9;overflow:hidden;margin:0 0 16px}
.check-progress span{display:block;height:100%;background:linear-gradient(135deg,var(--primary),var(--primary2));border-radius:inherit}
.checklist-list{display:grid;gap:10px;margin-bottom:16px}
.checklist-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px;border-radius:18px;background:#f8fafc;border:1px solid var(--border)}
.checklist-item.done{opacity:.68}
.checklist-item.done strong{text-decoration:line-through}
.check-toggle{font-size:24px;line-height:1;color:var(--primary);font-weight:950}
.checklist-item strong{display:block;font-size:14px}
.checklist-item span{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:800}
.checklist-form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px}
.theme-dark .checklist-panel{background:rgba(15,23,42,.88)}
.theme-dark .check-progress{background:rgba(255,255,255,.08)}
.theme-dark .checklist-item{background:rgba(255,255,255,.05)}
@media(max-width:700px){.checklist-item{grid-template-columns:auto 1fr}.checklist-item .danger-link{grid-column:2}.checklist-form{grid-template-columns:1fr}}


.mini-checklist-progress{display:flex;align-items:center;gap:8px;margin:8px 0 9px}
.mini-checklist-progress div{height:8px;min-width:92px;max-width:180px;flex:1;border-radius:999px;background:#f1f5f9;overflow:hidden;border:1px solid var(--border)}
.mini-checklist-progress div span{display:block;height:100%;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2))}
.mini-checklist-progress em{font-style:normal;font-size:12px;color:var(--muted);font-weight:950;white-space:nowrap}
.theme-dark .mini-checklist-progress div{background:rgba(255,255,255,.08)}


/* Nettoyage anti-???? : privilégie texte sobre si emojis corrompus */
.session-icon,
.module-icon,
.object-icon,
.card-icon{
    font-family: Verdana, sans-serif;
}

/* =========================================================
   Office Layout V2 Safe
   Menu haut + outils gauche
========================================================= */

body.office-layout-v2 {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 34%),
        linear-gradient(180deg, #f8fafc, #eef2f7);
    min-height: 100vh;
}

.office-v2-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 170px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px 18px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(226,232,240,.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}

.office-v2-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
}

.office-v2-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    height: 40px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--primary2, #2563eb));
    color: white;
    font-weight: 950;
    letter-spacing: -.05em;
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.office-v2-mainnav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.office-v2-mainnav::-webkit-scrollbar {
    display: none;
}

.office-v2-mainnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475569;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    transition: .16s ease;
}

.office-v2-mainnav a em,
.office-v2-actions a em,
.office-v2-rail a em {
    font-style: normal;
}

.office-v2-mainnav a:hover,
.office-v2-mainnav a.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.office-v2-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.office-v2-actions a,
.office-v2-actions button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.office-v2-actions a:hover,
.office-v2-actions button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.office-v2-hidden-sidebar {
    display: none !important;
}

.app-shell.office-v2-shell {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 250px !important;
    padding: 22px 24px 90px !important;
}

.office-v2-main,
.app-shell.office-v2-shell .main {
    width: 100% !important;
    max-width: 1380px !important;
    margin: 0 auto !important;
}

.office-v2-rail {
    position: fixed;
    top: 86px;
    left: 18px;
    bottom: 18px;
    z-index: 120;
    width: 220px;
    padding: 16px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(15,23,42,.08);
    overflow: auto;
}

.office-v2-rail-title {
    margin-bottom: 14px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.office-v2-rail-title strong {
    display: block;
    font-size: 19px;
    line-height: 1;
    letter-spacing: -.06em;
    color: #0f172a;
}

.office-v2-rail-title span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.office-v2-rail nav {
    display: grid;
    gap: 8px;
}

.office-v2-rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 17px;
    color: #334155;
    text-decoration: none;
    font-weight: 900;
    transition: .16s ease;
}

.office-v2-rail a span {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.office-v2-rail a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateX(2px);
}

body.office-layout-v2 .topbar,
body.office-layout-v2 .hero,
body.office-layout-v2 .card,
body.office-layout-v2 .panel,
body.office-layout-v2 .calendar-feed-box,
body.office-layout-v2 .checklist-panel,
body.office-layout-v2 .comments-panel {
    border-radius: 26px;
}

body.office-layout-v2 .topbar {
    margin-bottom: 18px;
}

body.office-layout-v2 h1 {
    letter-spacing: -.07em;
}

body.office-layout-v2 .mobile-bottom-nav {
    display: none !important;
}

.theme-dark .office-v2-topbar,
.theme-dark .office-v2-rail {
    background: rgba(15,23,42,.90);
    border-color: rgba(255,255,255,.10);
}

.theme-dark .office-v2-brand,
.theme-dark .office-v2-mainnav a,
.theme-dark .office-v2-rail a,
.theme-dark .office-v2-rail-title strong {
    color: #e5e7eb;
}

.theme-dark .office-v2-mainnav a:hover,
.theme-dark .office-v2-mainnav a.active,
.theme-dark .office-v2-actions a,
.theme-dark .office-v2-actions button,
.theme-dark .office-v2-rail a:hover,
.theme-dark .office-v2-rail a span {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

@media (max-width: 1050px) {
    .office-v2-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .office-v2-brand span {
        min-width: auto;
    }

    .app-shell.office-v2-shell {
        margin-left: 0 !important;
        padding: 16px 14px 95px !important;
    }

    .office-v2-rail {
        position: sticky;
        top: 66px;
        left: auto;
        bottom: auto;
        width: auto;
        margin: 10px 12px 0;
        padding: 10px;
        border-radius: 22px;
    }

    .office-v2-rail-title {
        display: none;
    }

    .office-v2-rail nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .office-v2-rail nav::-webkit-scrollbar {
        display: none;
    }

    .office-v2-rail a {
        white-space: nowrap;
        min-height: 38px;
        padding: 7px 10px;
        background: #fff;
        border: 1px solid #e2e8f0;
    }
}

@media (max-width: 760px) {
    .office-v2-topbar {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .office-v2-mainnav {
        grid-column: 1 / -1;
        order: 3;
        padding-top: 2px;
    }

    .office-v2-mainnav a {
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .office-v2-actions button {
        display: none;
    }

    .office-v2-actions a {
        width: 36px;
        height: 36px;
    }

    .office-v2-rail {
        top: 104px;
    }
}

/* Masquage anti-???? sur les icônes de cessions */
.session-icon,
.cession-icon,
.space-icon,
.sidebar .icon,
.session-card .icon,
.session-card-icon {
    display: none !important;
}

/* Dashboard unifié accueil / session */
.unified-dashboard {
    display: grid;
    gap: 20px;
}

.unified-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.20), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    box-shadow: 0 28px 80px rgba(15,23,42,.18);
}

.unified-hero .eyebrow {
    margin: 0 0 8px;
    color: rgba(255,255,255,.68);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.unified-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    letter-spacing: -.08em;
    line-height: .95;
}

.unified-hero p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.unified-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.unified-hero-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: white;
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 950;
    text-decoration: none;
}

.unified-hero-actions a.primary-btn {
    background: white;
    color: #0f172a;
}

.unified-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

.unified-stats a,
.unified-section {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 28px;
    box-shadow: 0 18px 54px rgba(15,23,42,.06);
}

.unified-stats a {
    display: block;
    padding: 18px;
    text-decoration: none;
    color: #0f172a;
}

.unified-stats strong {
    display: block;
    font-size: 34px;
    letter-spacing: -.07em;
    line-height: 1;
}

.unified-stats span {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-weight: 900;
}

.unified-section {
    padding: 20px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.06em;
}

.section-title-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-weight: 800;
}

.section-title-row > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.unified-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.unified-module-card,
.unified-list a,
.unified-timeline a {
    text-decoration: none;
    color: #0f172a;
}

.unified-module-card {
    display: block;
    padding: 16px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: .16s ease;
}

.unified-module-card:hover,
.unified-list a:hover,
.unified-timeline a:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 16px 42px rgba(37,99,235,.10);
}

.unified-module-card strong,
.unified-list strong,
.unified-timeline strong {
    display: block;
    font-weight: 950;
}

.unified-module-card span,
.unified-list span,
.unified-timeline span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.unified-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.unified-list {
    display: grid;
    gap: 10px;
}

.unified-list a {
    display: block;
    padding: 13px 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.unified-empty {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 900;
    border: 1px dashed #cbd5e1;
}

.unified-timeline {
    display: grid;
    gap: 10px;
}

.unified-timeline a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.unified-timeline time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 950;
    font-size: 12px;
}

.theme-dark .unified-stats a,
.theme-dark .unified-section {
    background: rgba(15,23,42,.88);
    border-color: rgba(255,255,255,.10);
}

.theme-dark .unified-stats a,
.theme-dark .unified-module-card,
.theme-dark .unified-list a,
.theme-dark .unified-timeline a {
    color: #e5e7eb;
}

.theme-dark .unified-module-card,
.theme-dark .unified-list a,
.theme-dark .unified-timeline a,
.theme-dark .unified-empty {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.10);
}

@media(max-width:900px) {
    .unified-hero,
    .unified-columns {
        grid-template-columns: 1fr;
    }

    .unified-hero-actions {
        justify-content: flex-start;
    }

    .unified-stats {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media(max-width:560px) {
    .unified-stats,
    .unified-timeline a {
        grid-template-columns: 1fr;
    }

    .unified-hero,
    .unified-section {
        padding: 18px;
        border-radius: 24px;
    }
}

/* Sélecteur global de cession */
.office-v2-topbar.with-session-switcher {
    grid-template-columns: 130px 250px minmax(0,1fr) auto;
}

.office-session-switcher {
    display: grid;
    grid-template-columns: 1fr 38px;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.office-session-switcher select {
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 38px 0 13px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-weight: 950;
    letter-spacing: -.03em;
    outline: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.office-session-switcher select:focus {
    border-color: rgba(37,99,235,.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.office-session-add {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 950;
    border: 1px solid rgba(37,99,235,.14);
}

.office-session-add:hover {
    background: #2563eb;
    color: white;
}

.theme-dark .office-session-switcher select {
    background: rgba(255,255,255,.08);
    color: #e5e7eb;
    border-color: rgba(255,255,255,.12);
}

.theme-dark .office-session-add {
    background: rgba(255,255,255,.08);
    color: #e5e7eb;
    border-color: rgba(255,255,255,.12);
}

@media(max-width:1050px) {
    .office-v2-topbar.with-session-switcher {
        grid-template-columns: auto 1fr auto;
    }

    .office-session-switcher {
        grid-column: 1 / -1;
        order: 2;
    }

    .office-v2-mainnav {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media(max-width:620px) {
    .office-session-switcher select {
        height: 38px;
        font-size: 13px;
    }

    .office-session-add {
        width: 38px;
        height: 38px;
    }
}

/* Sélecteur dans dashboard */
.unified-session-select {
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 14px 38px rgba(15,23,42,.05);
}

.unified-session-select form {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px) auto;
    align-items: center;
    gap: 10px;
}

.unified-session-select label {
    color: #64748b;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: 12px;
}

.unified-session-select select {
    height: 42px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    padding: 0 13px;
    font-weight: 950;
    color: #0f172a;
    background: white;
}

.unified-session-select a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 950;
}

@media(max-width:700px) {
    .unified-session-select form {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Compact dashboard / top menu
   Plus d’espace utile, moins de hauteur perdue
========================================================= */

.office-v2-topbar {
    min-height: 48px !important;
    padding: 6px 14px !important;
    gap: 10px !important;
}

.office-v2-brand span {
    height: 34px !important;
    min-width: 78px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
}

.office-v2-mainnav a {
    height: 34px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 13px !important;
}

.office-v2-actions a,
.office-v2-actions button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
}

.office-v2-topbar.with-session-switcher {
    grid-template-columns: 96px 230px minmax(0,1fr) auto !important;
}

.office-session-switcher select {
    height: 34px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    padding-left: 11px !important;
}

.office-session-add {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
}

.office-v2-rail {
    top: 62px !important;
    left: 14px !important;
    bottom: 14px !important;
    width: 200px !important;
    padding: 12px !important;
    border-radius: 22px !important;
}

.office-v2-rail-title {
    margin-bottom: 10px !important;
    padding-bottom: 9px !important;
}

.office-v2-rail-title strong {
    font-size: 16px !important;
}

.office-v2-rail-title span {
    font-size: 10px !important;
    margin-top: 4px !important;
}

.office-v2-rail nav {
    gap: 5px !important;
}

.office-v2-rail a {
    min-height: 36px !important;
    padding: 7px 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
}

.office-v2-rail a span {
    width: 25px !important;
    height: 25px !important;
    border-radius: 10px !important;
}

.app-shell.office-v2-shell {
    margin-left: 226px !important;
    padding: 14px 18px 70px !important;
}

.office-v2-main,
.app-shell.office-v2-shell .main {
    max-width: 1560px !important;
}

/* Dashboard unifié compact */
.unified-dashboard {
    gap: 12px !important;
}

.unified-session-select {
    padding: 10px 12px !important;
    border-radius: 18px !important;
}

.unified-session-select form {
    grid-template-columns: auto minmax(220px, 330px) auto !important;
    gap: 8px !important;
}

.unified-session-select select,
.unified-session-select a {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
}

.unified-hero {
    grid-template-columns: 1fr auto !important;
    padding: 16px 18px !important;
    border-radius: 24px !important;
    min-height: auto !important;
}

.unified-hero .eyebrow {
    margin-bottom: 4px !important;
    font-size: 10px !important;
}

.unified-hero h1 {
    font-size: clamp(26px, 3vw, 40px) !important;
    line-height: .98 !important;
}

.unified-hero p {
    margin-top: 6px !important;
    font-size: 13px !important;
}

.unified-hero-actions {
    gap: 7px !important;
}

.unified-hero-actions a {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}

.unified-stats {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 10px !important;
}

.unified-stats a {
    padding: 13px 14px !important;
    border-radius: 20px !important;
}

.unified-stats strong {
    font-size: 26px !important;
}

.unified-stats span {
    margin-top: 4px !important;
    font-size: 12px !important;
}

.unified-section {
    padding: 15px !important;
    border-radius: 22px !important;
}

.section-title-row {
    margin-bottom: 10px !important;
}

.section-title-row h2 {
    font-size: 20px !important;
}

.section-title-row p {
    margin-top: 2px !important;
    font-size: 12px !important;
}

.section-title-row > a {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}

.unified-module-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 9px !important;
}

.unified-module-card {
    padding: 12px !important;
    border-radius: 17px !important;
}

.unified-columns {
    gap: 12px !important;
}

.unified-list {
    gap: 7px !important;
}

.unified-list a,
.unified-timeline a {
    padding: 10px 11px !important;
    border-radius: 15px !important;
}

.unified-module-card span,
.unified-list span,
.unified-timeline span {
    margin-top: 3px !important;
    font-size: 12px !important;
}

.unified-empty {
    padding: 13px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
}

.unified-timeline {
    gap: 7px !important;
}

.unified-timeline a {
    grid-template-columns: 82px 1fr !important;
    gap: 10px !important;
}

.unified-timeline time {
    min-height: 30px !important;
    font-size: 11px !important;
}

/* Grands écrans : exploite mieux la largeur */
@media(min-width:1300px) {
    .unified-columns {
        grid-template-columns: 1fr 1fr !important;
    }

    .unified-dashboard {
        grid-template-columns: 1fr !important;
    }
}

/* Tablette/mobile : menu haut compact, rail horizontal */
@media(max-width:1050px) {
    .office-v2-topbar.with-session-switcher {
        grid-template-columns: 88px 1fr auto !important;
    }

    .office-session-switcher {
        grid-column: 1 / -1 !important;
        order: 2 !important;
    }

    .office-v2-mainnav {
        grid-column: 1 / -1 !important;
        order: 3 !important;
    }

    .office-v2-rail {
        top: 96px !important;
        margin: 8px 10px 0 !important;
        padding: 8px !important;
        border-radius: 18px !important;
        width: auto !important;
    }

    .app-shell.office-v2-shell {
        margin-left: 0 !important;
        padding: 10px 10px 70px !important;
    }
}

@media(max-width:760px) {
    .office-v2-topbar {
        padding: 6px 8px !important;
    }

    .office-v2-mainnav a {
        height: 32px !important;
        font-size: 12px !important;
    }

    .office-v2-rail {
        top: 96px !important;
    }

    .unified-hero {
        grid-template-columns: 1fr !important;
    }

    .unified-stats {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .unified-columns {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Correction lisibilité dashboard + sélecteur cession propre
========================================================= */

/* Le sélecteur ne sert qu'à choisir une cession : pas de bouton + dans le topbar */
.office-session-switcher {
    grid-template-columns: 1fr !important;
}

.office-session-switcher .office-session-add {
    display: none !important;
}

.office-v2-topbar.with-session-switcher-clean,
.office-v2-topbar.with-session-switcher {
    grid-template-columns: 96px 260px minmax(0,1fr) auto !important;
}

.office-session-switcher select {
    height: 38px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
}

/* Remonte la lisibilité du dashboard après compactage */
.unified-hero h1 {
    font-size: clamp(32px, 3.8vw, 48px) !important;
}

.unified-hero p {
    font-size: 15px !important;
}

.unified-hero .eyebrow {
    font-size: 12px !important;
}

.unified-hero-actions a {
    font-size: 14px !important;
}

.unified-stats strong {
    font-size: 34px !important;
}

.unified-stats span {
    font-size: 14px !important;
}

.section-title-row h2 {
    font-size: 24px !important;
}

.section-title-row p {
    font-size: 14px !important;
}

.section-title-row > a {
    font-size: 14px !important;
}

.unified-module-card {
    padding: 15px !important;
}

.unified-module-card strong,
.unified-list strong,
.unified-timeline strong {
    font-size: 16px !important;
}

.unified-module-card span,
.unified-list span,
.unified-timeline span {
    font-size: 14px !important;
}

.unified-list a,
.unified-timeline a {
    padding: 13px 14px !important;
}

.unified-empty {
    font-size: 15px !important;
}

/* On garde compact, mais pas minuscule */
.office-v2-mainnav a {
    font-size: 14px !important;
}

.office-v2-rail a {
    font-size: 14px !important;
}

@media(max-width:1050px) {
    .office-v2-topbar.with-session-switcher-clean,
    .office-v2-topbar.with-session-switcher {
        grid-template-columns: 88px 1fr auto !important;
    }
}

/* =========================================================
   Office Layout V3
   Menu gauche rétractable + outils contextuels en haut
========================================================= */

body.office-layout-v3 {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 30%),
        linear-gradient(180deg, #f8fafc, #eef2f7) !important;
    min-height: 100vh;
}

body.office-layout-v3 .office-v2-topbar,
body.office-layout-v3 .office-v2-rail,
body.office-layout-v3 .office-session-switcher,
.office-v3-hide-legacy {
    display: none !important;
}

.office-v3-leftbar {
    position: fixed;
    z-index: 260;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: 68px;
    border-radius: 26px;
    background: rgba(15,23,42,.96);
    box-shadow: 0 24px 70px rgba(15,23,42,.20);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    padding: 10px;
    transition: width .2s ease;
    overflow: hidden;
}

.office-v3-leftbar.expanded {
    width: 220px;
}

.office-v3-logo {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.office-v3-logo strong {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--primary2, #2563eb));
    font-size: 21px;
    letter-spacing: -.08em;
}

.office-v3-logo span {
    font-weight: 950;
    letter-spacing: -.05em;
    opacity: 0;
    transition: opacity .16s ease;
}

.office-v3-leftbar.expanded .office-v3-logo span {
    opacity: 1;
}

.office-v3-toggle {
    width: 44px;
    height: 34px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.07);
    color: white;
    cursor: pointer;
    font-weight: 950;
}

.office-v3-leftbar nav {
    display: grid;
    align-content: start;
    gap: 7px;
    margin-top: 4px;
}

.office-v3-leftbar nav a {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 17px;
    color: rgba(255,255,255,.74);
    text-decoration: none;
    font-weight: 950;
    overflow: hidden;
    transition: .15s ease;
}

.office-v3-leftbar nav a span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    font-size: 19px;
}

.office-v3-leftbar nav a em {
    font-style: normal;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .16s ease;
}

.office-v3-leftbar.expanded nav a em {
    opacity: 1;
}

.office-v3-leftbar nav a:hover,
.office-v3-leftbar nav a.active {
    background: rgba(255,255,255,.10);
    color: white;
}

.office-v3-leftbar nav a.active {
    box-shadow: inset 3px 0 0 var(--primary, #2563eb);
}

.office-v3-contextbar {
    position: sticky;
    top: 0;
    z-index: 220;
    min-height: 62px;
    margin-left: 92px;
    display: grid;
    grid-template-columns: minmax(320px, auto) 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 0;
    background: rgba(248,250,252,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226,232,240,.8);
}

body.office-v3-expanded .office-v3-contextbar {
    margin-left: 244px;
}

.office-v3-context-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.office-v3-title {
    min-width: 140px;
}

.office-v3-title strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -.06em;
    color: #0f172a;
}

.office-v3-title span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.office-v3-session-select {
    width: 250px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    padding: 0 12px;
    font-weight: 950;
    font-size: 14px;
    outline: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.office-v3-session-select:focus {
    border-color: rgba(37,99,235,.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.office-v3-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.office-v3-tools::-webkit-scrollbar {
    display: none;
}

.office-v3-tools a {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    transition: .15s ease;
}

.office-v3-tools a:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(37,99,235,.25);
}

.office-v3-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.office-v3-actions a,
.office-v3-actions button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.office-v3-actions a:hover,
.office-v3-actions button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.app-shell.office-v3-shell {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 92px !important;
    padding: 14px 18px 80px 0 !important;
}

body.office-v3-expanded .app-shell.office-v3-shell {
    margin-left: 244px !important;
}

.app-shell.office-v3-shell .main,
.office-v3-main {
    max-width: 1620px !important;
    margin: 0 auto !important;
}

body.office-layout-v3 .unified-dashboard {
    gap: 14px !important;
}

body.office-layout-v3 .unified-session-select {
    display: none !important;
}

body.office-layout-v3 .unified-hero {
    padding: 18px 20px !important;
    border-radius: 26px !important;
}

body.office-layout-v3 .unified-hero h1 {
    font-size: clamp(34px, 4vw, 52px) !important;
}

body.office-layout-v3 .unified-stats a,
body.office-layout-v3 .unified-section {
    border-radius: 24px !important;
}

body.office-layout-v3 .unified-columns {
    gap: 14px !important;
}

.theme-dark .office-v3-contextbar {
    background: rgba(15,23,42,.90);
    border-color: rgba(255,255,255,.10);
}

.theme-dark .office-v3-title strong,
.theme-dark .office-v3-tools a,
.theme-dark .office-v3-actions a,
.theme-dark .office-v3-actions button,
.theme-dark .office-v3-session-select {
    color: #e5e7eb;
}

.theme-dark .office-v3-tools a,
.theme-dark .office-v3-actions a,
.theme-dark .office-v3-actions button,
.theme-dark .office-v3-session-select {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

@media(max-width:1050px) {
    .office-v3-leftbar {
        top: auto;
        right: 10px;
        left: 10px;
        bottom: 10px;
        width: auto;
        height: 62px;
        border-radius: 24px;
        display: block;
        padding: 8px;
    }

    .office-v3-leftbar.expanded {
        width: auto;
    }

    .office-v3-logo,
    .office-v3-toggle {
        display: none;
    }

    .office-v3-leftbar nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 4px;
        margin: 0;
    }

    .office-v3-leftbar nav a {
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .office-v3-leftbar nav a em {
        display: none;
    }

    .office-v3-contextbar,
    body.office-v3-expanded .office-v3-contextbar {
        margin-left: 0;
        padding: 8px 10px;
        grid-template-columns: 1fr auto;
    }

    .office-v3-context-left {
        min-width: 0;
    }

    .office-v3-title {
        display: none;
    }

    .office-v3-session-select {
        width: min(52vw, 320px);
    }

    .office-v3-tools {
        grid-column: 1 / -1;
        order: 3;
    }

    .office-v3-actions button {
        display: none;
    }

    .app-shell.office-v3-shell,
    body.office-v3-expanded .app-shell.office-v3-shell {
        margin-left: 0 !important;
        padding: 10px 10px 90px !important;
    }
}

@media(max-width:620px) {
    .office-v3-contextbar {
        min-height: 86px;
    }

    .office-v3-session-select {
        width: 100%;
        font-size: 13px;
    }

    .office-v3-context-left {
        width: 100%;
    }

    .office-v3-tools a {
        height: 33px;
        font-size: 13px;
        padding: 0 10px;
    }

    .office-v3-actions a {
        width: 36px;
        height: 36px;
    }

    body.office-layout-v3 .unified-hero h1 {
        font-size: 34px !important;
    }
}

/* V3 : sélecteur de cession dans le menu gauche à la place de "Office" */
.office-v3-left-session {
    min-height: 44px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
}

.office-v3-left-session-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--primary2, #2563eb));
    color: white;
    font-weight: 950;
    font-size: 20px;
}

.office-v3-left-session-select-slot {
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
    min-width: 0;
}

.office-v3-leftbar.expanded .office-v3-left-session-select-slot {
    opacity: 1;
    pointer-events: auto;
}

.office-v3-left-session-select {
    width: 100%;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0 9px;
    font-size: 13px;
    font-weight: 950;
    outline: none;
}

.office-v3-left-session-select option {
    color: #0f172a;
    background: #fff;
}

.office-v3-logo {
    display: none !important;
}

/* Comme le sélecteur est à gauche, la barre haute respire mieux */
.office-v3-contextbar {
    grid-template-columns: minmax(170px, auto) 1fr auto !important;
}

.office-v3-context-left {
    max-width: 240px;
}

.office-v3-session-select {
    display: none !important;
}

@media(max-width:1050px) {
    .office-v3-left-session {
        display: none !important;
    }

    .office-v3-context-left {
        max-width: none;
    }

    .office-v3-session-select {
        display: block !important;
    }
}

/* V3.1 — bandeau dashboard au-dessus du menu outils */
body.office-v3-inverted .office-v3-top-hero-holder {
    position: relative;
    z-index: 210;
    margin-left: 92px;
    padding: 12px 18px 8px 0;
    background: rgba(248,250,252,.92);
    backdrop-filter: blur(18px);
}

body.office-v3-expanded.office-v3-inverted .office-v3-top-hero-holder {
    margin-left: 244px;
}

body.office-v3-inverted .office-v3-contextbar {
    top: 0;
    margin-top: 0;
    min-height: 52px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 1px solid rgba(226,232,240,.75);
}

body.office-v3-inverted .office-v3-hero-top {
    margin: 0 auto;
    max-width: 1620px;
    min-height: 92px;
    padding: 16px 20px !important;
    border-radius: 24px !important;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
}

body.office-v3-inverted .office-v3-hero-top h1 {
    font-size: clamp(32px, 3.2vw, 46px) !important;
}

body.office-v3-inverted .office-v3-hero-top p {
    margin-top: 5px !important;
}

body.office-v3-inverted .office-v3-hero-top .eyebrow {
    margin-bottom: 4px !important;
}

body.office-v3-inverted .app-shell.office-v3-shell {
    padding-top: 12px !important;
}

body.office-v3-inverted .app-shell.office-v3-shell .unified-dashboard > .unified-hero {
    display: none !important;
}

body.office-v3-inverted .office-v3-tools a {
    height: 34px;
}

.theme-dark body.office-v3-inverted .office-v3-top-hero-holder,
.theme-dark.office-v3-inverted .office-v3-top-hero-holder {
    background: rgba(15,23,42,.90);
}

@media(max-width:1050px) {
    body.office-v3-inverted .office-v3-top-hero-holder,
    body.office-v3-expanded.office-v3-inverted .office-v3-top-hero-holder {
        margin-left: 0;
        padding: 8px 10px 6px;
    }

    body.office-v3-inverted .office-v3-hero-top {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 14px 16px !important;
    }

    body.office-v3-inverted .office-v3-contextbar {
        top: 0;
    }
}

@media(max-width:620px) {
    body.office-v3-inverted .office-v3-hero-top h1 {
        font-size: 30px !important;
    }

    body.office-v3-inverted .office-v3-hero-top .unified-hero-actions {
        margin-top: 8px;
    }
}

/* V3.1 — bandeau dashboard au-dessus du menu outils */
body.office-v3-inverted .office-v3-top-hero-holder {
    position: relative;
    z-index: 210;
    margin-left: 92px;
    padding: 12px 18px 8px 0;
    background: rgba(248,250,252,.92);
    backdrop-filter: blur(18px);
}

body.office-v3-expanded.office-v3-inverted .office-v3-top-hero-holder {
    margin-left: 244px;
}

body.office-v3-inverted .office-v3-contextbar {
    top: 0;
    margin-top: 0;
    min-height: 52px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 1px solid rgba(226,232,240,.75);
}

body.office-v3-inverted .office-v3-hero-top {
    margin: 0 auto;
    max-width: 1620px;
    min-height: 92px;
    padding: 16px 20px !important;
    border-radius: 24px !important;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
}

body.office-v3-inverted .office-v3-hero-top h1 {
    font-size: clamp(32px, 3.2vw, 46px) !important;
}

body.office-v3-inverted .office-v3-hero-top p {
    margin-top: 5px !important;
}

body.office-v3-inverted .office-v3-hero-top .eyebrow {
    margin-bottom: 4px !important;
}

body.office-v3-inverted .app-shell.office-v3-shell {
    padding-top: 12px !important;
}

body.office-v3-inverted .app-shell.office-v3-shell .unified-dashboard > .unified-hero {
    display: none !important;
}

body.office-v3-inverted .office-v3-tools a {
    height: 34px;
}

.theme-dark body.office-v3-inverted .office-v3-top-hero-holder,
.theme-dark.office-v3-inverted .office-v3-top-hero-holder {
    background: rgba(15,23,42,.90);
}

@media(max-width:1050px) {
    body.office-v3-inverted .office-v3-top-hero-holder,
    body.office-v3-expanded.office-v3-inverted .office-v3-top-hero-holder {
        margin-left: 0;
        padding: 8px 10px 6px;
    }

    body.office-v3-inverted .office-v3-hero-top {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 14px 16px !important;
    }

    body.office-v3-inverted .office-v3-contextbar {
        top: 0;
    }
}

@media(max-width:620px) {
    body.office-v3-inverted .office-v3-hero-top h1 {
        font-size: 30px !important;
    }

    body.office-v3-inverted .office-v3-hero-top .unified-hero-actions {
        margin-top: 8px;
    }
}

/* Dashboard V2 : actions rapides + widgets */
.dashboard-quick-actions {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 18px 54px rgba(15,23,42,.06);
}

.dashboard-quick-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.dashboard-quick-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.06em;
}

.dashboard-quick-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 800;
}

.dashboard-quick-head > a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 950;
    white-space: nowrap;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 10px;
}

.dashboard-quick-grid a {
    min-height: 78px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 950;
    transition: .16s ease;
}

.dashboard-quick-grid a span {
    font-size: 24px;
}

.dashboard-quick-grid a:hover {
    transform: translateY(-2px);
    background: #eff6ff;
    border-color: rgba(37,99,235,.28);
    color: #1d4ed8;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px;
}

.compact-list a {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.dashboard-alert-list {
    display: grid;
    gap: 9px;
}

.dashboard-alert-list a {
    display: block;
    padding: 12px 13px;
    border-radius: 17px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-alert-list strong {
    display: block;
    font-weight: 950;
}

.dashboard-alert-list span {
    display: block;
    margin-top: 4px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.theme-dark .dashboard-quick-actions,
.theme-dark .dashboard-quick-grid a {
    background: rgba(15,23,42,.88);
    border-color: rgba(255,255,255,.10);
    color: #e5e7eb;
}

.theme-dark .dashboard-alert-list a {
    background: rgba(251,146,60,.12);
    border-color: rgba(251,146,60,.25);
    color: #e5e7eb;
}

@media(max-width:900px) {
    .dashboard-quick-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:560px) {
    .dashboard-quick-head {
        display: grid;
    }

    .dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

/* =========================================================
   Office OS / Menu type Mac
========================================================= */

.office-mac-hidden-tools {
    display: none !important;
}

.office-mac-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    overflow: visible;
}

.office-mac-app-name {
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 950;
    letter-spacing: -.04em;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(226,232,240,.9);
    margin-right: 4px;
}

.office-mac-menu-group {
    position: relative;
}

.office-mac-menu-group > button {
    height: 34px;
    border: 0;
    background: transparent;
    color: #334155;
    padding: 0 11px;
    border-radius: 11px;
    font-weight: 850;
    cursor: pointer;
}

.office-mac-menu-group:hover > button,
.office-mac-menu-group.open > button {
    background: #eff6ff;
    color: #1d4ed8;
}

.office-mac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
    backdrop-filter: blur(18px);
    display: none;
    z-index: 500;
}

.office-mac-menu-group.open .office-mac-dropdown {
    display: grid;
    gap: 2px;
}

.office-mac-dropdown a {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 11px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.office-mac-dropdown a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

body.office-mac-mode .office-v3-contextbar {
    grid-template-columns: minmax(170px, auto) minmax(0,1fr) auto !important;
}

.theme-dark .office-mac-app-name,
.theme-dark .office-mac-dropdown {
    background: rgba(15,23,42,.96);
    border-color: rgba(255,255,255,.12);
}

.theme-dark .office-mac-app-name,
.theme-dark .office-mac-menu-group > button,
.theme-dark .office-mac-dropdown a {
    color: #e5e7eb;
}

.theme-dark .office-mac-menu-group:hover > button,
.theme-dark .office-mac-menu-group.open > button,
.theme-dark .office-mac-dropdown a:hover {
    background: rgba(255,255,255,.10);
    color: white;
}

@media(max-width:900px) {
    .office-mac-menu {
        grid-column: 1 / -1;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        padding-top: 4px;
    }

    .office-mac-menu::-webkit-scrollbar {
        display: none;
    }

    .office-mac-app-name,
    .office-mac-menu-group > button {
        height: 32px;
        font-size: 13px;
    }

    .office-mac-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: 92px;
        min-width: auto;
    }
}

/* Sélecteur de cession compact dans le bandeau */
.office-hero-title-block {
    min-width: 0;
}

.office-hero-session-pill {
    width: fit-content;
    max-width: min(420px, 100%);
    margin-top: 10px;
    display: inline-grid;
    grid-template-columns: auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 5px 4px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(12px);
}

.office-hero-session-pill span {
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
}

.office-hero-session-pill select {
    height: 28px;
    max-width: 250px;
    min-width: 120px;
    border: 0;
    border-radius: 999px;
    padding: 0 27px 0 10px;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -.02em;
    outline: none;
    cursor: pointer;
}

.office-hero-session-pill select:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.24);
}

.office-hero-select-hide-left {
    display: none !important;
}

/* Quand le sélecteur est dans le bandeau, le menu gauche redevient juste dock */
body.office-hero-select-enabled .office-v3-leftbar {
    grid-template-rows: auto 1fr;
}

body.office-hero-select-enabled .office-v3-toggle {
    margin-bottom: 4px;
}

/* La barre haute n'a plus besoin d'un titre trop présent */
body.office-hero-select-enabled .office-v3-title span {
    display: none;
}

body.office-hero-select-enabled .office-v3-title strong {
    font-size: 17px;
}

/* Évite un bandeau énorme */
body.office-v3-inverted .office-v3-hero-top {
    min-height: 106px !important;
    padding: 15px 18px !important;
}

body.office-v3-inverted .office-v3-hero-top h1 {
    font-size: clamp(31px, 3vw, 43px) !important;
}

body.office-v3-inverted .office-v3-hero-top p {
    margin-top: 4px !important;
    font-size: 14px !important;
}

@media(max-width:760px) {
    .office-hero-session-pill {
        margin-top: 9px;
        max-width: 100%;
        grid-template-columns: auto minmax(0,1fr);
    }

    .office-hero-session-pill select {
        max-width: 100%;
        width: 100%;
    }

    body.office-v3-inverted .office-v3-hero-top {
        min-height: auto !important;
        padding: 13px 14px !important;
    }
}

/* =========================================================
   Dashboard V4 — espace de travail plus propre
   - bandeau moins massif
   - sélecteur intégré discrètement
   - widgets organisés comme un vrai bureau
========================================================= */

body.office-layout-v3 {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.055), transparent 28%),
        linear-gradient(180deg, #f6f8fb, #eef2f7) !important;
}

/* Bandeau principal plus élégant et moins haut */
body.office-v3-inverted .office-v3-top-hero-holder {
    padding: 10px 18px 6px 0 !important;
}

body.office-v3-inverted .office-v3-hero-top {
    max-width: 1640px !important;
    min-height: 78px !important;
    padding: 13px 18px !important;
    border-radius: 22px !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    background:
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94)) !important;
    box-shadow: 0 18px 50px rgba(15,23,42,.14) !important;
}

body.office-v3-inverted .office-v3-hero-top .eyebrow {
    display: none !important;
}

body.office-v3-inverted .office-v3-hero-top h1 {
    font-size: clamp(28px, 2.5vw, 38px) !important;
    letter-spacing: -.075em !important;
    line-height: .98 !important;
}

body.office-v3-inverted .office-v3-hero-top p {
    margin-top: 4px !important;
    font-size: 13px !important;
    opacity: .76 !important;
}

body.office-v3-inverted .office-v3-hero-top .unified-hero-actions {
    gap: 7px !important;
}

body.office-v3-inverted .office-v3-hero-top .unified-hero-actions a {
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
}

/* Sélecteur dans le bandeau : version discrète */
.office-hero-session-pill {
    margin-top: 8px !important;
    min-height: 30px !important;
    padding: 3px 4px 3px 9px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.105) !important;
    border-color: rgba(255,255,255,.16) !important;
}

.office-hero-session-pill span {
    font-size: 10px !important;
    letter-spacing: .075em !important;
}

.office-hero-session-pill select {
    height: 25px !important;
    max-width: 220px !important;
    font-size: 12px !important;
    padding-left: 9px !important;
}

/* Barre menu application plus plate, moins envahissante */
body.office-v3-inverted .office-v3-contextbar {
    min-height: 48px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: rgba(248,250,252,.82) !important;
}

.office-mac-app-name {
    height: 30px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
}

.office-mac-menu-group > button {
    height: 30px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
}

.office-v3-actions a,
.office-v3-actions button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
}

/* Menu gauche : encore plus dock */
.office-v3-leftbar {
    width: 64px !important;
    border-radius: 24px !important;
}

.office-v3-leftbar.expanded {
    width: 210px !important;
}

.office-v3-leftbar nav a {
    height: 42px !important;
    border-radius: 15px !important;
}

.office-v3-leftbar nav a span {
    width: 42px !important;
    height: 42px !important;
}

/* Contenu : meilleure occupation et respiration */
.app-shell.office-v3-shell {
    margin-left: 88px !important;
    padding: 12px 18px 80px 0 !important;
}

body.office-v3-expanded .app-shell.office-v3-shell {
    margin-left: 232px !important;
}

body.office-v3-inverted .app-shell.office-v3-shell {
    padding-top: 8px !important;
}

.app-shell.office-v3-shell .main {
    max-width: 100% !important;
}

/* Dashboard : grille plus cohérente */
body.office-layout-v3 .unified-dashboard {
    display: grid !important;
    gap: 12px !important;
}

/* On met les stats en bande fine */
body.office-layout-v3 .unified-stats {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 10px !important;
}

body.office-layout-v3 .unified-stats a {
    min-height: 72px !important;
    padding: 13px 15px !important;
    border-radius: 20px !important;
    display: grid !important;
    align-content: center !important;
}

body.office-layout-v3 .unified-stats strong {
    font-size: 31px !important;
}

body.office-layout-v3 .unified-stats span {
    font-size: 13px !important;
}

/* Actions rapides : moins “gros boutons”, plus dock horizontal */
.dashboard-quick-actions {
    padding: 12px !important;
    border-radius: 22px !important;
}

.dashboard-quick-head {
    display: none !important;
}

.dashboard-quick-grid {
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    gap: 8px !important;
}

.dashboard-quick-grid a {
    min-height: 58px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 10px !important;
    border-radius: 17px !important;
}

.dashboard-quick-grid a span {
    font-size: 21px !important;
}

.dashboard-quick-grid a strong {
    font-size: 14px !important;
}

/* Section modules / cessions plus compacte */
body.office-layout-v3 .unified-module-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 9px !important;
}

body.office-layout-v3 .unified-module-card {
    min-height: 70px !important;
    padding: 13px 14px !important;
    border-radius: 18px !important;
}

/* Grille principale du dashboard : 3 zones sur grand écran */
@media(min-width:1280px) {
    body.office-layout-v3 .unified-columns {
        grid-template-columns: 1.05fr .95fr !important;
        gap: 12px !important;
    }

    body.office-layout-v3 .dashboard-secondary-grid {
        grid-template-columns: .95fr 1.05fr !important;
        gap: 12px !important;
    }
}

/* Cartes de contenu : moins hautes, plus nettes */
body.office-layout-v3 .unified-section {
    padding: 15px !important;
    border-radius: 22px !important;
}

body.office-layout-v3 .section-title-row {
    margin-bottom: 11px !important;
}

body.office-layout-v3 .section-title-row h2 {
    font-size: 21px !important;
}

body.office-layout-v3 .section-title-row p {
    font-size: 13px !important;
}

body.office-layout-v3 .unified-list {
    gap: 7px !important;
}

body.office-layout-v3 .unified-list a,
body.office-layout-v3 .unified-timeline a,
.dashboard-alert-list a {
    padding: 11px 12px !important;
    border-radius: 15px !important;
}

body.office-layout-v3 .unified-list strong,
body.office-layout-v3 .unified-timeline strong,
.dashboard-alert-list strong {
    font-size: 15px !important;
}

body.office-layout-v3 .unified-list span,
body.office-layout-v3 .unified-timeline span,
.dashboard-alert-list span {
    font-size: 13px !important;
}

/* Échéances en timeline plus lisible */
body.office-layout-v3 .unified-timeline a {
    grid-template-columns: 86px minmax(0,1fr) !important;
}

body.office-layout-v3 .unified-timeline time {
    min-height: 30px !important;
}

/* Aspect général plus app native */
body.office-layout-v3 .unified-stats a,
body.office-layout-v3 .unified-section,
.dashboard-quick-actions {
    background: rgba(255,255,255,.78) !important;
    backdrop-filter: blur(16px) !important;
}

/* Mobile/tablette : garde la lisibilité */
@media(max-width:1050px) {
    body.office-v3-inverted .office-v3-top-hero-holder {
        margin-left: 0 !important;
        padding: 8px 10px 5px !important;
    }

    body.office-v3-inverted .office-v3-hero-top {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .app-shell.office-v3-shell,
    body.office-v3-expanded .app-shell.office-v3-shell {
        margin-left: 0 !important;
        padding: 8px 10px 90px !important;
    }

    .dashboard-quick-grid {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    }
}

@media(max-width:700px) {
    body.office-layout-v3 .unified-stats {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    body.office-v3-inverted .office-v3-hero-top h1 {
        font-size: 29px !important;
    }

    body.office-v3-inverted .office-v3-hero-top .unified-hero-actions {
        margin-top: 8px !important;
    }
}

/* =========================================================
   Toolbar sous bandeau : sélecteur + recherche + profil
========================================================= */

/* On supprime visuellement le sélecteur du bandeau */
body.office-under-hero-toolbar-enabled .office-hero-session-pill {
    display: none !important;
}

.office-under-hero-hide-left-session {
    display: none !important;
}

body.office-under-hero-toolbar-enabled .office-v3-leftbar {
    grid-template-rows: auto 1fr;
}

/* Barre sous le bandeau */
.office-under-hero-toolbar {
    max-width: 1640px;
    margin: 8px auto 0;
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(280px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(226,232,240,.88);
    box-shadow: 0 14px 40px rgba(15,23,42,.055);
    backdrop-filter: blur(16px);
}

.office-under-hero-left,
.office-under-hero-center,
.office-under-hero-right {
    min-width: 0;
}

.office-under-hero-session-select {
    width: 100%;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 950;
    outline: none;
    cursor: pointer;
}

.office-under-hero-session-select:focus {
    border-color: rgba(37,99,235,.5);
    box-shadow: 0 0 0 4px rgba(37,99,235,.11);
    background: white;
}

.office-under-hero-search {
    position: relative;
    display: block;
    width: 100%;
}

.office-under-hero-search span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.office-under-hero-search input[type="search"] {
    width: 100%;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 13px 0 40px;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.office-under-hero-search input[type="search"]::placeholder {
    color: #94a3b8;
}

.office-under-hero-search input[type="search"]:focus {
    background: white;
    border-color: rgba(37,99,235,.5);
    box-shadow: 0 0 0 4px rgba(37,99,235,.11);
}

.office-under-hero-profile {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 10px 22px rgba(15,23,42,.16);
}

.office-under-hero-profile:hover {
    transform: translateY(-1px);
    background: var(--primary, #2563eb);
    color: white;
}

/* La barre haute système n'a plus besoin du profil doublon */
body.office-under-hero-toolbar-enabled .office-v3-actions a[href="/?page=profile"] {
    display: none !important;
}

/* Ajuste la hauteur globale : bandeau + toolbar restent propres */
body.office-under-hero-toolbar-enabled.office-v3-inverted .office-v3-top-hero-holder {
    padding-bottom: 9px !important;
}

body.office-under-hero-toolbar-enabled.office-v3-inverted .office-v3-hero-top {
    min-height: 72px !important;
}

/* Mobile */
@media(max-width:900px) {
    .office-under-hero-toolbar {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .office-under-hero-center {
        grid-column: 1 / -1;
        order: 3;
    }

    .office-under-hero-session-select,
    .office-under-hero-search input[type="search"] {
        height: 35px;
        font-size: 13px;
    }
}

@media(max-width:560px) {
    .office-under-hero-toolbar {
        border-radius: 16px;
        padding: 6px;
    }

    .office-under-hero-session-select {
        max-width: 100%;
    }
}

.theme-dark .office-under-hero-toolbar {
    background: rgba(15,23,42,.86);
    border-color: rgba(255,255,255,.10);
}

.theme-dark .office-under-hero-session-select,
.theme-dark .office-under-hero-search input[type="search"] {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #e5e7eb;
}

.theme-dark .office-under-hero-search span {
    color: #94a3b8;
}

/* Icône de recherche colorée */
.office-under-hero-search .office-search-color-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    pointer-events: none;
}

.office-under-hero-search .office-search-color-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(37,99,235,.18));
}

.office-under-hero-search input[type="search"] {
    padding-left: 43px !important;
}

/* Cmd K à gauche de la loupe dans la barre de recherche */
.office-under-hero-search .office-search-shortcut-key {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: -.03em;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15,23,42,.16);
    pointer-events: none;
}

.office-under-hero-search .office-search-color-icon {
    left: 60px !important;
}

.office-under-hero-search input[type="search"] {
    padding-left: 92px !important;
}

.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: linear-gradient(135deg, #e5e7eb, #ffffff);
    color: #0f172a;
}

@media(max-width:560px) {
    .office-under-hero-search .office-search-shortcut-key {
        min-width: 36px;
        font-size: 10px;
        padding: 0 6px;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 53px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 84px !important;
    }
}

/* Inversion couleurs recherche : Cmd K clair, loupe bien visible */
.office-under-hero-search .office-search-shortcut-key {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid rgba(37,99,235,.22) !important;
    box-shadow: 0 5px 12px rgba(37,99,235,.10) !important;
}

.office-under-hero-search .office-search-color-icon {
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 4px 8px rgba(37,99,235,.20)) !important;
}

.office-under-hero-search .office-search-color-icon svg {
    width: 24px !important;
    height: 24px !important;
    filter: none !important;
}

.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: rgba(255,255,255,.10) !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,.28) !important;
}

/* Inversion couleurs recherche : Cmd K clair, loupe bien visible */
.office-under-hero-search .office-search-shortcut-key {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid rgba(37,99,235,.22) !important;
    box-shadow: 0 5px 12px rgba(37,99,235,.10) !important;
}

.office-under-hero-search .office-search-color-icon {
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 4px 8px rgba(37,99,235,.20)) !important;
}

.office-under-hero-search .office-search-color-icon svg {
    width: 24px !important;
    height: 24px !important;
    filter: none !important;
}

.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: rgba(255,255,255,.10) !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,.28) !important;
}

/* Correction barre recherche : CmdK + loupe + texte lisibles */
.office-under-hero-search {
    min-width: 0 !important;
}

.office-under-hero-search .office-search-shortcut-key {
    left: 12px !important;
    height: 22px !important;
    min-width: 38px !important;
    padding: 0 6px !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid rgba(37,99,235,.22) !important;
    font-size: 11px !important;
    box-shadow: 0 4px 10px rgba(37,99,235,.10) !important;
}

.office-under-hero-search .office-search-color-icon {
    left: 59px !important;
    width: 20px !important;
    height: 20px !important;
}

.office-under-hero-search .office-search-color-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.office-under-hero-search input[type="search"] {
    height: 36px !important;
    padding-left: 88px !important;
    padding-right: 14px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Sur petits écrans : on garde la loupe et CmdK, mais on évite que ça mange tout le champ */
@media(max-width:700px) {
    .office-under-hero-toolbar {
        grid-template-columns: minmax(92px, 140px) 1fr auto !important;
        align-items: center !important;
    }

    .office-under-hero-center {
        grid-column: auto !important;
        order: initial !important;
    }

    .office-under-hero-session-select {
        font-size: 0 !important;
        padding: 0 8px !important;
    }

    .office-under-hero-session-select option {
        font-size: 13px !important;
    }

    .office-under-hero-search .office-search-shortcut-key {
        left: 9px !important;
        min-width: 34px !important;
        height: 21px !important;
        font-size: 10px !important;
        padding: 0 5px !important;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 49px !important;
        width: 19px !important;
        height: 19px !important;
    }

    .office-under-hero-search .office-search-color-icon svg {
        width: 19px !important;
        height: 19px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 75px !important;
        font-size: 14px !important;
    }
}

/* Très petit écran : le sélecteur devient compact, recherche prioritaire */
@media(max-width:430px) {
    .office-under-hero-toolbar {
        grid-template-columns: 52px minmax(0,1fr) 36px !important;
        gap: 7px !important;
    }

    .office-under-hero-session-select {
        width: 52px !important;
        background-position: center !important;
    }

    .office-under-hero-search .office-search-shortcut-key {
        min-width: 32px !important;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 47px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 72px !important;
        font-size: 13px !important;
    }

    .office-under-hero-search input[type="search"]::placeholder {
        color: transparent !important;
    }
}

.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: rgba(255,255,255,.12) !important;
    color: #93c5fd !important;
    border-color: rgba(147,197,253,.30) !important;
}

/* Loupe recherche — version très visible */
.office-under-hero-search .office-search-color-icon {
    left: 58px !important;
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    transform: translateY(-50%) !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1 !important;
    filter: none !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.18) !important;
    pointer-events: none !important;
}

.office-under-hero-search .office-search-color-icon svg {
    display: none !important;
}

.office-under-hero-search input[type="search"] {
    padding-left: 100px !important;
}

@media(max-width:700px) {
    .office-under-hero-search .office-search-color-icon {
        left: 48px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 15px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 86px !important;
    }
}

@media(max-width:430px) {
    .office-under-hero-search .office-search-color-icon {
        left: 46px !important;
        width: 27px !important;
        height: 27px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 84px !important;
    }
}

.theme-dark .office-under-hero-search .office-search-color-icon {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Correction ciblée : Cmd K visible, loupe redevenue simple */
.office-under-hero-search .office-search-shortcut-key {
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 28px !important;
    min-width: 52px !important;
    padding: 0 9px !important;
    border-radius: 11px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(15,23,42,.20) !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.18) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: -.04em !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.office-under-hero-search .office-search-color-icon {
    left: 72px !important;
    top: 50% !important;
    width: 26px !important;
    height: 26px !important;
    transform: translateY(-50%) !important;
    display: inline-grid !important;
    place-items: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: initial !important;
    font-size: 23px !important;
    line-height: 1 !important;
    filter: none !important;
    pointer-events: none !important;
}

.office-under-hero-search .office-search-color-icon svg {
    display: none !important;
}

.office-under-hero-search input[type="search"] {
    padding-left: 108px !important;
}

.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(255,255,255,.25) !important;
}

@media(max-width:700px) {
    .office-under-hero-search .office-search-shortcut-key {
        left: 8px !important;
        height: 26px !important;
        min-width: 46px !important;
        font-size: 12px !important;
        padding: 0 7px !important;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 61px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 21px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 94px !important;
    }
}

@media(max-width:430px) {
    .office-under-hero-search .office-search-shortcut-key {
        min-width: 42px !important;
        font-size: 11px !important;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 56px !important;
        font-size: 20px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 88px !important;
    }
}

/* Cmd K : noir sur fond blanc */
.office-under-hero-search .office-search-shortcut-key,
.theme-dark .office-under-hero-search .office-search-shortcut-key {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15,23,42,.18) !important;
    box-shadow: 0 4px 10px rgba(15,23,42,.10) !important;
    text-shadow: none !important;
}

.office-under-hero-search .office-search-shortcut-key * {
    color: #0f172a !important;
}

/* Barre sous bandeau — alignement propre et régulier */
.office-under-hero-toolbar {
    min-height: 44px !important;
    padding: 6px !important;
    align-items: center !important;
}

.office-under-hero-session-select,
.office-under-hero-search input[type="search"],
.office-under-hero-profile {
    height: 34px !important;
    border-radius: 14px !important;
}

/* Sélecteur : hauteur et rendu régulier */
.office-under-hero-session-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background:
        linear-gradient(45deg, transparent 50%, #0f172a 50%) calc(100% - 17px) 13px / 6px 6px no-repeat,
        linear-gradient(135deg, #0f172a 50%, transparent 50%) calc(100% - 12px) 13px / 6px 6px no-repeat,
        #f8fafc !important;
    padding: 0 34px 0 12px !important;
    line-height: 34px !important;
}

/* Recherche : champ stable */
.office-under-hero-search input[type="search"] {
    line-height: 34px !important;
    padding-left: 96px !important;
    font-size: 15px !important;
}

/* CmdK : pilule plus basse, parfaitement centrée */
.office-under-hero-search .office-search-shortcut-key,
.theme-dark .office-under-hero-search .office-search-shortcut-key {
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 24px !important;
    min-width: 48px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15,23,42,.20) !important;
    box-shadow: 0 2px 6px rgba(15,23,42,.10) !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Loupe : même logique de centrage, pas de gros bloc */
.office-under-hero-search .office-search-color-icon {
    left: 66px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 21px !important;
    line-height: 1 !important;
    filter: none !important;
}

/* Profil : même hauteur visuelle que le reste */
.office-under-hero-profile {
    width: 34px !important;
    height: 34px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
}

/* Mobile : garde la régularité sans écraser */
@media(max-width:700px) {
    .office-under-hero-toolbar {
        grid-template-columns: 52px minmax(0,1fr) 34px !important;
        gap: 7px !important;
    }

    .office-under-hero-search input[type="search"] {
        padding-left: 86px !important;
        font-size: 13px !important;
    }

    .office-under-hero-search .office-search-shortcut-key {
        left: 8px !important;
        height: 23px !important;
        min-width: 42px !important;
        font-size: 11px !important;
        line-height: 23px !important;
    }

    .office-under-hero-search .office-search-color-icon {
        left: 56px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 19px !important;
    }
}

/* Correction STRICTE :
   1. garder la barre de recherche existante
   2. masquer seulement la barre située dessous
   3. retirer le sélecteur dans le bandeau
   4. ne toucher à aucune largeur
*/

header.office-v3-contextbar {
    display: none !important;
}

.office-hero-session-pill {
    display: none !important;
}

/* =========================================================
   Correction stricte du bouton Commande K
   Ne touche pas au bandeau, aux largeurs, ni au layout.
========================================================= */

.office-under-hero-search .office-search-shortcut-key,
.office-search-shortcut-key {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;

    min-width: 46px !important;
    width: 46px !important;
    max-width: 46px !important;

    padding: 0 !important;
    margin: 0 8px 0 0 !important;

    border: 1px solid rgba(15, 23, 42, .16) !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #111827 !important;

    font-family: Verdana, sans-serif;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;

    box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex: 0 0 46px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.office-under-hero-search .office-search-shortcut-key:hover,
.office-search-shortcut-key:hover {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, .24) !important;
}

.office-under-hero-search .office-search-shortcut-key:focus,
.office-search-shortcut-key:focus {
    outline: 2px solid rgba(37, 99, 235, .22) !important;
    outline-offset: 2px !important;
}

/* La barre garde un alignement propre autour du bouton */
.office-under-hero-search {
    display: flex !important;
    align-items: center !important;
}

.office-under-hero-search .office-search-color-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    margin-right: 8px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}

.office-under-hero-search input[type="search"],
.office-under-hero-search input[name="q"] {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

/* =========================================================
   Roue crantée dashboard uniquement
   Ne touche pas au bandeau, aux largeurs, ni au layout.
========================================================= */

.office-dashboard-customize-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.92) !important;
    color: #111827 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(15,23,42,.08) !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.office-dashboard-customize-btn:hover {
    background: #ffffff !important;
    transform: translateY(-1px);
}

.dashboard-customizer-panel {
    position: fixed !important;
    top: 86px !important;
    right: 22px !important;
    z-index: 99999 !important;
    width: 320px !important;
    max-width: calc(100vw - 24px) !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.18) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: none;
}

.dashboard-customizer-panel.is-open {
    display: block !important;
}

.dashboard-customizer-panel h3 {
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
}

.dashboard-customizer-panel p {
    margin: 0 0 12px 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
}

.dashboard-customizer-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    cursor: pointer !important;
}

.dashboard-customizer-option:hover {
    background: #f8fafc !important;
}

.dashboard-widget-hidden {
    display: none !important;
}

/* Roue crantée dashboard — visibilité forcée, sans toucher aux largeurs */
.office-under-hero-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    overflow: visible !important;
}

.office-dashboard-customize-btn,
button.office-dashboard-customize-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.10) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    z-index: 50 !important;
}

.office-dashboard-customize-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

.dashboard-customizer-panel {
    position: fixed !important;
    top: 92px !important;
    right: 22px !important;
    z-index: 999999 !important;
    width: 320px !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 80px rgba(15,23,42,.20) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: none !important;
}

.dashboard-customizer-panel.is-open {
    display: block !important;
}

.dashboard-customizer-panel h3 {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.dashboard-customizer-panel p {
    margin: 0 0 12px 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
}

.dashboard-customizer-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
}

.dashboard-customizer-option:hover {
    background: #f8fafc !important;
}

.dashboard-widget-hidden {
    display: none !important;
}

/* Roue crantée dashboard : visible à coup sûr */
button.office-dashboard-customize-btn,
.office-dashboard-customize-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    border: 1px solid rgba(15, 23, 42, .16) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #0f172a !important;

    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;

    box-shadow: 0 10px 26px rgba(15, 23, 42, .14) !important;
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* Secours : si la barre droite est trop petite ou masquée, la roue devient flottante */
button.office-dashboard-customize-btn.office-gear-floating {
    position: fixed !important;
    top: 96px !important;
    right: 24px !important;
    margin: 0 !important;
}

.dashboard-customizer-panel {
    z-index: 1000000 !important;
}

/* Hotfix roue crantée flottante visible, sans toucher au layout */
#office-dashboard-gear-hotfix-btn {
    position: fixed !important;
    top: 112px !important;
    right: 28px !important;
    z-index: 2147483647 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;

    border: 1px solid rgba(15, 23, 42, .18) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #0f172a !important;

    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;

    box-shadow: 0 14px 38px rgba(15, 23, 42, .22) !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

#office-dashboard-gear-hotfix-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

.office-dashboard-gear-hotfix-panel {
    position: fixed !important;
    top: 164px !important;
    right: 28px !important;
    z-index: 2147483647 !important;

    display: none !important;
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;

    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .25) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.office-dashboard-gear-hotfix-panel.is-open {
    display: block !important;
}

.office-dashboard-gear-hotfix-title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

.office-dashboard-gear-hotfix-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.office-dashboard-gear-hotfix-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    color: #0f172a !important;
    font-size: 14px !important;
}

.office-dashboard-gear-hotfix-option:hover {
    background: #f8fafc !important;
}

.dashboard-widget-hidden {
    display: none !important;
}

/* Roue crantée : à droite de la barre de recherche, fallback flottant seulement si nécessaire */
.office-under-hero-center {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

#office-dashboard-gear-hotfix-btn {
    z-index: 2147483647 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    border: 1px solid rgba(15, 23, 42, .18) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #0f172a !important;

    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;

    box-shadow: 0 10px 24px rgba(15, 23, 42, .14) !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

#office-dashboard-gear-hotfix-btn.office-dashboard-gear-inline {
    position: static !important;
    flex: 0 0 38px !important;
}

#office-dashboard-gear-hotfix-btn.office-dashboard-gear-floating {
    position: fixed !important;
    top: 112px !important;
    right: 28px !important;
}

#office-dashboard-gear-hotfix-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

/* Amélioration panneau personnalisation dashboard — sans toucher au layout */
.office-dashboard-gear-hotfix-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.office-dashboard-gear-hotfix-close {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.office-dashboard-gear-hotfix-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin: 10px 0 12px 0 !important;
}

.office-dashboard-gear-hotfix-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    padding: 8px 6px !important;
}

.office-dashboard-gear-hotfix-actions button:hover,
.office-dashboard-gear-hotfix-close:hover {
    background: #ffffff !important;
}

/* Sélecteur cession : largeur automatique, sans toucher au layout */
.office-under-hero-session-select {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.office-under-hero-left {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

/* =========================================================
   Sélecteur cession : vraie largeur auto
   Le select était probablement contraint par la grille parente.
========================================================= */

/* La barre : colonne gauche en auto, recherche prend le reste */
.office-under-hero-toolbar {
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    align-items: center !important;
}

/* Zone gauche : largeur du contenu uniquement */
.office-under-hero-left {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    justify-self: start !important;
}

/* Select : largeur réelle du texte uniquement */
.office-under-hero-left .office-under-hero-session-select,
select.office-under-hero-session-select {
    display: inline-block !important;
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    inline-size: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* La zone centrale peut absorber l'espace libéré */
.office-under-hero-center {
    min-width: 0 !important;
    width: auto !important;
}

.office-under-hero-search {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

/* Mobile : garde une mise en page respirable */
@media(max-width:760px) {
    .office-under-hero-toolbar {
        grid-template-columns: 1fr !important;
    }

    .office-under-hero-left,
    .office-under-hero-left .office-under-hero-session-select,
    select.office-under-hero-session-select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   Onglets modules sous la barre de recherche
   Ne touche pas aux largeurs générales du layout.
========================================================= */

.office-module-tabs-zone {
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.office-module-tabs-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.06) !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
}

.office-module-tab {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.office-module-tab:hover {
    background: rgba(248,250,252,.95) !important;
    color: #0f172a !important;
}

.office-module-tab.is-active {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15,23,42,.10) !important;
    box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
}

.office-module-tabs-config {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin-left: auto !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 17px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}

.office-module-tabs-panel {
    display: none !important;
    margin-top: 10px !important;
    padding: 14px !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.82) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.07) !important;
    box-sizing: border-box !important;
}

.office-module-tabs-panel.is-open {
    display: block !important;
}

.office-module-tabs-panel-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}

.office-module-tabs-panel-title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    color: #0f172a !important;
}

.office-module-tabs-panel-subtitle {
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.office-module-tabs-panel-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.office-module-tabs-panel-actions a,
.office-module-tabs-panel-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.office-module-tabs-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.office-module-tabs-summary-card {
    min-height: 86px !important;
    padding: 12px !important;
    border: 1px solid rgba(15,23,42,.07) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.05) !important;
    box-sizing: border-box !important;
}

.office-module-tabs-summary-label {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-bottom: 7px !important;
}

.office-module-tabs-summary-value {
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 950 !important;
}

.office-module-tabs-summary-note {
    margin-top: 5px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.office-module-tabs-config-panel {
    position: fixed !important;
    top: 156px !important;
    right: 28px !important;
    z-index: 2147483646 !important;
    display: none !important;
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
    padding: 16px !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 30px 90px rgba(15,23,42,.22) !important;
    box-sizing: border-box !important;
}

.office-module-tabs-config-panel.is-open {
    display: block !important;
}

.office-module-tabs-config-title {
    font-size: 16px !important;
    font-weight: 950 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

.office-module-tabs-config-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.office-module-tabs-config-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.office-module-tabs-config-option:hover {
    background: #f8fafc !important;
}

@media(max-width:1000px) {
    .office-module-tabs-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media(max-width:620px) {
    .office-module-tabs-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .office-module-tabs-panel-head {
        display: block !important;
    }

    .office-module-tabs-panel-actions {
        margin-top: 12px !important;
    }
}

/* =========================================================
   Onglets modules — vrai rendu onglets
   Remplace l'effet pastilles par une logique d'onglets attachés.
========================================================= */

.office-module-tabs-zone {
    margin-top: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* La zone haute devient une barre d'onglets, pas une carte */
.office-module-tabs-bar {
    display: flex !important;
    align-items: flex-end !important;
    gap: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 0 8px !important;
    min-height: 43px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(15,23,42,.13) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    box-sizing: border-box !important;
    scrollbar-width: thin !important;
}

/* Onglet inactif */
.office-module-tab {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    height: 40px !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    margin: 0 0 -1px 0 !important;

    border: 1px solid transparent !important;
    border-bottom: 1px solid rgba(15,23,42,.13) !important;
    border-radius: 14px 14px 0 0 !important;

    background: rgba(248,250,252,.62) !important;
    color: #64748b !important;

    font-size: 13px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;

    box-shadow: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease !important;
}

.office-module-tab:hover {
    background: rgba(255,255,255,.82) !important;
    color: #0f172a !important;
    border-color: rgba(15,23,42,.10) !important;
}

/* Onglet actif : attaché au panneau */
.office-module-tab.is-active {
    z-index: 3 !important;
    background: #ffffff !important;
    color: #0f172a !important;

    border-color: rgba(15,23,42,.13) !important;
    border-bottom-color: #ffffff !important;

    box-shadow: 0 -8px 18px rgba(15,23,42,.04) !important;
    transform: translateY(0) !important;
}

.office-module-tab span {
    font-size: 15px !important;
    line-height: 1 !important;
}

.office-module-tab strong {
    font-weight: 900 !important;
}

/* Bouton réglage des onglets, intégré au bout de la barre */
.office-module-tabs-config {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 0 3px auto !important;

    border: 1px solid rgba(15,23,42,.12) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.88) !important;
    color: #0f172a !important;

    font-size: 17px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}

.office-module-tabs-config:hover {
    background: #ffffff !important;
}

/* Le panneau vient se coller aux onglets */
.office-module-tabs-panel {
    display: none !important;

    margin-top: 0 !important;
    padding: 16px !important;

    border: 1px solid rgba(15,23,42,.13) !important;
    border-top: 0 !important;
    border-radius: 0 0 22px 22px !important;

    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.08) !important;
    box-sizing: border-box !important;
}

.office-module-tabs-panel.is-open {
    display: block !important;
}

/* Quand un panneau est ouvert, l'ensemble ressemble à un vrai composant à onglets */
.office-module-tabs-zone:has(.office-module-tabs-panel.is-open) .office-module-tabs-bar {
    border-bottom-color: rgba(15,23,42,.13) !important;
}

/* Si aucun onglet n'est ouvert, la barre reste légère */
.office-module-tabs-zone:not(:has(.office-module-tabs-panel.is-open)) .office-module-tabs-bar {
    margin-bottom: 2px !important;
}

/* Petit indicateur discret sur l'onglet actif */
.office-module-tab.is-active::after {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: -1px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #2563eb, #f97316) !important;
}

/* Mobile : onglets scrollables propres */
@media(max-width:760px) {
    .office-module-tabs-bar {
        padding: 0 4px !important;
    }

    .office-module-tab {
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .office-module-tabs-panel {
        padding: 13px !important;
        border-radius: 0 0 18px 18px !important;
    }
}

/* =========================================================
   Onglets modules — version plus visible
   Contraste plus fort, onglet actif évident, barre mieux dessinée.
========================================================= */

.office-module-tabs-zone {
    margin-top: 14px !important;
}

/* Socle visible derrière les onglets */
.office-module-tabs-bar {
    min-height: 52px !important;
    padding: 8px 10px 0 10px !important;

    border: 1px solid rgba(15,23,42,.12) !important;
    border-bottom: 1px solid rgba(15,23,42,.18) !important;
    border-radius: 18px 18px 0 0 !important;

    background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(226,232,240,.72)) !important;
    box-shadow: inset 0 -1px 0 rgba(15,23,42,.08), 0 12px 28px rgba(15,23,42,.06) !important;
}

/* Onglets inactifs plus lisibles */
.office-module-tab {
    height: 43px !important;
    min-height: 43px !important;
    padding: 0 17px !important;
    margin: 0 0 -1px 0 !important;

    border: 1px solid rgba(15,23,42,.12) !important;
    border-bottom-color: rgba(15,23,42,.18) !important;
    border-radius: 15px 15px 0 0 !important;

    background: rgba(241,245,249,.92) !important;
    color: #334155 !important;

    font-size: 13px !important;
    font-weight: 900 !important;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

.office-module-tab:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(37,99,235,.28) !important;
}

/* Onglet actif très net */
.office-module-tab.is-active {
    background: #ffffff !important;
    color: #0f172a !important;

    border-color: rgba(37,99,235,.38) !important;
    border-bottom-color: #ffffff !important;

    box-shadow:
        0 -1px 0 #ffffff,
        0 -10px 22px rgba(37,99,235,.10),
        0 0 0 1px rgba(37,99,235,.08) inset !important;
}

/* Trait coloré plus visible en haut de l'onglet actif */
.office-module-tab.is-active::before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: 0 !important;
    height: 3px !important;
    border-radius: 0 0 999px 999px !important;
    background: linear-gradient(90deg, #2563eb, #f97316) !important;
}

/* On retire l'ancien indicateur bas, moins lisible */
.office-module-tab.is-active::after {
    display: none !important;
}

/* Icône et texte plus visibles */
.office-module-tab span {
    font-size: 17px !important;
    filter: saturate(1.15) !important;
}

.office-module-tab strong {
    font-size: 13px !important;
    font-weight: 950 !important;
}

/* Bouton réglage des onglets plus identifiable */
.office-module-tabs-config {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 0 5px auto !important;

    border-color: rgba(37,99,235,.22) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 19px !important;

    box-shadow: 0 10px 24px rgba(15,23,42,.12) !important;
}

/* Panneau attaché plus net */
.office-module-tabs-panel {
    border: 1px solid rgba(15,23,42,.14) !important;
    border-top: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 46px rgba(15,23,42,.10) !important;
}

/* Mobile */
@media(max-width:760px) {
    .office-module-tabs-bar {
        min-height: 50px !important;
        padding: 7px 7px 0 7px !important;
    }

    .office-module-tab {
        height: 41px !important;
        min-height: 41px !important;
        padding: 0 14px !important;
    }
}

/* =========================================================
   Onglets modules — bords plus visibles
========================================================= */

.office-module-tabs-bar {
    border-color: rgba(15, 23, 42, .24) !important;
    border-bottom-color: rgba(15, 23, 42, .34) !important;
    box-shadow:
        inset 0 -1px 0 rgba(15, 23, 42, .18),
        0 12px 28px rgba(15, 23, 42, .07) !important;
}

.office-module-tab {
    border-color: rgba(15, 23, 42, .28) !important;
    border-bottom-color: rgba(15, 23, 42, .34) !important;
    background: rgba(241, 245, 249, .98) !important;
    color: #1e293b !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .90),
        0 -1px 0 rgba(15, 23, 42, .04) !important;
}

.office-module-tab:hover {
    border-color: rgba(37, 99, 235, .48) !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.office-module-tab.is-active {
    border-color: rgba(37, 99, 235, .58) !important;
    border-bottom-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow:
        0 -1px 0 #ffffff,
        0 -10px 22px rgba(37, 99, 235, .13),
        0 0 0 1px rgba(37, 99, 235, .14) inset !important;
}

.office-module-tabs-panel {
    border-color: rgba(15, 23, 42, .28) !important;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .12) !important;
}

.office-module-tabs-config {
    border-color: rgba(15, 23, 42, .30) !important;
}

/* Onglets modules : bord supérieur droit et gauche carrés */
.office-module-tabs-bar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* On garde les arrondis des onglets eux-mêmes */
.office-module-tab {
    border-radius: 15px 15px 0 0 !important;
}

/* Onglets modules : icônes seules pour gagner de la place */
.office-module-tab {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    padding: 0 !important;
    gap: 0 !important;
}

.office-module-tab strong {
    display: none !important;
}

.office-module-tab span {
    font-size: 20px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.office-module-tabs-bar {
    gap: 4px !important;
}

/* Icône active un peu plus lisible */
.office-module-tab.is-active span {
    transform: scale(1.08);
}

/* Mobile : encore plus compact */
@media(max-width:760px) {
    .office-module-tab {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
    }

    .office-module-tab span {
        font-size: 19px !important;
    }
}

/* =========================================================
   Onglets modules : ordre par boutons ↑ ↓, compatible mobile
   Pas de drag and drop. Pas de MutationObserver.
========================================================= */

.office-module-tabs-config-option {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    gap: 8px !important;
}

.office-module-tabs-order-btn {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;

    border: 1px solid rgba(15,23,42,.22) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0f172a !important;

    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.office-module-tabs-order-btn:hover {
    background: #f8fafc !important;
    border-color: rgba(37,99,235,.42) !important;
}

.office-module-tabs-order-btn:disabled {
    opacity: .32 !important;
    cursor: default !important;
}

.office-module-tabs-config-subtitle::after {
    content: " Utilise les flèches pour choisir l'ordre." !important;
}

/* On neutralise visuellement tout ancien comportement de drag éventuel */
.office-module-tab {
    cursor: pointer !important;
    user-select: auto !important;
}

.office-module-tab.is-dragging,
.office-module-tab.is-drag-over {
    opacity: 1 !important;
    transform: none !important;
    outline: none !important;
}

/* Module Cessions : icône légèrement plus visible dans les onglets */
.office-module-tab[data-module-tab="sessions"] span {
    filter: saturate(1.25) contrast(1.05) !important;
}

/* Onglet Cessions */
.office-module-tab[data-module-tab="sessions"] span {
    filter: saturate(1.25) contrast(1.08) !important;
}

/* Module Sessions + futurs modules : options propres dans le panneau des onglets */
.office-module-tabs-config-option[data-module-key="sessions"] {
    border: 1px solid rgba(37,99,235,.18) !important;
    background: rgba(239,246,255,.72) !important;
}

.office-module-tab[data-module-tab="sessions"] span {
    filter: saturate(1.25) contrast(1.08) !important;
}

/* Distinction visuelle légère */
.office-module-tab[data-module-tab="sessions"] {
    border-color: rgba(249, 115, 22, .45) !important;
}

.office-module-tab[data-module-tab="sessions"].is-active {
    border-color: rgba(249, 115, 22, .70) !important;
    box-shadow:
        0 -1px 0 #ffffff,
        0 -10px 22px rgba(249, 115, 22, .13),
        0 0 0 1px rgba(249, 115, 22, .14) inset !important;
}

.office-module-tab[data-module-tab="sessions"].is-active::before {
    background: linear-gradient(90deg, #f97316, #2563eb) !important;
}

.office-module-tabs-config-option[data-module-key="sessions"] {
    border: 1px solid rgba(249, 115, 22, .22) !important;
    background: rgba(255, 247, 237, .78) !important;
}

/* =========================================================
   Gestion des cessions V1
   Composants propres, sans dépendre du Dashboard
========================================================= */
.cession-admin-hero {
    margin-bottom: 16px;
}

.cession-admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,.76);
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15,23,42,.06);
}

.cession-admin-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: #475569;
    font-weight: 900;
    background: transparent;
    border: 1px solid transparent;
}

.cession-admin-tabs a:hover,
.cession-admin-tabs a.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(37,99,235,.18);
}

.cession-admin-tabs em {
    font-style: normal;
}

.office-page {
    display: grid;
    gap: 18px;
}

.office-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 26px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15,23,42,.06);
}

.office-page-header h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.05em;
}

.office-page-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 750;
}

.office-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15,23,42,.06);
}

.dashboard-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-card h3 {
    margin: 0 0 8px;
    letter-spacing: -.03em;
}

.dashboard-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 750;
}

.table-card {
    overflow: auto;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15,23,42,.06);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.table th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.table tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    font-weight: 900;
    border: 1px solid transparent;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    box-shadow: 0 14px 30px rgba(37,99,235,.20);
}

.btn-light {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

@media(max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .office-page-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media(max-width: 620px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .cession-admin-tabs a em {
        display: none;
    }
}


/* Module Suivi */
.office-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.office-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(255, 255, 255, .88);
    color: #0f172a;
    font-weight: 700;
}

.office-tabs a.active {
    background: var(--primary2, #2563eb);
    color: #fff;
    border-color: var(--primary2, #2563eb);
}

