
:root{--bg:#0b0d10;--panel:#12161b;--panel2:#181d23;--border:#2a3139;--text:#f5f7fa;--muted:#98a2ad;--accent:#3da2ff}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,sans-serif}
a{color:inherit;text-decoration:none}.site-header{position:sticky;top:0;background:#0b0d10f2;border-bottom:1px solid var(--border);z-index:10}
.header-inner{max-width:1280px;margin:auto;padding:20px 24px}.header-inner h1{margin:0;font-size:clamp(1.4rem,2.5vw,2rem)}
.nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.nav a{padding:11px 16px;border:1px solid var(--border);border-radius:12px;background:var(--panel);font-weight:700}
.nav a:hover,.nav a.active{border-color:var(--accent);background:#10253a}.page{max-width:1280px;margin:auto;padding:28px 24px 48px}
.hero{padding:28px;border:1px solid var(--border);border-radius:22px;background:var(--panel)}.hero h2{margin:0 0 10px;font-size:clamp(1.7rem,4vw,2.8rem)}
.hero p{margin:0;color:var(--muted)}.button-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.big-btn{min-height:120px;padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--panel);display:flex;align-items:center;justify-content:space-between;font-size:1.25rem;font-weight:800}
.big-btn:hover{border-color:var(--accent)}.big-btn span:last-child{color:var(--accent);font-size:1.6rem}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}.search{flex:1 1 320px;min-height:48px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text);padding:0 16px;font-size:1rem}
.small-btn{min-height:48px;padding:0 16px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text);font-weight:700;cursor:pointer}
.status{color:var(--muted);font-size:.92rem;margin:4px 0 16px}.admin-grid{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:18px;align-items:start}
.list-panel,.detail-panel{border:1px solid var(--border);border-radius:20px;background:var(--panel);overflow:hidden}.panel-head{padding:16px 18px;border-bottom:1px solid var(--border);font-weight:800}
.jumpers-list{max-height:68vh;overflow:auto}.jumper-row{width:100%;text-align:left;padding:14px 18px;border:0;border-bottom:1px solid #20262d;background:transparent;color:var(--text);cursor:pointer;font-size:1rem}
.jumper-row:hover{background:#151c23}.jumper-row.active{background:#10253a;border-left:4px solid var(--accent);padding-left:14px}.jumper-name{font-weight:800}.jumper-sub{font-size:.82rem;color:var(--muted);margin-top:3px}
.detail-empty{padding:28px;color:var(--muted)}.detail-content{padding:18px}.detail-title{font-size:1.35rem;font-weight:900;margin:0 0 16px}
.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.data-item{padding:12px 14px;border:1px solid #252c33;border-radius:12px;background:var(--panel2);min-width:0}
.data-key{color:var(--muted);font-size:.78rem;text-transform:uppercase;margin-bottom:5px}.data-val{font-weight:700;overflow-wrap:anywhere}
.notice{margin-bottom:18px;padding:14px 16px;border:1px solid #624343;border-radius:14px;background:#231415;color:#ffb7b7;line-height:1.5}
@media(max-width:800px){.button-grid{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}.jumpers-list{max-height:44vh}.data-grid{grid-template-columns:1fr}}


.detail-tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid var(--border);
  background:#0f1317;
}
.detail-tab{
  flex:1 1 0;
  min-height:54px;
  border:0;
  border-right:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  font-weight:800;
  cursor:pointer;
  padding:0 16px;
  text-align:left;
}
.detail-tab:last-child{border-right:0}
.detail-tab:hover{background:#151b21;color:var(--text)}
.detail-tab.active{
  color:var(--text);
  background:var(--panel);
  box-shadow:inset 0 -3px 0 var(--accent);
}
.logbook-status{
  padding:13px 16px;
  color:var(--muted);
  border-bottom:1px solid var(--border);
  font-size:.9rem;
}
.logbook-scroll{
  max-height:68vh;
  overflow:auto;
}
.logbook-table{
  width:100%;
  border-collapse:collapse;
  min-width:650px;
}
.logbook-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#11161b;
  color:#b7c6d5;
  text-align:left;
  padding:12px 14px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  border-bottom:1px solid var(--border);
}
.logbook-table td{
  padding:12px 14px;
  border-bottom:1px solid #232a31;
  vertical-align:top;
}
.logbook-table tbody tr:nth-child(even){background:#14191f}
.logbook-table tbody tr:hover{background:#17212b}
.logbook-table td:nth-child(1),
.logbook-table td:nth-child(2){white-space:nowrap;font-weight:700}


/* v3 Jumpers detail/logbook refinements */
.detail-tabs{
  display:flex;
  width:100%;
  gap:0;
  border-bottom:1px solid var(--border);
  background:#0e1216;
}
.detail-tab{
  flex:1 1 50%;
  min-height:58px;
  border:0;
  border-right:1px solid var(--border);
  background:#0e1216;
  color:#8d98a5;
  font-weight:900;
  font-size:.98rem;
  cursor:pointer;
  padding:0 18px;
  text-align:center;
  transition:.15s ease;
}
.detail-tab:last-child{border-right:0}
.detail-tab:hover{
  color:#fff;
  background:#141b22;
}
.detail-tab.active{
  color:#fff;
  background:#17314a;
  box-shadow:inset 0 -4px 0 var(--accent);
}
.detail-tab.active::before{
  content:"●";
  color:var(--accent);
  margin-right:8px;
  font-size:.75rem;
  vertical-align:1px;
}

.logbook-scroll{
  width:100%;
  max-height:68vh;
  overflow:auto;
}
.logbook-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
.logbook-table th,
.logbook-table td{
  padding:13px 16px;
  text-align:left;
}
.logbook-table th:nth-child(1),
.logbook-table td:nth-child(1){width:22%}
.logbook-table th:nth-child(2),
.logbook-table td:nth-child(2){width:16%}
.logbook-table th:nth-child(3),
.logbook-table td:nth-child(3){width:24%}
.logbook-table th:nth-child(4),
.logbook-table td:nth-child(4){width:38%}

.logbook-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#111820;
  color:#d5e4f1;
  border-bottom:1px solid #34414d;
}
.logbook-table tbody tr{
  background:#12171d;
}
.logbook-table tbody tr:nth-child(even){
  background:#151b21;
}
.logbook-table tbody tr:hover{
  background:#19242e;
}
.logbook-table tbody td{
  border-bottom:1px solid #242d35;
  overflow-wrap:anywhere;
}
.logbook-table tbody tr.day-separator td{
  border-top:2px solid #3a4650;
}
.logbook-table tbody tr.year-separator td{
  border-top:4px solid var(--accent);
  padding-top:18px;
}
.logbook-table .date-cell{
  font-weight:900;
  color:#f4f7fa;
}
.logbook-status{
  padding:12px 16px;
  background:#10151a;
  border-bottom:1px solid var(--border);
  color:#9aa6b2;
}
.notice{
  margin-top:22px;
  margin-bottom:0;
}

@media(max-width:800px){
  .detail-tab{
    min-height:52px;
    padding:0 10px;
    font-size:.9rem;
  }
  .logbook-scroll{
    overflow-x:auto;
  }
  .logbook-table{
    min-width:680px;
  }
}


/* v4 Monthly Reports */
.report-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.report-head h2{
  margin:0 0 7px;
  font-size:clamp(1.8rem,4vw,2.7rem);
}
.report-head p{
  margin:0;
  color:var(--muted);
}
.report-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:10px;
}
.report-controls label span{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  margin:0 0 6px 3px;
}
.report-controls select{
  min-width:120px;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  padding:0 12px;
  font-size:1rem;
}
.report-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--panel);
  overflow:hidden;
}
.report-scroll{
  max-height:68vh;
  overflow:auto;
}
.monthly-report-table{
  border-collapse:separate;
  border-spacing:0;
  width:max-content;
  min-width:100%;
  font-size:.9rem;
}
.monthly-report-table th,
.monthly-report-table td{
  min-width:155px;
  max-width:260px;
  padding:11px 12px;
  border-right:1px solid #29313a;
  border-bottom:1px solid #29313a;
  text-align:left;
  vertical-align:top;
  white-space:normal;
  overflow-wrap:anywhere;
}
.monthly-report-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  background:#101720;
  color:#dbe7f2;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.monthly-report-table .sticky-worker{
  position:sticky;
  left:0;
  z-index:3;
  min-width:190px;
  max-width:230px;
  background:#111820;
}
.monthly-report-table thead .sticky-worker{
  z-index:6;
}
.monthly-report-table tbody tr:nth-child(even) td{
  background:#151a20;
}
.monthly-report-table tbody tr:nth-child(even) .sticky-worker{
  background:#151a20;
}
.monthly-report-table tbody tr:hover td{
  background:#19232c;
}
.monthly-report-table tbody tr:hover .sticky-worker{
  background:#19232c;
}
.monthly-report-table .worker-name{
  font-weight:900;
  color:#fff;
}
.monthly-report-table .date-head{
  min-width:135px;
}
.monthly-report-table .jobs-cell{
  color:#f0f4f8;
}
.monthly-report-table .summary-cell{
  min-width:230px;
  font-weight:700;
}
.monthly-report-table .balance-cell{
  min-width:110px;
  max-width:140px;
  text-align:right;
  font-weight:900;
  color:#fff;
}
.report-empty{
  padding:30px !important;
  color:var(--muted);
  text-align:center !important;
}
.pricing-info{
  margin-top:12px;
  color:var(--muted);
  font-size:.88rem;
}
.pricing-info.warning{
  color:#f2bc74;
}
@media(max-width:700px){
  .report-controls{
    width:100%;
  }
  .report-controls label{
    flex:1 1 120px;
  }
  .report-controls select{
    width:100%;
  }
  .report-controls .small-btn{
    flex:1 1 100%;
  }
}


