/* =========================================================
   MARSIM LOGISTICS
   SINGLE PAGE APP
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {

  --primary: #155eef;
  --primary-dark: #1048bd;
  --primary-light: #eaf1ff;

  --success: #16a34a;
  --success-light: #eaf8ef;

  --danger: #dc2626;
  --danger-light: #fff1f1;

  --warning: #b45309;

  --text: #172033;
  --muted: #667085;
  --light: #98a2b3;

  --bg: #f4f7fb;
  --white: #ffffff;

  --border: #e4e7ec;

  --shadow:
    0 8px 24px rgba(16,24,40,.08);

  --shadow-lg:
    0 18px 45px rgba(16,24,40,.12);

  --radius: 14px;
  --radius-lg: 20px;

}

html,
body {

  width: 100%;
  min-height: 100%;

}

body {

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);

}

button,
input,
select,
textarea {

  font: inherit;

}

button {

  cursor: pointer;

}

button:disabled {

  cursor: not-allowed;
  opacity: .55;

}

.hidden {

  display: none !important;

}


/* =========================================================
   LOGIN
========================================================= */

.screen {

  min-height: 100vh;
  width: 100%;

}

.login-screen {

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(21,94,239,.14),
      transparent 40%
    ),
    var(--bg);

}

.login-wrapper {

  width: 100%;
  max-width: 440px;

}

.brand-large {

  text-align: center;
  margin-bottom: 22px;

}

.logo {

  width: 84px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: auto;

  border-radius: 18px;

  
  color: white;

  font-size: 29px;
  font-weight: 800;

  box-shadow:
    0 12px 30px
    rgba(21,94,239,.25);

}

.logo.small {

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  font-size: 20px;

  border-radius: 12px;

}

.brand-large h1 {

  margin-top: 12px;

  font-size: 24px;

}

.brand-large p {

  margin-top: 5px;

  color: var(--muted);

  font-size: 14px;

}

.login-card {

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 30px;

  box-shadow: var(--shadow-lg);

}

.login-card h2 {

  font-size: 24px;

}

.muted {

  color: var(--muted);
  margin-top: 5px;
  margin-bottom: 24px;

}

.login-card label {

  display: block;

  margin-bottom: 17px;

  font-size: 14px;
  font-weight: 600;

}

.login-card input,
.login-card select,
.login-card textarea {

  width: 100%;

  margin-top: 7px;

  border: 1px solid #d0d5dd;

  border-radius: 10px;

  background: white;

  color: var(--text);

  outline: none;

}

.login-card input {

  height: 48px;
  padding: 0 13px;

}

.login-card input:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(21,94,239,.10);

}

.password-box {

  position: relative;

}

.password-box input {

  padding-right: 70px;

}

.show-password {

  position: absolute;

  right: 7px;
  top: 50%;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  color: var(--primary);

  font-weight: 700;

}

.remember {

  display: flex !important;

  align-items: center;

  gap: 8px;

  color: var(--muted);

}

.remember input {

  width: 16px !important;
  height: 16px;

  margin: 0 !important;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

  min-height: 43px;

  padding:
    0 17px;

  border-radius: 9px;

  border: 1px solid transparent;

  font-weight: 700;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

}

.btn.primary {

  background: var(--primary);
  color: white;

}

.btn.primary:hover {

  background: var(--primary-dark);

}

.btn.success {

  background: var(--success);
  color: white;

}

.btn.danger {

  background: var(--danger);
  color: white;

}

.btn.secondary {

  background: white;
  border-color: var(--border);
  color: var(--text);

}

.full {

  width: 100%;

}

.spinner {

  width: 17px;
  height: 17px;

  border:
    2px solid
    rgba(255,255,255,.4);

  border-top-color: white;

  border-radius: 50%;

  animation:
    spin .7s linear infinite;

}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}


/* =========================================================
   ALERT
========================================================= */

.alert {

  padding: 12px 14px;

  margin-bottom: 16px;

  border-radius: 9px;

  font-size: 13px;

  background: var(--danger-light);

  color: #b42318;

  border: 1px solid #fecdca;

}

