@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #041e2e;
  --ink-soft: #526676;
  --navy: #041e2e;
  --navy-2: #00426e;
  --lime: #0098ff;
  --lime-deep: #007bcf;
  --blue: #0098ff;
  --green: #198c61;
  --amber: #dc8d17;
  --red: #d34e4e;
  --purple: #7667d8;
  --page: #f2f4f7;
  --surface: #ffffff;
  --line: #e2e8ed;
  --line-dark: #ced7df;
  --shadow: 0 5px 16px rgba(4, 30, 46, .07);
  --radius: 7px;
}

* { box-sizing: border-box; scroll-behavior: auto !important; }
button, a, input, select, textarea, .panel, .modal, .drawer, .stat-card, .nav-item svg, .notification-button svg { transition: color .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .14s ease, transform .14s ease; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: 'Inter', Arial, sans-serif; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, tr:focus-visible { outline: 3px solid rgba(47, 120, 221, .24); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }
[hidden] { display: none !important; }
.no-scroll { overflow: hidden; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-image { display: block; width: 124px; height: auto; }
.brand-app-name { align-self: flex-end; margin-bottom: 3px; padding-left: 10px; color: var(--navy-2); border-left: 1px solid #b5c3cc; font: 600 .72rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .18em; }
.brand--light { color: var(--ink); }

.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(430px, 52%) 1fr; min-height: 100vh; background: white; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px clamp(38px, 5vw, 78px); color: var(--ink); background: #fff; border-right: 1px solid #dfe5e9; }
.login-brand-panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(#00426e 0 50%, #0098ff 50%); }
.login-story { position: relative; z-index: 2; max-width: 600px; margin: auto 0; }
.eyebrow { margin: 0 0 15px; color: var(--blue); font: 600 .88rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--dark { color: #718094; }
.login-story h1 { margin: 0; font: 500 clamp(3.1rem, 5.6vw, 5.8rem)/.93 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.025em; }
.login-story h1 em { color: var(--blue); font-style: normal; }
.login-story > p:last-of-type { max-width: 500px; margin: 28px 0 0; color: #415c6e; font-size: 1rem; line-height: 1.7; }
.login-meta { position: relative; z-index: 2; margin: 0; color: var(--navy-2); font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: .84rem; font-weight: 600; letter-spacing: .18em; }
.blr-watermark { position: absolute; right: -35px; bottom: 6%; color: #f2f4f7; font: 700 clamp(10rem, 22vw, 24rem)/.7 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.08em; user-select: none; }
.floating-blr { position: absolute; z-index: 1; color: rgba(0, 66, 110, .08); font: 700 clamp(2.8rem, 7vw, 7rem)/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.06em; user-select: none; pointer-events: none; will-change: transform; }
.floating-blr--one { left: 7%; top: 16%; animation: blr-drift-one 17s ease-in-out infinite alternate; }
.floating-blr--two { right: 8%; top: 9%; color: rgba(0, 152, 255, .075); font-size: clamp(2rem, 5vw, 5rem); animation: blr-drift-two 21s ease-in-out infinite alternate; }
.floating-blr--three { left: 42%; bottom: 14%; font-size: clamp(2.4rem, 6vw, 6rem); animation: blr-drift-three 15s ease-in-out infinite alternate; }
.floating-blr--four { right: 27%; bottom: 38%; color: rgba(0, 152, 255, .065); font-size: clamp(1.8rem, 4vw, 4rem); animation: blr-drift-four 24s ease-in-out infinite alternate; }
.floating-blr--five { left: 20%; top: 39%; color: rgba(0,152,255,.055); font-size: clamp(1.5rem,3vw,3rem); animation: blr-drift-two 13s ease-in-out infinite alternate-reverse; }
.floating-blr--six { right: 5%; top: 53%; font-size: clamp(2.2rem,5vw,5rem); animation: blr-drift-one 19s ease-in-out infinite alternate-reverse; }
.floating-blr--seven { left: 57%; top: 24%; color: rgba(0,152,255,.07); font-size: clamp(1.7rem,3.5vw,3.5rem); animation: blr-drift-four 16s ease-in-out infinite alternate; }
.floating-blr--eight { left: 4%; bottom: 8%; font-size: clamp(2rem,4.5vw,4.5rem); animation: blr-drift-three 22s ease-in-out infinite alternate-reverse; }
.floating-blr--nine { right: 39%; top: 7%; color: rgba(0,152,255,.05); font-size: clamp(1.3rem,2.8vw,2.8rem); animation: blr-drift-one 14s ease-in-out infinite alternate; }
.floating-blr--ten { right: 16%; bottom: 6%; font-size: clamp(1.8rem,4vw,4rem); animation: blr-drift-two 18s ease-in-out infinite alternate; }
.golden-blr { position: fixed; left: -150px; top: var(--golden-top, 35vh); z-index: 12; padding: 6px 12px; color: #a96f00; background: linear-gradient(135deg,#fff2a8,#dca514 48%,#fff3a1); border: 1px solid #c08a0a; border-radius: 4px; box-shadow: 0 4px 16px rgba(176,125,0,.28); font: 800 2.3rem/1 'Barlow Condensed','Arial Narrow',sans-serif; letter-spacing: -.04em; cursor: pointer; will-change: transform; }
.golden-blr.is-active { animation: golden-blr-pass 3.6s linear forwards; }
.golden-blr[hidden] { display: none; }
@keyframes blr-drift-one { to { transform: translate3d(76px, -42px, 0) rotate(5deg); } }
@keyframes blr-drift-two { to { transform: translate3d(-68px, 64px, 0) rotate(-6deg); } }
@keyframes blr-drift-three { to { transform: translate3d(54px, -72px, 0) rotate(4deg); } }
@keyframes blr-drift-four { to { transform: translate3d(-56px, -49px, 0) rotate(-4deg); } }
@keyframes golden-blr-pass { from { transform: translate3d(0,0,0) rotate(-2deg); } to { transform: translate3d(calc(100vw + 300px),-25px,0) rotate(3deg); } }

.login-form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 36px; background: #f2f4f7; }
.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; margin-bottom: 50px; }
.role-pill { display: inline-flex; align-items: center; padding: 7px 11px; color: #00426e; background: #e8f5fe; border: 1px solid #b9e0fa; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.login-card h2 { margin: 22px 0 7px; font: 600 2.8rem/.95 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.02em; }
.login-intro { margin: 0 0 34px; color: var(--ink-soft); }
.login-card label, .form-grid label > span:first-child, .form-field > label { display: block; margin-bottom: 8px; color: #33445a; font-size: .84rem; font-weight: 700; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; }
.label-row label { margin: 0; }
.text-button { padding: 0; color: var(--blue); background: none; border: 0; font-size: .8rem; font-weight: 700; }
.input-shell { display: flex; align-items: center; min-height: 50px; padding: 0 14px; color: #8794a4; background: #f9fafb; border: 1px solid var(--line-dark); border-radius: 10px; transition: .2s; }
.input-shell:focus-within { color: var(--blue); background: white; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 120, 221, .08); }
.input-shell input { flex: 1; min-width: 0; padding: 0 11px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.input-action { flex: 0 0 auto; }
.form-error { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: .8rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; color: white; background: var(--blue); border: 0; border-radius: 4px; font-weight: 700; box-shadow: none; }
.primary-button:hover { background: #0087e3; }
.primary-button svg { width: 17px; }
.login-button { width: 100%; min-height: 52px; margin-top: 8px; background: var(--blue); }
.login-button span { margin-left: auto; font-size: 1.25rem; }
.demo-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 25px; padding: 14px 16px; background: #f6f8fa; border: 1px solid var(--line); border-radius: 10px; }
.demo-note__dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; background: var(--blue); border-radius: 50%; }
.demo-note p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.demo-note strong { color: var(--ink); }
.login-footer { position: absolute; bottom: 20px; display: flex; align-items: center; gap: 18px; }
.legal { margin: 0; color: #95a0ac; font-size: .72rem; }
.language-picker { display: inline-flex; align-items: center; gap: 8px; color: #718094; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.language-picker select { min-height: 32px; padding: 4px 24px 4px 8px; color: var(--ink); background: white; border: 1px solid var(--line-dark); border-radius: 4px; }
select.language-select { width: 54px; min-height: 32px; padding: 4px 8px; color: transparent; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 26px 18px; font-size: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
select.language-select.language-select--fr { background-image: linear-gradient(90deg, #002395 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666%); }
select.language-select.language-select--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'%3E%3Cpath fill='%23012169' d='M0 0h60v36H0z'/%3E%3Cpath stroke='%23fff' stroke-width='7' d='m0 0 60 36M60 0 0 36'/%3E%3Cpath stroke='%23C8102E' stroke-width='3.5' d='m0 0 60 36M60 0 0 36'/%3E%3Cpath stroke='%23fff' stroke-width='12' d='M30 0v36M0 18h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='7' d='M30 0v36M0 18h60'/%3E%3C/svg%3E"); }
.language-picker select.language-select option, select.language-select option { color: #17293a; background: #fff; font-size: .78rem; }
.language-picker--compact span { display: none; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; height: 100vh; padding: 25px 18px 18px; color: var(--ink); background: #fff; border-right: 1px solid #dbe2e7; }
.sidebar-brand { padding: 0 10px 24px; color: var(--ink); border-bottom: 1px solid #e1e7eb; }
.sidebar-brand .brand-image { width: 118px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding-top: 18px; }
.nav-heading { margin: 20px 11px 7px; color: #8393a0; font: 600 .73rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.nav-heading:first-child { margin-top: 0; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; margin: 3px 0; padding: 0 11px; color: #526675; background: transparent; border: 0; border-radius: 4px; text-align: left; font-size: .84rem; font-weight: 600; }
.nav-item svg { width: 18px; }
.nav-item:hover { color: var(--navy); background: #f2f6f9; }
.nav-item.is-active { color: var(--navy); background: #eaf6fd; }
.nav-item.is-active::before { content: ''; position: absolute; left: -18px; width: 4px; height: 29px; background: var(--blue); border-radius: 0; }
.nav-item.is-active svg, .nav-item.is-active .nav-icon-text { color: var(--blue); }
.nav-count { margin-left: auto; min-width: 24px; padding: 3px 7px; color: #526675; background: #edf1f4; border-radius: 999px; font-size: .66rem; text-align: center; }
.nav-count--alert { color: #fff; background: #bf4a4a; }
.status-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; }
.status-dot--good { background: #61cc91; box-shadow: 0 0 0 4px rgba(97,204,145,.1); }
.nav-icon-text { display: grid; place-items: center; width: 18px; height: 18px; font-size: 1rem; font-weight: 600; }
.sidebar-footer { padding-top: 14px; border-top: 1px solid #e1e7eb; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 5px; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; color: white; background: var(--navy-2); border-radius: 4px; font-size: .72rem; font-weight: 800; }
.user-mini > div { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.user-mini strong { color: var(--ink); font-size: .76rem; }
.user-mini small { color: #8294a4; font-size: .65rem; }
.user-mini .icon-button { color: #8193a1; }

.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 clamp(20px, 3vw, 42px); background: #fff; border-top: 3px solid var(--blue); border-bottom: 1px solid var(--line); }
.environment { display: flex; align-items: center; gap: 8px; color: #637184; font-size: .75rem; font-weight: 600; text-decoration: none; }
.environment > span { width: 7px; height: 7px; background: #37a66e; border-radius: 50%; }
.environment small { color: #9aa5b0; }
.environment.is-connected { color: #356b55; }
.environment.is-disconnected { color: #c93434; font-weight: 800; animation: traces-alert 1.2s step-end infinite !important; }
.environment.is-disconnected > span { background: #d83e3e; }
.environment.is-disconnected strong { text-decoration: underline; text-underline-offset: 3px; }
@keyframes traces-alert { 50% { opacity: .36; } }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.global-search { display: flex; align-items: center; width: clamp(220px, 25vw, 350px); height: 40px; padding: 0 11px; color: #8290a0; background: var(--page); border: 1px solid transparent; border-radius: 9px; }
.global-search:focus-within { background: white; border-color: #aebdcc; }
.global-search svg { width: 17px; }
.global-search input { flex: 1; min-width: 0; padding: 0 10px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .8rem; }
kbd { padding: 2px 6px; color: #8b98a7; background: white; border: 1px solid #dbe1e6; border-radius: 5px; box-shadow: 0 1px 1px #dbe1e6; font: 500 .67rem/1.4 inherit; }
.icon-button { display: grid; place-items: center; padding: 6px; color: inherit; background: transparent; border: 0; border-radius: 8px; }
.notification-button { position: relative; width: 38px; height: 38px; color: #677487; background: #f5f7f8; }
.notification-button span { position: absolute; right: -4px; top: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: white; background: var(--red); border: 2px solid white; border-radius: 10px; font-size: .58rem; font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-user > div { display: flex; flex-direction: column; }
.topbar-user strong { font-size: .76rem; }
.topbar-user small { color: #8a97a6; font-size: .65rem; }
.mobile-menu { display: none; font-size: 1.25rem; }

.content { padding: 36px clamp(20px, 3.2vw, 48px) 60px; }
.view { display: none; }
.view.is-active { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font: 600 clamp(2.1rem, 3vw, 3rem)/.98 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: #687789; font-size: .9rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.stat-card { position: relative; display: flex; align-items: center; min-height: 137px; padding: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 10px rgba(18,38,58,.025); }
.stat-card > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.stat-card span { color: #6d7989; font-size: .72rem; font-weight: 600; }
.stat-card strong { margin: 3px 0 2px; font: 600 2.15rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.stat-card small { color: #8a96a3; font-size: .66rem; white-space: nowrap; }
.stat-card small b { color: var(--green); }
.stat-card > button { position: absolute; right: 13px; top: 13px; color: #98a4b0; background: transparent; border: 0; font-size: 1.1rem; }
.stat-icon { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; margin-right: 13px; color: var(--navy); background: #edf1f4; border-radius: 12px; font-weight: 800; }
.stat-icon--amber { color: #9e6207; background: #fff4d9; }
.stat-icon--blue { color: #1a65bf; background: #e7f1ff; }
.stat-icon--green { color: #18764f; background: #e5f6ed; }
.stat-card--navy { color: white; background: linear-gradient(110deg, #041e2e, #00426e); border-color: transparent; }
.stat-card--navy::after { content: 'BLR'; position: absolute; right: -6px; bottom: -24px; color: rgba(255,255,255,.045); font: 700 6.3rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: -.08em; }
.stat-card--navy .stat-icon { color: var(--navy); background: var(--lime); }
.stat-card--navy span { color: #afbdc8; }
.stat-card--navy small { color: #92a5b4; }
.stat-card--navy > button { color: var(--lime); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, .75fr); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 17px rgba(18,38,58,.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; }
.panel-heading h2, .drawer-heading h2, .modal-heading h2 { margin: 0; font: 600 1.3rem/1.1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: 0; text-transform: uppercase; }
.panel-heading p { margin: 4px 0 0; color: #8995a3; font-size: .7rem; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 13px; color: #455468; background: white; border: 1px solid var(--line-dark); border-radius: 8px; font-size: .76rem; font-weight: 700; }
.outline-button:hover { color: var(--navy); background: #f7f9fa; border-color: #b8c4ce; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px 14px; border-bottom: 1px solid var(--line); }
.segmented { display: flex; padding: 3px; background: #f0f3f5; border-radius: 8px; }
.segmented button { min-height: 31px; padding: 0 11px; color: #7b8795; background: transparent; border: 0; border-radius: 6px; font-size: .7rem; font-weight: 700; }
.segmented button span { margin-left: 4px; opacity: .7; }
.segmented button.is-active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(20,40,60,.12); }
.table-search, .large-search { display: flex; align-items: center; color: #8491a0; border: 1px solid var(--line); border-radius: 8px; }
.table-search { width: 170px; height: 34px; padding: 0 9px; }
.table-search svg, .large-search svg { width: 15px; }
.table-search input, .large-search input { flex: 1; min-width: 0; padding: 0 8px; background: none; border: 0; outline: 0; font-size: .72rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 38px; padding: 0 13px; color: #8d99a6; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .63rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
td { height: 64px; padding: 8px 13px; color: #46566a; border-bottom: 1px solid #edf1f3; font-size: .72rem; vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: #fafcfd; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; color: #26374b; font-size: .73rem; }
td small { display: block; margin-top: 3px; color: #909ba7; font-size: .64rem; }
.reference-cell { display: flex; align-items: center; gap: 10px; }
.reference-mark { width: 4px; height: 28px; background: var(--blue); border-radius: 4px; }
.reference-mark.attention { background: var(--amber); }
.reference-mark.done { background: var(--green); }
.dossier-ched-list { display: flex; flex-wrap: wrap; gap: 4px 7px; min-width: 72px; }
.dossier-ched-number { color: #526474; font-size: .68rem; font-weight: 600; white-space: nowrap; }
.dossier-ched-number.is-listpl { color: #075f89; font-weight: 900; }
.dossier-ched-empty { color: #a0a9b2; }
.formalities-inline { display: flex; gap: 4px; }
.formal-dot { display: grid; place-items: center; width: 25px; height: 25px; color: #768392; background: #eef1f4; border-radius: 7px; font-size: .58rem; font-weight: 800; }
.formal-dot.good { color: #14704a; background: #e6f5ed; }
.formal-dot.bad { color: #a44b16; background: #fff0df; }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; color: #596778; background: #eef1f4; border-radius: 999px; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.status-badge::before { content: ''; width: 5px; height: 5px; margin-right: 6px; background: currentColor; border-radius: 50%; }
.status-badge--progress { color: #245fa1; background: #e8f1fc; }
.status-badge--attention { color: #9a5b0b; background: #fff2d8; }
.status-badge--done, .status-badge--success { color: #16714b; background: #e5f5ec; }
.row-button { display: grid; place-items: center; width: 29px; height: 29px; color: #82909e; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.row-button:hover { color: var(--navy); background: white; border-color: var(--line); }
.row-button svg { width: 15px; }
.empty-table { padding: 35px !important; color: #8794a1; text-align: center; }

.activity-panel { min-width: 0; }
.activity-panel .panel-heading { border-bottom: 1px solid var(--line); }
.activity-list { padding: 4px 21px 0; }
.activity-list article { position: relative; display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f3; }
.activity-list article:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 43px; width: 1px; height: 25px; background: #dfe5e9; }
.activity-icon { z-index: 1; display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; color: #687787; background: #edf1f4; border: 3px solid white; border-radius: 9px; font-size: .66rem; font-weight: 800; }
.activity-icon svg { width: 14px; }
.activity-icon--green { color: #16714b; background: #dff2e8; }
.activity-icon--blue { color: #235e9e; background: #e4eefb; }
.activity-icon--amber { color: #97570d; background: #fff0d0; }
.activity-icon--purple { color: #5949b6; background: #ece9fb; }
.activity-list strong { display: block; font-size: .72rem; }
.activity-list p { margin: 3px 0; color: #7f8b98; font-size: .66rem; }
.activity-list p b { color: #435267; font-weight: 700; }
.activity-list small { color: #a0a9b3; font-size: .6rem; }
.loading-message, .error-message { margin: 0; padding: 24px; color: #83909d; font-size: .76rem; text-align: center; }
.error-message { color: var(--red); }
.activity-more { width: 100%; min-height: 46px; color: var(--blue); background: transparent; border: 0; font-size: .7rem; font-weight: 700; }

.filter-toolbar { display: flex; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.large-search { flex: 1; min-height: 43px; padding: 0 12px; }
.large-search input { font-size: .82rem; }
.filter-toolbar select, .form-grid select { min-height: 43px; padding: 0 36px 0 12px; color: #526174; background: white; border: 1px solid var(--line-dark); border-radius: 9px; font-size: .78rem; }
.table-wrap--large { min-height: 430px; }
.traces-panel { overflow: hidden; }
.traces-toolbar { display: flex; align-items: center; gap: 24px; padding: 20px 22px 15px; }
.traces-search-block { flex: 1; min-width: 0; }
.traces-search-block small { display: block; margin: 7px 2px 0; color: #8b97a3; font-size: .65rem; }
.traces-toolbar-summary { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 5px; }
.traces-toolbar-summary strong { color: #263f52; font-size: .78rem; }
.traces-toolbar-summary span { color: #5c6d7c; font-size: .62rem; }
.traces-toolbar-summary i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #38a46d; border-radius: 50%; }
.traces-legend { display: flex; gap: 22px; padding: 10px 22px; color: #71808e; background: #fafbfc; border-top: 1px solid #edf1f4; border-bottom: 1px solid var(--line); font-size: .63rem; }
.traces-legend span { display: flex; align-items: center; gap: 7px; }
.traces-legend i { width: 18px; height: 10px; border-radius: 3px; }
.legend-linked { background: #e7f2f8; border: 1px solid #cbdfe9; }
.legend-palette { background: #f3e6d2; border: 1px solid #e5d1b1; }
.legend-current { background: #fff2dc; border: 1px solid #efd5ae; }
.traces-table-wrap { min-height: 500px; }
.traces-table { min-width: 1420px; table-layout: fixed; }
.traces-table th { height: 45px; color: #6e7e8d; background: #f7f9fa; font-size: .66rem; }
.traces-table td { height: 76px; padding-top: 12px; padding-bottom: 12px; font-size: .73rem; }
.traces-table th:nth-child(1) { width: 145px; }
.traces-table th:nth-child(2) { width: 92px; }
.traces-table th:nth-child(3) { width: 225px; }
.traces-table th:nth-child(4) { width: 115px; }
.traces-table th:nth-child(5) { width: 125px; }
.traces-table th:nth-child(6), .traces-table th:nth-child(7) { width: 190px; }
.traces-table th:nth-child(8) { width: 175px; }
.traces-table th:nth-child(9) { width: 145px; }
.traces-table th:nth-child(10) { width: 96px; }
.traces-table tbody tr { cursor: default; transition: none; }
.traces-table tbody tr.traces-grouped td:not(.internal-ref-cell) { background: #f5faff; }
.traces-table tbody tr.is-palette td:not(.internal-ref-cell) { background: #f3e6d2; }
.traces-table tbody tr.traces-group-start td { border-top: 2px solid #b9c9d5; }
.internal-ref-cell { vertical-align: top; background: #e7f2f8 !important; border-right: 1px solid #cbdfe9; }
.internal-ref-cell strong { display: block; color: #173d56; font-size: .76rem; overflow-wrap: anywhere; }
.internal-ref-cell small { display: inline-flex; margin-top: 8px; padding: 5px 8px; color: #075f89; background: #d5eaf4; border: 1px solid #b8d9e8; border-radius: 999px; font-size: .61rem; font-weight: 900; }
.traces-port { display: inline-flex; padding: 5px 7px; color: #264a62; background: #edf3f6; border-radius: 4px; font-size: .68rem; font-weight: 800; overflow-wrap: anywhere; }
.traces-reference { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.traces-reference strong { color: #082e45; font-size: .78rem; overflow-wrap: anywhere; }
.palette-tag { display: inline-flex; width: max-content; padding: 3px 6px; color: #5949b6; background: #ece9fb; border: 1px solid #d9d3f5; border-radius: 4px; font-size: .55rem; font-weight: 800; letter-spacing: .04em; }
.traces-status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 6px 9px; border-radius: 5px; font-size: .65rem; font-weight: 800; overflow-wrap: anywhere; }
.traces-status.status-draft              { color:#007080; background:#e7f4f5; border:1px solid #b7dfe2; }
.traces-status.status-new                { color:#008080; background:#e6f5f5; border:1px solid #b5dddd; }
.traces-status.status-progress           { color:#a85b00; background:#fff2dc; border:1px solid #efd5ae; }
.traces-status.status-rejected           { color:#e00000; background:#ffe9e9; border:1px solid #f4bcbc; }
.traces-status.status-validated          { color:#00a000; background:#eaffea; border:1px solid #b7e6b7; }
.traces-status.status-split              { color:#00a000; background:#edffed; border:1px solid #bde8bd; }
.traces-status.status-deleted            { color:#999999; background:#f2f2f2; border:1px solid #dddddd; }
.traces-status.status-cancelled          { color:#e6a000; background:#fff6df; border:1px solid #f2deb0; }
.traces-status.status-replaced           { color:#a66a00; background:#faf4ea; border:1px solid #e8dcc9; }
.traces-status.status-partially-rejected { color:#9a8700; background:#fffbe5; border:1px solid #e8dfae; }
.traces-status.status-unknown            { color:#667586; background:#eef1f4; border:1px solid #d9e0e5; }
.traces-date { display: flex; flex-direction: column; color: #526174; font-variant-numeric: tabular-nums; }
.traces-date strong { color: #405467; font-size: .7rem; }
.traces-date small { margin-top: 3px; color: #8a96a1; font-size: .65rem; }
.traces-party { display: flex; min-width: 0; flex-direction: column; }
.traces-party strong { display: -webkit-box; overflow: hidden; color: #33495b; font-size: .71rem; font-weight: 650; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.traces-party small { margin-top: 5px; color: #9aa4ae; font-size: .55rem; letter-spacing: .08em; }
.traces-clone { display: block; overflow: hidden; color: #6a5a42; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.sync-state { display: flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 700; }
.sync-state::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; background: #9da7b1; border-radius: 50%; }
.sync-state--current { color: #16714b; }
.sync-state--current::before { background: #3aa56f; }
.sync-state--check { color: #9a5b0b; }
.sync-state--check::before { background: #dc8d17; }
.download-ched-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; color: #075f89; background: #eef8fd; border: 1px solid #b8dceb; border-radius: 7px; font-size: .62rem; font-weight: 800; cursor: pointer; }
.download-ched-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.download-ched-button:hover { background: #e2f3fb; border-color: #8dc9df; }
.download-ched-button:disabled { color: #7b8892; background: #f1f3f5; border-color: #d9dfe4; cursor: wait; }
.download-ched-button.is-loading { min-width: 88px; font-size: .56rem; }
.sync-date { display: block; margin-top: 4px; color: #9aa4ae; font-size: .59rem; font-variant-numeric: tabular-nums; }

/* TRACES NT — présentation inspirée de l'outil métier, avec nos données actuelles. */
.traces-panel { padding: 14px; background: #253f4e; border: 0; border-radius: 3px; box-shadow: none; }
.traces-toolbar { min-height: 66px; margin-bottom: 14px; padding: 13px 15px; color: #101820; background: #fff; border-radius: 2px; }
.traces-search-block { display: grid; grid-template-columns: auto minmax(300px, 1fr); align-items: center; gap: 7px 13px; }
.traces-search-label { color: #172129; font-size: .7rem; font-weight: 800; }
.traces-search-block .large-search { min-height: 34px; color: #68808d; background: #fff; border: 1px solid #bfc9cf; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(4,30,46,.06); }
.traces-search-block .large-search svg { width: 14px; }
.traces-search-block .large-search input { font-size: .7rem; }
.traces-search-block small { grid-column: 2; margin: 0 2px !important; color: #8a959d; font-size: .58rem; }
.traces-toolbar-summary { align-self: stretch; justify-content: center; padding-left: 16px; border-left: 1px solid #dde3e7; }
.traces-toolbar-summary strong { color: #152e3d; font-size: .7rem; }
.traces-toolbar-summary span { color: #697983; font-size: .58rem; }
.traces-legend { margin: 0; padding: 8px 11px; color: #d9e4e9; background: #344f5e; border: 0; font-size: .6rem; }
.traces-table-wrap { min-height: 510px; background: #fff; border: 0; }
.traces-table { min-width: 1390px; border-collapse: separate; border-spacing: 0; font-family: Arial, sans-serif; }
.traces-table th { height: 50px; padding: 8px 9px; color: #fff; background: #58717e; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 3px solid #2f566a; font-size: .61rem; font-weight: 700; line-height: 1.2; text-transform: none; vertical-align: bottom; }
.traces-table th:nth-child(5) { color: #fff100; }
.traces-table td { height: 60px; padding: 8px 9px; color: #111b21; background: #fff; border-right: 1px solid #e0e4e6; border-bottom: 1px solid #cfd5d8; font-size: .68rem; line-height: 1.35; vertical-align: top; }
.traces-table tbody tr:nth-child(even) td { background: #f4f4f4; }
.traces-table tbody tr:hover td { background: #eef6fa; }
.traces-table tbody tr.traces-grouped td:not(.internal-ref-cell) { background: #eef7fb; }
.traces-table tbody tr.traces-grouped:nth-child(even) td:not(.internal-ref-cell) { background: #e7f2f7; }
.traces-table tbody tr.is-palette td:not(.internal-ref-cell) { background: #f4ead8; opacity: .88; }
.traces-table tbody tr.is-palette:hover td:not(.internal-ref-cell) { background: #efe0c6; }
.traces-table tbody tr.traces-group-start td { border-top: 3px solid #7195a7; }
.traces-table tbody tr.traces-group-end td { border-bottom: 3px solid #7195a7; }
.traces-table tbody tr.traces-group-start .internal-ref-cell { border-top: 3px solid #7195a7; border-bottom: 3px solid #7195a7; }
.internal-ref-cell { padding-top: 10px !important; background: #dcecf3 !important; border-right: 2px solid #9dbbc9 !important; text-align: center; vertical-align: middle !important; }
.internal-ref-cell strong, .internal-ref-cell small { display: block; }
.internal-ref-cell strong { color: #005d91; font-size: .68rem; }
.internal-ref-cell small { margin-top: 6px; padding: 3px 6px; color: #075f89; background: #c9e5f1; border: 1px solid #9fcbdc; border-radius: 2px; font-size: .55rem; }
.traces-port { padding: 2px 0; color: #172e3c; background: transparent; border-radius: 0; font-size: .62rem; }
.traces-port--conflict { padding: 3px 6px; color: #c62828; background: #fff0f0; border: 1px solid #efbcbc; border-radius: 3px; }
.tableau-lo-view { min-height: calc(100vh - 72px); }
.traces-reference { position: relative; padding-left: 12px; }
.traces-reference::before { content: ''; position: absolute; left: 0; top: 2px; width: 7px; height: 11px; background: #006ca5; clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%); }
.traces-reference strong, .traces-reference-link { color: #00659a; font-size: .69rem; font-weight: 800; text-decoration: none; }
.traces-reference-link:hover { color: #003f62; text-decoration: underline; }
.palette-tag { padding: 2px 5px; color: #563f9e; background: #ece7fb; border-color: #cdc2ed; border-radius: 2px; font-size: .5rem; }
.traces-status { padding: 2px 5px; border-radius: 2px; font-size: .57rem; font-weight: 700; }
.traces-date strong, .traces-party strong { color: #111b21; font-size: .63rem; font-weight: 500; }
.traces-date small { color: #4b5c65; font-size: .58rem; }
.traces-party strong { -webkit-line-clamp: 3; }
.traces-party small { margin-top: 3px; color: #81909a; font-size: .48rem; }
.traces-clone { color: #694f29; font-size: .59rem; white-space: normal; overflow-wrap: anywhere; }
.traces-clone-cell { display: flex; align-items: flex-start; gap: 7px; }
.traces-clone-cell .traces-clone { flex: 1 1 auto; text-decoration: none; }
.traces-clone-cell .traces-clone:hover { text-decoration: underline; }
.download-ched-button--clone { flex: 0 0 auto; min-height: 23px; padding: 0 5px; }
.download-ched-button--clone svg { width: 11px; height: 11px; }
.sync-state { font-size: .57rem; }
.sync-state::before { width: 5px; height: 5px; }
.sync-date { margin-top: 3px; color: #697982; font-size: .52rem; }
.download-ched-button { min-height: 27px; padding: 0 7px; color: #23566f; background: #f7f9fa; border-color: #bdc8ce; border-radius: 3px; font-size: .55rem; }
.download-ched-button:hover { background: #e8f3f8; border-color: #7daabb; }
.traces-bedrock { color: #d4e0e5; }
.parking-panel { overflow: hidden; }
.parking-toolbar { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.parking-summary { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.parking-summary strong { color: #33445a; font-size: .74rem; }
.parking-live-state { display: inline-flex; align-items: center; gap: 6px; color: #7d8996; font-size: .67rem; font-weight: 700; }
.parking-live-state::before { content: ''; width: 7px; height: 7px; background: #9da7b1; border-radius: 50%; }
.parking-live-state.is-live { color: #16714b; }
.parking-live-state.is-live::before { background: #3aa56f; }
.parking-live-state.is-stale { color: #9a5b0b; }
.parking-live-state.is-stale::before { background: #dc8d17; }
.parking-alert { padding: 11px 20px; color: #84540b; background: #fff5df; border-bottom: 1px solid #f0ddb2; font-size: .72rem; }
.parking-table-wrap { min-height: 500px; }
.parking-table { min-width: 1120px; table-layout: fixed; }
.parking-table th:nth-child(1) { width: 135px; }
.parking-table th:nth-child(2) { width: 175px; }
.parking-table th:nth-child(3) { width: 70px; }
.parking-table th:nth-child(4) { width: 140px; }
.parking-table th:nth-child(5) { width: 245px; }
.parking-table th:nth-child(6) { width: 145px; }
.parking-table th:nth-child(7) { width: 130px; }
.parking-table th:nth-child(8) { width: 110px; }
.parking-table tbody tr { cursor: default; transition: none; }
.parking-table tbody tr.parking-row-linked { cursor: pointer; }
.parking-table tbody tr.parking-row-linked:hover td { background: #f3f8fb; }
.parking-reference { color: #075f89; font-size: .7rem; font-weight: 850; overflow-wrap: anywhere; }
.parking-truck { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.parking-truck strong { color: #263f52; font-size: .76rem; }
.parking-truck span { color: #9aa6af; font-weight: 700; }
.parking-place { display: inline-flex; min-width: 35px; justify-content: center; padding: 5px 7px; color: #285f98; background: #eaf2fb; border: 1px solid #d3e4f6; border-radius: 4px; font-weight: 800; }
.parking-company strong, .parking-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parking-date, .parking-last-seen { color: #596879; font-size: .67rem; font-variant-numeric: tabular-nums; }
.parking-state { display: inline-flex; max-width: 100%; padding: 4px 7px; overflow: hidden; color: #667586; background: #eef1f4; border: 1px solid #d9e0e5; border-radius: 3px; font-size: .61rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.parking-state--success { color: #16714b; background: #eaffea; border-color: #b7e6b7; }
.parking-state--progress { color: #a85b00; background: #fff2dc; border-color: #efd5ae; }
.parking-state--attention { color: #9a8700; background: #fffbe5; border-color: #e8dfae; }
.parking-state--danger { color: #e00000; background: #ffe9e9; border-color: #f4bcbc; }
.parking-sivep { display: flex; flex-direction: column; gap: 7px; }
.parking-sivep-state { color: #6d7b89; font-size: .61rem; }
.parking-ched-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.parking-ched { display: block; color: #526474; font-size: .66rem; font-weight: 500; overflow-wrap: anywhere; }
.parking-ched.is-current { color: #075f89; font-weight: 900; }
.parking-ched-empty { color: #8b97a1; font-size: .65rem; }
.parking-order { color: #304e63; font-size: .69rem; font-weight: 800; }
.parking-order.is-empty { color: #909ba5; font-size: .63rem; font-weight: 600; }
.customs-panel { overflow: hidden; }
.customs-search-form { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(320px, 1.25fr) auto; align-items: end; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.customs-search-form label { color: #3f5065; font-size: .72rem; font-weight: 800; }
.customs-search-form p { margin: 5px 0 0; color: #84909c; font-size: .67rem; }
.customs-search-input { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 0 13px; background: #fbfcfd; border: 1px solid var(--line-dark); border-radius: 9px; }
.customs-search-input:focus-within { border-color: #78b5d0; box-shadow: 0 0 0 3px rgba(7,95,137,.08); }
.customs-search-input svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: #728293; stroke-width: 1.8; }
.customs-search-input input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; font-size: .77rem; }
.customs-search-error { min-height: 0; margin: 0; padding: 0 24px; color: var(--red); font-size: .7rem; }
.customs-search-error:not(:empty) { padding-top: 12px; }
.customs-barcode-empty { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; padding: 45px; text-align: center; }
.customs-barcode-empty h2 { margin: 0; font: 600 1.4rem 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.customs-barcode-empty p { margin: 7px 0 0; color: #7e8b98; font-size: .77rem; }
.customs-current-state { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.customs-current-state > div { min-height: 95px; padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customs-current-state span { display: block; margin-bottom: 8px; color: #8b97a2; font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.customs-current-state strong { color: #203b50; font-size: .78rem; overflow-wrap: anywhere; }
.customs-status { display: inline-flex; padding: 5px 8px; border: 1px solid #d9e0e5; border-radius: 5px; font-size: .63rem; font-style: normal; }
.customs-status.is-released { color: #16714b; background: #eaffea; border-color: #b7e6b7; }
.customs-status.is-rejected { color: #d50000; background: #ffe9e9; border-color: #f4bcbc; }
.customs-status.is-pending { color: #9a5b0b; background: #fff2dc; border-color: #efd5ae; }
.customs-status.is-neutral { color: #526474; background: #eef2f5; }
.customs-related-cheds { border-bottom: 1px solid var(--line); }
.customs-ched-list { padding: 0 24px 18px; }
.customs-ched-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid #edf1f4; }
.customs-ched-item:first-child { border-top: 0; }
.customs-ched-item div { min-width: 0; }
.customs-ched-item strong { display: block; color: #263f52; font-size: .74rem; overflow-wrap: anywhere; }
.customs-ched-item small { display: block; margin-top: 3px; color: #8a96a1; font-size: .63rem; }
.customs-history .panel-heading { border-bottom: 1px solid var(--line); }
.customs-history-list { padding: 8px 24px 26px; }
.customs-history-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #edf1f4; }
.customs-history-item > span { width: 9px; height: 9px; margin-top: 4px; background: #a9b4bd; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px #d8e0e5; }
.customs-history-item.is-current > span { background: #2388b2; box-shadow: 0 0 0 2px #b9dce9; }
.customs-history-item div { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.customs-history-item strong { color: #33495b; font-size: .73rem; }
.customs-history-item small, .customs-history-empty { color: #8a96a1; font-size: .64rem; }
.customs-history-item time { color: #687889; font-size: .67rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customs-history-main .customs-status { margin-bottom: 2px; }
.users-panel { overflow: hidden; }
.users-panel .panel-heading { border-bottom: 1px solid var(--line); }
.user-card { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 22px; padding: 24px; border-bottom: 1px solid var(--line); }
.avatar--large { width: 48px; height: 48px; border-radius: 13px; font-size: .88rem; }
.user-card__identity { display: flex; flex-direction: column; }
.user-card__identity strong { font: 600 1.05rem 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.user-card__identity span { color: #7d8997; font-size: .76rem; }
.role-badge { padding: 6px 10px; color: #244c75; background: #eaf2fb; border-radius: 7px; font-size: .68rem; font-weight: 700; }
.active-state { color: #50705f; font-size: .7rem; font-weight: 700; }
.active-state i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #3aa56f; border-radius: 50%; }
.active-state.is-inactive { color: #9a5b0b; }
.active-state.is-inactive i { background: #dc8d17; }
.admin-panel { overflow: hidden; }
.admin-panel .panel-heading { border-bottom: 1px solid var(--line); }
.admin-list-row { display: grid; grid-template-columns: 38px minmax(155px, 1.15fr) auto minmax(0, .8fr) minmax(145px, .9fr) auto auto; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #edf1f4; }
.admin-list-row > * { min-width: 0; }
.admin-list-row .avatar { width: 36px; height: 36px; }
.admin-list-row .role-badge, .admin-list-row .active-state { white-space: nowrap; }
.admin-list-row .directory-actions { flex-wrap: nowrap; white-space: nowrap; }
.admin-list-main, .admin-relations { display: flex; min-width: 0; flex-direction: column; }
.admin-list-main strong { color: #263f52; font-size: .78rem; }
.admin-list-main small, .admin-relations small { overflow: hidden; color: #84909c; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-relations { gap: 4px; }
.directory-row { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(220px, 1fr) auto auto; align-items: center; gap: 18px; min-height: 61px; padding: 12px 22px; border-bottom: 1px solid #edf1f4; }
.directory-row.is-inactive { opacity: .58; }
.directory-row strong { color: #075f89; font-size: .75rem; }
.directory-row span { color: #33495b; font-size: .73rem; }
.directory-row small { color: #60806f; font-size: .61rem; font-weight: 800; }
.directory-actions { display: flex; gap: 7px; justify-content: flex-end; }
.directory-actions .outline-button, .danger-button { min-height: 31px; padding: 0 9px; font-size: .61rem; }
.danger-button { color: #b43333; background: #fff; border: 1px solid #edcaca; border-radius: 4px; font-weight: 700; }
.danger-button:hover { background: #fff0f0; }
.client-links { padding: 15px; background: #f7f9fa; border: 1px solid #e2e8ed; border-radius: 8px; }
.relation-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.relation-columns > section { min-width: 0; }
.form-grid input.relation-search { min-height: 36px; margin: 5px 0 7px; padding: 7px 10px; font-size: .7rem; }
.relation-picker { display: flex; max-height: 205px; margin: 0; overflow-y: auto; flex-direction: column; gap: 5px; }
.relation-picker label { display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; border: 1px solid #dce4ea; border-radius: 6px; font-size: .67rem; }
.form-grid .relation-picker input[type="checkbox"] { flex: 0 0 13px; width: 13px; min-width: 13px; height: 13px; min-height: 13px; margin: 0; padding: 0; border-radius: 3px; }
.relation-picker strong { margin-right: 4px; color: #075f89; }
.relation-picker label.is-filtered-out { display: none; }
.account-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 12px; background: #f7fafc; border: 1px solid var(--line); border-radius: 8px; }
.account-permissions > p { grid-column: 1 / -1; margin: 0; color: #6f7f90; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.account-permissions > label { display: flex; min-width: 0; min-height: 54px; padding: 8px 9px; align-items: flex-start; gap: 8px; overflow: hidden; background: #fff; border: 1px solid #d8e1e8; border-radius: 6px; cursor: pointer; }
.form-grid .account-permissions input[type="checkbox"] { flex: 0 0 14px; width: 14px; min-width: 14px; height: 14px; min-height: 14px; margin: 2px 0 0; padding: 0; border-radius: 3px; }
.account-permissions > label > span { display: flex; min-width: 0; margin: 0; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.account-permissions label > span { display: flex; flex-direction: column; gap: 3px; }
.account-permissions strong { color: #17364a; font-size: .68rem; }
.account-permissions small { color: #718091; font-size: .61rem; font-weight: 500; line-height: 1.35; }
.account-permissions [hidden] { display: none !important; }
.account-permission-tags { display: flex; max-width: 190px; flex-wrap: wrap; gap: 4px; }
.account-permission-tags span { padding: 3px 5px; color: #0a5e7b; background: #e8f5f9; border: 1px solid #bcdde8; border-radius: 4px; font-size: .52rem; font-weight: 800; }
.account-permission-tags span.is-danger { color: #9a2727; background: #fff0f0; border-color: #efc2c2; }
.modal--wide { width: min(94vw, 880px); }
.info-banner { display: flex; gap: 12px; margin: 22px; padding: 16px; color: #596c7f; background: #f0f6fb; border: 1px solid #d9e7f2; border-radius: 10px; }
.info-banner > span { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; color: white; background: #4e87ba; border-radius: 50%; font: 700 .72rem serif; }
.info-banner p { margin: 0; font-size: .76rem; }
.empty-state { display: flex; min-height: 440px; flex-direction: column; align-items: center; justify-content: center; padding: 50px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; color: #5c7285; background: #edf2f5; border-radius: 19px; }
.empty-icon svg { width: 27px; height: 27px; }
.empty-state h2 { margin: 0; font: 600 1.55rem 'Barlow Condensed', 'Arial Narrow', sans-serif; }
.empty-state p { max-width: 500px; margin: 8px 0 22px; color: #778594; font-size: .84rem; }

.overlay { position: fixed; inset: 0; z-index: 40; visibility: hidden; background: rgba(4, 30, 46, .42); opacity: 0; }
.overlay.is-visible { visibility: visible; opacity: 1; }
.notification-drawer, .detail-drawer { position: fixed; right: 0; top: 0; z-index: 50; visibility: hidden; width: min(92vw, 430px); height: 100vh; overflow-y: auto; background: white; box-shadow: -12px 0 30px rgba(4,30,46,.16); opacity: 0; transform: translateX(100%); }
.detail-drawer { width: min(96vw, 680px); }
.notification-drawer.is-visible, .detail-drawer.is-visible { visibility: visible; opacity: 1; transform: translateX(0); }
.drawer-heading, .modal-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 25px 20px; border-bottom: 1px solid var(--line); }
.drawer-heading .eyebrow, .modal-heading .eyebrow { margin-bottom: 7px; }
.drawer-heading h2, .modal-heading h2 { font-size: 1.35rem; }
.drawer-close { color: #718092; background: #f3f6f8; }
.drawer-actions { display: flex; justify-content: space-between; padding: 14px 25px; color: #778495; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .74rem; }
.notification-list article { position: relative; display: flex; gap: 12px; padding: 20px 25px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-list article > i { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; background: #ccd4db; border-radius: 50%; }
.notification-list article.is-unread { background: #f8fbfd; }
.notification-list article.is-unread > i { background: var(--blue); box-shadow: 0 0 0 4px rgba(47,120,221,.1); }
.notification-list strong { font-size: .8rem; }
.notification-list p { margin: 5px 0; color: #697789; font-size: .75rem; }
.notification-list small { color: #9aa4ae; font-size: .68rem; }
.detail-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 25px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.detail-status > span:last-child { color: #919ca7; font-size: .69rem; }
.detail-section { padding: 23px 25px; border-bottom: 1px solid var(--line); }
.detail-overview-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(250px, .95fr); border-bottom: 1px solid var(--line); }
.detail-overview-grid:has(.detail-section--note-column[hidden]) { grid-template-columns: 1fr; }
.detail-overview-grid .detail-section { min-width: 0; border-bottom: 0; }
.detail-overview-grid .detail-section:first-child { border-right: 1px solid var(--line); }
.detail-section--note-column { display: flex; flex-direction: column; }
.detail-section h3 { margin: 0 0 16px; color: #667586; font: 600 .82rem 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.detail-section dl { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 0; }
.detail-section dl div { padding: 13px; background: #f7f9fa; border-radius: 9px; }
.detail-section dt { color: #8895a2; font-size: .66rem; }
.detail-section dd { margin: 4px 0 0; font-size: .78rem; font-weight: 700; }
.detail-data-list { display: flex; flex-direction: column; gap: 0; }
.detail-data-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.detail-data-row:last-child { border-bottom: 0; }
.detail-data-row > div { min-width: 0; }
.detail-data-row strong { display: block; color: #263f52; font-size: .73rem; overflow-wrap: anywhere; }
.detail-data-row small { display: block; margin-top: 4px; color: #8995a2; font-size: .64rem; }
.detail-data-row__end { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; }
.detail-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-summary-grid > div { padding: 12px; background: #f7f9fa; border-radius: 8px; }
.detail-summary-grid span { display: block; margin-bottom: 5px; color: #8895a2; font-size: .62rem; text-transform: uppercase; }
.detail-summary-grid strong { color: #263f52; font-size: .73rem; overflow-wrap: anywhere; }
.detail-summary-grid__wide { grid-column: 1 / -1; }
.detail-summary-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 0 12px; border-bottom: 1px solid #edf1f4; }
.detail-summary-line strong { color: #263f52; font-size: .76rem; }
.detail-summary-line small { color: #8995a2; font-size: .64rem; text-align: right; }
.detail-empty, .detail-note { margin: 0; color: #7e8b98; font-size: .73rem; }
.detail-note { padding: 13px; background: #f7f9fa; border-radius: 8px; white-space: pre-wrap; }
.detail-note-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.detail-note-heading h3 { margin: 0; }
.detail-note-heading small { color: #83909c; font-size: .61rem; font-weight: 600; }
.detail-note { display: block; width: 100%; min-height: 92px; resize: vertical; color: var(--ink); border: 1px solid var(--line-dark); outline: 0; font: inherit; line-height: 1.5; }
.detail-note:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,120,221,.08); }
.detail-note-state { display: block; min-height: 16px; margin-top: 6px; color: #667586; font-size: .65rem; }

#editUserModal .relation-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); align-content: start; gap: 4px; }
#editUserModal .relation-picker label { min-width: 0; padding: 5px 6px; gap: 5px; font-size: .61rem; line-height: 1.15; }
#editUserModal .relation-picker input { flex: 0 0 auto; width: 12px; height: 12px; min-height: 12px; margin: 0; }
#editUserModal .relation-picker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline article { position: relative; display: flex; gap: 13px; min-height: 53px; }
.timeline article:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 23px; width: 1px; height: 30px; background: #dce3e8; }
.timeline i { z-index: 1; display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; background: #e5e9ed; border: 5px solid white; border-radius: 50%; font-size: .6rem; font-style: normal; }
.timeline .is-done i { color: white; background: var(--green); border-width: 0; }
.timeline .is-current i { background: var(--lime-deep); box-shadow: inset 0 0 0 6px white, 0 0 0 1px var(--lime-deep); }
.timeline strong { display: block; font-size: .76rem; }
.timeline small { color: #8a96a2; font-size: .67rem; }
.formalities { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-status { display: flex; flex-direction: column; min-width: 110px; padding: 10px 12px; color: #8995a1; background: #f2f4f6; border-radius: 8px; font-size: .6rem; text-transform: uppercase; }
.mini-status b { margin-top: 2px; color: #5f6d7c; font-size: .7rem; text-transform: none; }
.mini-status--success { color: #4f8069; background: #e9f6ef; }
.mini-status--success b { color: #176f4a; }
.mini-status--progress { color: #507298; background: #eaf2fb; }
.mini-status--progress b { color: #285f98; }
.drawer-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 25px; background: #fff; border-top: 1px solid var(--line); }
.detail-drawer-actions { align-items: center; flex-wrap: wrap; }
.detail-drawer-actions__spacer { flex: 1 1 auto; }
.dossier-archive-button { color: #8a5b10; border-color: #dfc38f; }

.modal { position: fixed; left: 50%; top: 50%; z-index: 60; visibility: hidden; width: min(92vw, 730px); max-height: 92vh; overflow-x: hidden; overflow-y: auto; background: white; border-radius: 7px; box-shadow: 0 20px 50px rgba(4,30,46,.24); opacity: 0; transform: translate(-50%, -50%); }
.modal.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 26px; }
.form-grid label, .form-field { min-width: 0; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-dark); border-radius: 9px; outline: 0; font-size: .8rem; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { background: white; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,120,221,.08); }
.form-grid__wide { grid-column: 1 / -1; }
.autocomplete-field { position: relative; display: block; margin: 0 !important; }
.autocomplete-menu { position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 80; display: none; max-height: 220px; margin: 0 !important; overflow-y: auto; background: white; border: 1px solid var(--line-dark); border-radius: 7px; box-shadow: 0 10px 24px rgba(4,30,46,.14); }
.autocomplete-menu.is-visible { display: block; }
.autocomplete-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 43px; padding: 9px 12px; color: #33445a; background: white; border: 0; border-bottom: 1px solid #edf1f3; text-align: left; font-size: .76rem; }
.autocomplete-menu button:last-child { border-bottom: 0; }
.autocomplete-menu button:hover, .autocomplete-menu button:focus { color: var(--navy); background: #eef7fd; outline: 0; }
.autocomplete-menu button small { color: #8b97a4; font-size: .65rem; font-weight: 500; }
.autocomplete-empty { display: block; padding: 13px; color: #8693a0; font-size: .72rem; font-weight: 500; text-align: center; }
.autocomplete-menu .ched-option { align-items: center; }
.ched-option__left { display: flex; min-width: 0; align-items: center; gap: 9px; }
.ched-option__left strong { flex: 0 1 auto; min-width: 0; color: #26374b; font-size: .73rem; overflow-wrap: anywhere; }
.ched-option__left .traces-status { flex: 0 0 auto; padding: 3px 6px; border-radius: 2px; font-size: .58rem; }
.autocomplete-menu button .ched-option__consignor { flex: 0 1 38%; max-width: 38%; margin: 0 0 0 auto; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.customs-lookup { display: flex; height: 23px; margin-top: 7px; align-items: center; gap: 7px; overflow: hidden; visibility: hidden; color: #7e8a96; font-size: .67rem; }
.customs-lookup:not(:empty) { visibility: visible; }
.customs-lookup.is-found { color: #16714b; }
.customs-lookup.is-found strong { padding: 3px 6px; color: #285f98; background: #eaf2fb; border: 1px solid #d3e4f6; border-radius: 3px; font-size: .64rem; }
.customs-lookup.is-found span { color: #596b7d; font-weight: 700; }
.customs-lookup.is-error { color: var(--red); }
.customs-document { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #667789; font-size: .61rem; white-space: nowrap; }
.customs-document b { color: #285f98; font-weight: 800; }
.customs-document i { padding: 2px 5px; color: #596b7d; background: #eef1f4; border-radius: 3px; font-size: .56rem; font-style: normal; font-weight: 700; }
.selected-cheds { display: flex; gap: 7px; flex-wrap: wrap; margin: 9px 0 0 !important; }
.ched-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: #285f98; background: #eaf2fb; border: 1px solid #d3e4f6; border-radius: 6px; font-size: .7rem; font-weight: 700; }
.ched-chip button { display: grid; place-items: center; width: 17px; height: 17px; padding: 0; color: #65788d; background: transparent; border: 0; font-size: .9rem; line-height: 1; }
.ched-warning { display: none; margin-top: 8px; color: var(--red); font-size: .72rem; font-weight: 600; }
.ched-warning.is-visible { display: block; }
.modal-error { min-height: 20px; margin: -6px 26px 14px; color: var(--red); font-size: .78rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; background: #fafbfc; border-top: 1px solid var(--line); }
.traces-load-sentinel { height: 2px; }
.traces-bedrock { display: flex; align-items: center; flex-direction: column; gap: 9px; margin: 18px 0 4px; color: #98a5b1; font: 500 .72rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .08em; text-align: center; }
.traces-bedrock[hidden] { display: none; }
.creeper-head { position: relative; display: block; width: 26px; height: 26px; background: #58a53b; border: 2px solid #79be59; box-shadow: inset 5px 0 #4a9132, inset -4px -4px #3f7f2d; image-rendering: pixelated; }
.creeper-head::before { content: ''; position: absolute; top: 5px; left: 4px; width: 5px; height: 5px; background: #142d18; box-shadow: 11px 0 #142d18, 5px 6px #142d18, 8px 6px #142d18, 2px 10px #142d18, 5px 10px #142d18, 8px 10px #142d18, 11px 10px #142d18, 2px 14px #142d18, 11px 14px #142d18; }
.module-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.module-stats article { padding: 17px 19px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); }
.module-stats span { display: block; color: #7c8b9a; font: 600 .68rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .09em; }
.module-stats strong { display: block; margin-top: 8px; color: var(--navy); font-size: 1.35rem; }
.notification-page-list { padding: 8px 22px; }
.notification-page-list article { display: grid; grid-template-columns: 9px 1fr auto; gap: 13px; align-items: start; padding: 17px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-page-list article > i { width: 8px; height: 8px; margin-top: 6px; background: #cbd3da; border-radius: 50%; }
.notification-page-list article.is-unread > i { background: var(--blue); }
.notification-page-list article strong { display: block; font-size: .82rem; }
.notification-page-list article p { margin: 4px 0; color: var(--ink-soft); font-size: .76rem; }
.notification-page-list article small { color: #8b98a5; font-size: .68rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card { min-height: 190px; padding: 23px; }
.settings-card h2 { margin: 0 0 8px; font: 700 1rem/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .06em; }
.settings-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: .8rem; }
.settings-card label { display: flex; flex-direction: column; gap: 7px; color: #536579; font-size: .72rem; font-weight: 700; }
.settings-card select { width: min(100%, 240px); min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 5px; }
.settings-current-time { display: block; margin-top: 14px; color: #31536a; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.settings-card--notifications { display: flex; flex-direction: column; }
.settings-card label.settings-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.settings-switch > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.settings-switch > span strong { color: #30485b; font-size: .76rem; }
.settings-switch > span small { color: #84919d; font-size: .66rem; font-weight: 500; line-height: 1.35; }
.settings-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.settings-switch > i { position: relative; width: 38px; height: 21px; background: #cbd3d9; border-radius: 999px; transition: background-color .15s ease; }
.settings-switch > i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(4,30,46,.22); transition: transform .15s ease; }
.settings-switch input:checked + i { background: var(--blue); }
.settings-switch input:checked + i::after { transform: translate3d(17px,0,0); }
.settings-switch input:focus-visible + i { outline: 3px solid rgba(0,154,222,.22); outline-offset: 2px; }
.settings-save-state { min-height: 16px; margin-top: auto; padding-top: 6px; color: #16714b; font-size: .67rem; font-weight: 700; }
.settings-save-state.is-error { color: var(--red); }
.settings-card--notifications-detailed { grid-column: 1 / -1; min-height: 420px; }
.notification-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.notification-settings-heading .settings-save-state { flex: 0 0 auto; margin: 0; }
.notification-master-switches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-bottom: 18px; }
.settings-card label.settings-switch[hidden] { display: none !important; }
.notification-event-matrix { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.notification-event-header, .notification-event-row { display: grid; grid-template-columns: minmax(260px, 1fr) 72px 72px; align-items: center; }
.notification-event-header { min-height: 34px; color: #fff; background: #385667; font-size: .61rem; font-weight: 800; letter-spacing: .06em; }
.notification-event-header span { padding: 0 12px; text-align: center; }
.notification-event-header span:first-child { text-align: left; }
.notification-event-group { padding: 7px 12px; color: #136487; background: #eaf4f8; border-top: 1px solid #cedee6; border-bottom: 1px solid #d8e5eb; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.notification-event-group:first-child { border-top: 0; }
.notification-event-row { min-height: 38px; background: #fff; border-bottom: 1px solid #edf1f3; }
.notification-event-row:last-child { border-bottom: 0; }
.notification-event-row > span { padding: 7px 12px; color: #3d5060; font-size: .7rem; }
.notification-channel-check { display: flex !important; height: 100%; align-items: center !important; justify-content: center; padding: 0 !important; border-left: 1px solid #edf1f3; cursor: pointer; }
.notification-channel-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.notification-channel-check i { position: relative; width: 17px; height: 17px; background: #fff; border: 1px solid #aebbc5; border-radius: 3px; }
.notification-channel-check input:checked + i { background: var(--blue); border-color: var(--blue); }
.notification-channel-check input:checked + i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.notification-channel-check input:focus-visible + i { outline: 3px solid rgba(0,154,222,.2); outline-offset: 2px; }
.application-update-date { display: block; margin-top: 9px; color: #7e8d9b; font-size: .67rem; }
.dossiers-body tr.dossier-vehicle-group td { background: #f1f8fc; }
.dossiers-body tr.dossier-vehicle-group:hover td { background: #e8f4fa; }
.dossiers-body tr.dossier-vehicle-group--start td { border-top: 2px solid #77abc4; }
.dossiers-body tr.dossier-vehicle-group--end td { border-bottom: 2px solid #77abc4; }
.vehicle-group-badge { display: inline-flex; width: max-content; max-width: 250px; margin-top: 6px; padding: 3px 7px; color: #075f89; background: #dceff8; border: 1px solid #b7d8e8; border-radius: 999px; font-size: .57rem; font-weight: 800; line-height: 1.25; }
.port-mismatch-list { display: flex; max-width: 360px; margin-top: 7px; flex-direction: column; gap: 6px; }
.port-mismatch-warning { display: flex; width: 100%; padding: 8px 9px; color: #b92f2f; background: #fff7f7; border: 1px solid #efc4c4; border-radius: 5px; flex-direction: column; gap: 3px; text-align: left; font-size: .61rem; line-height: 1.35; cursor: pointer; }
.port-mismatch-warning:hover { background: #fff0f0; border-color: #df9e9e; }
.port-mismatch-warning:disabled { cursor: default; opacity: .78; }
.port-mismatch-warning strong { color: #b92f2f; font-size: .62rem; }
.port-mismatch-warning span { font-weight: 700; }
.port-mismatch-warning em { color: #8f2525; font-style: normal; text-decoration: underline; text-underline-offset: 2px; }
.port-mismatch-warning em b { padding: 0 3px; color: #b92f2f; }
.port-resolution-content { padding: 24px 26px 8px; }
.port-resolution-content > p:first-child { margin: 0 0 18px; color: #536579; font-size: .78rem; }
.port-resolution-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.port-resolution-choice { display: flex; min-height: 105px; padding: 17px; color: #204a66; background: #f1f8fc; border: 1px solid #c5dfea; border-radius: 7px; flex-direction: column; gap: 7px; text-align: left; cursor: pointer; }
.port-resolution-choice:hover { background: #e7f4fa; border-color: #8fc3d9; transform: translate3d(0,-1px,0); }
.port-resolution-choice--traces { color: #684b13; background: #fff9ed; border-color: #ead7a9; }
.port-resolution-choice--traces:hover { background: #fff3d8; border-color: #d7b96d; }
.port-resolution-choice strong { font-size: .8rem; }
.port-resolution-choice small { color: #738493; font-size: .68rem; line-height: 1.45; }
.port-resolution-choice:disabled { opacity: .62; cursor: wait; transform: none; }
.port-status-error { display: flex; min-height: 54px; margin: 28px 0 8px; padding: 18px 8px 4px; border-top: 1px solid var(--line); align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; font-weight: 700; }
.port-status-error .traces-status { margin: 0 2px; }
.danger-button--permanent { box-shadow: inset 0 0 0 1px rgba(124, 0, 0, .22); }
.confirmation-modal { width: min(92vw, 510px); }
.confirmation-content { display: flex; padding: 28px 30px 22px; align-items: center; flex-direction: column; text-align: center; }
.confirmation-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #8b5c10; background: #fff4dc; border: 1px solid #ead4a6; border-radius: 50%; font-size: 1.35rem; font-weight: 800; }
.confirmation-content p { margin: 17px 0 7px; color: #56687a; font-size: .82rem; line-height: 1.55; }
.confirmation-content > strong { color: var(--navy); font-size: .94rem; overflow-wrap: anywhere; }
.confirmation-content .modal-error { min-height: 18px; margin: 12px 0 0; color: var(--red); }
.confirmation-modal--danger .confirmation-icon { color: #b33333; background: #fff0f0; border-color: #edc3c3; }
.confirmation-modal .modal-footer button { min-height: 42px; padding: 0 17px; }
.confirmation-modal .modal-footer .danger-button { color: #fff; background: #bd3434; border-color: #bd3434; }
.confirmation-modal .modal-footer .danger-button:hover { background: #a92828; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 100; display: flex; visibility: hidden; align-items: center; gap: 11px; min-width: 290px; padding: 14px 17px; color: white; background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: 5px; box-shadow: 0 10px 28px rgba(4,30,46,.25); opacity: 0; }
.toast.is-visible { visibility: visible; opacity: 1; }
.toast--error { background: #7c2e2e; }
.toast--error > span { background: #d55a5a; }
.toast > span { display: grid; place-items: center; width: 23px; height: 23px; color: white; background: var(--blue); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.toast p { margin: 0; font-size: .77rem; font-weight: 600; }

/* Micro-animations limitées à transform/opacity pour rester fluides sur les postes modestes. */
.view.is-active { animation: view-enter .18s ease-out both; }
@keyframes view-enter { from { opacity: .6; transform: translate3d(0,4px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
.primary-button:hover, .outline-button:hover, .row-button:hover, .icon-button:hover { transform: translate3d(0,-1px,0); }
.stat-card:hover { transform: translate3d(0,-2px,0); box-shadow: 0 8px 20px rgba(4,30,46,.09); }
.nav-item:hover svg, .nav-item:hover .nav-icon-text { transform: translate3d(2px,0,0); }
.notification-button:hover svg { transform: rotate(-5deg); }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .activity-list article:nth-last-child(2) { border-bottom: 0; }
  .activity-list article::before { display: none; }
  .module-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .relation-columns { grid-template-columns: 1fr; }
  .port-resolution-choices { grid-template-columns: 1fr; }
  .mobile-brand { display: inline-flex; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 35; width: 248px; transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); box-shadow: 20px 0 50px rgba(8,25,42,.24); }
  .mobile-menu { display: grid; }
  .environment { display: none; }
  .topbar { justify-content: space-between; }
  .global-search { width: min(45vw, 320px); }
  .topbar-user > div { display: none; }
  .customs-search-form { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 680px) {
  .login-form-panel { padding: 26px 20px; }
  .login-card h2 { font-size: 2rem; }
  .legal { bottom: 12px; }
  .content { padding: 25px 14px 45px; }
  .topbar { min-height: 64px; padding: 0 14px; }
  .global-search { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .primary-button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 112px; }
  .panel-heading { padding: 17px; }
  .panel-heading .outline-button { display: none; }
  .filter-row { align-items: stretch; flex-direction: column; padding: 0 17px 13px; }
  .segmented { overflow-x: auto; }
  .segmented button { flex: 1; white-space: nowrap; }
  .table-search { width: 100%; }
  th:first-child, td:first-child { padding-left: 17px; }
  .activity-list { display: block; padding: 4px 17px 0; }
  .activity-list article:nth-last-child(2) { border-bottom: 1px solid #edf1f3; }
  .filter-toolbar { align-items: stretch; flex-direction: column; }
  .traces-toolbar { align-items: stretch; flex-direction: column; }
  .parking-toolbar { align-items: stretch; flex-direction: column; }
  .parking-summary { justify-content: space-between; }
  .customs-current-state { grid-template-columns: 1fr; }
  .customs-current-state > div { min-height: auto; }
  .user-card { grid-template-columns: auto 1fr; gap: 12px; }
  .user-card .role-badge, .user-card .active-state, .user-card .outline-button { grid-column: 2; width: max-content; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .form-grid__wide { grid-column: auto; }
  .module-stats, .settings-grid { grid-template-columns: 1fr; }
  .notification-master-switches { grid-template-columns: 1fr; }
  .notification-event-header, .notification-event-row { grid-template-columns: minmax(180px, 1fr) 54px 54px; }
  .modal-footer { padding: 14px 20px; }
  .detail-overview-grid { grid-template-columns: 1fr; }
  .detail-overview-grid .detail-section:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-section dl { grid-template-columns: 1fr; }
  .toast { left: 14px; right: 14px; bottom: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