/* v5 report readability + export */
.report-card{
  border:1px solid #46515d;
  border-radius:18px;
  background:#10151a;
  overflow:hidden;
}

.report-scroll{
  max-height:72vh;
  overflow:auto;
  background:#10151a;
}

.monthly-report-table{
  width:max-content;
  min-width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#10151a;
  font-size:.94rem;
}

.monthly-report-table th,
.monthly-report-table td{
  min-width:160px;
  max-width:285px;
  padding:15px 16px;
  border-right:1px solid #3a4652;
  border-bottom:1px solid #303a44;
  line-height:1.45;
  vertical-align:middle;
  text-align:left;
}

.monthly-report-table th:last-child,
.monthly-report-table td:last-child{
  border-right:0;
}

.monthly-report-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  background:#17202a;
  color:#f0f5fa;
  border-bottom:2px solid #596776;
  font-weight:900;
}

.monthly-report-table .sticky-worker{
  position:sticky;
  left:0;
  z-index:3;
  min-width:210px;
  max-width:240px;
  background:#151c23;
  border-right:2px solid #596776;
}

.monthly-report-table thead .sticky-worker{
  z-index:6;
  background:#17202a;
}

.monthly-report-table tbody tr:nth-child(even) td{
  background:#141a20;
}

.monthly-report-table tbody tr:nth-child(even) .sticky-worker{
  background:#141a20;
}