.alert.success {

  background: var(--success-light);

  color: #067647;

  border-color: #abefc6;

}


/* =========================================================
   CENTER
========================================================= */

.center-screen {

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: var(--bg);

}

.loading-card,
.error-card {

  width: 100%;
  max-width: 400px;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 32px;

  text-align: center;

  box-shadow: var(--shadow);

}

.loading-card h2 {

  margin-top: 15px;

}

.loading-card p {

  margin-top: 6px;

  color: var(--muted);

}

.loader {

  width: 34px;
  height: 34px;

  margin: 20px auto 0;

  border: 3px solid #dbe7ff;

  border-top-color: var(--primary);

  border-radius: 50%;

  animation:
    spin .8s linear infinite;

}

.error-icon {

  width: 58px;
  height: 58px;

  margin: auto;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--danger-light);

  color: var(--danger);

  font-size: 25px;
  font-weight: 800;

}

.error-card h2 {

  margin-top: 15px;

}

.error-card p {

  margin-top: 8px;

  color: var(--muted);

  line-height: 1.6;

}

.actions {

  display: flex;

  justify-content: center;

  gap: 10px;

  margin-top: 22px;

}


/* =========================================================
   APP
========================================================= */

.app-page {

  min-height: 100vh;

  display: flex;

  background: var(--bg);

}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

  width: 245px;

  flex: 0 0 245px;

  min-height: 100vh;

  display: flex;

  flex-direction: column;

  background: white;

  border-right: 1px solid var(--border);

  position: sticky;

  top: 0;

  height: 100vh;

}

.sidebar-brand {

  height: 75px;

  padding: 0 18px;

  display: flex;

  align-items: center;

  gap: 10px;

  border-bottom: 1px solid var(--border);

}

.sidebar-brand strong {

  display: block;

  font-size: 14px;

}

.sidebar-brand span {

  display: block;

  margin-top: 2px;

  font-size: 11px;

  color: var(--muted);

}

.side-menu {

  padding: 16px 11px;

  display: flex;

  flex-direction: column;

  gap: 5px;

}

.nav-item {

  width: 100%;

  min-height: 47px;

  padding: 0 13px;

  display: flex;

  align-items: center;

  gap: 11px;

  border: 0;

  border-radius: 9px;

  background: transparent;

  color: var(--muted);

  text-align: left;

  font-weight: 650;

}

.nav-item:hover {

  background: #f5f8fc;

  color: var(--text);

}

.nav-item.active {

  background: var(--primary-light);

  color: var(--primary);

}

.sidebar-bottom {

  margin-top: auto;

  padding: 15px;

  border-top: 1px solid var(--border);

}

.sidebar-user {

  margin-bottom: 10px;

}

.sidebar-user strong {

  display: block;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  font-size: 12px;

}

.sidebar-user small {

  display: block;

  margin-top: 3px;

  color: var(--muted);

  text-transform: capitalize;

}

.logout-btn {

  width: 100%;

  height: 40px;

  border: 1px solid #fecdca;

  border-radius: 8px;

  background: var(--danger-light);

  color: var(--danger);

  font-weight: 700;

}


/* =========================================================
   MAIN
========================================================= */

.main-content {

  min-width: 0;

  flex: 1;

}

.main-header {

  height: 75px;

  padding:
    0
    max(20px, calc((100% - 1100px) / 2));

  display: flex;

  align-items: center;

  gap: 12px;

  background: white;

  border-bottom: 1px solid var(--border);

}

.main-header strong {

  display: block;

  font-size: 13px;

}

.main-header span {

  display: block;

  margin-top: 3px;

  font-size: 11px;

  color: var(--muted);

  text-transform: capitalize;

}

.mobile-menu-btn {

  display: none;

  border: 0;

  background: transparent;

  font-size: 25px;

}


/* =========================================================
   CONTENT
========================================================= */

