/* BlackLineLink Portal - Blue admin-matched styling */

.bll-portal-box,
.bll-portal-box *,
.bll-portal-box *::before,
.bll-portal-box *::after {
  box-sizing: border-box;
}

.bll-portal-box {
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 22px;
  background: #0d1b2f;
  border: 1px solid #223654;
  border-radius: 16px;
  color: #e6eefb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.bll-portal-box h1,
.bll-portal-box h2,
.bll-portal-box h3,
.bll-portal-box h4,
.bll-portal-box h5,
.bll-portal-box h6 {
  margin: 0 0 12px;
  color: #ffffff;
  line-height: 1.3;
}

.bll-portal-box h2 {
  font-size: 26px;
  font-weight: 700;
}

.bll-portal-box h3 {
  font-size: 18px;
  font-weight: 700;
}

.bll-portal-box p {
  margin: 0 0 14px;
  color: #d7e4f5;
  line-height: 1.6;
}

.bll-portal-box a {
  color: #c9d8eb;
  text-decoration: none;
}

.bll-portal-box a:hover {
  color: #ffffff;
}

.bll-portal-topbar-box {
  background: linear-gradient(135deg, #081221 0%, #11233A 100%);
  border-color: #213652;
}

.bll-portal-login-box,
.bll-portal-dashboard-box,
.bll-portal-dispatch-box,
.bll-portal-booking-view-box,
.bll-portal-driver-jobs-box,
.bll-portal-message-box {
  background: #0d1b2f;
}

.bll-portal-card {
  background: #11233A;
  border: 1px solid #223654;
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 18px;
  color: #e6eefb;
}

.bll-portal-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.bll-portal-placeholder-grid .bll-portal-card {
  margin: 0;
  min-height: 120px;
}

.bll-portal-placeholder-grid .bll-portal-card p:last-child {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.bll-portal-help-links {
  margin-top: 14px;
}

.bll-portal-box form {
  margin: 0;
}

.bll-portal-box label {
  color: #ffffff;
  font-weight: 600;
}

.bll-portal-box input[type="text"],
.bll-portal-box input[type="email"],
.bll-portal-box input[type="password"],
.bll-portal-box input[type="number"],
.bll-portal-box input[type="date"],
.bll-portal-box input[type="time"],
.bll-portal-box select,
.bll-portal-box textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  background: #081221;
  border: 1px solid #223654;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bll-portal-box input[type="text"]:focus,
.bll-portal-box input[type="email"]:focus,
.bll-portal-box input[type="password"]:focus,
.bll-portal-box input[type="number"]:focus,
.bll-portal-box input[type="date"]:focus,
.bll-portal-box input[type="time"]:focus,
.bll-portal-box select:focus,
.bll-portal-box textarea:focus {
  border-color: #4d76b5;
  box-shadow: 0 0 0 3px rgba(77, 118, 181, 0.18);
  background: #0b1727;
}

.bll-portal-box input::placeholder,
.bll-portal-box textarea::placeholder {
  color: #9fb4cf;
}

.bll-portal-box textarea {
  min-height: 120px;
  resize: vertical;
}

.bll-portal-box .button,
.bll-portal-box button,
.bll-portal-box input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #335f9c;
  background: #162742;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bll-portal-box .button:hover,
.bll-portal-box button:hover,
.bll-portal-box input[type="submit"]:hover {
  background: #1b3152;
  border-color: #4d76b5;
  color: #ffffff;
  transform: translateY(-1px);
}

.bll-portal-box .button:focus,
.bll-portal-box button:focus,
.bll-portal-box input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 118, 181, 0.18);
}

.bll-portal-box .button.button-primary,
.bll-portal-box button.button-primary,
.bll-portal-box input[type="submit"].button-primary {
  background: #335f9c;
  border-color: #4d76b5;
}

.bll-portal-box .button.button-primary:hover,
.bll-portal-box button.button-primary:hover,
.bll-portal-box input[type="submit"].button-primary:hover {
  background: #456aa7;
  border-color: #4d76b5;
}

.bll-portal-box table.widefat {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #081221;
  border: 1px solid #223654;
  color: #e6eefb;
}

.bll-portal-box table.widefat thead th {
  background: #11233A;
  color: #ffffff;
  border-bottom: 1px solid #223654;
  border-right: 1px solid #223654;
  font-weight: 700;
  padding: 12px 10px;
  vertical-align: middle;
}

.bll-portal-box table.widefat tbody th,
.bll-portal-box table.widefat tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #213652;
  border-right: 1px solid #213652;
  vertical-align: top;
  color: #d7e4f5;
  background: #081221;
}

