/* ══════════════════════════════════════════
   DRIVER TAB — Tablet (landscape)
   ══════════════════════════════════════════ */

.tablet-frame {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: #111;
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
  aspect-ratio: 16/10;
  display: flex;
}

.tablet-screen {
  flex: 1;
  background: #f5f5f5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Tablet top bar */
.tb-topbar {
  background: #034381;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.tb-topbar h4 {
  font-size: 15px;
  font-weight: 700;
}

.tb-topbar .tb-sub {
  font-size: 11px;
  opacity: .7;
}

.tb-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-lang {
  font-size: 12px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Tablet body = sidebar + content */
.tb-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Tablet sidebar */
.tb-sidebar {
  width: 190px;
  min-width: 190px;
  background: #034381;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.tb-sidebar-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.tb-sidebar-header .tb-driver-name {
  font-size: 13px;
  font-weight: 700;
}

.tb-sidebar-header .tb-driver-truck {
  font-size: 10px;
  opacity: .5;
  margin-top: 1px;
}

.tb-nav {
  padding: 6px 0;
  flex: 1;
}

.tb-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  transition: all .15s;
  border-left: 3px solid transparent;
  position: relative;
}

.tb-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.tb-nav-item.active {
  color: #fff;
  background: rgba(17, 175, 191, .08);
  border-left-color: #11afbf;
}

.tb-nav-item .tn-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.tb-nav-item .tn-badge {
  position: absolute;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.tb-nav-item .tn-badge.green {
  background: #27ae60;
}

.tb-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin: 4px 14px;
}

.tb-sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Tablet content */
.tb-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  background: #f5f5f5;
}

.tb-page {
  display: none;
}

.tb-page.active {
  display: block;
}

/* Login (full-screen inside tablet) */
.tb-login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #034381;
}

.tb-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  max-width: 420px;
  width: 100%;
}

.tb-app-heading {
  font-size: 26px;
  font-weight: 800;
  color: #034381;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.tb-login-card .license-icon {
  font-size: 72px;
  margin-bottom: 14px;
}

.tb-login-card h2 {
  font-size: 20px;
  color: #034381;
  margin-bottom: 4px;
}

.tb-login-card p {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
}

.tb-login-card select,
.tb-login-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
}

.tb-login-card .login-lang-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.tb-login-card .lang-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #ddd;
  background: #fff;
  color: #666;
  transition: all .15s;
}

.tb-login-card .lang-pill.active {
  border-color: #034381;
  background: #034381;
  color: #fff;
}

/* Job cards (driver) */
.drv-job-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s;
}

.drv-job-card:hover {
  border-color: #034381;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.drv-job-card.active-job {
  border-color: #034381;
  border-width: 2px;
  background: #f0f7ff;
}

.drv-job-card .djc-id {
  font-size: 10px;
  color: #999;
  font-weight: 700;
}

.drv-job-card .djc-route {
  font-size: 15px;
  font-weight: 700;
  margin: 3px 0;
  color: #034381;
}

.drv-job-card .djc-meta {
  font-size: 11px;
  color: #666;
}

/* Active job view */
.active-job-view {
  display: flex;
  gap: 18px;
}

.ajv-map {
  flex: 1;
  min-width: 0;
}

.ajv-panel {
  width: 280px;
  min-width: 280px;
}

.ajv-map-box {
  background: #f0f7fa;
  border-radius: 12px;
  height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid #c8e6c9;
}

.ajv-map-box .map-route-line {
  width: 65%;
}

.ajv-map-box .route-label {
  position: absolute;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ajv-map-box .route-start {
  bottom: 60%;
  left: 8%;
  background: rgba(39, 174, 96, .9);
  color: #fff;
}

.ajv-map-box .route-end {
  top: 55%;
  right: 8%;
  background: rgba(231, 76, 60, .9);
  color: #fff;
}

.ajv-map-box .route-truck {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.ajv-map-box .map-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}

/* Signature area */
.sig-area {
  border: 2px dashed #999;
  border-radius: 12px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  cursor: crosshair;
  background: #fafafa;
  margin: 10px 0;
}

/* Time booking */
.time-entry {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-entry .te-icon {
  font-size: 28px;
}

.time-entry .te-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
}

.time-entry .te-value {
  font-size: 22px;
  font-weight: 800;
  color: #034381;
}

.time-entry input[type="time"] {
  font-size: 18px;
  font-weight: 700;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  width: 140px;
}

.time-entry input[type="time"]:focus {
  border-color: #034381;
  outline: none;
}

.time-summary {
  background: #034381;
  color: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.time-summary .ts-hours {
  font-size: 36px;
  font-weight: 800;
}

.time-summary .ts-label {
  font-size: 12px;
  opacity: .7;
}