.app-section {

  width: min(
    1100px,
    calc(100% - 40px)
  );

  margin: auto;

  padding: 30px 0 55px;

}

.hero {

  padding: 30px;

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      #155eef,
      #0d47b5
    );

  color: white;

  box-shadow:
    0 12px 30px
    rgba(21,94,239,.18);

}

.eyebrow {

  display: block;

  color: var(--primary);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1px;

}

.hero .eyebrow {

  color: rgba(255,255,255,.7);

}

.hero h1 {

  margin-top: 5px;

  font-size: 28px;

}

.hero p {

  margin-top: 7px;

  color: rgba(255,255,255,.82);

}

.page-heading {

  margin-bottom: 20px;

}

.page-heading h1 {

  margin-top: 4px;

  font-size: 27px;

}

.page-heading p {

  margin-top: 5px;

  color: var(--muted);

}


/* =========================================================
   CARDS
========================================================= */

.card {

  margin-top: 22px;

  padding: 23px;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow:
    0 3px 10px
    rgba(16,24,40,.04);

}

.section-title {

  margin-bottom: 17px;

}

.section-title h2 {

  margin-top: 4px;

  font-size: 20px;

}

.section-title p {

  margin-top: 5px;

  color: var(--muted);

  font-size: 13px;

}


/* =========================================================
   STATS
========================================================= */

.stats-grid {

  margin-top: 22px;

  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 13px;

}

.stat-card {

  padding: 18px;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

}

.stat-card span {

  font-size: 20px;

}

.stat-card strong {

  display: block;

  margin-top: 10px;

  font-size: 20px;

}

.stat-card small {

  display: block;

  margin-top: 4px;

  color: var(--muted);

}


/* =========================================================
   QUICK
========================================================= */

.quick-grid {

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 12px;

}

.quick-card {

  padding: 18px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 5px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: white;

  text-align: left;

}

.quick-card:hover {

  border-color: #b7cdfb;

  background: #fbfdff;

}

.quick-card > span {

  font-size: 25px;

}

.quick-card small {

  color: var(--muted);

  line-height: 1.5;

}


/* =========================================================
   WORK TABS
========================================================= */

.tabs {

  display: flex;

  gap: 7px;

  overflow-x: auto;

  padding-bottom: 3px;

}

.work-tab {

  white-space: nowrap;

  min-height: 42px;

  padding: 0 14px;

  border: 1px solid var(--border);

  border-radius: 9px;

  background: white;

  color: var(--muted);

  font-weight: 700;

}

.work-tab.active {

  background: var(--primary);

  border-color: var(--primary);

  color: white;

}


/* =========================================================
   FORM
========================================================= */

.form-grid {

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 15px;

}

.form-grid label {

  display: block;

  color: var(--text);

  font-size: 13px;

  font-weight: 650;

}

.form-grid input,
.form-grid select,
.form-grid textarea {

  width: 100%;

  margin-top: 7px;

  border: 1px solid #d0d5dd;

  border-radius: 9px;

  background: white;

  outline: none;

}

.form-grid input,
.form-grid select {

  height: 45px;

  padding: 0 12px;

}

.form-grid textarea {

  min-height: 110px;

  padding: 12px;

  resize: vertical;

}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(21,94,239,.09);

}

.form-grid .full {

  grid-column: 1 / -1;

}


/* =========================================================
   WORK CARD
========================================================= */

.work-card {

  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 12px;

  margin-bottom: 12px;

}

.work-card-top {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 15px;

}

.work-status {

  display: inline-block;

  padding: 4px 7px;

  border-radius: 5px;

  background: var(--success-light);

  color: var(--success);

  font-size: 9px;

  font-weight: 800;

}

.work-card h3 {

  margin-top: 7px;

  font-size: 17px;

}

.work-price {

  color: var(--primary);

}

.route {

  margin-top: 17px;

  padding: 13px;

  display: flex;

  align-items: center;

  gap: 15px;

  background: #f8fafc;

  border-radius: 9px;

}

.route > div {

  flex: 1;

}

