:root {
  --sat-navy: #0f2545;
  --sat-navy-2: #173a68;
  --sat-accent: #f4b21b;
  --sat-green: #16a34a;
  --sat-red: #dc2626;
  --sat-blue: #2563eb;
  --sat-bg: #eef3f9;
  --sat-soft: #f8fafc;
  --sat-card: #ffffff;
  --sat-border: #dbe5f1;
  --sat-text: #101828;
  --sat-muted: #667085;
  --sat-shadow: 0 18px 45px rgba(15, 37, 69, .12);
}

.sat-shell-wrap,
.sat-shell-wrap * {
  box-sizing: border-box;
}

.sat-shell-wrap {
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sat-text);
  background: var(--sat-bg);
}

.sat-shell-wrap button,
.sat-shell-wrap input,
.sat-shell-wrap select,
.sat-shell-wrap textarea {
  font-family: inherit;
}

.sat-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(244, 178, 27, .3), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, .16), transparent 28%),
    linear-gradient(135deg, #07172d, #16355f);
}

.sat-login-card {
  width: min(500px, 100%);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--sat-shadow);
}

.sat-login-brand,
.sat-brand,
.sat-report-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sat-login-brand {
  margin-bottom: 22px;
}

.sat-login-brand img,
.sat-brand img,
.sat-report-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(219,229,241,.9);
}

.sat-login-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: var(--sat-navy);
}

.sat-login-brand p,
.sat-card-header p,
.sat-topbar p,
.sat-report-head p {
  margin: 5px 0 0;
  color: var(--sat-muted);
  font-size: 14px;
}

.sat-login-form label,
.sat-grid-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #344054;
  font-size: 13px;
}

.sat-login-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 7px;
}

.sat-login-form input,
.sat-grid-form input,
.sat-grid-form select,
.sat-inline-controls input,
.sat-inline-controls select,
.sat-table input,
.sat-table select,
.sat-table textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--sat-border);
  border-radius: 13px;
  padding: 9px 12px;
  background: #fff;
  color: var(--sat-text);
  outline: none;
  font-size: 14px;
}

.sat-table textarea {
  min-height: 42px;
  resize: vertical;
}

.sat-login-form input:focus,
.sat-grid-form input:focus,
.sat-grid-form select:focus,
.sat-inline-controls input:focus,
.sat-inline-controls select:focus,
.sat-table input:focus,
.sat-table select:focus,
.sat-table textarea:focus {
  border-color: var(--sat-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sat-login-form button,
.sat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.sat-login-form button,
.sat-btn-primary {
  background: linear-gradient(135deg, var(--sat-navy), var(--sat-navy-2));
  color: #fff;
  box-shadow: 0 10px 18px rgba(16, 35, 63, .18);
}

.sat-login-form button {
  width: 100%;
  margin-top: 20px;
}

.sat-btn-light {
  background: #eef4ff;
  color: var(--sat-navy);
  border: 1px solid #d8e5ff;
}

.sat-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sat-login-form button:hover,
.sat-btn:hover {
  transform: translateY(-1px);
}

.sat-login-note {
  text-align: center;
  color: var(--sat-muted);
  font-size: 13px;
}

.sat-alert,
.sat-message {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 12px 0;
  font-weight: 800;
}

.sat-alert-danger,
.sat-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sat-message.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sat-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 26%),
    linear-gradient(180deg, #f8fbff, var(--sat-bg));
}

.sat-app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid var(--sat-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 37, 69, .06);
}

.sat-brand {
  min-width: 250px;
}

.sat-brand strong {
  display: block;
  color: var(--sat-navy);
  font-size: 17px;
  line-height: 1.1;
}

.sat-brand span,
.sat-user-box span {
  display: block;
  color: var(--sat-muted);
  font-size: 12px;
  margin-top: 4px;
}

.sat-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.sat-nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #344054;
  border-radius: 999px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: .18s ease;
}

.sat-nav-item:hover,
.sat-nav-item.is-active {
  background: linear-gradient(135deg, var(--sat-navy), var(--sat-navy-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 37, 69, .16);
}

.sat-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--sat-border);
  border-radius: 999px;
  padding: 7px 10px 7px 14px;
}

.sat-user-box a {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 900;
  text-decoration: none;
  font-size: 12px;
}

.sat-mobile-menu {
  display: none;
  border: 1px solid var(--sat-border);
  background: var(--sat-navy);
  color: #fff;
  min-height: 42px;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.sat-main {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 24px;
}

.sat-topbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sat-topbar h2 {
  margin: 0;
  font-size: 30px;
  color: var(--sat-navy);
  letter-spacing: -.02em;
}

.sat-fuel-price-pill {
  background: #fff7df;
  border: 1px solid #fde6a7;
  color: #7c4a00;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  white-space: nowrap;
}

.sat-tab-panel {
  display: none;
}

.sat-tab-panel.is-active {
  display: block;
  animation: satFade .16s ease;
}

@keyframes satFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sat-card {
  background: var(--sat-card);
  border: 1px solid var(--sat-border);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 37, 69, .07);
  padding: 20px;
  margin-bottom: 18px;
}

.sat-glass-card {
  background: rgba(255, 255, 255, .92);
}

