/* ── Shared styles — pulled from index.php inline styles ── */
:root {
  --bg:         #f5f3ef;
  --bg2:        #ede9e1;
  --surface:    #ffffff;
  --surface2:   #faf8f4;
  --border:     #e2ddd5;
  --border2:    #cfc9be;
  --text:       #1a1714;
  --text2:      #6b6156;
  --text3:      #a39b8f;
  --amber:      #d97706;
  --amber-light:#fef3c7;
  --amber-mid:  #fbbf24;
  --green:      #059669;
  --green-light:#d1fae5;
  --red:        #dc2626;
  --red-light:  #fee2e2;
  --blue:       #2563eb;
  --blue-light: #dbeafe;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-header { background: var(--text); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 36px; height: 36px; background: var(--amber); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 900; }
.logo-text { font-size: 1rem; font-weight: 700; letter-spacing: -.3px; }
.logo-sub  { font-size: .65rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 6px 14px; border-radius: 6px; color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem; font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active { color: var(--amber-mid); }
.page-body { padding: 28px 0 60px; }
.section-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.4px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--amber); border-radius: 2px; }
.flash { padding: 12px 18px; border-radius: var(--radius); margin: 20px 0; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: slideIn .3s ease; }
.flash-ok   { background: var(--green-light); color: #065f46; border: 1px solid #a7f3d0; }
.flash-warn { background: var(--red-light);   color: #7f1d1d; border: 1px solid #fca5a5; }
@keyframes slideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: var(--radius); font-size: .84rem; font-weight: 700; font-family: 'Outfit', sans-serif; cursor: pointer; border: none; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,.3); }
.btn-primary:hover { background: #b45309; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text2); border: 1.5px solid var(--border2); }
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }
.btn-danger { background: var(--red-light); color: var(--red); border: 1.5px solid #fca5a5; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: .76rem; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #047857; }
.btn-blue { background: var(--blue); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 6px; }
.stat-value { font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--text); }
.stat-sub   { font-size: .72rem; color: var(--text3); margin-top: 4px; }
.stat-card.amber .stat-value { color: var(--amber); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.blue  .stat-value { color: var(--blue); }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.table-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface2); }
.table-card-title { font-size: .9rem; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 10px 14px; text-align: left; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); border-bottom: 1px solid var(--border); background: var(--surface2); white-space: nowrap; }
tbody td { padding: 12px 14px; font-size: .84rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }
.td-work p { color: var(--text); line-height: 1.5; }
.no-query { color: var(--text3); font-size: .78rem; font-style: italic; }
.actions-col { display: flex; gap: 6px; white-space: nowrap; }
.mbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.mb-diviya  { background: #fce7f3; color: #9d174d; }
.mb-ramya   { background: #ede9fe; color: #5b21b6; }
.mb-joseph  { background: #dbeafe; color: #1e40af; }
.mb-prassin { background: #d1fae5; color: #065f46; }
.mb-arun    { background: #fef3c7; color: #78350f; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 12px; font-size: .7rem; font-weight: 600; }
.chip-query { background: var(--blue-light); color: #1e40af; }
.chip-none  { background: var(--bg2); color: var(--text3); }
.report-filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 24px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.rf-group { display: flex; flex-direction: column; gap: 5px; }
.rf-group label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text2); }
.rf-group input, .rf-group select { min-width: 150px; }
input[type=text], input[type=date], select, textarea { background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 10px 14px; font-size: .88rem; font-family: 'Outfit', sans-serif; width: 100%; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217,119,6,.12); background: #fff; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6156' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
.truncate { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr 1fr; } .nav-links { display: none; } .report-filters { flex-direction: column; } }