.route span,
.work-info span {

  display: block;

  color: var(--muted);

  font-size: 9px;

  font-weight: 800;

}

.route strong {

  display: block;

  margin-top: 4px;

  font-size: 13px;

}

.route-arrow {

  font-size: 20px !important;

  color: var(--primary) !important;

}

.work-info {

  margin-top: 12px;

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 10px;

}

.work-info > div {

  padding: 10px;

  background: #fafafa;

  border-radius: 8px;

}

.work-info strong {

  display: block;

  margin-top: 4px;

  font-size: 12px;

}

.work-description {

  margin-top: 13px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;

}

.work-footer {

  margin-top: 15px;

  padding-top: 12px;

  border-top: 1px solid var(--border);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  color: var(--muted);

  font-size: 12px;

}

.ready-btn {

  margin-left: auto;

}


/* =========================================================
   AVAILABILITY
========================================================= */

.availability-indicator {

  padding: 20px;

  display: flex;

  align-items: center;

  gap: 13px;

  border-radius: 12px;

  background: #f8fafc;

}

.availability-indicator > span {

  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  border-radius: 50%;

  background: #9ca3af;

}

.availability-indicator strong {

  display: block;

  font-size: 17px;

}

.availability-indicator small {

  display: block;

  margin-top: 3px;

  color: var(--muted);

}

.availability-buttons {

  margin-top: 18px;

  display: flex;

  gap: 10px;

}

.details-grid {

  margin-top: 20px;

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 12px;

}

.details-grid > div {

  padding: 15px;

  background: #f8fafc;

  border-radius: 9px;

}

.details-grid span,
.profile-grid span {

  display: block;

  color: var(--muted);

  font-size: 11px;

}

.details-grid strong,
.profile-grid strong {

  display: block;

  margin-top: 5px;

  font-size: 13px;

}


/* =========================================================
   PROFILE
========================================================= */

.profile-avatar {

  width: 78px;
  height: 78px;

  margin-bottom: 22px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 22px;

  background: var(--primary);

  color: white;

  font-size: 30px;

  font-weight: 800;

}

.profile-grid {

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 12px;

}

.profile-grid > div {

  padding: 15px;

  background: #f8fafc;

  border-radius: 9px;

}

.break {

  overflow-wrap: anywhere;

}

.success-text {

  color: var(--success);

}


/* =========================================================
   ADMIN
========================================================= */

.admin-grid {

  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 13px;

}

.admin-card {

  min-height: 135px;

  padding: 18px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;

  gap: 5px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 11px;

  text-align: left;

}

.admin-card:hover {

  border-color: #b7cdfb;

  box-shadow: var(--shadow);

}

.admin-card > span {

  font-size: 27px;

}

.admin-card strong {

  margin-top: 5px;

}

.admin-card small {

  color: var(--muted);

}

.admin-module-message {

  margin-top: 18px;

  padding: 13px;

  border-radius: 9px;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 13px;

}


/* =========================================================
   EMPTY
========================================================= */

.empty {

  padding: 30px;

  text-align: center;

  color: var(--muted);

  background: #f8fafc;

  border-radius: 10px;

}