.sat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sat-card-header h3 {
  margin: 0;
  font-size: 21px;
  color: var(--sat-navy);
  letter-spacing: -.01em;
}

.sat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.sat-stat-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sat-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 37, 69, .07);
}

.sat-stat-card:after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(244, 178, 27, .18);
}

.sat-stat-card span {
  display: block;
  color: var(--sat-muted);
  font-size: 13px;
  font-weight: 800;
}

.sat-stat-card strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
  color: var(--sat-navy);
}

.sat-grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sat-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sat-form-actions {
  display: flex;
  align-items: end;
}

.sat-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--sat-border);
  border-radius: 18px;
  background: #fff;
}

.sat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  min-width: 980px;
}

.sat-table th,
.sat-table td {
  border-bottom: 1px solid var(--sat-border);
  border-right: 1px solid #eef2f7;
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.sat-table th {
  background: #f7faff;
  color: var(--sat-navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sat-table tr:hover td {
  background: #fbfdff;
}

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

.sat-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.sat-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.sat-status.active,
.sat-status.P {
  background: #dcfce7;
  color: #166534;
}

.sat-status.inactive,
.sat-status.A {
  background: #fee2e2;
  color: #991b1b;
}

.sat-status.R {
  background: #f1f5f9;
  color: #475569;
}

.sat-status.RP {
  background: #dbeafe;
  color: #1e40af;
}

.sat-status.blank {
  background: #f1f5f9;
  color: #94a3b8;
}

.sat-inline-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sat-inline-controls input,
.sat-inline-controls select {
  width: auto;
  min-width: 165px;
}

.sat-report-controls select,
.sat-report-controls input {
  min-width: 155px;
}

.sat-report-head {
  padding: 12px 0 18px;
}

.sat-report-head h3 {
  margin: 0;
  font-size: 22px;
  color: var(--sat-navy);
}

.sat-loader {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: var(--sat-navy);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--sat-shadow);
  font-weight: 900;
}

.sat-invoice-slip {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--sat-border);
  border-radius: 24px;
  padding: 26px;
  background: #fff;
}

.sat-invoice-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--sat-navy);
}

.sat-invoice-title img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.sat-invoice-title h2 {
  margin: 0;
  color: var(--sat-navy);
}

.sat-invoice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sat-invoice-field {
  border: 1px solid var(--sat-border);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.sat-invoice-field span {
  display: block;
  color: var(--sat-muted);
  font-size: 12px;
  font-weight: 800;
}

.sat-invoice-field strong {
  display: block;
  font-size: 18px;
  color: var(--sat-navy);
  margin-top: 3px;
}

.sat-invoice-total {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--sat-navy), var(--sat-navy-2));
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sat-invoice-total span {
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.sat-invoice-total strong {
  font-size: 30px;
}

@media (max-width: 1280px) {
  .sat-app-header {
    grid-template-columns: auto auto 1fr;
  }
  .sat-user-box {
    grid-column: 1 / -1;
    width: fit-content;
    justify-self: end;
  }
  .sat-cards-grid,
  .sat-grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sat-app-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px;
  }
  .sat-brand {
    min-width: 0;
  }
  .sat-brand img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .sat-brand strong {
    font-size: 15px;
  }
  .sat-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sat-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--sat-border);
    border-radius: 18px;
    padding: 10px;
  }
  .sat-nav.is-open {
    display: flex;
  }
  .sat-nav-item {
    width: 100%;
    text-align: left;
    border-radius: 13px;
    background: #f8fafc;
  }
  .sat-user-box {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }
  .sat-main {
    padding: 14px;
  }
  .sat-topbar {
    align-items: flex-start;
  }
  .sat-topbar h2 {
    font-size: 23px;
  }
  .sat-fuel-price-pill {
    display: none;
  }
  .sat-card {
    border-radius: 18px;
    padding: 14px;
  }
  .sat-card-header,
  .sat-stack-mobile {
    display: grid;
    align-items: stretch;
  }
  .sat-inline-controls {
    justify-content: flex-start;
  }
  .sat-inline-controls input,
  .sat-inline-controls select,
  .sat-inline-controls button {
    width: 100%;
  }
  .sat-cards-grid,
  .sat-grid-form,
  .sat-settings-form,
  .sat-invoice-grid {
    grid-template-columns: 1fr;
  }
  .sat-table {
    min-width: 820px;
  }
  .sat-login-card {
    padding: 22px;
    border-radius: 22px;
  }
  .sat-login-brand h1 {
    font-size: 22px;
  }
  .sat-invoice-title,
  .sat-invoice-total {
    display: grid;
  }
}

/* === Advanced desktop refinements for compact software layout === */
@media (min-width: 901px) {
  .sat-app-header {
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 12px 18px;
  }
  .sat-brand {
    min-width: 220px;
    gap: 10px;
  }
  .sat-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .sat-brand strong {
    font-size: 16px;
  }
  .sat-brand span {
    font-size: 11px;
    margin-top: 3px;
  }
  .sat-nav {
    justify-content: flex-start;
    gap: 7px;
    overflow: visible;
    padding: 2px;
  }
  .sat-nav-item {
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -.01em;
  }
  .sat-user-box {
    display: none;
  }
  .sat-main {
    width: min(100%, 1760px);
    padding: 18px;
  }
  .sat-app:not(.sat-tab-dashboard) .sat-topbar {
    display: none !important;
  }
  body.admin-bar .sat-app-header {
    top: 0;
  }
}

