:root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --accent: #0f766e;
    --bg: #f3f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #d9e2ec;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.container { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-badge { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-weight: 800; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a, .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding: 10px 18px; font-weight:600; border:1px solid var(--border); background:white; }
.nav a.active, .btn-primary { background: linear-gradient(135deg, var(--primary), #2563eb); color:white; border-color: transparent; }
.btn-secondary { background: linear-gradient(135deg, var(--accent), #14b8a6); color:white; border-color: transparent; }
.btn-danger { background: #ef4444; color: white; border-color: transparent; }
.btn-light { background: white; color: var(--text); }
.hero, .section-card, .card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding: 32px; }
.hero h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; margin: 16px 0; }
.badge { display:inline-flex; padding:8px 14px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-weight:700; font-size:.95rem; }
.small { color: var(--muted); font-size: .95rem; }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display:grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid-stretch-top { align-items: start; }
.card { padding: 22px; }
.card-wide { width: 100%; }
.stat-value { font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--muted); margin-top: 4px; }
.section-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 12px; }
.section-head { display:flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow: auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom:1px solid var(--border); text-align:left; vertical-align: top; }
th { color: var(--muted); font-size: .9rem; }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-form-grid { display:grid; grid-template-columns: 1.5fr 1fr 1.4fr auto; gap:8px; align-items:center; }
.form-group { display:flex; flex-direction:column; gap:8px; min-width: 0; }
.form-span-2 { grid-column: span 2; }
.form-span-3 { grid-column: span 3; }
label { font-weight: 600; }
input, select, textarea { width:100%; border:1px solid var(--border); border-radius: 14px; padding: 12px 14px; background:white; }
textarea { min-height: 110px; resize: vertical; }
.actions { display:flex; gap:10px; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.sidebar-layout { display:grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.sidebar { background: white; border:1px solid var(--border); border-radius: 24px; padding: 18px; height: fit-content; position: sticky; top: 90px; }
.sidebar a { display:flex; padding:12px 14px; border-radius: 14px; color: var(--text); margin-bottom: 6px; }
.sidebar a.active, .sidebar a:hover { background: #eff6ff; color: var(--primary); }
.content { display:flex; flex-direction:column; gap: 18px; min-width: 0; }
.map-card { min-height: 420px; }
#map, #land-map { width: 100%; min-height: 420px; border-radius: 18px; background: #dbeafe; }
.filters { display:grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(180px, 1fr)) auto; gap: 12px; }
.footer { color: var(--muted); text-align:center; padding: 32px 0 40px; }
.pill { display:inline-flex; padding:5px 10px; border-radius:999px; background:#e2e8f0; font-size:.85rem; }
.tree-block { padding: 14px 0; border-bottom: 1px solid var(--border); }
.tree-subblock { padding: 10px 0 10px 18px; }
@media (max-width: 1180px) {
    .grid-3 { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-span-3 { grid-column: span 2; }
}
@media (max-width: 980px) {
    .hero-grid, .sidebar-layout, .grid-4, .form-grid, .filters, .inline-form-grid, .form-grid-3 { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .form-span-2, .form-span-3 { grid-column: auto; }
}

.sidebar-group { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.sidebar-group-title { font-size: .92rem; font-weight: 800; color: var(--muted); padding: 6px 12px 10px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-subitem { padding-left: 26px !important; font-size: .95rem; }
.icon-actions { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
.icon-actions form { margin:0; }
.icon-btn { width: 40px; height: 40px; display:inline-flex; align-items:center; justify-content:center; border-radius: 12px; border:1px solid var(--border); background:#fff; color: var(--text); cursor:pointer; }
.icon-btn:hover { background:#eff6ff; color: var(--primary); }
.icon-btn.danger:hover { background:#fee2e2; color:#dc2626; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-card { display:block; }
.quick-card:hover { border-color:#bfdbfe; box-shadow: 0 10px 25px rgba(29,78,216,.08); }
.compact-form-card { max-width: 980px; }
.actions form { display:inline-flex; }

:root {
    --secondary-2: #7c3aed;
    --warm: #f97316;
    --surface-alt: #f8fbff;
}
body { background: radial-gradient(circle at top left, #eff6ff, #f8fafc 35%, #eef2ff 100%); }
.nav a, .btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: 0 8px 18px rgba(37,99,235,.08); }
.nav a:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(37,99,235,.16); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary-2)); }
.btn-secondary { background: linear-gradient(135deg, var(--accent), #22c55e); }
.btn-light { background: linear-gradient(180deg, #ffffff, #f8fafc); }
.btn-block { width: 100%; }
.hero, .section-card, .card { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)); }
.glow-card { position: relative; overflow: hidden; }
.glow-card::before { content:''; position:absolute; inset:0 0 auto auto; width:220px; height:220px; background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%); pointer-events:none; }
.table-wrap-xl { overflow:auto; border:1px solid var(--border); border-radius:20px; background:#fff; }
.table-wrap-xl table { min-width: 1100px; }
.data-table th, .data-table td { white-space: nowrap; }
.data-table tbody tr { transition: background .15s ease, transform .15s ease; }
.data-table tbody tr:hover { background: #f8fbff; }
.data-table .actions-col, .actions-col { position: sticky; right: 0; background: inherit; z-index: 2; box-shadow: -10px 0 15px rgba(148,163,184,.12); }
.data-table thead .actions-col { background: #fff; z-index:3; }
.filters-tight { grid-template-columns: minmax(320px,2fr) auto !important; }
.sidebar { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.sidebar-group { background: var(--surface-alt); border-radius: 20px; padding: 12px; }
.sidebar-accordion { border:1px solid var(--border); border-radius:16px; background:white; margin-top:8px; overflow:hidden; }
.sidebar-accordion summary { list-style:none; cursor:pointer; padding:12px 14px; font-weight:700; color:#334155; }
.sidebar-accordion summary::-webkit-details-marker { display:none; }
.sidebar-accordion summary::after { content:'▾'; float:right; color:var(--muted); }
.sidebar-accordion[open] summary::after { content:'▴'; }
.sidebar-accordion-body { padding: 0 8px 8px; }
.sidebar-subitem { margin-bottom:4px; }
.icon-btn { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.icon-btn:hover { transform: translateY(-1px) scale(1.02); }
.icon-btn.danger { background: linear-gradient(180deg, #fff7f7, #fff1f2); }
.pill { background: linear-gradient(135deg, #dbeafe, #e0e7ff); color:#1e3a8a; font-weight:700; }
input, select, textarea { background: linear-gradient(180deg, #ffffff, #f8fafc); }
.nested-card { border-radius: 20px; background: linear-gradient(180deg, #f8fbff, #ffffff); border: 1px dashed #c7d2fe; }
.compact-head { margin-bottom: 12px; }
.stack-list { display:flex; flex-direction:column; gap: 12px; }
.document-row { padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.action-cell { min-width: 64px; }
.scanner-card { background: linear-gradient(135deg, #ecfeff, #f0fdf4); border:1px dashed #86efac; border-radius: 18px; padding: 14px; }
.footer { background: transparent; }
@keyframes floatGlow { 0% { transform: translateY(0); } 50% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
.brand-badge, .btn-primary { animation: floatGlow 4s ease-in-out infinite; }
@media (max-width: 980px) {
    .filters-tight { grid-template-columns: 1fr !important; }
    .table-wrap-xl table { min-width: 900px; }
}

.map-search-bar { display:flex; gap:10px; margin:12px 0 14px; flex-wrap:wrap; }
.map-search-bar input { flex:1 1 320px; }
.upload-preview-list { margin:8px 0 0; padding-left:18px; color: var(--muted); }
.upload-preview-list li { margin:4px 0; }

.preview-card { border:1px solid var(--border); border-radius:18px; background:#fff; padding:16px; }
.image-preview { display:block; width:100%; max-height:240px; object-fit:contain; border-radius:14px; border:1px solid var(--border); background:#f8fafc; margin-top:10px; }
.map-search-wrap { position:relative; margin:12px 0 14px; }
.map-search-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; margin:0; }
.map-suggestions { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.map-suggestion { text-align:left; border:1px solid var(--border); background:#fff; border-radius:12px; padding:10px 12px; cursor:pointer; }
.map-suggestion:hover { background:#eff6ff; }
@media (max-width: 980px) { .map-search-bar { grid-template-columns:1fr; } }

.form-actions-bottom { margin-top: 18px; justify-content: flex-start; }
.preview-grid { align-items: start; }
.image-preview.is-hidden { display: none !important; }
.preview-card .small + .image-preview { margin-top: 10px; }
.map-search-wrap { max-width: 760px; }
.map-search-bar-inline { display:flex !important; flex-wrap: nowrap !important; align-items:center; gap:12px; }
.map-search-bar-inline input { flex: 1 1 auto; min-width: 0; }
.map-search-button { flex: 0 0 170px; white-space: nowrap; }
.map-suggestions { max-width: 760px; }
.status-pill, .pill[data-status] { color:#0f172a; font-weight:700; }
.pill[data-status*="valide"] { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color:#166534; }
.pill[data-status*="depose"], .pill[data-status*="déposé"], .pill[data-status*="deposee"], .pill[data-status*="dépos"] { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color:#1d4ed8; }
.pill[data-status*="cours"], .pill[data-status*="en cours"] { background: linear-gradient(135deg, #fef3c7, #fde68a); color:#92400e; }
.pill[data-status*="expire"], .pill[data-status*="expiré"] { background: linear-gradient(135deg, #fee2e2, #fecaca); color:#991b1b; }
.pill[data-status*="archive"], .pill[data-status*="archivé"] { background: linear-gradient(135deg, #e5e7eb, #d1d5db); color:#374151; }
@media (max-width: 980px) {
  .map-search-wrap { max-width: 100%; }
  .map-search-bar-inline { flex-wrap: wrap !important; }
  .map-search-button { flex-basis: auto; width: 100%; }
}

.land-tab-nav { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.land-tab-btn { border:1px solid var(--border); background:#fff; color:var(--text); border-radius:999px; padding:10px 18px; font-weight:700; cursor:pointer; box-shadow:0 8px 18px rgba(37,99,235,.08); }
.land-tab-btn.is-active { background:linear-gradient(135deg, var(--primary), var(--secondary-2)); color:#fff; border-color:transparent; }
.land-tab-panel { display:none; }
.land-tab-panel.is-active { display:block; }
.land-tab-panel .nested-card { margin-top:0; }
.land-tab-panel .table-wrap-xl table { min-width: 900px; }
.land-tab-panel .data-table td, .land-tab-panel .data-table th { white-space: nowrap; }
.land-tab-panel input[type="checkbox"] { width:18px; height:18px; }


.land-tab-nav-pro { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.land-tab-btn-pro {
  border:1px solid rgba(37,99,235,.18);
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  color:#0f172a;
  border-radius:18px;
  padding:14px 18px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.land-tab-btn-pro.is-active { background:linear-gradient(135deg,#2563eb,#14b8a6); color:#fff; box-shadow:0 14px 28px rgba(37,99,235,.24); transform:translateY(-1px); }
.land-tab-card { border-width:2px; }
.land-tab-card-map { border-color:#fecaca; background:linear-gradient(180deg,#fff,#fff7f7); }
.land-tab-card-docs { border-color:#bfdbfe; background:linear-gradient(180deg,#fff,#f8fbff); }
.land-tab-card-contacts { border-color:#bbf7d0; background:linear-gradient(180deg,#fff,#f7fff9); }
@media (max-width: 900px) { .land-tab-nav-pro { grid-template-columns:1fr; } }

.admin-topbar { position: sticky; top: 0; z-index: 60; }
.admin-container-full { width: calc(100% - 24px); max-width: none; margin: 0 auto; }
.admin-topbar-inner { min-height: 72px; }
.admin-topbar-left { display:flex; align-items:center; gap:14px; }
.sidebar-toggle, .sidebar-close {
  width: 42px; height: 42px; border-radius: 14px; border:1px solid var(--border); background:#fff;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.sidebar-close { display:none; }
.admin-shell { grid-template-columns: 300px minmax(0, 1fr); align-items:start; gap: 20px; margin-top: 18px; }
.admin-sidebar {
  background: linear-gradient(180deg, #0f3d7a 0%, #0b2f5f 100%);
  color: #fff; border:none; box-shadow:0 18px 38px rgba(15,23,42,.18); padding:16px; top:88px; position: sticky; min-height: calc(100vh - 106px);
}
.admin-sidebar .brand, .admin-sidebar .sidebar-group-title, .admin-sidebar summary, .admin-sidebar a { color:#fff; }
.admin-sidebar-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.admin-sidebar-brand { padding: 0 !important; margin:0 !important; }
.admin-sidebar-search {
  display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.12);
  padding:10px 12px; border-radius:14px; margin-bottom:14px;
}
.admin-sidebar-search input { background:transparent; border:none; color:#fff; padding:0; outline:none; width:100%; }
.admin-sidebar-search input::placeholder { color:rgba(255,255,255,.7); }
.admin-menu { display:flex; flex-direction:column; gap:6px; }
.admin-menu-link {
  display:flex !important; align-items:center; gap:12px; padding:12px 14px !important; border-radius:14px; margin-bottom:0 !important;
  color:rgba(255,255,255,.92) !important; transition:all .18s ease; white-space:nowrap;
}
.admin-menu-link:hover, .admin-menu-link.active { background:rgba(255,255,255,.14) !important; color:#fff !important; }
.menu-icon { width:20px; text-align:center; flex:0 0 20px; }
.admin-sidebar .sidebar-group { background:rgba(255,255,255,.06); border-top:none; padding:12px; margin-top:8px; }
.admin-sidebar .sidebar-group-title { color:rgba(255,255,255,.72); padding:6px 12px 10px; font-weight:800; text-transform:uppercase; font-size:.82rem; }
.admin-sidebar .sidebar-accordion { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); }
.admin-sidebar .sidebar-accordion summary { color:#fff; }
.admin-sidebar .sidebar-accordion summary::after { color:rgba(255,255,255,.8); }
.admin-sidebar .sidebar-subitem { padding-left:36px !important; }
.admin-content { min-width:0; width:100%; }
.sidebar-collapsed .admin-shell { grid-template-columns: 84px minmax(0, 1fr); }
.sidebar-collapsed .admin-sidebar { padding:14px 10px; overflow:visible; opacity:1; pointer-events:auto; }
.sidebar-collapsed .admin-sidebar-brand span:last-child,
.sidebar-collapsed .admin-sidebar-search,
.sidebar-collapsed .admin-sidebar .sidebar-group,
.sidebar-collapsed .admin-sidebar .sidebar-group-title,
.sidebar-collapsed .admin-sidebar .sidebar-accordion,
.sidebar-collapsed .admin-sidebar .sidebar-subitem,
.sidebar-collapsed .admin-sidebar .admin-menu-link span:last-child,
.sidebar-collapsed .sidebar-close { display:none !important; }
.sidebar-collapsed .admin-sidebar-head { justify-content:center; }
.sidebar-collapsed .admin-menu { gap:10px; align-items:center; }
.sidebar-collapsed .admin-menu-link { justify-content:center; padding:12px !important; width:48px; height:48px; border-radius:14px; }
.sidebar-collapsed .menu-icon { width:auto; flex:0 0 auto; font-size:1.05rem; }
.dashboard-shell { display:flex; flex-direction:column; gap:20px; }
.dashboard-head {
  display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:28px 30px;
  background:linear-gradient(135deg, #0f3d7a 0%, #1d4ed8 55%, #0f766e 100%); color:#fff; border:none;
}
.dashboard-kicker { font-size:.95rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.82); }
.dashboard-title { font-size:2.2rem; margin:8px 0 6px; }
.dashboard-subtitle { margin:0; color:rgba(255,255,255,.82); max-width:760px; }
.dashboard-head-actions { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:12px; width:min(520px,100%); }
.dashboard-badge-pill { background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.18); border-radius:18px; padding:14px; display:flex; gap:12px; align-items:center; }
.dashboard-badge-icon { font-size:1.4rem; }
.dashboard-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.dashboard-kpi-card {
  border-radius:24px; padding:18px; display:flex; gap:14px; align-items:center; color:#fff;
  box-shadow:0 16px 32px rgba(15,23,42,.12);
}
.dashboard-kpi-card.is-primary { background:linear-gradient(135deg,#1d4ed8,#3b82f6); }
.dashboard-kpi-card.is-info { background:linear-gradient(135deg,#0f766e,#14b8a6); }
.dashboard-kpi-card.is-success { background:linear-gradient(135deg,#15803d,#22c55e); }
.dashboard-kpi-card.is-warm { background:linear-gradient(135deg,#ea580c,#f59e0b); }
.dashboard-kpi-icon { font-size:1.9rem; width:58px; height:58px; border-radius:18px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; }
.dashboard-kpi-content span, .dashboard-kpi-content small { display:block; }
.dashboard-kpi-content span { font-weight:700; opacity:.95; }
.dashboard-kpi-content strong { font-size:2rem; line-height:1.1; display:block; margin:3px 0; }
.dashboard-kpi-content small { color:rgba(255,255,255,.86); }
.dashboard-overview-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:18px; }
.dashboard-overview-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dashboard-content-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:18px; }
.dashboard-panel { padding:22px; }
.dashboard-panel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:16px; }
.dashboard-mini-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dashboard-metric-box { border:1px solid var(--border); border-radius:18px; padding:16px; background:linear-gradient(180deg,#fff,#f8fbff); }
.dashboard-metric-box span { display:block; color:var(--muted); margin-bottom:6px; font-weight:600; }
.dashboard-metric-box strong { font-size:1.15rem; }
.dashboard-progress-list { display:flex; flex-direction:column; gap:14px; }
.dashboard-progress-row { display:grid; grid-template-columns:minmax(150px,210px) minmax(0,1fr) 60px; gap:12px; align-items:center; }
.dashboard-progress-label span { display:block; color:var(--muted); font-size:.9rem; margin-top:3px; }
.dashboard-progress-track { height:12px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.dashboard-progress-bar { height:100%; border-radius:999px; background:linear-gradient(135deg,#2563eb,#14b8a6); }
.dashboard-progress-value { font-weight:800; text-align:right; }
.dashboard-list-stack { display:flex; flex-direction:column; gap:12px; }
.dashboard-list-row, .dashboard-activity-row {
  border:1px solid var(--border); border-radius:18px; padding:14px 16px; background:linear-gradient(180deg,#fff,#f8fbff);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
@media (max-width: 1200px) {
  .dashboard-kpi-grid, .dashboard-overview-grid, .dashboard-overview-grid-3, .dashboard-content-grid, .dashboard-head-actions, .dashboard-mini-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 980px) {
  .admin-container-full { width: calc(100% - 16px); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; left: 8px; top: 78px; bottom: 8px; width: min(320px, calc(100vw - 16px)); z-index: 80; margin:0; min-height:auto;
    transform: translateX(-120%); opacity:0; pointer-events:none; transition:transform .2s ease, opacity .2s ease;
  }
  .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); opacity:1; pointer-events:auto; }
  .sidebar-close { display:inline-flex; }
  body.sidebar-collapsed .admin-shell { grid-template-columns:1fr; }
  .dashboard-head, .dashboard-kpi-grid, .dashboard-overview-grid, .dashboard-overview-grid-3, .dashboard-content-grid, .dashboard-head-actions, .dashboard-mini-grid { grid-template-columns:1fr; }
}

.workflow-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}
.workflow-reject-form{display:flex;gap:6px;justify-content:flex-end;align-items:center;margin-top:8px}
.workflow-reject-form input{min-width:180px;padding:8px 10px;border:1px solid #d0d7e2;border-radius:10px}
.inline-actions-stack{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.btn-xs{padding:6px 10px;font-size:.78rem;border-radius:999px}
.btn-success{background:#16a34a;color:#fff}
.btn-warning{background:#f59e0b;color:#fff}
.btn-danger{background:#dc2626;color:#fff}
.btn-success:hover,.btn-warning:hover,.btn-danger:hover{filter:brightness(.95)}
.completion-inline{display:flex;align-items:center;gap:10px;min-width:130px}
.completion-bar{width:82px;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.completion-bar span{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#22c55e)}
.dashboard-kpi-card.is-danger{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#7f1d1d}
.dashboard-kpi-card.is-secondary{background:linear-gradient(135deg,#e0e7ff,#c7d2fe);color:#312e81}

.dashboard-head-actions .dashboard-badge-pill strong,
.dashboard-head-actions .dashboard-badge-pill .small,
.dashboard-head-actions .dashboard-badge-pill div,
.dashboard-head-actions .dashboard-badge-pill span { color: #fff; }
.dashboard-head-actions .dashboard-badge-pill .small { opacity: .92; }
.dashboard-kpi-grid-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-kpi-card.is-sky { background: linear-gradient(135deg,#0284c7,#38bdf8); color:#fff; }
.dashboard-kpi-card.is-rose { background: linear-gradient(135deg,#be185d,#f43f5e); color:#fff; }
.dashboard-kpi-card.is-sky small,
.dashboard-kpi-card.is-rose small,
.dashboard-kpi-card.is-sky span,
.dashboard-kpi-card.is-rose span { color: rgba(255,255,255,.92); }
.dashboard-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) {
  .dashboard-kpi-grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .dashboard-kpi-grid-8, .dashboard-mini-grid { grid-template-columns: 1fr; }
}


.lands-map-canvas { width:100%; min-height:560px; border-radius:22px; background:#dbeafe; border:1px solid var(--border); }
.map-page-grid { align-items:stretch; }
.map-panel-main { min-width:0; }
.map-panel-side { min-width:320px; }
.map-land-list { display:flex; flex-direction:column; gap:12px; max-height:560px; overflow:auto; }
.map-land-item {
  width:100%; text-align:left; border:1px solid var(--border); border-radius:18px; background:linear-gradient(180deg,#fff,#f8fbff);
  padding:14px 16px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; cursor:pointer; transition:.16s ease;
}
.map-land-item:hover, .map-land-item.active { border-color:#93c5fd; box-shadow:0 10px 20px rgba(37,99,235,.12); transform:translateY(-1px); }
.map-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .map-page-grid, .map-stats-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 980px) { .map-page-grid, .map-stats-grid { grid-template-columns:1fr; } .lands-map-canvas { min-height:420px; } .map-land-list { max-height:none; } }

.compact-actions-cell{flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;position:relative}
.action-menu-dropdown{position:relative}
.action-menu-dropdown summary{list-style:none;cursor:pointer;min-width:40px;height:36px;display:grid;place-items:center;font-size:22px;line-height:1;border-radius:12px;padding:0 10px}
.action-menu-dropdown summary::-webkit-details-marker{display:none}
.action-menu-panel{position:absolute;top:auto;bottom:calc(100% + 8px);right:0;z-index:30;min-width:220px;background:#fff;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 16px 38px rgba(15,23,42,.14);padding:8px;display:flex;flex-direction:column;gap:6px}
.action-menu-item{width:100%;border:0;background:#f8fafc;border-radius:12px;padding:10px 12px;text-align:left;font-weight:600;color:#1f2937;cursor:pointer}
.action-menu-item:hover{background:#eef2ff}
.action-menu-item-success:hover{background:#ecfdf5;color:#166534}
.action-menu-item-warning:hover{background:#fff7ed;color:#b45309}
.action-menu-item-danger:hover{background:#fef2f2;color:#b91c1c}
.action-dialog{border:0;padding:0;background:transparent;max-width:560px;width:calc(100% - 32px)}
.action-dialog::backdrop{background:rgba(15,23,42,.45)}
.action-dialog-backdrop{display:none}
.action-dialog-card{background:#fff;border-radius:22px;box-shadow:0 24px 60px rgba(15,23,42,.28);padding:22px}
.action-dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.action-dialog-head h3{margin:0;font-size:1.2rem}
.action-dialog-head p{margin:6px 0 0;color:#64748b;font-size:.92rem}
.action-dialog-form label{display:block;font-weight:700;margin-bottom:8px;color:#0f172a}
.action-dialog-form textarea{width:100%;border:1px solid #d0d7e2;border-radius:14px;padding:12px 14px;resize:vertical;min-height:110px;font:inherit}
.action-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
@media (max-width: 900px){.compact-actions-cell{flex-wrap:wrap}.action-menu-panel{right:auto;left:0}}


/* 2026-03-19 12:20 - v6.1.2 UI PRO CLEAN */
.inline-actions-stack.compact-actions-cell{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:nowrap}
.action-menu-inline{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.action-menu-dropdown{position:relative;flex:0 0 auto}
.action-menu-dropdown summary{list-style:none;cursor:pointer;padding:0}
.action-menu-dropdown summary::-webkit-details-marker{display:none}
.action-menu-dropdown summary.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px}
.action-menu-dropdown summary.icon-btn span{display:block;font-size:22px;line-height:1;transform:translateY(-1px)}
.action-menu-panel{position:absolute;top:auto;bottom:calc(100% + 8px);right:0;z-index:30;min-width:220px;background:#fff;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 16px 38px rgba(15,23,42,.14);padding:8px;display:flex;flex-direction:column;gap:6px}
@media (max-width: 900px){.inline-actions-stack.compact-actions-cell{flex-wrap:wrap}.action-menu-panel{right:0;left:auto}}

.action-menu-dropdown[open] summary.icon-btn{background:#eff4ff;border-color:#c9d8ff}
.actions-col,.compact-actions-cell,.inline-actions-stack{overflow:visible}

/* v6.1.4 fixed action menu above table without clipping */
/* v6.1.5 full action menu visible */
.action-menu-panel{position:fixed;top:auto;bottom:auto;right:auto;left:auto;z-index:1200;min-width:240px;max-width:min(320px,calc(100vw - 24px));max-height:none;overflow:visible;background:#fff;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 16px 38px rgba(15,23,42,.14);padding:10px;display:none;flex-direction:column;gap:8px}
.action-menu-dropdown[open] .action-menu-panel{display:flex}
.action-menu-panel form,.action-menu-panel > button{display:block;width:100%}
.action-menu-item{display:block;width:100%;min-height:42px}
.action-menu-item + .action-menu-item,.action-menu-panel form + form,.action-menu-panel form + button{margin-top:0}
.glow-card{overflow:visible}
.table-wrap-xl{overflow:auto}

/* 2026-03-19 15:55 - v6.1.6 smart action menu positioning */
.action-menu-panel[data-direction="up"]{transform-origin:bottom right}
.action-menu-panel[data-direction="down"]{transform-origin:top right}


/* 2026-03-19 16:20 - v6.2 DASHBOARD PRO + UX LIGHT */
.dashboard-light-shell{gap:18px}
.dashboard-head-light{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;gap:18px;color:#0f172a}
.dashboard-kicker-light,.dashboard-title-light,.dashboard-subtitle-light{color:#0f172a}
.dashboard-subtitle-light{max-width:760px;opacity:.72}
.dashboard-kicker-light{letter-spacing:.06em;font-size:.82rem;opacity:.65}
.dashboard-period-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #dbe4f0;background:#f8fafc;border-radius:14px}
.dashboard-period-switch button{border:0;background:transparent;border-radius:10px;padding:9px 14px;font-weight:700;color:#64748b;cursor:pointer}
.dashboard-period-switch button.is-active{background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.22)}
.dashboard-period-switch button:disabled{opacity:.85;cursor:not-allowed}
.dashboard-light-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-kpi-card-light{background:#fff;color:#0f172a;border:1px solid #dbe4f0;box-shadow:0 12px 30px rgba(15,23,42,.05);border-radius:22px;padding:18px}
.dashboard-kpi-card-light strong{font-size:1.9rem;display:block;margin-top:8px}
.dashboard-kpi-card-light small{display:block;margin-top:6px;color:#64748b}
.dashboard-kpi-label{font-size:.92rem;font-weight:800;color:#334155}
.dashboard-kpi-card-light.accent-orange{border-top:4px solid #f59e0b}
.dashboard-kpi-card-light.accent-blue{border-top:4px solid #2563eb}
.dashboard-kpi-card-light.accent-green{border-top:4px solid #16a34a}
.dashboard-kpi-card-light.accent-violet{border-top:4px solid #7c3aed}
.dashboard-chart-grid{display:grid;gap:18px}
.dashboard-chart-grid-main{grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr)}
.dashboard-chart-grid-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-chart-panel{padding:20px}
.dashboard-chart-panel-wide{min-width:0}
.dashboard-muted{margin:4px 0 0;color:#64748b;font-size:.92rem}
.dashboard-chart-wrap{position:relative;min-height:280px}
.dashboard-chart-wrap-lg{min-height:330px}
.dashboard-chart-wrap-md{min-height:300px}
.dashboard-mini-grid-light{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dashboard-metric-box-light{background:#fff;border:1px solid #e2e8f0;box-shadow:none}
.dashboard-legend-list.compact{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.dashboard-legend-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f7}
.dashboard-legend-row:last-child{border-bottom:0}
.dashboard-expandable{margin-top:14px;padding-top:14px;border-top:1px dashed #dbe4f0}
.dashboard-toggle{white-space:nowrap}
.dashboard-progress-list-light{margin-top:8px}
.dashboard-progress-row-light{grid-template-columns:minmax(170px,230px) minmax(0,1fr) 56px}
@media (max-width: 1280px){.dashboard-light-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-chart-grid-main,.dashboard-chart-grid-secondary{grid-template-columns:1fr}.dashboard-mini-grid-light{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 760px){.dashboard-head-light{flex-direction:column}.dashboard-period-switch{width:100%;overflow:auto}.dashboard-light-kpis,.dashboard-mini-grid-light{grid-template-columns:1fr}.dashboard-chart-wrap,.dashboard-chart-wrap-lg,.dashboard-chart-wrap-md{min-height:260px}}

/* 2026-03-19 16:45 - v6.2.1 dashboard layout refinements */
.dashboard-head-light{align-items:flex-start}
.dashboard-period-switch-inline{flex-shrink:0}
.dashboard-chart-grid-balanced{grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);align-items:stretch}
.dashboard-secondary-left-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dashboard-juridique-panel{min-height:100%;display:flex;flex-direction:column;justify-content:flex-start}
.dashboard-juridique-panel .dashboard-mini-grid-light{margin-top:auto}
@media (max-width: 1280px){.dashboard-chart-grid-balanced{grid-template-columns:1fr}.dashboard-secondary-left-stack{grid-template-columns:1fr}}


.filter-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}
.filter-panel__grid {
  display: grid;
  gap: 12px;
  align-items: end;
}
.filter-panel__grid--primary {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(180px, 1fr));
}
.filter-panel__grid--advanced {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  padding-top: 14px;
}
.filter-panel__more {
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.filter-panel__more summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-panel__more summary::-webkit-details-marker { display: none; }
.filter-panel__more summary::before { content: '▸'; transition: transform .15s ease; }
.filter-panel__more[open] summary::before { transform: rotate(90deg); }
.filter-panel__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 1180px) {
  .filter-panel__grid--primary, .filter-panel__grid--advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .filter-panel__grid--primary, .filter-panel__grid--advanced { grid-template-columns: 1fr; }
  .filter-panel__actions { justify-content: stretch; flex-direction: column; }
  .filter-panel__actions .btn { width: 100%; }
}


.subtle-card{background:#f8fbff;border:1px solid #dce7f7;border-radius:18px;padding:18px;box-shadow:none}
.permission-chip-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.permission-check-list{display:grid;gap:10px}
.permission-check-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #e1e8f3;border-radius:14px;background:#fff}
.permission-check-item input{margin-top:4px}
.form-actions-inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

.role-config-card .top-gap, .user-wizard-card .top-gap { margin-top: 16px; }
.top-gap-lg { margin-top: 20px; }
.role-hero-grid { display:grid; grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1fr); gap:18px; }
.role-modules-stack { display:flex; flex-direction:column; gap:16px; margin-top:18px; }
.role-module-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.role-module-head h2, .role-module-head h3 { margin:0 0 4px; font-size:1.08rem; }
.role-module-head p { margin:0; color:var(--muted); font-size:.93rem; }
.permission-toggle-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.feature-check-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.feature-check-item { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--border); border-radius:14px; background:#fff; }
.module-select-all { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; color:var(--muted); font-weight:600; }
.access-action-matrix { border:1px solid var(--border); border-radius:18px; padding:14px; background:linear-gradient(180deg,#fff,#f8fbff); }
.access-action-matrix.slim { margin-top: 10px; }
.matrix-title { font-weight:800; margin-bottom:12px; }
.matrix-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
.switch-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:#fff; font-weight:700; }
.switch-card.compact { min-height: 62px; }
.switch-card input[type=checkbox], .feature-check-item input[type=checkbox], .module-select-all input[type=checkbox] { width:18px; height:18px; }
.role-catalog { grid-template-columns: repeat(4, minmax(0,1fr)); }
.role-catalog-card { min-height: 210px; display:flex; flex-direction:column; }
.permission-chip-list { display:flex; flex-wrap:wrap; gap:8px; }

.wizard-steps { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.wizard-step { display:flex; align-items:flex-start; gap:14px; border:none; width:100%; text-align:left; padding:16px 18px; border-radius:18px; background:linear-gradient(180deg,#fff,#f8fbff); border:1px solid var(--border); cursor:pointer; }
.wizard-step.is-active { border-color:#93c5fd; box-shadow:0 12px 24px rgba(37,99,235,.12); }
.wizard-step-number { width:34px; height:34px; border-radius:999px; background:#e2e8f0; display:inline-flex; align-items:center; justify-content:center; font-weight:800; flex:0 0 34px; }
.wizard-step.is-active .wizard-step-number { background:linear-gradient(135deg,var(--primary),var(--secondary-2)); color:#fff; }
.wizard-step strong { display:block; margin-bottom:4px; }
.wizard-step small { color:var(--muted); display:block; line-height:1.4; }
.wizard-panel { display:none; }
.wizard-panel.is-active { display:block; }
.wizard-section-title { margin:0; font-size:1.15rem; }
.wizard-footer-actions { margin-top:18px; display:flex; justify-content:flex-end; }
.role-summary-box { min-height: 50px; border:1px dashed #bfdbfe; border-radius:16px; padding:12px 14px; background:#eff6ff; color:#1e3a8a; }
.user-permission-module { border-top:1px solid var(--border); padding-top:18px; margin-top:18px; }
.user-permission-module:first-of-type { border-top:none; padding-top:0; margin-top:10px; }

@media (max-width: 1180px) {
  .role-hero-grid, .wizard-steps, .matrix-grid, .permission-toggle-grid, .role-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .role-hero-grid, .wizard-steps, .matrix-grid, .permission-toggle-grid, .role-catalog { grid-template-columns: 1fr; }
  .role-module-head { flex-direction:column; }
}

.btn.is-disabled, .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(20%);
}

.input-like {
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.6);
    color: #0f172a;
}
@media (max-width: 992px) {
    .details-grid { grid-template-columns: 1fr !important; }
}

.readonly-stack{display:grid;gap:22px;margin-top:18px}
.readonly-section{padding-top:8px}
.readonly-section h3{margin:0 0 6px;font-size:1.04rem;color:#0f172a}
.readonly-section p.section-note{margin:0 0 12px;color:#64748b;font-size:.9rem}
.readonly-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dbe4f0;border-radius:16px;overflow:hidden}
.readonly-table th,.readonly-table td{padding:12px 14px;border-bottom:1px solid #e5edf6;text-align:left;vertical-align:top}
.readonly-table th{background:#f8fbff;font-size:.88rem;color:#475569}
.readonly-table tr:last-child td{border-bottom:0}
.readonly-empty{padding:14px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fbff;color:#64748b}
.kv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.kv-item{border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#fff;padding:14px}
.kv-item label{display:block;font-size:.84rem;font-weight:700;color:#475569;margin-bottom:6px}
.kv-item div{color:#0f172a;word-break:break-word}
@media (max-width: 992px){.kv-grid{grid-template-columns:1fr}}


.readonly-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.readonly-kpi-card { border:1px solid var(--border); border-radius:18px; padding:16px; background:#fff; box-shadow:0 12px 24px rgba(15,23,42,.06); }
.readonly-kpi-card span { display:block; color:var(--muted); font-size:.85rem; margin-bottom:8px; }
.readonly-kpi-card strong { display:block; font-size:1.1rem; color:#0f172a; }
.readonly-kpi-card small { color:var(--muted); }
.readonly-kpi-card--amber { border-top:4px solid #f59e0b; }
.readonly-kpi-card--blue { border-top:4px solid #2563eb; }
.readonly-kpi-card--green { border-top:4px solid #16a34a; }
.readonly-kpi-card--violet { border-top:4px solid #7c3aed; }
.workflow-timeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.workflow-step { position:relative; border:1px solid var(--border); border-radius:18px; padding:16px; background:#fff; min-height:132px; }
.workflow-step__dot { width:14px; height:14px; border-radius:999px; margin-bottom:10px; }
.workflow-step--done .workflow-step__dot { background:#16a34a; box-shadow:0 0 0 6px rgba(22,163,74,.12); }
.workflow-step--current .workflow-step__dot { background:#f59e0b; box-shadow:0 0 0 6px rgba(245,158,11,.14); }
.workflow-step--pending .workflow-step__dot { background:#cbd5e1; box-shadow:0 0 0 6px rgba(203,213,225,.3); }
.workflow-step p { margin:8px 0 0; color:#475569; font-size:.92rem; line-height:1.45; }
.readonly-map-layout { display:grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.2fr); gap:18px; align-items:start; }
.land-show-map { min-height:360px; border-radius:18px; border:1px solid var(--border); overflow:hidden; box-shadow:inset 0 0 0 1px rgba(255,255,255,.4); }
.audit-timeline { display:flex; flex-direction:column; gap:10px; }
.audit-timeline__item { border-left:3px solid #2563eb; padding:8px 0 8px 14px; background:#fff; border-radius:0 14px 14px 0; }
.workflow-map-marker { background:transparent; border:none; }
@media (max-width: 1100px) {
  .readonly-summary-grid, .workflow-timeline, .readonly-map-layout { grid-template-columns:1fr; }
}


/* v6.5 PRO settings */
.pro-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 24px;}
.pro-tab{padding:10px 16px;border:1px solid #d7deee;border-radius:999px;background:#fff;color:#31405a;font-weight:600;text-decoration:none;}
.pro-tab.active{background:linear-gradient(90deg,#315efb,#7c3aed);color:#fff;border-color:transparent;box-shadow:0 10px 25px rgba(49,94,251,.18);}
.settings-section-form{padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:#fbfdff;}
.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.form-group-full{grid-column:1/-1;}
.settings-two-column{align-items:start;}
.settings-side-form{padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;}
.settings-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;}
.settings-media-card{padding:16px;border:1px dashed #c9d5f0;border-radius:18px;background:#fff;display:flex;flex-direction:column;gap:12px;}
.settings-preview{width:100%;max-height:140px;object-fit:contain;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:10px;}
.settings-preview-sm{max-width:180px;max-height:80px;}
.backup-path-form{grid-template-columns:1fr auto;align-items:end;}
.quick-card-accent{border:1px solid #d9e2fb;background:linear-gradient(180deg,#f8fbff,#eef4ff);}
.inline-toggle label{display:flex;align-items:center;gap:10px;font-weight:600;}
@media (max-width: 1100px){.form-grid-3,.settings-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 760px){.form-grid-2,.form-grid-3,.settings-media-grid,.backup-path-form{grid-template-columns:1fr;}}


.geoland-map-shell { position: relative; overflow: hidden; }

.geoland-map-shell,
.geoland-map-shell *,
.geoland-map-shell .leaflet-container,
.geoland-map-shell .leaflet-pane,
.geoland-map-shell .leaflet-overlay-pane svg,
.geoland-map-shell .leaflet-overlay-pane path {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.geoland-map-shell .leaflet-interactive:focus,
.geoland-map-shell .leaflet-marker-icon:focus,
.geoland-map-shell .leaflet-marker-shadow:focus {
  outline: none;
}
.geoland-map-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100% - 24px);
}
.geoland-map-toolbar__row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.geoland-map-chip,
.geoland-map-tool {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  border-radius: 10px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.geoland-map-tool {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 18px;
}
.geoland-map-chip.is-active,
.geoland-map-tool.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.geoland-map-help-card {
  position: absolute;
  top: 108px;
  left: 12px;
  z-index: 520;
  width: min(430px, calc(100% - 24px));
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 0;
  display: none;
}
.geoland-map-help-card.is-visible { display: block; }
.geoland-map-help-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.geoland-map-help-card__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}
.geoland-map-help-card__body { padding: 16px; display: grid; gap: 12px; }
.geoland-map-help-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: #475569; }
.geoland-map-help-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 700;
}
.geoland-map-vertex-icon { background: transparent; border: none; }
.geoland-map-vertex {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.geoland-map-vertex.is-closable {
  background: #f59e0b;
  color: #111827;
}
.geoland-map-distance-icon { background: transparent; border: none; }
.geoland-map-distance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
#land-map .leaflet-top.leaflet-right {
  top: 10px;
  right: 10px;
}
#land-map .leaflet-control-zoom {
  margin-top: 0;
  margin-right: 0;
}
@media (max-width: 720px) {
  .geoland-map-toolbar { top: 10px; left: 10px; right: 10px; max-width: none; }
  .geoland-map-chip { padding: 0 12px; }
  .geoland-map-help-card { top: 146px; left: 10px; width: calc(100% - 20px); }
}


.geoland-map-shell .leaflet-pane,
.geoland-map-shell .leaflet-overlay-pane,
.geoland-map-shell .leaflet-overlay-pane svg,
.geoland-map-shell .leaflet-overlay-pane path {
  background: transparent !important;
}

.geoland-map-shell path.geoland-preview-line,
.geoland-map-shell path.geoland-draft-line,
.geoland-map-shell path.geoland-edge-hitbox,
.geoland-map-shell path.geoland-snap-guide {
  fill: none !important;
  fill-opacity: 0 !important;
}

.geoland-map-shell path.geoland-final-polygon {
  fill: rgba(107, 114, 128, 0.26) !important;
  fill-opacity: 1 !important;
}

.geoland-map-shell .leaflet-container { background: transparent; }


.document-inline-grid {
  grid-template-columns: minmax(160px,1.1fr) minmax(160px,.8fr) minmax(180px,1fr) minmax(220px,1.1fr) 110px 72px;
  align-items:end;
  gap:10px;
}
.document-inline-grid .form-group { margin-bottom:0; }
.document-entry-primary { display:flex; align-items:end; padding-bottom:12px; }
.document-entry-add { min-width:72px; }
.document-attachments-panel {
  border:1px solid rgba(37,99,235,.25);
  border-radius:16px;
  padding:12px 14px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.document-attachment-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.document-attachment-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.document-attachment-item__text { color:var(--muted-strong); }
@media (max-width: 1200px) {
  .document-inline-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .document-inline-grid { grid-template-columns: 1fr; }
}