.error-text {

  color: var(--danger);

}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.menu-overlay {

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,.35);

  z-index: 80;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .sidebar {

    width: 215px;
    flex-basis: 215px;

  }

  .stats-grid {

    grid-template-columns:
      repeat(2,1fr);

  }

  .quick-grid {

    grid-template-columns:
      repeat(2,1fr);

  }

  .admin-grid {

    grid-template-columns:
      repeat(2,1fr);

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .app-page {

    display: block;

  }

  .sidebar {

    position: fixed;

    z-index: 100;

    left: 0;
    top: 0;
    bottom: 0;

    width: 270px;

    transform:
      translateX(-100%);

    transition:
      transform .22s ease;

    box-shadow:
      10px 0 30px
      rgba(0,0,0,.12);

  }

.sidebar.open {

  transform:
    translateX(0);

}

  .mobile-menu-btn {

    display: block;

  }

  .main-header {

    padding: 0 15px;

  }

  .app-section {

    width: calc(100% - 24px);

    padding-top: 18px;

  }

  .hero {

    padding: 22px 18px;

  }

  .hero h1 {

    font-size: 22px;

  }

  .card {

    padding: 18px;

  }

  .stats-grid {

    grid-template-columns:
      repeat(2,1fr);

  }

  .quick-grid {

    grid-template-columns:
      1fr;

  }

  .form-grid {

    grid-template-columns:
      1fr;

  }

  .form-grid .full {

    grid-column: auto;

  }

  .work-info {

    grid-template-columns:
      1fr;

  }

  .route {

    flex-direction: column;

    align-items: stretch;

  }

  .route-arrow {

    display: none;

  }

  .details-grid,
  .profile-grid {

    grid-template-columns:
      1fr;

  }

  .admin-grid {

    grid-template-columns:
      1fr 1fr;

  }

  .availability-buttons {

    flex-direction: column;

  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .login-card {

    padding: 22px 17px;

  }

  .brand-large h1 {

    font-size: 20px;

  }

  .stats-grid {

    grid-template-columns:
      1fr;

  }

  .admin-grid {

    grid-template-columns:
      1fr;

  }

  .work-footer {

    flex-direction: column;

    align-items: stretch;

  }

  .ready-btn {

    width: 100%;

  }

  .actions {

    flex-direction: column;

  }

  .actions .btn {

    width: 100%;

  }

}


/* =========================================================
   SAFE AREA
========================================================= */

@supports (
  padding: env(safe-area-inset-top)
) {

  .main-header {

    padding-top:
      max(
        8px,
        env(safe-area-inset-top)
      );

  }

}
.booking-card {

background:white;

border:1px solid var(--border);

border-radius:12px;

padding:18px;

margin-bottom:12px;

}


.booking-status {

display:inline-block;

padding:5px 10px;

border-radius:20px;

font-size:12px;

font-weight:700;

background:#eaf8ef;

color:#16a34a;

}


.driver-info {

margin-top:10px;

color:var(--muted);

font-size:13px;

}
/* ==================================================
   AVAILABLE DRIVERS — RIGHT BOTTOM CHAT PANEL
================================================== */

.available-drivers-panel {

  position: fixed;

  right: 20px;
  bottom: 85px;

  top: auto;

  width: 360px;
  max-width: calc(100vw - 30px);

  height: 520px;
  max-height: calc(100vh - 110px);

  background: #ffffff;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18);

  z-index: 9999;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  transform: translateY(20px);

  opacity: 0;

  pointer-events: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* OPEN */

.available-drivers-panel.open {

  transform: translateY(0);

  opacity: 1;

  pointer-events: auto;

}


/* HEADER */

.available-drivers-header {

  min-height: 65px;

  padding: 14px 16px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: #ffffff;

  border-bottom: 1px solid #e5e7eb;

}


/* LIST */

.available-drivers-list {

  flex: 1;

  overflow-y: auto;

  padding: 12px;

}


/* FLOATING BUTTON */

.available-drivers-fab {

  position: fixed;

  right: 20px;
  bottom: 20px;

  width: 58px;
  height: 58px;

  border: 0;

  border-radius: 50%;

  background: #155eef;

  color: #ffffff;

  font-size: 25px;

  cursor: pointer;

  z-index: 10000;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.20);
}


/* MOBILE */

@media (max-width: 600px) {

  .available-drivers-panel {

    right: 10px;
    bottom: 80px;

    width: calc(100vw - 20px);

    height: 70vh;

  }

  .available-drivers-fab {

    right: 15px;
    bottom: 15px;

  }

}

/* ==========================================================
   WORK SCOPE SELECTOR
========================================================== */

.work-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}


.work-scope-card {
  width: 100%;
  min-height: 150px;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 24px;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  background: #fff;

  cursor: pointer;

  text-align: left;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


.work-scope-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08);

  border-color: #cbd5e1;
}