.sat-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 18px;
  align-items: start;
}

.sat-dashboard-settings-card .sat-card-header {
  align-items: flex-start;
}

.sat-dashboard-logout {
  min-height: 38px;
}

.sat-dashboard-table {
  min-width: 720px;
}

/* Compact report tables: less padding, wrapped headings, fewer side-scroll issues */
#sat-att-report-table,
#sat-monthly-report-table,
#sat-fuel-report-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#sat-att-report-table th,
#sat-att-report-table td {
  padding: 4px 3px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

#sat-att-report-table th:nth-child(1),
#sat-att-report-table td:nth-child(1) { width: 76px; text-align: left; }
#sat-att-report-table th:nth-child(2),
#sat-att-report-table td:nth-child(2) { width: 90px; text-align: left; }
#sat-att-report-table th:nth-child(3),
#sat-att-report-table th:nth-child(4),
#sat-att-report-table th:nth-child(5),
#sat-att-report-table td:nth-child(3),
#sat-att-report-table td:nth-child(4),
#sat-att-report-table td:nth-child(5) { width: 28px; }
#sat-att-report-table th:nth-child(6),
#sat-att-report-table td:nth-child(6) { width: 54px; }

#sat-att-report-table .sat-status {
  min-width: 20px;
  padding: 3px 4px;
  font-size: 9px;
}

#sat-monthly-report-table th,
#sat-monthly-report-table td,
#sat-fuel-report-table th,
#sat-fuel-report-table td {
  padding: 5px 4px;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
  vertical-align: middle;
}

#sat-monthly-report-table th,
#sat-fuel-report-table th {
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

#sat-monthly-report-table td {
  text-align: center;
}

#sat-monthly-report-table td:nth-child(1),
#sat-monthly-report-table td:nth-child(2),
#sat-monthly-report-table td:nth-child(3),
#sat-monthly-report-table td:nth-child(4) {
  text-align: left;
}

#sat-att-report-card .sat-table-wrap,
#sat-monthly-report-card .sat-table-wrap,
#sat-fuel-report-card .sat-table-wrap {
  overflow-x: hidden;
}

.sat-table select.sat-att-status {
  min-width: 58px;
  padding-left: 8px;
  padding-right: 8px;
  font-weight: 900;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .sat-brand { min-width: 190px; }
  .sat-nav-item { padding: 8px 9px; font-size: 12px; }
  .sat-app-header { padding: 9px 12px; }
  #sat-monthly-report-table th,
  #sat-monthly-report-table td { font-size: 9px; padding: 4px 3px; }
  #sat-att-report-table th,
  #sat-att-report-table td { font-size: 9px; padding: 3px 2px; }
}

@media (max-width: 900px) {
  .sat-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sat-user-box {
    display: flex;
  }
  #sat-att-report-card .sat-table-wrap,
  #sat-monthly-report-card .sat-table-wrap,
  #sat-fuel-report-card .sat-table-wrap {
    overflow-x: auto;
  }
  #sat-att-report-table {
    min-width: 980px;
  }
  #sat-monthly-report-table,
  #sat-fuel-report-table {
    min-width: 1180px;
  }
}


/* App page should feel like standalone software, not WordPress admin screen */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
body.admin-bar { margin-top: 0 !important; }

/* Hide top title/fuel strip on all inner tabs; dashboard keeps it */
.sat-app:not(.sat-tab-dashboard) .sat-topbar { display: none !important; }

@media (min-width: 901px) {
  .sat-app-header { align-items: center; }
  .sat-nav { margin-left: 0; }
}

/* === v1.4 refinements === */
.sat-report-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
}

.sat-report-toolbar .sat-inline-controls {
  justify-content: flex-end;
}

.sat-fuel-price-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
}

.sat-fuel-price-form .sat-form-actions {
  align-items: end;
}