.monthly-report-table tbody tr:nth-child(odd) td{
  background:#10151a;
}

.monthly-report-table tbody tr:nth-child(odd) .sticky-worker{
  background:#10151a;
}

.monthly-report-table tbody tr:hover td,
.monthly-report-table tbody tr:hover .sticky-worker{
  background:#1a2631;
}

.monthly-report-table .worker-name{
  font-weight:900;
  color:#fff;
}

.monthly-report-table .date-head{
  min-width:150px;
}

.monthly-report-table .summary-cell{
  min-width:250px;
  font-weight:700;
}

.monthly-report-table .balance-cell{
  min-width:125px;
  max-width:150px;
  text-align:right;
  font-weight:900;
}

.export-btn{
  border-color:#3f6f98;
  background:#10263a;
}

.export-btn:hover{
  border-color:var(--accent);
  background:#15324c;
}


/* v6 Loads History */
.loads-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.loads-head h2{
  margin:0 0 7px;
  font-size:clamp(1.8rem,4vw,2.7rem);
}
.loads-head p{
  margin:0;
  color:var(--muted);
}
.loads-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:10px;
}
.loads-controls label span{
  display:block;
  margin:0 0 6px 3px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
}
.loads-controls select{
  min-width:115px;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  padding:0 12px;
  font-size:1rem;
}

.loads-layout{
  display:grid;
  grid-template-columns:minmax(260px,340px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.loads-list-panel,
.load-detail-panel{
  border:1px solid #39444f;
  border-radius:18px;
  background:#11161c;
  overflow:hidden;
}
.loads-list{
  max-height:70vh;
  overflow:auto;
}
.load-row{
  width:100%;
  min-height:72px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:0;
  border-bottom:1px solid #2d3740;
  background:#11161c;
  color:#fff;
  cursor:pointer;
  text-align:left;
}
.load-row:hover{
  background:#17212a;
}
.load-row.active{
  background:#17314a;
  box-shadow:inset 4px 0 0 var(--accent);
}
.load-row-title{
  font-weight:900;
  font-size:1.03rem;
}
.load-row-sub{
  margin-top:4px;
  color:#9aa6b2;
  font-size:.83rem;
}
.load-row-arrow{
  color:var(--accent);
  font-size:1.25rem;
  font-weight:900;
}
.load-summary{
  padding:13px 16px;
  border-bottom:1px solid #333e49;
  color:#aab6c2;
  background:#10151a;
  font-size:.9rem;
}
.load-table-scroll{
  max-height:70vh;
  overflow:auto;
}
.load-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  font-size:.94rem;
}
.load-table th,
.load-table td{
  padding:14px 16px;
  border-right:1px solid #36414b;
  border-bottom:1px solid #2d3740;
  text-align:left;
  vertical-align:middle;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.load-table th:last-child,
.load-table td:last-child{
  border-right:0;
}
.load-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#17202a;
  color:#edf4fa;
  border-bottom:2px solid #586675;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.load-table th:nth-child(1),
.load-table td:nth-child(1){width:32%}
.load-table th:nth-child(2),
.load-table td:nth-child(2){width:16%}
.load-table th:nth-child(3),
.load-table td:nth-child(3){width:22%}
.load-table th:nth-child(4),
.load-table td:nth-child(4){width:30%}
.load-table tbody tr:nth-child(even) td{
  background:#151a20;
}
.load-table tbody tr:nth-child(odd) td{
  background:#10151a;
}
.load-table tbody tr:hover td{
  background:#1a2631;
}
.load-jumper-name{
  font-weight:900;
}
@media(max-width:820px){
  .loads-layout{
    grid-template-columns:1fr;
  }
  .loads-list{
    max-height:320px;
  }
  .loads-controls{
    width:100%;
  }
  .loads-controls label{
    flex:1 1 100px;
  }
  .loads-controls select{
    width:100%;
  }
  .load-table{
    min-width:650px;
  }
  .load-table-scroll{
    overflow:auto;
  }
}