.work-scope-icon {
  font-size: 42px;
  flex-shrink: 0;
}


.work-scope-content {
  flex: 1;
}


.work-scope-content h3 {
  margin: 0 0 6px;
  font-size: 22px;
}


.work-scope-content p {
  margin: 0;
  opacity: 0.7;
}


.work-scope-arrow {
  font-size: 28px;
  opacity: 0.5;
}


/* ==========================================================
   SELECTED SCOPE HEADER
========================================================== */

.work-selected-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 20px;
}


.work-selected-scope-header h2 {
  margin: 4px 0 0;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

  .work-scope-grid {
    grid-template-columns: 1fr;
  }


  .work-scope-card {
    min-height: 120px;
    padding: 20px;
  }


  .work-selected-scope-header {
    align-items: flex-start;
    flex-direction: column;
  }

}

.dashboard-works-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.work-breakdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
}

.work-breakdown-icon {
  font-size: 20px;
}

.work-breakdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-breakdown-content strong {
  font-size: 13px;
}

.work-breakdown-content span {
  font-size: 12px;
  opacity: 0.75;
}


@media (max-width: 600px) {

  .dashboard-works-breakdown {
    grid-template-columns: 1fr;
  }

}

/* ==========================================================
   WORK SCOPE CLICK FIX
========================================================== */

.work-scope-grid {
  position: relative;
  z-index: 1;
}

.work-scope-card {
  position: relative;
  z-index: 2;

  pointer-events: auto;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.work-scope-card * {
  pointer-events: none;
}


/* ==========================================================
   MENU OVERLAY SAFETY
========================================================== */

.menu-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.menu-overlay:not(.hidden) {
  pointer-events: auto;
}

/* ==========================================================
   GOOGLE TRANSLATE — MARSIM LANGUAGE SELECTOR
========================================================== */

#googleTranslateContainer {

  position: fixed;

  top: 18px;
  right: 20px;

  z-index: 20000;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 10px;

  padding: 6px 9px;

  box-shadow:
    0 6px 20px rgba(16,24,40,.10);

}


/* Google default container */

#google_translate_element {

  min-height: 32px;

}


/* Remove Google's unnecessary top spacing */

.goog-te-gadget {

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;

  font-size: 0 !important;

}


/* Language select */

.goog-te-gadget .goog-te-combo {

  margin: 0 !important;

  min-width: 145px;

  height: 34px;

  padding: 0 30px 0 10px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background: #ffffff;

  color: var(--text);

  font-family: inherit;

  font-size: 13px;

  font-weight: 600;

  outline: none;

  cursor: pointer;

}


/* Focus */

.goog-te-gadget .goog-te-combo:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(21,94,239,.10);

}


/* Hide Google branding text */

.goog-te-gadget > span {

  display: none !important;

}


/* Hide Google top translation bar */

body {

  top: 0 !important;

}


/* Google injected banner */

.goog-te-banner-frame {

  display: none !important;

}


/* Mobile */

@media (max-width: 700px) {

  #googleTranslateContainer {

    top: 10px;

    right: 10px;

    padding: 5px 7px;

  }

  .goog-te-gadget .goog-te-combo {

    min-width: 125px;

    height: 32px;

    font-size: 12px;

  }

}


/* Small mobile */

@media (max-width: 430px) {

  #googleTranslateContainer {

    top: 8px;

    right: 8px;

  }

  .goog-te-gadget .goog-te-combo {

    min-width: 115px;

  }

}

/* ==========================================================
   DASHBOARD SUBSCRIPTION STATUS
========================================================== */

.dashboard-subscription-status {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(4px);
}

.dashboard-subscription-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-subscription-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.90;
}


/* Pending */

.dashboard-subscription-status.pending {
  background: rgba(255, 193, 7, 0.16);
}


/* No subscription */

.dashboard-subscription-status.none {
  background: rgba(255, 255, 255, 0.10);
}


/* Expired / cancelled / suspended */

.dashboard-subscription-status.inactive {
  background: rgba(220, 53, 69, 0.14);
}