@media (min-width: 901px) {
  .sat-app-header {
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 13px 22px;
  }
  .sat-brand {
    min-width: 245px;
  }
  .sat-nav {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .sat-nav-item {
    font-size: 15px;
    padding: 10px 14px;
    line-height: 1.05;
  }
  .sat-card {
    padding: 16px;
  }
  .sat-report-head {
    padding: 2px 0 12px;
  }
}

@media (max-width: 1400px) and (min-width: 901px) {
  .sat-brand { min-width: 210px; }
  .sat-nav { gap: 6px; }
  .sat-nav-item { font-size: 13.5px; padding: 9px 10px; }
}

@media (max-width: 900px) {
  .sat-report-toolbar {
    display: grid;
    justify-content: stretch;
  }
  .sat-fuel-price-form {
    grid-template-columns: 1fr;
  }
}

/* === v1.5 report header spacing fix ===
   Align report logo/title and filters in one compact row on desktop.
   Applies only to: Fuel Report, Attendance Report, Report & Invoice. */
@media (min-width: 901px) {
  .sat-tab-panel[data-panel="attendance-report"] > .sat-card,
  .sat-tab-panel[data-panel="fuel-report"] > .sat-card,
  .sat-tab-panel[data-panel="reports"] > .sat-card:first-child {
    display: grid;
    grid-template-columns: minmax(280px, auto) 1fr;
    grid-template-areas:
      "reporthead reportcontrols"
      "reporttable reporttable";
    align-items: center;
    gap: 8px 16px;
    padding: 10px 14px 14px;
  }

  #sat-att-report-card,
  #sat-fuel-report-card,
  #sat-monthly-report-card {
    display: contents;
  }

  #sat-att-report-card .sat-report-head,
  #sat-fuel-report-card .sat-report-head,
  #sat-monthly-report-card .sat-report-head {
    grid-area: reporthead;
    padding: 0;
    margin: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
  }

  .sat-tab-panel[data-panel="attendance-report"] .sat-report-toolbar,
  .sat-tab-panel[data-panel="fuel-report"] .sat-report-toolbar,
  .sat-tab-panel[data-panel="reports"] .sat-report-toolbar {
    grid-area: reportcontrols;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-self: end;
    width: 100%;
  }

  .sat-tab-panel[data-panel="attendance-report"] .sat-report-toolbar .sat-inline-controls,
  .sat-tab-panel[data-panel="fuel-report"] .sat-report-toolbar .sat-inline-controls,
  .sat-tab-panel[data-panel="reports"] .sat-report-toolbar .sat-inline-controls {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  #sat-att-report-card .sat-table-wrap,
  #sat-fuel-report-card .sat-table-wrap,
  #sat-monthly-report-card .sat-table-wrap {
    grid-area: reporttable;
    margin-top: 2px;
  }

  #sat-att-report-card .sat-report-head img,
  #sat-fuel-report-card .sat-report-head img,
  #sat-monthly-report-card .sat-report-head img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  #sat-att-report-card .sat-report-head h3,
  #sat-fuel-report-card .sat-report-head h3,
  #sat-monthly-report-card .sat-report-head h3 {
    font-size: 21px;
    line-height: 1.1;
  }

  #sat-att-report-card .sat-report-head p,
  #sat-fuel-report-card .sat-report-head p,
  #sat-monthly-report-card .sat-report-head p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
  }
}

@media (max-width: 1280px) and (min-width: 901px) {
  .sat-tab-panel[data-panel="attendance-report"] > .sat-card,
  .sat-tab-panel[data-panel="fuel-report"] > .sat-card,
  .sat-tab-panel[data-panel="reports"] > .sat-card:first-child {
    grid-template-columns: minmax(240px, auto) 1fr;
    gap: 8px 10px;
    padding: 9px 10px 12px;
  }

  .sat-tab-panel[data-panel="reports"] .sat-report-controls select,
  .sat-tab-panel[data-panel="reports"] .sat-report-controls input {
    min-width: 132px;
  }
}


/* === v1.7 professional modules: dashboard, drivers, pumps, print === */
.sat-status.GHR {
  background: #fef3c7;
  color: #92400e;
}

.sat-status.GHP {
  background: #ede9fe;
  color: #5b21b6;
}

.sat-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(15,37,69,.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at right top, rgba(244,178,27,.22), transparent 35%),
    linear-gradient(135deg, #ffffff, #eef6ff);
  box-shadow: 0 14px 36px rgba(15, 37, 69, .08);
}

.sat-dashboard-hero h2 {
  margin: 4px 0 4px;
  color: var(--sat-navy);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.sat-dashboard-hero p {
  margin: 0;
  color: var(--sat-muted);
  max-width: 760px;
}

.sat-overline {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7df;
  color: #7c4a00;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sat-dashboard-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.sat-dashboard-table-card {
  grid-column: 1 / -1;
}

.sat-action-card {
  min-height: 100%;
}

.sat-dashboard-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.sat-dashboard-inline-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  font-size: 13px;
  color: #344054;
}

.sat-dashboard-inline-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--sat-border);
  border-radius: 13px;
  padding: 9px 12px;
  background: #fff;
  color: var(--sat-text);
  outline: none;
  font-size: 14px;
}

.sat-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--sat-navy);
  border: 1px solid #d8e5ff;
  font-weight: 900;
  font-size: 12px;
}

.sat-chip button {
  border: 0;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.sat-empty-note {
  color: var(--sat-muted);
  font-size: 13px;
  font-weight: 800;
}

.sat-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sat-quick-actions .sat-btn {
  width: 100%;
}

.sat-form-wide {
  grid-column: span 2;
}

.sat-driver-form textarea {
  min-height: 42px;
  border: 1px solid var(--sat-border);
  border-radius: 13px;
  padding: 9px 12px;
  background: #fff;
  color: var(--sat-text);
}

#sat-fuel-search {
  min-width: 220px;
}

.sat-fuel-total[readonly] {
  background: #f8fafc;
  color: var(--sat-navy);
  font-weight: 900;
}

#sat-fuel-report-title strong,
#sat-report-title strong,
#sat-driver-report-title strong {
  color: var(--sat-navy);
  font-size: 14px;
}

