/* LR ToolKit v4.2.0  Frontend Portals CSS */
/* Matches Calendar Manager / Driver / Prep / Crew standalone HTML designs */
*, *::before, *::after { box-sizing: border-box; }

/*  Variables  */
:root {
  --lr-navy: #192b55;
  --lr-cyan: #34c1fc;
  --lr-cyan-hover: #2690bd;
  --lr-bg: #f0f0f0;
  --lr-white: #ffffff;
  --lr-border: #e5e7eb;
  --lr-text: #111827;
  --lr-muted: #6b7280;
  --lr-shadow: 0 2px 8px rgba(0,0,0,.08);
  --lr-radius: 12px;
}

/*  Veil / Preloader  */
/*  Preloader Veil  */
#lrtk-veil {
  display: none; /* hidden by default  JS adds .active to show */
  position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
#lrtk-veil.active {
  display: flex;
  opacity: 1;
}
#lrtk-veil-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; color: #fff; padding: 24px;
}
.lrtk-veil-logo img {
  animation: lrtk-veil-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(59,130,246,.5));
}
@keyframes lrtk-veil-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.06); opacity: .88; }
}
#lrtk-veil-title {
  font-size: 1.5rem; font-weight: 700; font-family: 'Inter', sans-serif;
  color: #fff; letter-spacing: .02em;
}
#lrtk-veil-sub {
  font-size: .95rem; color: #93c5fd; font-family: 'Inter', sans-serif;
  min-height: 1.4em;
}
.lrtk-veil-bar {
  width: 180px; height: 4px; background: rgba(255,255,255,.15);
  border-radius: 99px; overflow: hidden; margin-top: 6px;
}
.lrtk-veil-bar-fill {
  height: 100%; width: 30%; background: #3b82f6;
  border-radius: 99px;
  animation: lrtk-bar-slide 1.4s ease-in-out infinite;
}
@keyframes lrtk-bar-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(600%); }
}

/*  Jobs container loading spinner  */
.lrtk-jobs-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  padding: 60px 20px; color: #94a3b8; font-size: 14px;
}
.lrtk-jobs-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: lrtk-spin .7s linear infinite;
}
@keyframes lrtk-spin { to { transform: rotate(360deg); } }
@keyframes lrtk-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/*  Portal Root  */
.lrtk-portal-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--lr-bg);
  min-height: 100vh;
  color: var(--lr-text);
  padding-bottom: 2rem;
}

