/* FermAgro — thème « supervision » rouge, ordinateur et téléphone */
:root {
  --primary: #b42318;
  --primary-hover: #912018;
  --primary-dark: #7a1a12;
  --primary-soft: #fef3f2;
  --primary-100: #fee4e2;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #1d2939;
  --muted: #667085;
  --ok: #027a48;
  --ok-soft: #ecfdf3;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --tile-green: #12b76a;
  --tile-blue: #2e90fa;
  --tile-purple: #7a5af8;
  --tile-orange: #f79009;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --appbar-h: 60px;
  --sidebar-w: 268px;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); font-size: 14.5px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
h1 { font-size: 1.35rem; font-weight: 500; margin: 0; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .85rem; }
.boot { padding: 3rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================== Structure */
.layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: var(--appbar-h) 1fr; }
.layout.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.layout.collapsed .sidebar { visibility: hidden; }

/* --------------------------------------------------------- Barre du haut */
.appbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; height: var(--appbar-h); background: var(--primary); color: #fff;
  display: flex; align-items: center; gap: .75rem; padding: 0 1rem 0 .6rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.appbar .icon-btn { background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none; }
.appbar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.appbar .icon-btn .ico { width: 22px; height: 22px; }
.appbar .logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; min-width: 0; }
.appbar .logo .mark { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.appbar .logo .mark img { width: 24px; height: 24px; }
.appbar .logo b { font-size: 1rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .search { flex: 1; max-width: 480px; margin-left: 1.2rem; position: relative; }
.appbar .search input { width: 100%; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; padding: .55rem .8rem .55rem 2.3rem; outline: none; }
.appbar .search input::placeholder { color: rgba(255, 255, 255, .8); }
.appbar .search input:focus { background: #fff; color: var(--text); }
.appbar .search input:focus::placeholder { color: var(--muted); }
.appbar .search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .85); pointer-events: none; }
.appbar .search:focus-within .ico { color: var(--muted); }
.appbar .spacer { flex: 1; }
.appbar .quick { background: #fff; color: var(--primary-dark); border: 0; border-radius: 6px; padding: .45rem .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; white-space: nowrap; }
.appbar .quick:hover { background: var(--primary-soft); }
.appbar .pill-warn { background: #fff1f0; color: var(--primary); border-radius: 99px; padding: .3rem .75rem; font-size: .8rem; font-weight: 600; white-space: nowrap; display: inline-flex; gap: .35rem; align-items: center; }
.appbar .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; border-radius: 99px; background: #fff; color: var(--primary); font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.appbar .user { display: flex; align-items: center; gap: .55rem; background: none; border: 0; color: #fff; cursor: pointer; padding: .25rem .4rem; border-radius: 8px; }
.appbar .user:hover { background: rgba(255, 255, 255, .12); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.appbar .user span { font-weight: 500; white-space: nowrap; }

.menu-pop { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 28px rgba(16, 24, 40, .18); min-width: 230px; padding: .35rem; color: var(--text); }
.menu-pop .head { padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.menu-pop .head small { display: block; color: var(--muted); }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop .ico { color: var(--muted); }
.menu-pop .item-sub { color: var(--muted); font-size: .8rem; margin-left: auto; white-space: nowrap; }

/* ----------------------------------------------------------- Menu latéral */
.sidebar { background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: var(--appbar-h); height: calc(100vh - var(--appbar-h)); overflow-y: auto; padding: .9rem .75rem 2rem; }
.sidebar .sec { text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 1.1rem .6rem .35rem; border-top: 1px solid var(--border); margin-top: .6rem; }
.sidebar .sec:first-child { border-top: 0; margin-top: 0; padding-top: .2rem; }
.sidebar a.nav, .sidebar button.grp { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem; border-radius: 6px; color: #344054; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: .95rem; text-align: left; }
.sidebar a.nav:hover, .sidebar button.grp:hover { background: var(--surface-2); }
.sidebar .ico { color: #475467; }
.sidebar a.nav.top { font-weight: 600; }
.sidebar a.nav.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar a.nav.active .ico { color: #fff; }
.sidebar button.grp .chev { margin-left: auto; transition: transform .15s; width: 16px; height: 16px; }
.sidebar .group.open > button.grp .chev { transform: rotate(180deg); }
.sidebar .group .children { display: none; margin: .1rem 0 .35rem 1.05rem; padding-left: .7rem; border-left: 1px solid var(--border); }
.sidebar .group.open .children { display: block; }
.sidebar .children a.nav { font-size: .9rem; padding: .45rem .6rem; }
.sidebar .children .ico { width: 16px; height: 16px; }
.sidebar .children a.nav.active { background: var(--primary-soft); color: var(--primary); }
.sidebar .children a.nav.active .ico { color: var(--primary); }
.sidebar .group.has-active > button.grp { color: var(--primary); font-weight: 600; }
.sidebar .group.has-active > button.grp .ico { color: var(--primary); }
.backdrop { display: none; }

/* ----------------------------------------------------------------- Contenu */
.content { min-width: 0; padding: 0 1.5rem 2rem; }
.page-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--surface); margin: 0 -1.5rem 1.4rem; padding: .9rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: var(--appbar-h); z-index: 10; }
.page-head .spacer { flex: 1; }
.page-head .date { color: var(--muted); font-size: .92rem; }
.crumb { font-size: .85rem; margin-bottom: .2rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--primary); }

/* ------------------------------------------------------------- Composants */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--border-strong); background: var(--surface); padding: .45rem .85rem; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: #344054; min-height: 36px; }
.btn:hover { background: var(--surface-2); }
.btn .ico { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: .25rem .6rem; font-size: .85rem; min-height: 30px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.grid { display: grid; gap: 1.1rem; }
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kpi { display: flex; gap: 1rem; align-items: center; }
.kpi .tile { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.kpi .tile .ico { width: 26px; height: 26px; stroke-width: 2; }
.kpi .tile.green { background: var(--tile-green); } .kpi .tile.blue { background: var(--tile-blue); }
.kpi .tile.purple { background: var(--tile-purple); } .kpi .tile.orange { background: var(--tile-orange); }
.kpi .tile.red { background: var(--primary); }
.kpi .value { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .label { color: var(--muted); font-size: .9rem; }
.kpi .sub { color: var(--muted); font-size: .78rem; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

.site-card h3 { font-size: 1rem; margin: 0; }
.site-card .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; gap: .5rem; }
.state { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.state::before { content: "●"; margin-right: .3rem; }
.state.on { color: var(--ok); } .state.off { color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-bottom: 1px solid #f2f4f7; }
.kv span:first-child { color: #344054; }
.kv b { font-weight: 600; }
.site-card .btn-row { margin-top: .8rem; }

.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--primary); }
.chart .bar.zero { fill: var(--primary-100); }
.chart text { font-size: 11px; fill: var(--muted); }

.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 600; background: #f2f4f7; color: #475467; white-space: nowrap; }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.demo-badge { background: #fff; color: var(--primary); font-size: .78rem; font-weight: 700; padding: .28rem .7rem; border-radius: 99px; white-space: nowrap; }

.search-box { padding: .45rem .75rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); min-width: 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .62rem .8rem; text-align: left; border-bottom: 1px solid #eaecf0; vertical-align: middle; }
th { background: var(--surface-2); font-size: .85rem; color: #344054; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #fcfcfd; }
td.actions { text-align: right; white-space: nowrap; width: 1%; }
tfoot td { font-weight: 600; background: var(--surface-2); }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; display: block; margin: 0 auto .5rem; color: #98a2b3; stroke-width: 1.4; }
.card .table-wrap { border: none; border-radius: 0; margin: 0 -1.2rem -1.1rem; box-shadow: none; }
.card .table-wrap table { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.section-head h2 { margin: 0; flex: 1; }

dl.info { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }
.bilan-row { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-bottom: 1px solid #f2f4f7; }
.bilan-row.total { font-weight: 700; border-bottom: none; border-top: 2px solid var(--border); margin-top: .2rem; padding-top: .55rem; }

/* -------------------------------------------------------------- Formulaires */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 600; color: #344054; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { padding: .55rem .7rem; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; width: 100%; min-height: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-box:focus, .period input:focus { outline: 3px solid var(--primary-100); border-color: var(--primary); }
.field textarea { min-height: 72px; resize: vertical; }
.field .help { font-size: .8rem; color: var(--muted); }
.form-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecdca; padding: .6rem .8rem; border-radius: 6px; margin-bottom: .8rem; }

.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 1rem; z-index: 70; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 10px; width: 100%; max-width: 680px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal header { display: flex; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--border); }
.modal header h2 { margin: 0; flex: 1; }
.modal .body { padding: 1.1rem 1.2rem; }
.modal footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .85rem 1.2rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 10px 10px; }

#toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: #101828; color: #fff; padding: .65rem 1rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; max-width: 90vw; }
#toast.show { opacity: 1; }
#toast.error { background: var(--danger); }

/* ------------------------------------------------------------- Connexion */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; background: var(--bg); }
.auth .auth-top { width: 100%; max-width: 420px; background: var(--primary); color: #fff; border-radius: 10px 10px 0 0; padding: 1.3rem 1.6rem; display: flex; align-items: center; gap: .8rem; }
.auth .auth-top .mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.auth .auth-top .mark img { width: 28px; height: 28px; }
.auth .auth-top b { display: block; font-size: 1.15rem; letter-spacing: .3px; }
.auth .auth-top span { font-size: .88rem; opacity: .9; }
.auth .card { width: 100%; max-width: 420px; padding: 1.6rem; border-radius: 0 0 10px 10px; border-top: 0; }
.auth .field { margin-bottom: .9rem; }

/* ------------------------------------------------------------ Droits, divers */
.perm-table select { padding: .35rem .45rem; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; }
.perm-table td.group { background: var(--primary-soft); font-weight: 700; color: var(--primary); }
.meter { height: 8px; background: #f2f4f7; border-radius: 99px; overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; background: var(--primary); }
.period { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.period input { padding: .35rem .5rem; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; min-height: 30px; }
.result-group h2 { display: flex; align-items: center; gap: .5rem; }


.appbar .search-toggle { display: none; }
.sidebar .drawer-head { display: none; align-items: center; gap: .6rem; padding: 0 .4rem .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--border); }
.sidebar .drawer-head .mark { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; flex: none; }
.sidebar .drawer-head .mark img { width: 24px; height: 24px; }
.sidebar .drawer-head div { flex: 1; min-width: 0; }
.sidebar .drawer-head b { display: block; font-size: .95rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .drawer-head small { color: var(--muted); }

/* ------------------------------------------------------- Barre d'onglets mobile */
.tabbar { display: none; }

/* ================================================================ Tablette */
@media (max-width: 1100px) {
  .appbar .user span, .appbar .quick span { display: none; }
}

/* ============================================================== Téléphone */
@media (max-width: 860px) {
  :root { --appbar-h: 56px; }
  body { font-size: 15px; }
  .layout, .layout.collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; width: 84vw; max-width: 320px; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; visibility: visible !important; box-shadow: 0 0 30px rgba(0, 0, 0, .25); padding-top: 1rem; }
  .layout.nav-open .sidebar { transform: none; }
  .layout.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 40; }
  .sidebar .drawer-head { display: flex; }
  .appbar { padding: 0 .4rem; gap: .25rem; }
  .appbar .logo b { font-size: .9rem; max-width: 44vw; }
  .appbar .logo .mark { width: 32px; height: 32px; }
  .appbar .search { display: none; position: absolute; left: .5rem; right: .5rem; top: 8px; margin: 0; max-width: none; z-index: 2; }
  .appbar.searching .search { display: block; }
  .appbar.searching .search input { background: #fff; color: var(--text); }
  .appbar .search-toggle { display: inline-flex; }
  .appbar .quick, .appbar .pill-warn, .appbar .demo-badge { display: none; }
  .appbar .user { padding: .2rem; }
  .content { padding: 0 .85rem calc(76px + env(safe-area-inset-bottom)); }
  .page-head { margin: 0 -.85rem 1rem; padding: .7rem .85rem; gap: .5rem; position: static; }
  .page-head h1 { font-size: 1.15rem; flex: 1 1 100%; }
  .page-head .spacer { display: none; }
  .page-head .search-box { flex: 1; min-width: 0; }
  .page-head .date { display: none; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .grid.kpis { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .kpi { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem; }
  .kpi .tile { width: 38px; height: 38px; }
  .kpi .tile .ico { width: 21px; height: 21px; }
  .kpi .value { font-size: 1.05rem; }
  .kpi .label { font-size: .82rem; }
  .card { padding: 1rem; }
  .card .table-wrap { margin: 0 -1rem -1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-back { padding: 0; align-items: stretch; }
  .modal { max-width: none; border-radius: 0; min-height: 100%; display: flex; flex-direction: column; }
  .modal .body { flex: 1; }
  .modal footer { position: sticky; bottom: 0; border-radius: 0; padding-bottom: calc(.85rem + env(safe-area-inset-bottom)); }
  .modal footer .btn { flex: 1; min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 44px; font-size: 16px; }
  .btn { min-height: 40px; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Barre d'onglets en bas */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 8px rgba(16, 24, 40, .06); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .5rem; font-size: .7rem; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--primary); font-weight: 600; }
  .tabbar .plus { position: relative; top: -14px; }
  .tabbar .plus span.round { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(180, 35, 24, .4); }
  .tabbar .plus span.round .ico { width: 26px; height: 26px; }
  .tabbar .plus { color: var(--primary); font-weight: 600; }

  /* Tableaux -> fiches empilées */
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap tfoot { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr, .table-wrap tfoot tr { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: .6rem; padding: .55rem .8rem; box-shadow: var(--shadow); }
  .table-wrap td { border: 0; padding: .22rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: none; max-width: 48%; }
  .table-wrap td:first-child { font-weight: 600; font-size: 1rem; text-align: left; padding-bottom: .35rem; }
  .table-wrap td:first-child::before { display: none; }
  .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap td.num { text-align: right; }
  .table-wrap td.actions { width: 100%; justify-content: flex-end; border-top: 1px solid #f2f4f7; margin-top: .35rem; padding-top: .45rem; }
  .table-wrap td.actions::before { display: none; }
  .card .table-wrap { margin: 0; }
  .card .table-wrap table { border-top: 0; }
  .card .table-wrap tbody tr { box-shadow: none; background: var(--surface-2); }
  dl.info { grid-template-columns: minmax(0, 40%) 1fr; }
}
@media (max-width: 380px) {
  .grid.kpis { grid-template-columns: minmax(0, 1fr); }
}