#sat-fuel-report-table,
#sat-driver-report-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#sat-fuel-report-table th,
#sat-fuel-report-table td,
#sat-driver-report-table th,
#sat-driver-report-table td {
  padding: 5px 4px;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
  vertical-align: middle;
}

#sat-fuel-report-table th,
#sat-driver-report-table th {
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

#sat-fuel-report-table td,
#sat-driver-report-table td {
  text-align: center;
}

#sat-fuel-report-table td:nth-child(2),
#sat-fuel-report-table td:nth-child(3),
#sat-fuel-report-table td:nth-child(4),
#sat-fuel-report-table td:nth-child(5),
#sat-driver-report-table td:nth-child(1),
#sat-driver-report-table td:nth-child(2) {
  text-align: left;
}

#sat-fuel-report-table th:nth-child(1),
#sat-fuel-report-table td:nth-child(1) { width: 78px; }
#sat-fuel-report-table th:nth-child(2),
#sat-fuel-report-table td:nth-child(2) { width: 82px; }
#sat-fuel-report-table th:nth-child(6),
#sat-fuel-report-table td:nth-child(6),
#sat-fuel-report-table th:nth-child(7),
#sat-fuel-report-table td:nth-child(7),
#sat-fuel-report-table th:nth-child(8),
#sat-fuel-report-table td:nth-child(8),
#sat-fuel-report-table th:nth-child(9),
#sat-fuel-report-table td:nth-child(9),
#sat-fuel-report-table th:nth-child(10),
#sat-fuel-report-table td:nth-child(10) { width: 70px; }

@media (min-width: 901px) {
  .sat-app-header {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 12px 18px;
  }
  .sat-brand {
    min-width: 225px;
  }
  .sat-nav {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }
  .sat-nav-item {
    font-size: 13px;
    padding: 8px 10px;
    line-height: 1;
  }
  .sat-cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .sat-tab-panel[data-panel="driver-report"] > .sat-card {
    display: grid;
    grid-template-columns: minmax(280px, auto) 1fr;
    grid-template-areas:
      "reporthead reportcontrols"
      "reporttable reporttable";
    align-items: center;
    gap: 8px 16px;
    padding: 10px 14px 14px;
  }
  #sat-driver-report-card {
    display: contents;
  }
  #sat-driver-report-card .sat-report-head {
    grid-area: reporthead;
    padding: 0;
    margin: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
  }
  .sat-tab-panel[data-panel="driver-report"] .sat-report-toolbar {
    grid-area: reportcontrols;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-self: end;
    width: 100%;
  }
  .sat-tab-panel[data-panel="driver-report"] .sat-report-toolbar .sat-inline-controls {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  #sat-driver-report-card .sat-table-wrap {
    grid-area: reporttable;
    margin-top: 2px;
    overflow-x: hidden;
  }
  #sat-driver-report-card .sat-report-head img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
  #sat-driver-report-card .sat-report-head h3 {
    font-size: 21px;
    line-height: 1.1;
  }
  #sat-driver-report-card .sat-report-head p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
  }
}

@media (max-width: 1450px) and (min-width: 901px) {
  .sat-brand { min-width: 190px; }
  .sat-brand strong { font-size: 14px; }
  .sat-nav-item { font-size: 12px; padding: 7px 8px; }
  .sat-dashboard-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sat-dashboard-hero,
  .sat-dashboard-inline-form {
    display: grid;
  }
  .sat-dashboard-hero h2 {
    font-size: 24px;
  }
  .sat-dashboard-pro-grid,
  .sat-quick-actions {
    grid-template-columns: 1fr;
  }
  .sat-form-wide {
    grid-column: span 1;
  }
  #sat-fuel-search {
    min-width: 0;
  }
  #sat-driver-report-card .sat-table-wrap {
    overflow-x: auto;
  }
  #sat-driver-report-table {
    min-width: 980px;
  }
}

@media print {
  #wpadminbar,
  .sat-app-header,
  .sat-topbar,
  .sat-report-toolbar,
  .sat-btn,
  #sat-message,
  #sat-loader {
    display: none !important;
  }
  .sat-shell-wrap,
  .sat-app,
  .sat-main,
  .sat-card {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .sat-table-wrap {
    overflow: visible !important;
  }
}

/* === v1.8 owner invoice + final totals polish === */
#sat-att-report-title strong,
#sat-fuel-report-title strong,
#sat-report-title strong,
#sat-driver-report-title strong {
  display: inline-block;
  color: var(--sat-navy);
  font-size: 15px;
  font-weight: 950;
  background: #f3f7fc;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  padding: 3px 9px;
  margin: 2px 1px;
}

.sat-total-row td,
.sat-total-row th {
  background: #fff7df !important;
  color: var(--sat-navy) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  border-top: 2px solid var(--sat-accent) !important;
  vertical-align: middle;
}

#sat-att-report-table .sat-total-row td {
  font-size: 12px !important;
}

