/* ============================ Reset & base ============================ */
:root {
  --navy: #0f2a4a;
  --navy-2: #1f4e79;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --bg: #eef2f7;
  --surface: #ffffff;
  --border: #d8e0ea;
  --text: #1b2733;
  --muted: #687587;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 42, 74, .08), 0 8px 24px rgba(15, 42, 74, .06);
  --shadow-lg: 0 12px 40px rgba(15, 42, 74, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============================== Buttons =============================== */
.btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); padding: 6px 10px; }
.btn-ghost:hover { background: rgba(37, 99, 235, .08); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn-block { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================== Login ================================ */
.login-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.18), transparent),
    linear-gradient(160deg, #0f2a4a, #16385f 60%, #1f4e79);
}
.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 36px 34px 30px;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  display: block; object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31,78,121,.3);
}
.login-brand h1 { font-size: 1.55rem; color: var(--navy); letter-spacing: -.02em; }
.login-brand p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label, .field label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--navy);
}
.login-foot { color: rgba(255,255,255,.75); font-size: .82rem; }
.login-remember {
  flex-direction: row !important; align-items: center; gap: 9px;
  font-weight: 500 !important; color: var(--text) !important; cursor: pointer;
  font-size: .9rem; margin-top: -4px;
}
.login-remember input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }

/* ============================== Inputs =============================== */
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=tel], input[type=datetime-local], select, textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
textarea { resize: vertical; min-height: 70px; }
select { cursor: pointer; }

.form-error {
  background: var(--red-bg); color: var(--red);
  padding: 9px 12px; border-radius: 8px; font-size: .85rem; font-weight: 500;
}

/* ============================== Topbar =============================== */
.app-view { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  height: 60px;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.topbar-left {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; color: #fff; font: inherit; cursor: pointer;
  padding: 6px 8px; margin-left: -8px; border-radius: 9px; transition: background .15s;
}
.topbar-left:hover { background: rgba(255,255,255,.08); }
.topbar-logo {
  width: 36px; height: 36px; display: block; object-fit: contain; border-radius: 8px;
}
.topbar-title { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; line-height: 1.1; }
.brand-de { font-size: .72em; font-weight: 500; opacity: .85; }
.tabs { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.tab {
  font: inherit; font-weight: 600; font-size: .9rem;
  background: transparent; color: rgba(255,255,255,.72);
  border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  transition: all .15s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.tab.active { color: #fff; background: rgba(255,255,255,.16); }
.tab-link { text-decoration: none; display: inline-flex; align-items: center; }

.topbar-right { display: flex; align-items: center; }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.08); color: #fff;
  border: none; padding: 6px 12px 6px 6px; border-radius: 30px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .88rem;
}
.user-btn:hover { background: rgba(255,255,255,.16); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(160deg, var(--blue), #60a5fa);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.caret { font-size: .7rem; opacity: .8; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; color: var(--text);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 230px; padding: 8px; z-index: 40;
}
.user-dropdown-email {
  font-size: .8rem; color: var(--muted); padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px; word-break: break-all;
}
.user-dropdown button {
  width: 100%; text-align: left; background: none; border: none;
  font: inherit; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--text);
}
.user-dropdown button:hover { background: var(--bg); }

/* ============================== Content ============================== */
.content { flex: 1; padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }
.panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: 1.2rem; color: var(--navy); }

/* Week bar */
.week-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-arrow {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: all .15s;
  display: grid; place-items: center;
}
.week-arrow:hover { border-color: var(--blue); color: var(--blue); background: #f6f9fc; }
.week-arrow:active { transform: translateY(1px); }
.week-display { min-width: 200px; text-align: center; }
.week-title-line { display: flex; align-items: center; justify-content: center; gap: 8px; }
.week-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.week-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: var(--green-bg); color: var(--green); padding: 2px 8px; border-radius: 20px;
}
.week-dates { font-size: .85rem; color: var(--muted); font-weight: 500; }
.piquet-box {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--bg); padding: 8px 12px; border-radius: 10px;
}
.piquet-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.piquet-name { font-weight: 700; color: var(--navy); }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-spacer { flex: 1; }
.search-input { max-width: 420px; }

/* ============================= Entries =============================== */
.entries-container { display: flex; flex-direction: column; gap: 12px; }

