:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f7;
  color: #17191f;
}

* {
  box-sizing: border-box;
}

.driver-mobile-page [hidden] {
  display: none !important;
}

body.driver-mobile-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 210px),
    linear-gradient(180deg, #a80812 0, #d71924 176px, #f3f4f7 176px),
    #f3f4f7;
}

body.driver-portal-page:not(.driver-portal-authenticated) .driver-mobile-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.driver-mobile-shell {
  width: min(100%, 414px);
  margin: 0 auto;
  padding: 16px 14px 0;
}

.driver-mobile-header {
  position: relative;
  min-height: 142px;
  padding: 22px 6px 26px;
  color: #ffffff;
  overflow: hidden;
}

.driver-mobile-header::after {
  content: "";
  position: absolute;
  inset: 8px -60px auto auto;
  width: 190px;
  height: 110px;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: rotate(-11deg);
}

.driver-mobile-kicker {
  margin: 0 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.driver-mobile-header h1 {
  position: relative;
  margin: 0;
  max-width: 300px;
  font-size: 1.88rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.driver-mobile-header p:last-child {
  position: relative;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

.driver-mobile-card,
.driver-portal-login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 218, 226, 0.86);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(23, 25, 31, 0.13);
}

.driver-mobile-card {
  margin-bottom: 14px;
}

.driver-mobile-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: -18px 0 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(92, 10, 17, 0.16);
  backdrop-filter: blur(12px);
}

.driver-mobile-back-link:active {
  transform: translateY(1px);
}

.driver-mobile-truck-card {
  position: relative;
  margin: -24px 0 14px;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 42%),
    linear-gradient(145deg, #151922 0, #202633 52%, #090b10 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(12, 15, 22, 0.32);
  overflow: hidden;
}

.driver-mobile-truck-card::after {
  content: "";
  position: absolute;
  top: -62px;
  right: -46px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(215, 25, 36, 0.42);
  filter: blur(2px);
}