#sat-fuel-report-table th:nth-child(1),
#sat-fuel-report-table td:nth-child(1) { width: 82px; }
#sat-fuel-report-table th:nth-child(2),
#sat-fuel-report-table td:nth-child(2) { width: 95px; }
#sat-fuel-report-table th:nth-child(3),
#sat-fuel-report-table td:nth-child(3) { width: 110px; }
#sat-fuel-report-table th:nth-child(4),
#sat-fuel-report-table td:nth-child(4) { width: 82px; }
#sat-fuel-report-table th:nth-child(5),
#sat-fuel-report-table td:nth-child(5) { width: 120px; }
#sat-fuel-report-table th:nth-child(6),
#sat-fuel-report-table td:nth-child(6) { width: 72px; }
#sat-fuel-report-table th:nth-child(7),
#sat-fuel-report-table td:nth-child(7) { width: 72px; }
#sat-fuel-report-table th:nth-child(8),
#sat-fuel-report-table td:nth-child(8),
#sat-fuel-report-table th:nth-child(9),
#sat-fuel-report-table td:nth-child(9),
#sat-fuel-report-table th:nth-child(10),
#sat-fuel-report-table td:nth-child(10) { width: 88px; }

.sat-chip {
  min-height: 34px;
  padding: 6px 6px 6px 12px;
}

.sat-chip button.sat-delete-pump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.sat-owner-invoice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.sat-invoice-vehicle-table {
  margin-top: 12px;
}

#sat-vehicles-table td:first-child {
  font-weight: 950;
  color: var(--sat-navy);
}

@media print {
  .sat-total-row td,
  .sat-total-row th {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-top: 2px solid #111827 !important;
    font-size: 11px !important;
  }
  #sat-att-report-title strong,
  #sat-fuel-report-title strong,
  #sat-report-title strong,
  #sat-driver-report-title strong {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 2px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 900px) {
  .sat-owner-invoice-grid {
    grid-template-columns: 1fr;
  }
}

/* === v1.9 contractor payment slip + deduction system === */
.sat-invoice-slip {
  width: 100%;
  max-width: 100%;
  padding: 18px;
}

.sat-payment-slip {
  background: #fff;
  border: 1px solid var(--sat-border);
  border-radius: 18px;
  padding: 18px;
  overflow-x: auto;
}

.sat-slip-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.sat-slip-center {
  text-align: center;
}

.sat-slip-center h2 {
  margin: 0;
  font-size: 28px;
  color: #111827;
  text-decoration: underline;
  line-height: 1.05;
}

.sat-slip-period {
  color: #991b1b;
  margin-top: 8px;
  font-weight: 900;
}

.sat-slip-approved {
  text-align: center;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.sat-slip-approved strong {
  font-size: 28px;
  letter-spacing: .04em;
}

.sat-slip-date {
  text-align: right;
  font-size: 13px;
  color: #111827;
}

.sat-slip-owner-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
  color: #111827;
}

.sat-slip-owner-line > strong {
  color: #111827;
  letter-spacing: .02em;
}

.sat-slip-owner-line b {
  color: #991b1b;
  font-size: 14px;
}

.sat-slip-vehicle-table {
  min-width: 1300px;
  table-layout: fixed;
}

.sat-slip-vehicle-table th,
.sat-slip-vehicle-table td {
  padding: 5px 4px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.sat-slip-vehicle-table td:first-child,
.sat-slip-vehicle-table td:nth-child(2),
.sat-slip-vehicle-table td:nth-child(4) {
  text-align: left;
}

.sat-slip-main-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--sat-border);
  border-top: 0;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 950;
  color: #111827;
}

.sat-slip-main-total strong {
  font-size: 18px;
}

.sat-slip-summary-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
  align-items: stretch;
}

.sat-slip-summary-line > div {
  text-align: center;
  border-bottom: 2px solid #111827;
  padding: 8px 8px 10px;
  font-weight: 950;
  color: #111827;
}

.sat-slip-summary-line strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: #111827;
}

.sat-slip-deduction-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.65fr);
  gap: 16px;
  align-items: start;
}

.sat-deduction-table,
.sat-payable-table,
.sat-balance-table,
.sat-adjustment-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.sat-deduction-table th,
.sat-payable-table th,
.sat-adjustment-table th {
  text-align: center;
  font-size: 13px;
}

.sat-deduction-table td,
.sat-payable-table td,
.sat-balance-table td,
.sat-adjustment-table td {
  font-size: 13px;
  padding: 7px 9px;
}

.sat-deduction-table td:nth-child(2),
.sat-balance-table td:nth-child(2) {
  text-align: right;
}

.sat-deduction-input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--sat-border);
  border-radius: 8px;
  padding: 4px 7px;
  text-align: right;
  font-weight: 900;
  color: #111827;
}

.sat-deduction-input[readonly] {
  background: #f8fafc;
  color: var(--sat-navy);
}

.sat-payable-table th,
.sat-payable-table td {
  text-align: center;
  font-weight: 950;
}

.sat-payable-table td {
  font-size: 18px;
}

.sat-balance-table,
.sat-adjustment-table {
  margin-top: 10px;
}

.sat-slip-signatures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  text-align: center;
  color: #111827;
  font-size: 12px;
}

.sat-slip-signatures span:before {
  content: "";
  display: block;
  border-top: 1px solid #111827;
  margin: 0 16px 6px;
}

