/* Admin dashboard styling (complements style.css). */
body.adm-body { background: #f6f8f7; color: #111827; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.adm-tab { background: none; border: none; padding: 11px 18px; font-size: .9rem; font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; }
.adm-tab.active { color: #16a34a; border-bottom-color: #16a34a; }
.adm-tab:hover { color: #111827; }

.adm-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.adm-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.adm-stat-val { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.adm-stat-label { color: #6b7280; font-size: .8rem; margin-top: 6px; }

.adm-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.adm-toolbar input, .adm-toolbar select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .85rem; }
.adm-toolbar input { flex: 1; min-width: 160px; }

.adm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; font-size: .85rem; }
.adm-table th { background: #f9fafb; text-align: left; padding: 11px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
.adm-table td { padding: 11px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table select { padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: .8rem; }
.adm-table a { color: #16a34a; }

.adm-btn { background: #16a34a; color: #fff; border: none; padding: 8px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.adm-btn:hover { background: #15803d; }
.adm-btn-ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.adm-btn-ghost:hover { background: #f9fafb; }
.adm-btn-danger { background: #fee2e2; color: #b91c1c; }
.adm-btn-danger:hover { background: #fecaca; }

.adm-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.adm-form-grid label, .adm-card > label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: #374151; }
.adm-form-grid input, .adm-form-grid select, .adm-card textarea, .adm-card input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .85rem; font-weight: 400; }

/* Lead detail drawer + key-value table + link-style buttons */
.linklike { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: #16a34a; }
.linklike:hover { text-decoration: underline; }
.adm-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; justify-content: flex-end; z-index: 100; }
.adm-drawer { width: min(520px, 100%); background: #fff; height: 100%; overflow-y: auto; padding: 20px; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.adm-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.adm-drawer-head strong { font-size: 1.05rem; }
.adm-kv { width: 100%; border-collapse: collapse; font-size: .85rem; }
.adm-kv th { text-align: left; color: #6b7280; font-weight: 600; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; width: 130px; }
.adm-kv td { padding: 6px 0; color: #111827; word-break: break-word; }
.adm-kv tr + tr th, .adm-kv tr + tr td { border-top: 1px solid #f3f4f6; }