.driver-mobile-truck-card .driver-mobile-kicker {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.driver-mobile-truck-card h2,
.driver-portal-truck-card h2 {
  position: relative;
  margin: 2px 0 16px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-mobile-truck-card dl,
.driver-portal-truck-card dl {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
}

.driver-mobile-truck-card div,
.driver-portal-truck-card div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

.driver-mobile-truck-card dt,
.driver-portal-truck-card dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-mobile-truck-card dd,
.driver-portal-truck-card dd {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.driver-mobile-truck-note {
  position: relative;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.35;
}

.driver-mobile-tabs-card {
  border-radius: 22px;
  overflow: hidden;
}

.driver-mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.driver-mobile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 1px solid #e3e6eb;
  border-radius: 999px;
  background: #f6f7f9;
  color: #555e6b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.mobile-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #d71924;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(215, 25, 36, 0.22);
}

.mobile-count-badge.is-zero {
  background: #d9dde5;
  color: #5f6875;
  box-shadow: none;
}

.mobile-count-badge.is-paid {
  background: #19a560;
  color: #ffffff;
}

.driver-mobile-tab.active {
  border-color: #d71924;
  background: linear-gradient(135deg, #d71924, #a80812);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(215, 25, 36, 0.28);
}

.driver-mobile-form {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 4px;
}

.driver-portal-login-card .driver-mobile-form {
  display: block;
  padding: 18px;
}

.driver-mobile-section {
  padding: 18px;
  border-bottom: 0;
}

.driver-mobile-section h2 {
  margin: 0 0 15px;
  color: #17191f;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.driver-mobile-card-label {
  margin: 0 0 8px;
  color: #d71924;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.driver-mobile-card-copy {
  margin: -6px 0 18px;
  color: #68707c;
  font-size: 0.94rem;
  line-height: 1.4;
  font-weight: 700;
}

.driver-mobile-footer-note {
  margin: 12px 0 0;
  color: #7b838e;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.driver-mobile-field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.driver-mobile-field:last-child {
  margin-bottom: 0;
}

.driver-mobile-field span {
  color: #3b424d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-mobile-input,
.driver-mobile-field input,
.driver-mobile-field select,
.driver-mobile-field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #dce0e7;
  border-radius: 18px;
  background: #f8f9fb;
  color: #17191f;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  padding: 14px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.driver-mobile-field textarea {
  min-height: 104px;
  resize: vertical;
}

.driver-mobile-input:focus,
.driver-mobile-field input:focus,
.driver-mobile-field select:focus,
.driver-mobile-field textarea:focus {
  border-color: #d71924;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(215, 25, 36, 0.12);
}

.driver-mobile-readonly,
.driver-mobile-field input[readonly] {
  background: #eef0f4;
  color: #515a66;
}

.driver-mobile-submit-bar,
.driver-mobile-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  width: min(100%, 414px);
  margin: 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(243, 244, 247, 0.9);
  border-top: 1px solid rgba(217, 221, 228, 0.84);
  backdrop-filter: blur(16px);
}

.driver-mobile-submit,
.driver-mobile-primary-btn,
.driver-mobile-secondary {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

.driver-mobile-submit,
.driver-mobile-primary-btn {
  background: linear-gradient(135deg, #df1d29, #a80812);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(215, 25, 36, 0.3);
}

.driver-mobile-submit:disabled,
.driver-mobile-primary-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.driver-mobile-secondary {
  background: #ffffff;
  color: #a80812;
  border: 1px solid #f0c3c7;
  box-shadow: 0 10px 22px rgba(23, 25, 31, 0.08);
}

.driver-mobile-status {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 20px;
  font-weight: 900;
  line-height: 1.36;
  box-shadow: 0 12px 24px rgba(23, 25, 31, 0.08);
}

.driver-mobile-status.info {
  background: #eef3ff;
  color: #214f92;
  border: 1px solid #cddcff;
}

.driver-mobile-status.success,
.driver-mobile-success {
  background: linear-gradient(135deg, #e8f9ee, #d9f4e3);
  color: #12602f;
  border: 1px solid #b9e4c8;
}

.driver-mobile-status.error,
.driver-mobile-error {
  background: #fff0f1;
  color: #a80812;
  border: 1px solid #ffc9ce;
}

.mobile-summary-strip {
  display: flex;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-summary-strip::-webkit-scrollbar {
  display: none;
}

.mobile-summary-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #37404d;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(23, 25, 31, 0.08);
}

.mobile-summary-pill.is-paid {
  color: #12602f;
  background: #e8f9ee;
}

.mobile-state-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: -2px 0 14px;
  padding: 6px;
  border: 1px solid rgba(226, 229, 235, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(23, 25, 31, 0.08);
}

.mobile-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #56606d;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.mobile-state-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5e8ee;
  color: #56606d;
  font-size: 0.72rem;
  font-weight: 950;
}

.mobile-state-pill.active {
  background: linear-gradient(135deg, #df1d29, #a80812);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(168, 8, 18, 0.22);
}

.mobile-state-pill.active span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.mobile-card-label {
  color: #262d38;
  font-weight: 950;
}

.mobile-card-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0;
  padding: 11px 12px;
  border-radius: 16px;
  background: #fff6f7;
  color: #a80812 !important;
  font-size: 1.04rem !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere;
  width: 100%;
}

.mobile-card-amount span {
  color: #6f2930;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-card-preview {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f7f9;
  color: #4f5966 !important;
}

.mobile-overview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(7, 9, 14, 0.62);
  backdrop-filter: blur(8px);
}

.mobile-overview-backdrop[hidden] {
  display: none;
}

.mobile-overview-modal {
  width: min(414px, calc(100% - 24px));
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.mobile-overview-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #eef0f4;
}

.mobile-overview-header .driver-mobile-kicker {
  color: #d71924;
}

.mobile-overview-header h2 {
  margin: 0;
  color: #17191f;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.mobile-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px;
}

.mobile-overview-metric {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #eceff4;
  border-radius: 18px;
  background: #f8f9fb;
}

.mobile-overview-metric span {
  color: #6b7480;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-overview-metric strong {
  color: #17191f;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.2;
}

.mobile-overview-actions {
  padding: 12px 18px 18px;
  border-top: 1px solid #eef0f4;
}

.mobile-reminder-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(215, 25, 36, 0.22), transparent 34%),
    rgba(7, 9, 14, 0.48);
  backdrop-filter: blur(14px);
}

.mobile-reminder-backdrop[hidden] {
  display: none;
}

.mobile-reminder-card {
  width: min(414px, calc(100% - 24px));
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.mobile-reminder-card::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, #d71924, #a80812);
}

.mobile-reminder-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 10px;
}

.mobile-reminder-header .driver-mobile-kicker {
  color: #d71924;
}

.mobile-reminder-header h2 {
  margin: 0;
  color: #17191f;
  font-size: 1.38rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.mobile-reminder-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 16px;
}

