/* Swift Move India - admin / ERP styles */
.admin-body { background: #F4F7FB; font-size: 15px; }
.admin-body .card:hover { transform: none; box-shadow: var(--shadow); }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--navy); color: #bcccdc; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 70; transition: transform .25s; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-brand:hover { color: #fff; }
.sb-brand img { border-radius: 8px; }
.sb-brand span { display: flex; flex-direction: column; line-height: 1.15; } .sb-brand strong { font-size: .95rem; letter-spacing: .05em; } .sb-brand small { font-size: .65rem; letter-spacing: .22em; color: var(--orange); }
.sidebar nav { padding: 12px 10px 30px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #bcccdc; font-weight: 500; font-size: .93rem; margin-bottom: 2px; }
.sb-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-link.active { background: var(--blue); color: #fff; }
.sb-ic { width: 22px; text-align: center; }
.sb-group { text-transform: uppercase; font-size: .68rem; letter-spacing: .14em; color: #7b93ab; margin: 18px 12px 6px; font-weight: 700; }
.sb-backdrop { display: none; }
.content { margin-left: 250px; flex: 1; min-width: 0; transition: margin .25s; display: flex; flex-direction: column; }
body.sb-collapsed .sidebar { transform: translateX(-250px); } body.sb-collapsed .content { margin-left: 0; }
.admin-top { position: sticky; top: 0; z-index: 50; background: #fff; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; box-shadow: 0 1px 8px rgba(16,42,67,.08); }
.at-left, .at-right { display: flex; align-items: center; gap: 12px; }
.at-title { font-size: 1.15rem; margin: 0; }
.icon-btn { position: relative; background: none; border: 0; font-size: 1.3rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; color: var(--navy); }
.icon-btn:hover { background: var(--bg); }
.dot { position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: .62rem; border-radius: 99px; padding: 1px 5px; font-weight: 700; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 80; overflow: hidden; }
.dropdown-menu.right { right: 0; left: auto; min-width: 190px; }
.dropdown.open .dropdown-menu { display: block; }
.at-right .dropdown:first-child .dropdown-menu { right: 0; left: auto; }
.dd-head { padding: 10px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.dd-item { display: block; padding: 10px 14px; color: var(--text); border-bottom: 1px solid #F0F4F8; font-size: .9rem; text-align: left; }
.dd-item small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.dd-item.unread { background: #F2F8FF; } .dd-item:hover { background: var(--bg); color: var(--blue); }
.dd-btn { width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit; border-bottom: 0; }
.dd-foot { display: block; text-align: center; padding: 9px; font-size: .86rem; font-weight: 600; background: #FAFCFE; }
.profile-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 10px; font-family: inherit; text-align: left; }
.profile-btn:hover { background: var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pb-name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; color: var(--navy); font-size: .88rem; } .pb-name small { color: var(--muted); font-weight: 400; }
.page { padding: 24px; flex: 1; }
.admin-foot { padding: 14px 24px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); background: #fff; }

.welcome { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: linear-gradient(120deg, var(--navy), #1b4a75); color: #fff; border-radius: 14px; padding: 22px 26px; margin-bottom: 22px; }
.welcome h2 { color: #fff; margin: 0 0 2px; font-size: 1.35rem; } .welcome p { margin: 0; color: #bcccdc; }
.welcome .btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.stat-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--border); border-left: 5px solid var(--blue); color: var(--text); box-shadow: var(--shadow); transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); color: var(--text); }
.stat-card strong { display: block; font-size: 1.7rem; color: var(--navy); line-height: 1.1; } .stat-card span:not(.sc-ic) { color: var(--muted); font-size: .85rem; }
.sc-ic { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 12px; background: #E8F1FF; display: flex; align-items: center; justify-content: center; flex: none; }
.sc-orange { border-left-color: var(--orange); } .sc-orange .sc-ic { background: #FFF0E0; }
.sc-green { border-left-color: var(--green); } .sc-green .sc-ic { background: #DCF5E5; }
.sc-red { border-left-color: var(--red); } .sc-red .sc-ic { background: #FDE0E0; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 1.02rem; }
.panel-body { padding: 18px; }
.hbars .hbar { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .86rem; }
.hb-track { background: #EDF1F5; border-radius: 99px; height: 12px; overflow: hidden; display: block; } .hb-fill { display: block; height: 100%; border-radius: 99px; }
.hb-val { font-weight: 700; text-align: right; color: var(--navy); }
.vbars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.vbar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.vb-fill { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--blue), #6AA8FF); border-radius: 6px 6px 0 0; display: block; }
.vb-val { font-weight: 700; font-size: .85rem; color: var(--navy); } .vb-label { font-size: .75rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .form-group { margin: 0; } .toolbar label { font-size: .75rem; margin-bottom: 3px; }
.toolbar .form-control { padding: 8px 10px; font-size: .88rem; min-width: 130px; }
.toolbar .grow { flex: 1; min-width: 180px; } .toolbar .spacer { margin-left: auto; }
.page-title-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.page-title-row h2 { margin: 0; font-size: 1.3rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 22px; }
.detail-grid .d small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; } .detail-grid .d span { display: block; font-weight: 600; color: var(--navy); word-break: break-word; }
.detail-grid .d.wide { grid-column: 1 / -1; }
.totals-box { background: var(--bg); border-radius: 10px; padding: 14px 18px; }
.totals-box .row { display: flex; justify-content: space-between; padding: 4px 0; } .totals-box .row.total { border-top: 2px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.pod-preview img { max-height: 340px; border-radius: 10px; border: 1px solid var(--border); }
.filter-chips { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; } .filter-chips a { padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--navy); } .filter-chips a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.timeline .t-internal { margin-top: 4px; background: #FFF6E0; border-radius: 6px; padding: 4px 10px; font-size: .85rem; color: #8A5A00; }
.timeline li.superseded { opacity: .55; } .timeline li.superseded .t-status { text-decoration: line-through; }

.login-body { background: linear-gradient(135deg, var(--navy), #1b4a75); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; width: 100%; max-width: 420px; border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow-lg); }

/* Sidebar on small screens */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-250px); } .content { margin-left: 0; }
  body.sb-open .sidebar { transform: none; } body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; }
  body.sb-collapsed .sidebar { transform: translateX(-250px); }
  .pb-name { display: none; } .page { padding: 16px; } .hbars .hbar { grid-template-columns: 110px 1fr 30px; }
  .admin-top { padding: 0 12px; }
}
@media print { .sidebar, .admin-top, .admin-foot, .sb-backdrop, .toolbar, .actions, .btn { display: none !important; } .content { margin: 0 !important; } .page { padding: 0; } }