@media (max-width: 900px) {
  .sat-slip-header,
  .sat-slip-summary-line,
  .sat-slip-deduction-grid,
  .sat-slip-signatures {
    grid-template-columns: 1fr;
  }
  .sat-slip-date,
  .sat-slip-approved,
  .sat-slip-center {
    text-align: left;
  }
  .sat-payment-slip {
    padding: 12px;
  }
}


/* === v2.0 owner filters + report alignment polish === */
#sat-att-report-owner,
#sat-fuel-report-owner {
  min-width: 180px;
}

#sat-fuel-report-table {
  table-layout: fixed;
}

#sat-fuel-report-table th,
#sat-fuel-report-table td {
  text-align: center !important;
  padding: 6px 5px !important;
  vertical-align: middle;
}

#sat-fuel-report-table td strong {
  display: inline-block;
}

#sat-fuel-report-table th:nth-child(1),
#sat-fuel-report-table td:nth-child(1) { width: 9%; }
#sat-fuel-report-table th:nth-child(2),
#sat-fuel-report-table td:nth-child(2) { width: 11%; }
#sat-fuel-report-table th:nth-child(3),
#sat-fuel-report-table td:nth-child(3) { width: 14%; }
#sat-fuel-report-table th:nth-child(4),
#sat-fuel-report-table td:nth-child(4) { width: 9%; }
#sat-fuel-report-table th:nth-child(5),
#sat-fuel-report-table td:nth-child(5) { width: 14%; }
#sat-fuel-report-table th:nth-child(6),
#sat-fuel-report-table td:nth-child(6) { width: 8%; }
#sat-fuel-report-table th:nth-child(7),
#sat-fuel-report-table td:nth-child(7) { width: 8%; }
#sat-fuel-report-table th:nth-child(8),
#sat-fuel-report-table td:nth-child(8) { width: 9%; }
#sat-fuel-report-table th:nth-child(9),
#sat-fuel-report-table td:nth-child(9) { width: 9%; }
#sat-fuel-report-table th:nth-child(10),
#sat-fuel-report-table td:nth-child(10) { width: 9%; }

#sat-fuel-report-table .sat-total-row td,
#sat-att-report-table .sat-total-row td {
  text-align: center !important;
}

@media (max-width: 900px) {
  #sat-att-report-owner,
  #sat-fuel-report-owner {
    min-width: 100%;
  }
}

/* === v2.1 contractor report/invoice polish === */
#sat-monthly-report-table,
.sat-slip-vehicle-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
}

#sat-monthly-report-table th,
#sat-monthly-report-table td,
#sat-fuel-report-table th,
#sat-fuel-report-table td,
#sat-driver-report-table th,
#sat-driver-report-table td,
.sat-slip-vehicle-table th,
.sat-slip-vehicle-table td {
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: break-word;
}

#sat-monthly-report-table th,
#sat-monthly-report-table td {
  padding: 4px 3px !important;
  font-size: 9.4px !important;
  line-height: 1.12 !important;
}

#sat-monthly-report-table th:nth-child(1),
#sat-monthly-report-table td:nth-child(1) { width: 7%; }
#sat-monthly-report-table th:nth-child(2),
#sat-monthly-report-table td:nth-child(2) { width: 6%; }
#sat-monthly-report-table th:nth-child(3),
#sat-monthly-report-table td:nth-child(3) { width: 5%; }
#sat-monthly-report-table th:nth-child(4),
#sat-monthly-report-table td:nth-child(4) { width: 5.5%; }
#sat-monthly-report-table th:nth-child(5),
#sat-monthly-report-table td:nth-child(5) { width: 7%; }
#sat-monthly-report-table th:nth-child(6),
#sat-monthly-report-table td:nth-child(6),
#sat-monthly-report-table th:nth-child(9),
#sat-monthly-report-table td:nth-child(9),
#sat-monthly-report-table th:nth-child(16),
#sat-monthly-report-table td:nth-child(16),
#sat-monthly-report-table th:nth-child(20),
#sat-monthly-report-table td:nth-child(20) { width: 6%; }
#sat-monthly-report-table th:nth-child(7),
#sat-monthly-report-table td:nth-child(7),
#sat-monthly-report-table th:nth-child(8),
#sat-monthly-report-table td:nth-child(8),
#sat-monthly-report-table th:nth-child(10),
#sat-monthly-report-table td:nth-child(10),
#sat-monthly-report-table th:nth-child(11),
#sat-monthly-report-table td:nth-child(11),
#sat-monthly-report-table th:nth-child(12),
#sat-monthly-report-table td:nth-child(12),
#sat-monthly-report-table th:nth-child(13),
#sat-monthly-report-table td:nth-child(13),
#sat-monthly-report-table th:nth-child(14),
#sat-monthly-report-table td:nth-child(14),
#sat-monthly-report-table th:nth-child(15),
#sat-monthly-report-table td:nth-child(15),
#sat-monthly-report-table th:nth-child(17),
#sat-monthly-report-table td:nth-child(17),
#sat-monthly-report-table th:nth-child(18),
#sat-monthly-report-table td:nth-child(18),
#sat-monthly-report-table th:nth-child(19),
#sat-monthly-report-table td:nth-child(19) { width: 4.8%; }