.mobile-reminder-metric {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(229, 232, 238, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(23, 25, 31, 0.07);
}

.mobile-reminder-metric span {
  color: #6b7480;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-reminder-metric strong {
  color: #17191f;
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mobile-reminder-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 9px;
  padding: 12px 18px 18px;
}

.driver-mobile-spacer {
  height: 86px;
}

.driver-portal-login-card {
  margin-top: -24px;
  overflow: hidden;
}

.driver-portal-dashboard {
  display: grid;
  gap: 14px;
}

.driver-portal-dashboard-prompt {
  margin: 2px 4px 0;
  color: #4d5663;
  font-weight: 900;
}

.driver-portal-truck-card {
  margin-top: -24px;
}

.driver-portal-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.driver-portal-action-card {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 82px;
  padding: 18px 18px 18px 54px;
  border: 1px solid rgba(226, 229, 235, 0.96);
  border-radius: 24px;
  background: #ffffff;
  color: #17191f;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 32px rgba(23, 25, 31, 0.1);
  cursor: pointer;
}

.driver-portal-action-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background: linear-gradient(135deg, #df1d29, #a80812);
  box-shadow: 0 8px 16px rgba(215, 25, 36, 0.24);
}

.driver-portal-action-card span {
  font-size: 1.05rem;
  font-weight: 950;
}

.driver-portal-action-card small {
  color: #6d7580;
  font-size: 0.9rem;
  font-weight: 800;
}

.driver-portal-action-card:active {
  transform: translateY(1px);
}

.mobile-app-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -18px 0 12px;
}

.mobile-app-notify-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(92, 10, 17, 0.16);
  backdrop-filter: blur(14px);
}

.mobile-app-section {
  margin-bottom: 14px;
}

.mobile-app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 9px;
}

.mobile-app-section-head h2 {
  margin: 0;
  color: #202733;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.mobile-app-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mobile-app-action-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px 12px;
  border: 1px solid rgba(226, 229, 235, 0.94);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    #ffffff;
  color: #17191f;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 32px rgba(23, 25, 31, 0.1);
}

.mobile-app-action-card.active {
  border-color: rgba(215, 25, 36, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 246, 247, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 36px rgba(168, 8, 18, 0.13);
}

.mobile-app-action-card span {
  color: #4f5966;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.mobile-app-action-card strong {
  color: #d71924;
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
}

.mobile-app-action-card small {
  color: #6d7580;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.mobile-module-tabs {
  margin-top: -4px;
}

.mobile-empty-state {
  padding: 20px;
  text-align: center;
}

.mobile-empty-state strong {
  color: #202733;
  font-size: 1rem;
  font-weight: 950;
}

.driver-request-list,
.mobile-approval-list {
  display: grid;
  gap: 12px;
}

.driver-request-card,
.mobile-approval-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 229, 235, 0.96);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 25, 31, 0.09);
}

.driver-request-card p,
.mobile-approval-card p,
.driver-request-empty {
  margin: 0;
  color: #5d6672;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.driver-request-card-head,
.mobile-approval-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.driver-request-card-head strong,
.mobile-approval-card-head strong {
  color: #17191f;
  font-size: 1.08rem;
  font-weight: 950;
}

.driver-request-status-badge,
.mobile-approval-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.status-pending-approval,
.status-pending,
.status-for-approval {
  background: #fff4d8;
  color: #996100;
}

.status-approved {
  background: #e5f6ef;
  color: #087447;
}

.status-returned {
  background: #ffeddc;
  color: #a84d00;
}

.status-rejected {
  background: #ffe4e8;
  color: #b3131b;
}

.status-for-payment {
  background: #ece9ff;
  color: #4d3fb5;
}

.status-paid {
  background: #dcf8e7;
  color: #12602f;
}

.status-submitted {
  background: #e8f0ff;
  color: #285ca8;
}

.mobile-approval-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.mobile-approval-tabs .driver-mobile-tab {
  min-height: 44px;
  font-size: 0.78rem;
}

.mobile-approval-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 4px;
}

.mobile-approval-action-row.single {
  grid-template-columns: 1fr;
}