/*  Portal Header  */
.lrtk-ph {
  background: var(--lr-white);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.lrtk-ph-left {}
.lrtk-ph-title-row {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem;
}
.lrtk-ph-title {
  font-size: 1.5rem; font-weight: 700; color: var(--lr-navy); margin: 0;
}
.lrtk-ph-subtitle {
  font-size: .8125rem; color: var(--lr-muted); margin: 0;
}
.lrtk-ph-actions {
  display: flex; gap: .5rem; flex-wrap: wrap;
}

/* Role Badges */
.lrtk-role-badge {
  display: inline-block;
  padding: .35rem .85rem; border-radius: 9999px;
  font-size: .8125rem; font-weight: 600; color: #fff;
}
.lrtk-role-manager { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.lrtk-role-driver  { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.lrtk-role-prep    { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.lrtk-role-crew    { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #333; }

/*  Buttons  */
.lr-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; border: 1.5px solid var(--lr-border);
  background: var(--lr-white); color: var(--lr-text);
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.lr-btn:hover {
  background: var(--lr-navy); color: #fff; border-color: var(--lr-navy);
}
.lr-btn-cyan {
  background: var(--lr-cyan); color: #fff; border-color: var(--lr-cyan);
}
.lr-btn-cyan:hover {
  background: var(--lr-cyan-hover); border-color: var(--lr-cyan-hover); color: #fff;
}
.lr-btn-navy {
  background: var(--lr-navy); color: #fff; border-color: var(--lr-navy);
}
.lr-btn-navy:hover { background: #0f1e44; border-color: #0f1e44; color: #fff; }
.lr-btn-dark {
  background: #1f2937; color: #fff; border-color: #1f2937;
}
.lr-btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.lr-btn-full { width: 100%; justify-content: center; }
.lr-btn i { font-size: .8125rem; }

/*  KPI Strip  */
.lrtk-portal-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .625rem;
  padding: .75rem 1.25rem; background: var(--lr-bg);
}
.lrtk-kpi {
  background: var(--lr-white); border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius); padding: .875rem .75rem;
  text-align: center; box-shadow: var(--lr-shadow);
}
.lrtk-kpi-num { font-size: 1.625rem; font-weight: 800; line-height: 1; }
.lrtk-kpi-lbl { font-size: .6875rem; color: var(--lr-muted); font-weight: 500; margin-top: .25rem; text-transform: uppercase; letter-spacing: .03em; }

/*  Date Nav (7-Day Tab Strip)  */
.lrtk-date-nav-wrap {
  background: var(--lr-white); padding: .5rem;
  border-radius: .5rem; box-shadow: var(--lr-shadow);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: .75rem 1rem;
}
.lrtk-date-nav {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 1rem; min-width: max-content;
  justify-content: center;
}
.lrtk-day-btn {
  flex-shrink: 0; width: 4rem;
  text-align: center; padding: .5rem;
  border-radius: .5rem; cursor: pointer;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.lrtk-day-btn:hover { background: #f9fafb; transform: translateY(-1px); }
.lrtk-day-btn.active {
  border-bottom-color: var(--lr-cyan); color: var(--lr-navy); font-weight: 600;
  background: #eff6ff;
}
.lrtk-day-btn-dow { font-size: .6875rem; color: var(--lr-muted); display: block; }
.lrtk-day-btn-num { font-size: 1.125rem; font-weight: 700; color: #1f2937; display: block; }

/*  Jobs Grid  */
.lrtk-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 1.5rem;
}
@media (min-width: 768px) {
  .lrtk-jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lrtk-jobs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* No jobs message */
.lrtk-no-jobs {
  grid-column: 1 / -1;
  text-align: center; padding: 3rem 1rem;
  background: var(--lr-white); border-radius: var(--lr-radius);
  box-shadow: var(--lr-shadow); color: var(--lr-muted);
}

/*  Job Card  */
.lrtk-job-card {
  background: var(--lr-white); border-radius: var(--lr-radius);
  border-left: 4px solid var(--lr-cyan);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 1.25rem;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.lrtk-job-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.lrtk-jc-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .75rem;
}
.lrtk-jc-title {
  font-size: 1rem; font-weight: 700; color: var(--lr-navy);
  margin: 0; flex: 1; padding-right: .5rem;
}
.lrtk-status-badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 9999px; font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}
.lrtk-status-scheduled   { background: #dbeafe; color: #1e40af; }
.lrtk-status-in-progress { background: #ede9fe; color: #5b21b6; }
.lrtk-status-completed   { background: #dcfce7; color: #166534; }
.lrtk-status-on-hold     { background: #fee2e2; color: #991b1b; }
.lrtk-status-cancelled   { background: #f3f4f6; color: #374151; }

.lrtk-jc-meta {
  font-size: .8125rem; color: #4b5563; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.lrtk-jc-addr {
  display: flex; align-items: center; gap: .4rem;
  color: #374151; text-decoration: none;
}
.lrtk-jc-addr:hover { color: #2563eb; }
.lrtk-jc-addr svg { flex-shrink: 0; }

/*  Section Boxes  */
.lrtk-section-box {
  border-radius: .5rem; padding: .75rem; margin-bottom: 1rem;
  border: 1px solid;
}
.lrtk-notes-box {
  background: #fefce8; border-color: #fbbf24;
  border-left-width: 4px; font-size: .8125rem; color: #374151;
}
.lrtk-notes-box p { margin: 0; white-space: pre-wrap; }
.lrtk-gray-box  { background: #f9fafb; border-color: #f3f4f6; }
.lrtk-green-box { background: #f0fdf4; border-color: #bbf7d0; }
.lrtk-blue-box  { background: #eff6ff; border-color: #bfdbfe; }
.lrtk-section-label {
  font-size: .625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .5rem;
}
.lrtk-gray-box  .lrtk-section-label { color: #6b7280; }
.lrtk-green-box .lrtk-section-label { color: #15803d; }
.lrtk-blue-box  .lrtk-section-label { color: #1d4ed8; }
.lrtk-mat-item { font-size: .8125rem; color: #374151; padding: .1rem 0; }
.lrtk-attach-link {
  display: block; font-size: .8125rem; color: #2563eb;
  text-decoration: none; word-break: break-all;
  padding: .1rem 0;
}
.lrtk-attach-link:hover { text-decoration: underline; }

/* Photo/Video file links */
.lrtk-file-link {
  display: block; font-size: .8125rem; word-break: break-all;
  text-decoration: none; padding: .1rem 0;
}
.lrtk-photo-link { color: #1d4ed8; }
.lrtk-photo-link:hover { text-decoration: underline; }
.lrtk-video-link { color: #374151; }
.lrtk-video-link:hover { text-decoration: underline; }
.lrtk-file-empty { font-size: .75rem; font-style: italic; }
.lrtk-blue-box .lrtk-file-empty { color: rgba(30,27,75,.7); }
.lrtk-gray-box .lrtk-file-empty { color: #9ca3af; }

/* Material checkboxes (Crew portal) */
.lrtk-mat-check-label {
  display: flex; align-items: flex-start; gap: .75rem;
  cursor: pointer; margin-bottom: .5rem;
}
.lrtk-mat-check-label input[type="checkbox"] {
  margin-top: .1rem; width: 1.25rem; height: 1.25rem;
  accent-color: var(--lr-cyan); cursor: pointer; flex-shrink: 0;
}
.lrtk-mat-check-label span { font-size: .8125rem; color: #374151; }

/*  Card Actions Area  */
.lrtk-jc-actions {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--lr-border);
  display: flex; flex-direction: column; gap: .625rem;
}
.lrtk-action-panel {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: .5rem; padding: .75rem;
}
.lrtk-action-checkboxes {
  display: flex; justify-content: space-between; margin-bottom: .5rem;
}
.lrtk-action-cb-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 500; cursor: pointer;
}
.lrtk-action-cb-label input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--lr-cyan); }
.lrtk-issue-cb input[type="checkbox"] { accent-color: #dc2626; }
.lrtk-mat-used-row {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
}
.lrtk-mat-used-row label { font-size: .75rem; font-weight: 700; color: #374151; }
.lrtk-mat-used-row select {
  flex: 1; font-size: .8125rem; border: 1px solid #d1d5db;
  border-radius: .375rem; padding: .25rem .5rem; background: #fff;
  font-family: 'Inter', sans-serif;
}
.lrtk-comments-box {
  width: 100%; font-size: .8125rem; border: 1px solid #d1d5db;
  border-radius: .375rem; padding: .5rem;
  height: 3.5rem; resize: none; font-family: 'Inter', sans-serif;
}
.lrtk-comments-box:focus { outline: none; border-color: var(--lr-cyan); }
.lrtk-status-msg {
  font-size: .75rem; text-align: center; min-height: 1rem; color: var(--lr-muted);
}
.lrtk-progress-wrap {
  display: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0 2px;
}
.lrtk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34c1fc, #1d8cb5);
  border-radius: 99px;
  transition: width .3s ease;
  animation: lrtk-progress-pulse 1.2s ease-in-out infinite;
}
@keyframes lrtk-progress-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .7; }
}
.lrtk-progress-wrap.active { display: block; }
.lrtk-status-msg.success { color: #16a34a; font-weight: 600; }
.lrtk-status-msg.error   { color: #dc2626; font-weight: 600; }

/*  Day Map Modal  */
.lrtk-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 80;
}
.lrtk-modal-overlay.show { display: flex; }
.lrtk-modal-card {
  width: 95vw; max-width: 1200px; height: 85vh;
  background: #fff; border-radius: var(--lr-radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.lrtk-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; border-bottom: 1px solid var(--lr-border);
}
.lrtk-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.lrtk-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--lr-muted); font-size: 1.25rem;
  padding: .25rem; border-radius: .25rem;
  display: flex; align-items: center;
  transition: color .15s;
}
.lrtk-modal-close:hover { color: #dc2626; }
.lrtk-modal-body { flex: 1; position: relative; }
.lrtk-modal-iframe { width: 100%; height: 100%; border: 0; }

/*  Camera Overlay  */
.lrtk-camera-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 50; display: none; flex-direction: column;
  align-items: center; justify-content: center; padding: 1rem;
}
.lrtk-camera-overlay.show { display: flex; }
.lrtk-camera-video-wrap {
  background: #000; border-radius: .5rem; overflow: hidden;
  width: 100%; max-width: 28rem; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
#lrtk-camera-video { width: 100%; height: auto; display: block; }
.lrtk-camera-btns { display: flex; gap: 1rem; margin-top: 1.5rem; }

/*  Mobile  */
@media (max-width: 640px) {
  .lrtk-portal-kpis { grid-template-columns: repeat(2, 1fr); padding: .75rem; }
  .lrtk-ph { padding: .75rem; }
  .lrtk-ph-title { font-size: 1.25rem; }
  .lrtk-jobs-grid { padding: 0 .75rem .75rem; gap: .875rem; }
  .lrtk-date-nav-wrap { margin: .5rem .75rem; }
}

/*  Legacy portals (keep old plugin styles working)  */
.lrtk-portal { font-family: 'Inter', -apple-system, sans-serif; max-width: 800px; margin: 0 auto; padding: 16px; color: var(--lr-text); }
.lrtk-portal * { box-sizing: border-box; }
.lrtk-login-wall { text-align: center; padding: 60px 20px; }
.lrtk-login-box { max-width: 380px; margin: 0 auto; }
.lrtk-login-logo { width: 64px; height: 64px; background: var(--lr-navy); border-radius: 16px; color: #fff; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.lrtk-login-box h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.lrtk-login-box p { color: var(--lr-muted); margin-bottom: 20px; }
.lrtk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; border: none; text-decoration: none; transition: all .15s; }
.lrtk-btn-primary { background: var(--lr-cyan); color: #fff; }
.lrtk-btn-primary:hover { background: var(--lr-cyan-hover); }
.lrtk-btn-secondary { background: var(--lr-white); color: var(--lr-text); border: 1.5px solid var(--lr-border); }
.lrtk-btn-sm { padding: 6px 12px; font-size: 12px; }
.lrtk-full-btn { width: 100%; }
.lrtk-portal-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.lrtk-kpi { background: var(--lr-white); border: 1px solid var(--lr-border); border-radius: 12px; padding: 14px 12px; text-align: center; box-shadow: var(--lr-shadow); }
.lrtk-kpi-num { font-size: 26px; font-weight: 800; line-height: 1; }
.lrtk-kpi-lbl { font-size: 11px; color: var(--lr-muted); font-weight: 500; margin-top: 4px; }
.lrtk-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.lrtk-status-scheduled { background: #fef9c3; color: #854d0e; }
.lrtk-status-in-progress { background: #ede9fe; color: #5b21b6; }
.lrtk-status-completed { background: #dcfce7; color: #166534; }
.lrtk-status-on-hold { background: #fee2e2; color: #991b1b; }
.lrtk-portal-empty { text-align: center; padding: 32px 20px; color: var(--lr-muted); font-size: 14px; background: var(--lr-white); border: 1px dashed var(--lr-border); border-radius: var(--lr-radius); }

/*  SM: Search bar  */
.lrtk-sm-search-bar {
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.lrtk-sm-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color .15s;
}
.lrtk-sm-search-inner:focus-within {
  border-color: #3b82f6;
  background: #fff;
}
.lrtk-sm-search-icon { color: #9ca3af; flex-shrink: 0; }
.lrtk-sm-search-input {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  outline: none;
}
.lrtk-sm-search-input::placeholder { color: #9ca3af; }
.lrtk-sm-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  color: #374151;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.lrtk-sm-search-clear:hover { background: #9ca3af; color: #fff; }

/*  SM: Prev / Next extended nav  */
.lrtk-sm-ext-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.lrtk-sm-nav-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
}
.lrtk-sm-nav-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.lrtk-sm-today-btn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.lrtk-sm-today-btn:hover { background: #dbeafe; }
.lrtk-sm-date-pick {
  padding: 7px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  background: #fff;
}
.lrtk-sm-date-pick:focus { outline: none; border-color: #3b82f6; }

/*  Photo & Video Thumbnails  */
.lrtk-photos-grid,
.lrtk-videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}
.lrtk-thumb-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  width: 80px;
  cursor: pointer;
}
.lrtk-thumb-link:hover .lrtk-thumb-wrap {
  box-shadow: 0 0 0 2px #3b82f6;
  transform: scale(1.03);
}
.lrtk-thumb-wrap {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s, transform .15s;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}
.lrtk-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lrtk-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}
.lrtk-thumb-icon {
  font-size: 24px;
  opacity: .7;
}
.lrtk-thumb-name {
  font-size: 10px;
  color: #6b7280;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
  max-width: 80px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Video thumbnail */
.lrtk-video-thumb-wrap {
  background: #111827;
  border-color: #374151;
  position: relative;
}
.lrtk-video-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
}
.lrtk-video-thumb-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.lrtk-video-play {
  font-size: 22px;
  color: #fff;
  opacity: .9;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  background: rgba(0,0,0,.35);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}
.lrtk-video-thumb-link .lrtk-thumb-name {
  color: #9ca3af;
}

/*  Day Map Modal  inline map (no iframe)  */
.lrtk-modal-body {
  padding: 0 !important;
  overflow: hidden !important;
}
#lrtk-daymap-modal-map {
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 400px;
  display: block;
}

/*  Reset View button (floats over map, matches screenshot)  */
.lrtk-map-reset-btn {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #192b55;
  color: #fff;
  border: 2px solid white;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.lrtk-map-reset-btn:hover {
  background: #03A9F2;
  transform: translateX(-50%) scale(1.04);
}

/* 
   LR TOOLKIT v4.3.0  Calendar View, Type Ribbon, Region Footer
    */

/*  View Toggle  */
.lrtk-sm-view-toggle {
  display: flex;
  gap: 6px;
  margin: 0 20px 0;
  padding: 12px 0 0;
}
.lrtk-sm-vtoggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.lrtk-sm-vtoggle-btn.active,
.lrtk-sm-vtoggle-btn:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/*  Calendar Container  */
#lrtk-sm-cal-view {
  padding: 16px 20px 20px;
}

/*  Calendar Header  */
.lrtk-cal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lrtk-cal-nav-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
  transition: background .12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lrtk-cal-nav-btn:hover { background: #e2e8f0; }
.lrtk-cal-month-label {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
}
.lrtk-cal-today-btn {
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .12s;
}
.lrtk-cal-today-btn:hover { background: #03A9F2; }

/*  Day-of-week header  */
.lrtk-cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 2px;
}
.lrtk-cal-dow-row > div {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
}

/*  Calendar Grid  */
.lrtk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 120px;
  gap: 1px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

/*  Calendar Cell  */
.lrtk-cal-cell {
  background: #fff;
  padding: 6px 4px 4px;
  overflow: hidden;
  cursor: pointer;
  transition: background .1s;
  position: relative;
  height: 120px;
  box-sizing: border-box;
}
.lrtk-cal-cell:hover { background: #f8fafc; }
.lrtk-cal-cell-other { background: #f8fafc; }
.lrtk-cal-cell-other .lrtk-cal-day-num { color: #cbd5e1; }
.lrtk-cal-cell-today { background: #eff6ff; }
.lrtk-cal-cell-today .lrtk-cal-day-num {
  background: #1e3a5f;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lrtk-cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*  Calendar Job Pill  */
.lrtk-cal-pill {
  margin-bottom: 2px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .12s;
  max-height: 20px;
}
.lrtk-cal-pill:hover { opacity: .85; }
.lrtk-cal-pill-inner {
  display: flex;
  align-items: stretch;
  height: 20px;
  max-height: 20px;
  overflow: hidden;
  border-radius: 4px;
}
.lrtk-cal-pill-region {
  display: block;
  width: 20%;
  min-width: 14px;
  flex-shrink: 0;
}
.lrtk-cal-pill-body {
  display: block;
  flex: 1;
  width: 80%;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
  font-family: 'Inter', sans-serif;
}
.lrtk-cal-pill-body em {
  font-style: normal;
  opacity: .8;
  font-weight: 400;
}

/*  Job Card  Type Ribbon (top)  */
.lrtk-job-card { overflow: hidden; padding-bottom: 0; }
.lrtk-jc-type-ribbon {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  margin: -1px -20px 16px;
  border-radius: 0px 0px 0 0;
}
.lrtk-jc-type-ribbon span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .10em;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/*  Job Card  Region Footer (bottom)  */
.lrtk-jc-region-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  margin: 8px -20px 0;
  border-radius: 0 0 12px 12px;
}
.lrtk-jc-region-swatch {
  display: none;
}
.lrtk-jc-region-name {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff !important;
  text-align: center;
  letter-spacing: .04em;
}

/* Calendar pill click highlight */
.lrtk-cal-highlight {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 10px;
  animation: lrtk-highlight-fade 2s ease forwards;
}
@keyframes lrtk-highlight-fade {
  0%   { outline-color: #0ea5e9; box-shadow: 0 0 0 6px rgba(14,165,233,.25); }
  100% { outline-color: transparent; box-shadow: none; }
}

/* ── Mixes header above Materials to Load ─────────────── */
.lrtk-mix-header-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 12px 9px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    margin-bottom: 4px;
}

.lrtk-mix-count-badge {
    font-size: 14px;
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: .03em;
}

.lrtk-mix-name-badge {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 2px 9px;
}

/* ── Mix meta line under Builder in job card ──────── */
.lrtk-jc-mix-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* ── Job Order badge on card ──────────────────────── */
.lrtk-jc-order-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1e3a5f;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 6px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ── Arrow nav flanking the 7-day strip (driver / prep / crew) ─── */
.lrtk-date-nav-wrap--arrows {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}
.lrtk-date-nav-wrap--arrows .lrtk-date-nav {
    flex: 1;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
}
.lrtk-date-nav-wrap--arrows .lrtk-date-nav::-webkit-scrollbar { display: none; }
.lrtk-date-arrow {
    flex-shrink: 0;
    width: 44px;
    background: #f8fafc;
    border: none;
    font-size: 26px;
    font-weight: 300;
    color: #1e3a5f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
    line-height: 1;
}
.lrtk-date-arrow:hover  { background: #1e3a5f; color: #fff; }
.lrtk-date-arrow:active { background: #03A9F2; color: #fff; }
[id$="-prev"].lrtk-date-arrow { border-right: 1px solid #e2e8f0; }
[id$="-next"].lrtk-date-arrow { border-left:  1px solid #e2e8f0; }

/* ── Schedule Manager Accordion Strips ─────────────────────────────────── */
.lrtk-sm-group-hdr {
    font-size: 11px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 5px 14px; color: #fff;
    border-radius: 6px 6px 0 0; margin-top: 10px;
}
.lrtk-sm-group-hdr:first-child { margin-top: 0; }

.lrtk-sm-strip { margin-bottom: 2px; }

.lrtk-sm-strip-bar {
    display: flex; align-items: center;
    padding: 10px 14px; cursor: default;
    border-radius: 0; gap: 10px; min-height: 44px;
}
.lrtk-sm-strip-label {
    flex: 1; font-size: 13px; font-weight: 700;
    color: #fff; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; line-height: 1.3;
}
.lrtk-sm-strip-region {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.18); border-radius: 20px;
    padding: 2px 10px; white-space: nowrap; flex-shrink: 0;
}
.lrtk-sm-strip-toggle {
    flex-shrink: 0; background: rgba(0,0,0,.2);
    border: none; color: #fff; border-radius: 6px;
    width: 32px; height: 32px; font-size: 14px;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: background .15s;
    padding: 0;
}
.lrtk-sm-strip-toggle:hover { background: rgba(0,0,0,.38); }

.lrtk-sm-strip-body {
    background: #f8fafc;
    border-left: 4px solid currentColor;
    max-height: 80vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.lrtk-sm-strip-body .lrtk-job-card {
    border-radius: 0; box-shadow: none;
    border: none; border-bottom: 1px solid #e2e8f0;
    margin: 0;
}