.sat-slip-approved {
  display: none !important;
}

.sat-slip-header {
  grid-template-columns: .35fr 1.35fr .35fr 1fr;
}

.sat-slip-summary-line.sat-slip-summary-3,
.sat-slip-summary-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sat-slip-deduction-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.sat-payable-table th,
.sat-payable-table td {
  text-align: center !important;
}

.sat-balance-table td:first-child,
.sat-deduction-table td:first-child {
  text-align: left !important;
}

.sat-balance-table td:nth-child(2),
.sat-deduction-table td:nth-child(2) {
  text-align: right !important;
}

.sat-deduction-table input {
  text-align: right !important;
}

@media (min-width: 901px) {
  #sat-monthly-report-card .sat-table-wrap {
    overflow-x: hidden;
  }
  .sat-slip-vehicle-table th,
  .sat-slip-vehicle-table td {
    padding: 3px 2px !important;
    font-size: 7.8px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 900px) {
  #sat-monthly-report-table,
  .sat-slip-vehicle-table {
    min-width: 1500px;
  }
}

.sat-login-credit {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}
.sat-login-credit a {
  color: #0f2b52;
  text-decoration: none;
  font-weight: 800;
}
.sat-login-credit a:hover {
  text-decoration: underline;
}


/* === v2.3 updates: centered slip header and driver daily report === */
.sat-slip-header {
  position: relative;
  display: block !important;
  text-align: center;
  min-height: 62px;
}
.sat-slip-header .sat-slip-center {
  text-align: center !important;
  margin: 0 auto;
}
.sat-slip-header .sat-slip-date {
  position: absolute;
  right: 0;
  top: 18px;
  text-align: right;
}
.sat-driver-daily-report {
  margin-top: 18px;
}
.sat-driver-daily-report h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #071a36;
}
#sat-driver-daily-report .sat-table th,
#sat-driver-daily-report .sat-table td {
  text-align: center;
}
@media (max-width: 900px) {
  .sat-slip-header .sat-slip-date {
    position: static;
    margin-top: 8px;
    text-align: center;
  }
}


/* === v2.4 pump report, attendance notes, contractor slip cleanup === */
.sat-att-notes,
.sat-driver-att-notes {
  width: 100%;
  min-height: 34px;
  resize: vertical;
  border: 1px solid var(--sat-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

#sat-pump-report-pump {
  min-width: 180px;
}

#sat-pump-report-table,
.sat-att-fuel-summary-table {
  table-layout: fixed;
  width: 100%;
}

#sat-pump-report-table th,
#sat-pump-report-table td,
.sat-att-fuel-summary-table th,
.sat-att-fuel-summary-table td {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 6px 5px !important;
  line-height: 1.15 !important;
}

.sat-report-sub-summary {
  margin-top: 16px;
}

.sat-report-sub-title {
  font-weight: 900;
  color: #071a36;
  margin: 0 0 8px;
  font-size: 16px;
}

#sat-driver-report-card {
  width: 100%;
}

#sat-driver-report-card .sat-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

#sat-driver-report-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#sat-driver-report-table th,
#sat-driver-report-table td {
  padding: 4px 3px !important;
  font-size: 9.6px !important;
  line-height: 1.08 !important;
}

#sat-driver-daily-report .sat-table th,
#sat-driver-daily-report .sat-table td {
  padding: 5px 4px !important;
  line-height: 1.12 !important;
}

.sat-slip-header {
  position: relative;
  display: block !important;
  text-align: center;
  min-height: 70px;
  margin-bottom: 8px;
}

.sat-slip-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 74px;
  text-align: left;
}

.sat-slip-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 10px;
}

.sat-slip-header .sat-slip-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center !important;
}

.sat-slip-header .sat-slip-date {
  position: absolute;
  right: 0;
  top: 22px;
  text-align: right;
}

.sat-slip-net-center {
  width: min(380px, 100%);
  margin: 12px auto 14px;
  text-align: center;
  border-bottom: 2px solid #111827;
  padding: 8px 12px 10px;
  font-weight: 950;
  color: #111827;
}

.sat-slip-net-center span {
  display: block;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 14px;
}

.sat-slip-net-center strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.sat-slip-deduction-grid {
  grid-template-columns: minmax(260px, .78fr) minmax(260px, .72fr) !important;
  gap: 14px !important;
  justify-content: start;
}

.sat-balance-compact {
  max-width: 520px;
  margin-top: 0 !important;
}

.sat-balance-compact td {
  padding: 7px 9px !important;
}

@media (max-width: 900px) {
  #sat-pump-report-pump {
    min-width: 100%;
  }
  #sat-driver-report-card .sat-table-wrap {
    overflow-x: auto;
  }
  #sat-driver-report-table {
    min-width: 1100px;
  }
  .sat-slip-logo,
  .sat-slip-header .sat-slip-date {
    position: static;
    width: auto;
    text-align: center;
    margin-bottom: 8px;
  }
  .sat-slip-deduction-grid {
    grid-template-columns: 1fr !important;
  }
  .sat-balance-compact {
    max-width: 100%;
  }
}