.bll-portal-box table.widefat tbody tr:nth-child(even) td,
.bll-portal-box table.widefat tbody tr:nth-child(even) th {
  background: #0b1727;
}

.bll-portal-box table.widefat tbody tr:hover td,
.bll-portal-box table.widefat tbody tr:hover th {
  background: #10213a;
}

.bll-portal-box table.widefat a {
  color: #ffffff;
  font-weight: 600;
}

.bll-portal-box table.widefat a:hover {
  color: #c9d8eb;
}

.bll-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #223654;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.bll-status-badge--empty {
  background: #081221;
  border-color: #223654;
  color: #b8c8dd;
}

.bll-status-badge--pending,
.bll-status-badge--unassigned {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.42);
  color: #f8d48b;
}

.bll-status-badge--confirmed,
.bll-status-badge--assigned {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.42);
  color: #9dc4ff;
}

.bll-status-badge--accepted {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.42);
  color: #8df0c8;
}

.bll-status-badge--on_route {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.42);
  color: #c7b2ff;
}

.bll-status-badge--arrived {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.42);
  color: #ffb5dc;
}

.bll-status-badge--completed {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
  color: #9ef0b2;
}

.bll-status-badge--cancelled {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #ffabab;
}

.bll-driver-progress-form {
  margin-top: 6px;
}

.bll-driver-progress-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

.bll-driver-progress-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #223654;
  background: #081221;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bll-driver-progress-pill:hover {
  transform: translateY(-1px);
}

.bll-driver-progress-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bll-driver-progress-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  color: #d7e4f5;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bll-driver-progress-pill input[type="radio"]:checked + span {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.bll-driver-progress-pill--accepted span {
  background: rgba(16, 185, 129, 0.14);
  color: #8df0c8;
}

.bll-driver-progress-pill--accepted input[type="radio"]:checked + span {
  background: rgba(16, 185, 129, 0.28);
}

.bll-driver-progress-pill--on_route span {
  background: rgba(139, 92, 246, 0.14);
  color: #c7b2ff;
}

.bll-driver-progress-pill--on_route input[type="radio"]:checked + span {
  background: rgba(139, 92, 246, 0.28);
}

.bll-driver-progress-pill--arrived span {
  background: rgba(236, 72, 153, 0.14);
  color: #ffb5dc;
}

.bll-driver-progress-pill--arrived input[type="radio"]:checked + span {
  background: rgba(236, 72, 153, 0.28);
}

.bll-driver-progress-pill--completed span {
  background: rgba(34, 197, 94, 0.14);
  color: #9ef0b2;
}

.bll-driver-progress-pill--completed input[type="radio"]:checked + span {
  background: rgba(34, 197, 94, 0.28);
}

.bll-driver-progress-pill:focus-within {
  box-shadow: 0 0 0 3px rgba(77, 118, 181, 0.18);
  border-color: #4d76b5;
}

.bll-driver-progress-help {
  margin: 0 0 14px;
  color: #b8c8dd;
  font-size: 12px;
}

.bll-driver-progress-submit {
  min-width: 160px;
}

@media (max-width: 1024px) {
  .bll-portal-box {
    padding: 18px;
  }

  .bll-portal-box h2 {
    font-size: 23px;
  }

  .bll-driver-progress-group {
    gap: 10px;
  }

  .bll-driver-progress-pill {
    min-width: 116px;
  }
}

@media (max-width: 768px) {
  .bll-portal-box {
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .bll-portal-box h2 {
    font-size: 21px;
  }

  .bll-portal-box h3 {
    font-size: 17px;
  }

  .bll-portal-card {
    padding: 14px;
    border-radius: 12px;
  }

  .bll-portal-placeholder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bll-driver-progress-group {
    flex-direction: column;
  }

  .bll-driver-progress-pill {
    width: 100%;
    min-width: 100%;
  }

  .bll-driver-progress-pill span {
    min-height: 46px;
  }
}

@media (max-width: 560px) {
  .bll-portal-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .bll-portal-topbar-box > div {
    align-items: stretch !important;
  }

  .bll-portal-box .button,
  .bll-portal-box button,
  .bll-portal-box input[type="submit"] {
    width: 100%;
  }

  .bll-portal-box table.widefat {
    min-width: 760px;
  }
}