:root{
  --brand:#0d6efd;
  --ink:#1f2937;
  --muted:#6b7280;
  --bg:#f4f6f8;
  --white:#fff;
  --ring:rgba(13,110,253,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body {
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  padding:20px;
}

.card {
  flex:1;
  width:100%;
  max-width:100%;
  background:var(--white);
  border-radius:14px;
  padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

h2{margin:0 0 14px}

input,button,select{
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #d1d5db;
  outline:none;
  transition:.15s border-color,.15s box-shadow;
  font-size:15px;
}
input,select{width:100%}
input:focus,select:focus{border-color:var(--brand); box-shadow:0 0 0 4px var(--ring)}
button{background:var(--brand); color:#fff; cursor:pointer; font-weight:600}
button.ghost{background:transparent; color:var(--brand); border-color:var(--brand)}
button + button{margin-left:8px}
#error,.error{color:#e11d48; text-align:center; margin:8px 0 0}

.dash-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.spacer{flex:1}

.toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:12px;
}
.toolbar #search-input{
  flex:1;
  min-width:240px;
}
.toolbar-right{
  display:flex;
  gap:8px;
  align-items:center;
}

.switch{
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
}
.switch input{width:auto; accent-color:var(--brand);}

.table-wrap{
  flex:1;
  overflow:auto;
  border-radius:10px;
  border:1px solid #e5e7eb;
  margin-top: 12px;
  max-height: 80vh;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: var(--brand);
  color: #fff;
  z-index: 5;
}

tr:hover td{background:#f8fafc}

/* Loader */
.loader{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
}
.hidden{display:none}
.spinner{
  width:42px; height:42px;
  border:4px solid #e5e7eb;
  border-top-color: var(--brand);
  border-radius:50%;
  animation: spin 1s linear infinite;
}
.loader-text{color:#334155; font-weight:600}
@keyframes spin{to{transform: rotate(360deg)}}
.profile {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.profile-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}
.profile-text h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}
.profile-text p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}
.table-wrap select {
  min-width: 120px;   /* columns के हिसाब से बढ़ा सकते हो */
  padding: 4px 6px;
  font-size: 13px;
}
.table-wrap select {
  overflow: visible;
}

tr.saving { opacity: 0.7; transition: opacity .15s; }
td.saving { position: relative; }
td.saving::after { content: "Saving"; font-size: 11px; margin-left:6px; color:#666; }