.mobile-approval-primary-btn,
.mobile-approval-secondary-btn,
.mobile-approval-danger-btn {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mobile-approval-primary-btn {
  background: linear-gradient(135deg, #df1d29, #a80812);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(168, 8, 18, 0.22);
}

.mobile-approval-secondary-btn {
  background: #ffffff;
  border-color: #dfe3ea;
  color: #333b46;
  box-shadow: 0 8px 18px rgba(23, 25, 31, 0.06);
}

.mobile-approval-danger-btn {
  background: #fff4f5;
  border-color: #ffc9ce;
  color: #a80812;
}

.mobile-approval-action-row [data-action="return"],
.mobile-approval-modal-actions [data-modal-action="return"] {
  background: #fff2dc;
  border-color: #ffd49a;
  color: #9a5a00;
}

.mobile-approval-payment-link {
  display: block;
  margin: 14px 0 28px;
  padding: 14px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #a80812;
  text-align: center;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(23, 25, 31, 0.1);
}

.mobile-approval-modal-open {
  overflow: hidden;
}

.mobile-approval-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(7, 9, 14, 0.62);
  backdrop-filter: blur(8px);
}

.mobile-approval-modal {
  width: min(414px, calc(100% - 24px));
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.mobile-approval-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #eef0f4;
  background: #ffffff;
}

.mobile-approval-modal-header .driver-mobile-kicker {
  color: #d71924;
}

.mobile-approval-modal-header h2 {
  margin: 0;
  color: #17191f;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.mobile-approval-close-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f6;
  color: #303844;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.mobile-approval-modal-body {
  padding: 16px 18px;
}

.mobile-approval-modal-body dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mobile-approval-detail-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}

.mobile-approval-detail-row dt {
  color: #737c88;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-approval-detail-row dd {
  margin: 0;
  color: #17191f;
  font-weight: 850;
  line-height: 1.35;
}

.mobile-approval-detail-row-list dd {
  display: grid;
  gap: 6px;
}

.mobile-approval-detail-row-list span {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f6f7f9;
}

.mobile-approval-modal-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eef0f4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

/* Mobile Payment Center */
.mobile-payment-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(215, 25, 36, 0.13), transparent 32%),
    #f3f4f7;
}

.mobile-payment-header {
  position: relative;
  overflow: hidden;
}

.mobile-payment-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}

.mobile-payment-header > * {
  position: relative;
  z-index: 1;
}

.mobile-payment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.mobile-payment-tabs .driver-mobile-tab {
  min-height: 44px;
  font-size: 0.76rem;
}

.mobile-payment-list {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
}

.mobile-payment-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(221, 225, 232, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(23, 25, 31, 0.09);
  min-width: 0;
  overflow: hidden;
}

.mobile-payment-card p {
  margin: 0;
  color: #5d6672;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mobile-payment-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 4px;
}

.mobile-payment-card-head strong {
  flex: 1 1 160px;
  min-width: 0;
  color: #17191f;
  font-size: 1.08rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.mobile-payment-status-badge {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.status-unpaid {
  background: #fff4d8;
  color: #996100;
}

.status-partially-paid {
  background: #fff0c7;
  color: #8a5700;
}

.mobile-payment-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
}

.mobile-payment-primary-btn,
.mobile-payment-secondary-btn {
  min-height: 46px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mobile-payment-primary-btn {
  background: linear-gradient(135deg, #df1d29, #a80812);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(168, 8, 18, 0.24);
}

.mobile-payment-secondary-btn {
  background: #ffffff;
  border-color: #dfe3ea;
  color: #333b46;
  box-shadow: 0 8px 18px rgba(23, 25, 31, 0.06);
}

.mobile-payment-primary-btn:disabled,
.mobile-payment-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.mobile-payment-modal-open {
  overflow: hidden;
}

.mobile-payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(7, 9, 14, 0.62);
  backdrop-filter: blur(8px);
}

.mobile-payment-modal-backdrop[hidden] {
  display: none;
}

.mobile-payment-modal {
  width: min(414px, calc(100% - 24px));
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.mobile-payment-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #eef0f4;
  background: #ffffff;
}

.mobile-payment-modal-header .driver-mobile-kicker {
  color: #d71924;
}

.mobile-payment-modal-header h2 {
  margin: 0;
  color: #17191f;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.mobile-payment-close-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f6;
  color: #303844;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
}

.mobile-payment-modal-body {
  padding: 16px 18px;
}

.mobile-payment-modal-body dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mobile-payment-detail-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}

.mobile-payment-detail-row dt {
  color: #737c88;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-payment-detail-row dd {
  margin: 0;
  color: #17191f;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mobile-payment-modal-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eef0f4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.mobile-payment-form-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #191d27, #07090f);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.mobile-payment-form-summary strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.mobile-payment-form-summary span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

@media (max-width: 370px) {
  .mobile-app-action-grid,
  .mobile-reminder-metrics {
    grid-template-columns: 1fr;
  }

  .mobile-reminder-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .driver-mobile-shell,
  .driver-mobile-submit-bar,
  .driver-mobile-actionbar {
    width: 414px;
  }
}
