@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap');

body.dashboard-premium{
  --navy:#0a1f44;--navy-2:#132c57;--blue:#3563e9;--blue-soft:#eef4ff;
  --gold:#c9a227;--bg:#f4f6fa;--ink:#15213d;--muted:#667085;--line:#e7eaf0;
  --success:#12b76a;--warning:#f79009;--danger:#f04438;
  font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)
}
body.dashboard-premium h1,body.dashboard-premium #app h2,body.dashboard-premium #app h3{
  font-family:Manrope,Inter,sans-serif
}
body.dashboard-premium main>header{
  position:sticky;top:0;z-index:90;padding:20px 28px;background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);border-color:var(--line)
}
body.dashboard-premium main>header h1{font-size:26px;letter-spacing:-.5px}
body.dashboard-premium main>header>div:last-child{display:flex;align-items:center;gap:8px}
body.dashboard-premium main>header select{height:42px;border-color:var(--line);background:#fff}
body.dashboard-premium main>header button{min-height:42px}
body.dashboard-premium main>header [data-logout]{background:transparent;color:#667085;border:1px solid transparent}
body.dashboard-premium main>header [data-new]{box-shadow:0 6px 16px rgba(53,99,233,.2)}
body.dashboard-premium #app{padding:24px 28px 38px;max-width:1800px}

body.dashboard-premium aside{background:linear-gradient(180deg,#0a1f44,#0b1b39);box-shadow:none}
body.dashboard-premium aside nav{gap:14px}
body.dashboard-premium .nav{min-height:42px;border-radius:10px}
body.dashboard-premium .nav.active{
  position:relative;background:#eef4ff;color:#2454da;box-shadow:none
}
body.dashboard-premium .nav.active::before{
  content:"";position:absolute;left:-8px;top:10px;bottom:10px;width:3px;border-radius:4px;background:#3563e9
}
body.dashboard-premium .nav.active .nav-icon{color:#3563e9}
body.dashboard-premium aside .profile{margin-top:auto;padding:18px 8px 3px;border-color:rgba(255,255,255,.12)}
body.dashboard-premium .profile-avatar{background:#eef4ff;color:#3563e9}

body.dashboard-premium .dashboard-refresh-box{margin:0 0 7px}
body.dashboard-premium .dashboard-refresh-box button{
  min-height:34px;background:#fff;border:1px solid #d9dfeb;color:#344054;box-shadow:none
}
body.dashboard-premium .dashboard-refresh-box button:hover{border-color:#3563e9;color:#2454da;background:#f8faff}

body.dashboard-premium .accounting-stats{
  display:grid;grid-template-columns:1fr!important;gap:12px;margin-bottom:20px
}
body.dashboard-premium .dashboard-kpi-row{display:grid;gap:14px}
body.dashboard-premium .dashboard-kpi-row.row-4{grid-template-columns:repeat(4,minmax(0,1fr))}
body.dashboard-premium .dashboard-kpi-row.row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
body.dashboard-premium .accounting-stats .stat{
  position:relative;min-height:108px;padding:17px 16px 14px 62px;border:1px solid var(--line);
  border-radius:12px;box-shadow:0 7px 22px rgba(16,24,40,.045);overflow:hidden
}
body.dashboard-premium .accounting-stats .stat .dashboard-kpi-icon{
  position:absolute;left:16px;top:17px;width:38px;height:38px;
  display:grid;place-items:center;border-radius:10px;background:var(--kpi-soft,#eef4ff);
  color:var(--kpi-accent,#3563e9);font-size:23px;font-style:normal;line-height:1
}
body.dashboard-premium .accounting-stats .stat::after{
  content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--kpi-accent,#3563e9)
}
body.dashboard-premium .accounting-stats .stat small{
  color:#667085;font-size:12px;font-weight:600;line-height:1.35
}
body.dashboard-premium .accounting-stats .stat strong{
  margin-top:8px;color:#15213d;font-size:22px;line-height:1.1;letter-spacing:-.5px;
  font-variant-numeric:tabular-nums
}
body.dashboard-premium .accounting-stats .stat[data-kpi="Total Sales"],
body.dashboard-premium .accounting-stats .stat[data-kpi="Total Margin"],
body.dashboard-premium .accounting-stats .stat[data-kpi="Pending from Customer"],
body.dashboard-premium .accounting-stats .stat[data-kpi="Pending to Supplier"]{box-shadow:0 9px 25px rgba(16,24,40,.075)}

body.dashboard-premium .service-finance{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 24px
}
body.dashboard-premium .service-finance .card{
  margin:0;padding:22px;border:1px solid var(--line);border-radius:12px;box-shadow:none
}
body.dashboard-premium .service-head{display:flex;align-items:center;gap:11px;margin-bottom:18px}
body.dashboard-premium .service-head i{
  width:44px;height:44px;display:grid;place-items:center;border-radius:10px;
  background:#eef4ff;color:#3563e9;font-size:28px;font-style:normal;line-height:1
}
body.dashboard-premium .service-finance h3{font-size:17px;margin:0}
body.dashboard-premium .service-finance p{
  display:flex;justify-content:space-between;gap:12px;margin:0;padding:10px 0;
  border-bottom:1px solid #eef0f4;color:#667085;font-size:12px
}
body.dashboard-premium .service-finance p:first-of-type b{font-size:17px;color:#15213d}
body.dashboard-premium .service-finance p b{color:#344054;font-variant-numeric:tabular-nums}
body.dashboard-premium .service-progress{height:6px;margin-top:16px;border-radius:999px;background:#edf1f6;overflow:hidden}
body.dashboard-premium .service-progress span{display:block;height:100%;border-radius:inherit;background:#12b76a}
body.dashboard-premium .service-progress-label{display:flex;justify-content:space-between;margin-top:7px;color:#667085;font-size:11px}

body.dashboard-premium .performance-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px
}
body.dashboard-premium .performance-grid .card{
  margin:0;padding:24px;border:1px solid var(--line);border-radius:12px;box-shadow:none;min-width:0
}
body.dashboard-premium .performance-grid .card>h3{font-size:17px;margin:0 0 18px}
body.dashboard-premium .performance-split{display:block}
body.dashboard-premium .performance-tabs{
  display:inline-flex;padding:3px;margin:0 0 13px;background:#f1f4f9;border-radius:9px
}
body.dashboard-premium .performance-tabs button{
  padding:7px 11px;background:transparent;color:#667085;font-size:12px;border-radius:7px
}
body.dashboard-premium .performance-tabs button.active{background:#fff;color:#2454da;box-shadow:0 1px 4px rgba(16,24,40,.1)}
body.dashboard-premium .performance-split>div{display:none}
body.dashboard-premium .performance-split>div.active{display:block}
body.dashboard-premium .performance-split h4{display:none}
body.dashboard-premium .ranking{list-style:none;margin:0;padding:0;counter-reset:rank}
body.dashboard-premium .ranking li{
  counter-increment:rank;display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:58px;padding:10px 8px;border-bottom:1px solid #edf0f4;font-size:13px
}
body.dashboard-premium .ranking li::before{
  content:counter(rank);flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;
  border-radius:50%;background:#f1f4f9;color:#667085;font-size:11px;font-weight:700
}
body.dashboard-premium .ranking li:first-child{margin:0 -8px;padding-left:16px;padding-right:16px;border-radius:10px;background:#fff9e8}
body.dashboard-premium .ranking li:first-child::before{background:#f7e9ae;color:#876b08}
body.dashboard-premium .ranking li>span{flex:1;min-width:0}
body.dashboard-premium .ranking li b,body.dashboard-premium .ranking li small{display:block}
body.dashboard-premium .ranking li b{font-weight:600;overflow-wrap:anywhere}
body.dashboard-premium .ranking li small{margin-top:4px;font-size:12px}
body.dashboard-premium .ranking li strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}

body.dashboard-premium .dashboard-bookings{
  margin-top:0;padding:24px;border:1px solid var(--line);border-radius:12px;box-shadow:none
}
body.dashboard-premium .dashboard-bookings-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px
}
body.dashboard-premium .dashboard-bookings-head h3{font-size:17px;margin:0}
body.dashboard-premium .dashboard-bookings-head button{background:#eef4ff;color:#2454da}
body.dashboard-premium .dashboard-filterbar{
  display:grid;grid-template-columns:minmax(210px,1.5fr) repeat(4,minmax(125px,.75fr));gap:9px;
  margin-bottom:14px;padding:12px;background:#f8f9fb;border:1px solid #edf0f4;border-radius:10px
}
body.dashboard-premium .dashboard-filterbar input,
body.dashboard-premium .dashboard-filterbar select{height:38px;padding:8px 10px;border-color:#dfe4ec;font-size:12px}
body.dashboard-premium .dashboard-bookings .table{max-height:650px;border:1px solid #e7eaf0;border-radius:10px}
body.dashboard-premium .dashboard-bookings table{font-size:13px}
body.dashboard-premium .dashboard-bookings thead{position:sticky;top:0;z-index:2;background:#f8f9fb}
body.dashboard-premium .dashboard-bookings th{height:42px;padding:0 16px;letter-spacing:.04em}
body.dashboard-premium .dashboard-bookings td{height:54px;padding:10px 16px}
body.dashboard-premium .dashboard-bookings tbody tr:nth-child(even){background:#fcfcfd}
body.dashboard-premium .dashboard-bookings tbody tr:hover{background:#f6f8fc}
body.dashboard-premium .dashboard-bookings th:nth-child(4),
body.dashboard-premium .dashboard-bookings th:nth-child(5),
body.dashboard-premium .dashboard-bookings td:nth-child(4),
body.dashboard-premium .dashboard-bookings td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
body.dashboard-premium .dashboard-bookings .booking-actions{justify-content:flex-end}
body.dashboard-premium .dashboard-bookings .booking-action-trigger{position:relative}
body.dashboard-premium .dashboard-bookings .booking-action-trigger::after{
  content:"Actions";position:absolute;right:0;bottom:calc(100% + 6px);padding:5px 7px;border-radius:6px;
  background:#15213d;color:#fff;font-size:10px;opacity:0;pointer-events:none
}
body.dashboard-premium .dashboard-bookings .booking-action-trigger:hover::after{opacity:1}
body.dashboard-premium .dashboard-pagination{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;color:#667085;font-size:12px
}
body.dashboard-premium .dashboard-pagination>div{display:flex;align-items:center;gap:7px}
body.dashboard-premium .dashboard-pagination select{width:72px;height:34px;padding:5px}
body.dashboard-premium .dashboard-pagination button{min-width:34px;height:34px;padding:5px 9px}
body.dashboard-premium .dashboard-pagination button:disabled{opacity:.45;cursor:not-allowed}
body.dashboard-premium .badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:600}
body.dashboard-premium .badge.Accepted{background:#e8f8f0;color:#087443}
body.dashboard-premium .badge.Waiting{background:#fff4df;color:#9b5800}
body.dashboard-premium .badge.Draft{background:#f0f2f5;color:#475467}
body.dashboard-premium .badge.Rejected,body.dashboard-premium .badge.Cancelled{background:#feeeee;color:#b42318}
body.dashboard-premium button:focus-visible,body.dashboard-premium input:focus-visible,body.dashboard-premium select:focus-visible{
  outline:3px solid rgba(53,99,233,.24);outline-offset:2px
}

@media(max-width:1200px){
  body.dashboard-premium .service-finance{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.dashboard-premium .dashboard-kpi-row.row-4,body.dashboard-premium .dashboard-kpi-row.row-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.dashboard-premium .dashboard-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.dashboard-premium .dashboard-filterbar [data-dashboard-search]{grid-column:1/-1}
}
@media(max-width:850px){
  body.dashboard-premium #app{padding:16px}
  body.dashboard-premium main>header>div:first-child{padding-top:44px}
  body.dashboard-premium .dashboard-refresh-box{position:absolute;right:14px;top:14px;margin:0}
  body.dashboard-premium main>header [data-new]{display:inline-flex}
  body.dashboard-premium .performance-grid{grid-template-columns:1fr}
  body.dashboard-premium .dashboard-bookings-head{align-items:flex-start;flex-direction:column}
  body.dashboard-premium .dashboard-bookings .table{max-height:none;overflow-x:auto}
  body.dashboard-premium .dashboard-bookings table{min-width:850px}
}
@media(max-width:560px){
  body.dashboard-premium .service-finance,body.dashboard-premium .dashboard-kpi-row.row-4,body.dashboard-premium .dashboard-kpi-row.row-3{grid-template-columns:1fr!important}
  body.dashboard-premium .accounting-stats .stat{min-height:102px}
  body.dashboard-premium .dashboard-filterbar{grid-template-columns:1fr}
  body.dashboard-premium .dashboard-filterbar [data-dashboard-search]{grid-column:auto}
  body.dashboard-premium .dashboard-pagination{align-items:flex-start;flex-direction:column}
}