.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-2);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .1s;
}
.entry-card.depl { border-left-color: var(--amber); }
.entry-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.entry-time { font-weight: 700; color: var(--navy); font-size: .95rem; }
.entry-caller { color: var(--muted); font-size: .9rem; }
.entry-caller strong { color: var(--text); font-weight: 600; }
.entry-actions { margin-left: auto; display: flex; gap: 6px; }
.entry-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.entry-field-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin-bottom: 3px;
}
.entry-field-value { white-space: pre-wrap; word-break: break-word; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .73rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.badge-depl { background: var(--amber-bg); color: var(--amber); }
.badge-nodepl { background: #eef2f7; color: var(--muted); }
.chip {
  display: inline-block; font-size: .76rem; font-weight: 600;
  background: #eef2f7; color: var(--navy); padding: 2px 8px; border-radius: 6px;
}

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state .ico { font-size: 40px; opacity: .4; display: block; margin-bottom: 10px; }

/* Tables (annuaire / comptes) */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.data-table th {
  text-align: left; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: #f6f9fc; padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f9fbfd; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.status-pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-active { background: var(--green-bg); color: var(--green); }
.status-blocked { background: var(--red-bg); color: var(--red); }
.role-pill { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e0e7ff; color: #3730a3; }

/* ===================== Annuaire Justice militaire ==================== */
.jm-search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.jm-search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.jm-search-ico { font-size: 1.1rem; opacity: .6; }
.jm-search-input { border: none; box-shadow: none !important; font-size: 1.05rem; padding: 10px 0; background: transparent; }
.jm-search-input:focus { outline: none; }
.jm-count { font-size: .85rem; color: var(--muted); font-weight: 600; }

.jm-results { display: flex; flex-direction: column; gap: 18px; }
.jm-back { align-self: flex-start; }
.jm-section-group > h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--navy); font-weight: 700; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.jm-section-group > h3 .sec-count { color: var(--muted); font-weight: 600; font-size: .75rem; }
.jm-section-group .sec-vcf { margin-left: auto; }

.jm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.jm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s;
}
.jm-card:hover { border-color: #c2d2e6; }
.jm-card.is-service { border-left: 3px solid #0891b2; }
.jm-card-name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.jm-card-role { font-size: .82rem; color: var(--muted); }
.jm-card-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.jm-phone {
  font-weight: 700; color: var(--blue); text-decoration: none; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 5px;
}
.jm-phone:hover { text-decoration: underline; }
.jm-email { font-size: .82rem; color: var(--muted); text-decoration: none; }
.jm-email:hover { color: var(--blue); }
.jm-card-actions { display: flex; gap: 4px; margin-top: 6px; }
.jm-card .jm-tag {
  font-size: .68rem; font-weight: 600; background: #eef2f7; color: var(--navy);
  padding: 2px 7px; border-radius: 6px;
}

.jm-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.jm-sec-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; box-shadow: var(--shadow); transition: all .15s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.jm-sec-tile:hover { border-color: var(--blue); transform: translateY(-1px); }
.jm-sec-tile .t-name { font-weight: 600; color: var(--navy); font-size: .92rem; }
.jm-sec-tile .t-count {
  background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem;
  padding: 3px 10px; border-radius: 20px; flex-shrink: 0;
}

/* ============================ Activité live ========================== */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; margin-left: 4px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulse 1.8s infinite;
}
.live-dot.off { background: #64748b; animation: none; box-shadow: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.live-status { font-size: .82rem; font-weight: 600; color: var(--green); }
.live-status.off { color: var(--muted); }

.activity-feed { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--navy-2); border-radius: 10px;
  padding: 11px 14px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 12px;
  animation: slidein .25s ease;
}
.activity-item.t-entry_new { border-left-color: var(--blue); }
.activity-item.t-entry_edit { border-left-color: var(--amber); }
.activity-item.t-entry_del { border-left-color: var(--red); }
.activity-item.t-login { border-left-color: var(--green); }
.activity-item.t-piquet { border-left-color: #7c3aed; }
.activity-item.t-account { border-left-color: #0891b2; }
.activity-ico {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; font-size: 15px; background: #eef2f7;
}
.activity-main { flex: 1; min-width: 0; }
.activity-title { font-weight: 600; color: var(--text); }
.activity-detail { font-size: .86rem; color: var(--muted); margin-top: 2px; word-break: break-word; }
.activity-meta { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.activity-time { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.activity-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.activity-undo { color: var(--red); padding: 3px 8px; }
.activity-undo:hover { background: var(--red-bg); }
.activity-item.reverted { opacity: .6; }
.activity-item.reverted .activity-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.reverted-badge { background: #e5e7eb !important; color: var(--muted) !important; }
.activity-badge {
  font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 12px;
  background: var(--amber-bg); color: var(--amber); margin-left: 6px;
}

/* ============================== Modal ================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,42,74,.5);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 100; overflow-y: auto;
  animation: fade .15s ease;
}
.modal {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.12rem; color: var(--navy); }
.modal-close {
  background: none; border: none; font-size: 1.1rem; color: var(--muted);
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px; }

.field { margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.checkbox-field {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bg); padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--navy);
}
.checkbox-field input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--blue); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.cred-banner {
  padding: 11px 14px; border-radius: 9px; font-size: .9rem; font-weight: 500;
  margin-bottom: 16px; background: #eef2f7; color: var(--navy);
}
.cred-banner.ok { background: var(--green-bg); color: var(--green); }
.cred-banner.err { background: var(--red-bg); color: var(--red); }

.cred-box {
  background: var(--green-bg); border: 1px solid #86efac; border-radius: 10px;
  padding: 14px 16px; margin: 6px 0 4px;
}
.cred-box code {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  background: #fff; padding: 4px 10px; border-radius: 6px; user-select: all;
}

/* ====================== Barre d'actions fixe ======================== */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 12px; align-items: stretch;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(15, 42, 74, .1);
}
.bottom-bar .btn { padding: 13px 18px; font-size: .98rem; border-radius: 11px; }
.bottom-bar .btn-add { flex: 1; justify-content: center; }
.bottom-bar .add-plus { font-size: 1.2rem; line-height: 1; margin-right: 2px; }

.btn-call {
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; box-shadow: 0 4px 14px rgba(185, 28, 28, .35);
}
.btn-call:hover { background: #991b1b; }
.btn-call .call-ico { font-size: 1.15rem; }
.btn-call .call-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-call .call-text strong { font-size: .92rem; }
.btn-call .call-text span { font-size: .82rem; opacity: .92; font-weight: 600; }

/* Espace pour ne pas masquer le dernier élément sous la barre fixe. */
body.with-bottom-bar .content { padding-bottom: 104px; }

/* ============================== Toasts =============================== */
.toast-container {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--navy); color: #fff; padding: 13px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500;
  animation: slidein .2s ease; max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ============================ Responsive ============================= */
@media (max-width: 820px) {
  /* La barre supérieure passe sur deux rangées : marque + utilisateur en haut,
     onglets en pleine largeur dessous (tous visibles, sans défilement caché). */
  .topbar {
    gap: 8px; padding: 8px 12px; height: auto; flex-wrap: wrap;
    align-items: center;
  }
  .topbar-title { display: none; }
  .topbar-left { order: 1; }
  .topbar-right { order: 2; margin-left: auto; }
  .tabs {
    order: 3; flex: 0 0 100%; width: 100%; margin: 6px 0 0; gap: 6px;
    flex-wrap: wrap; overflow: visible; justify-content: stretch;
  }
  .tab {
    flex: 1 1 auto; text-align: center; padding: 9px 10px; font-size: .82rem;
    background: rgba(255,255,255,.08); white-space: nowrap;
  }
  .tab.active { background: rgba(255,255,255,.22); }
  .user-name { display: none; }
  .content { padding: 16px 12px; }
  .week-bar { padding: 14px; }
  .piquet-box { margin-left: 0; width: 100%; justify-content: space-between; }
  .entry-body { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* tables -> cartes */
  .data-table, .data-table thead, .data-table tbody, .data-table th,
  .data-table td, .data-table tr { display: block; }
  .data-table thead { display: none; }
  .data-table { border: none; background: transparent; box-shadow: none; }
  .data-table tr {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 10px; padding: 6px 4px; box-shadow: var(--shadow);
  }
  .data-table td { border: none; padding: 7px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .data-table td::before {
    content: attr(data-label); font-weight: 700; color: var(--muted);
    font-size: .73rem; text-transform: uppercase; letter-spacing: .03em;
  }
  .row-actions { justify-content: flex-start; }
}
