body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f4f6fb;
      color: #111827;
    }

    .login-wrap {
      min-height: 100vh;
      padding: 32px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      color: #eef6ff;
      background:
        radial-gradient(circle at 18% 12%, rgba(69, 120, 255, 0.34), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(91, 65, 245, 0.28), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(56, 123, 197, 0.18), transparent 34%),
        linear-gradient(135deg, #06101f 0%, #0b1729 42%, #101827 100%);
    }

    .login-wrap::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.88), transparent 78%);
    }

    .login-wrap::after {
      content: "";
      position: absolute;
      width: 520px;
      height: 520px;
      right: -160px;
      bottom: -220px;
      pointer-events: none;
      background: radial-gradient(circle, rgba(91, 65, 245, 0.32), transparent 62%);
      filter: blur(10px);
    }

    .login-shell {
      position: relative;
      z-index: 1;
      width: min(520px, 94vw);
      display: flex;
      flex-direction: column;
      align-items: center;
      animation: loginReveal .7s ease forwards;
    }

    .login-logo {
      width: min(190px, 56vw);
      height: auto;
      display: block;
      margin: 0 auto 24px;
      filter: drop-shadow(0 18px 34px rgba(37, 99, 235, 0.30));
    }

    .login-card {
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
      background: linear-gradient(180deg, rgba(15, 28, 52, 0.84), rgba(8, 18, 34, 0.92));
      border: 1px solid rgba(147, 197, 253, 0.20);
      padding: 36px;
      border-radius: 28px;
      box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255,255,255,0.04) inset;
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }

    .login-card h1 {
      margin: 0 0 8px;
      text-align: center;
      font-size: 30px;
      letter-spacing: -0.04em;
      color: #ffffff;
    }

    .login-subtitle {
      text-align: center;
      margin: 0 0 26px;
      color: rgba(226, 232, 240, 0.78);
      font-size: 15px;
    }

    .login-card label {
      display: block;
      font-weight: 800;
      font-size: 14px;
      margin-top: 14px;
      margin-bottom: 7px;
      color: rgba(248, 250, 252, 0.92);
    }

    .login-card input {
      background: rgba(15, 23, 42, 0.78);
      color: #f8fafc;
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 14px;
      min-height: 48px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.12);
    }

    .login-card input::placeholder {
      color: rgba(203, 213, 225, 0.58);
    }

    .login-card input:focus {
      outline: none;
      border-color: rgba(96, 165, 250, 0.95);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.20), 0 16px 34px rgba(37, 99, 235, 0.10);
    }

    .login-card button {
      margin-top: 12px;
      min-height: 52px;
      border-radius: 16px;
      border: 0;
      background: linear-gradient(135deg, #3b82f6, #6d3df4);
      box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
      font-size: 15px;
      font-weight: 900;
      color: #fff;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }

    .login-card button:hover {
      transform: translateY(-1px);
      filter: brightness(1.04);
      box-shadow: 0 22px 52px rgba(91, 65, 245, 0.38);
    }

    .login-help {
      margin: 20px 0 0;
      text-align: center;
      color: rgba(226, 232, 240, 0.72);
      font-size: 14px;
    }

    .login-help a {
      color: #93c5fd;
      font-weight: 900;
      text-decoration: none;
      border-bottom: 1px solid rgba(147, 197, 253, 0.45);
    }

    .login-card #msg {
      margin-bottom: 0;
      text-align: center;
    }

    @keyframes loginReveal {
      from { opacity: 0; transform: translateY(18px) scale(.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 640px) {
      .login-wrap { padding: 18px; }
      .login-logo { width: min(210px, 76vw); margin-bottom: 18px; }
      .login-card { padding: 24px; border-radius: 22px; }
      .login-card h1 { font-size: 26px; }
    }

    input, select {
      width: 100%;
      padding: 12px;
      margin-top: 8px;
      margin-bottom: 12px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      box-sizing: border-box;
    }

    input[type="checkbox"] {
      width: auto;
      margin-right: 8px;
    }

    button {
      padding: 10px 14px;
      background: #4f46e5;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }

    button:hover { background: #4338ca; }

    .danger { background: #ef4444; }
    .danger:hover { background: #dc2626; }

    .secondary { background: #111827; }
    .secondary:hover { background: #020617; }

    .success { color: #15803d; font-weight: bold; }
    .error { color: #b91c1c; font-weight: bold; }
    .muted { color: #6b7280; font-size: 14px; }

    .dashboard {
      display: grid;
      grid-template-columns: 1.4fr 0.8fr;
      min-height: 100vh;
    }

    .main { padding: 24px; }

    .side {
      background: white;
      padding: 24px;
      border-left: 1px solid #e5e7eb;
      overflow-y: auto;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
    }

    .month-controls {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .calendar {
      background: white;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.06);
      overflow: hidden;
    }

    .calendar-head {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      background: #111827;
      color: white;
    }

    .calendar-head div {
      padding: 12px;
      font-weight: bold;
      font-size: 14px;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
    }

    .day {
      min-height: 125px;
      border-right: 1px solid #e5e7eb;
      border-bottom: 1px solid #e5e7eb;
      padding: 10px;
      cursor: pointer;
      background: #fff;
    }

    .day:hover { background: #f8fafc; }

    .day.selected {
      outline: 3px solid #4f46e5;
      background: #eef2ff;
    }

    .day.today {
      background: #dbeafe;
      box-shadow: inset 0 0 0 2px #2563eb;
    }

    .day.other-month {
      color: #9ca3af;
      background: #f9fafb;
    }

    .day-number {
      font-weight: bold;
      margin-bottom: 8px;
    }


    /* Månedskalender: dager som har vært */
    .day.past-day:not(.selected):not(.today) {
      background: linear-gradient(135deg, #fff7f7 0%, #fff1f2 100%);
      color: #9f1239;
      position: relative;
    }

    .day.past-day:not(.selected):not(.today)::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: repeating-linear-gradient(
        135deg,
        rgba(248, 113, 113, 0.035) 0px,
        rgba(248, 113, 113, 0.035) 6px,
        transparent 6px,
        transparent 14px
      );
    }

    .day.past-day:not(.selected):not(.today):hover {
      background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    }

    .day.past-day:not(.selected):not(.today) .day-number {
      color: #be123c;
      opacity: 0.78;
    }

    .day.past-day.other-month:not(.selected):not(.today) {
      background: #fff7f7;
      color: #c4a1a8;
    }

    /* Månedskalender: myk & moderne booking-visning */
    .event-pill {
      display: flex;
      align-items: center;
      gap: 7px;
      width: 100%;
      box-sizing: border-box;
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      color: #0f2f75;
      padding: 6px 10px;
      border-radius: 999px;
      margin-top: 7px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border: 1px solid rgba(147, 197, 253, 0.55);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10);
      transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    }

    .event-pill::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      flex: 0 0 auto;
      background: linear-gradient(135deg, #60a5fa, #2563eb);
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
    }

    .event-pill:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
      filter: brightness(1.015);
    }

    .event-cancelled {
      background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
      color: #991b1b;
      border-color: rgba(248, 113, 113, 0.45);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.10);
    }

    .event-cancelled::before {
      background: linear-gradient(135deg, #f87171, #dc2626);
      box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
    }

    .card {
      background: #f8fafc;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 12px;
    }

    .next {
      background: #ecfdf5;
      border-color: #86efac;
    }

    .slot-btn {
      margin: 5px 5px 0 0;
      background: #16a34a;
    }

    .slot-btn:hover { background: #15803d; }

    .slot-btn.recommended {
      background: #16a34a;
      box-shadow: 0 8px 16px rgba(22, 163, 74, 0.18);
    }

    .slot-btn.normal {
      background: #4f46e5;
    }

    .slot-btn.warning {
      background: #f97316;
    }

    .slot-group {
      margin-bottom: 14px;
      padding: 12px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #f8fafc;
    }

    .slot-group h4 {
      margin: 0 0 4px 0;
      font-size: 15px;
    }

    .slot-group .muted {
      margin: 0 0 8px 0;
    }

    .slot-toggle {
      margin-top: 8px;
      background: #111827;
    }

    .slot-score-label {
      display: block;
      font-size: 11px;
      opacity: 0.95;
      margin-top: 2px;
      line-height: 1.2;
    }

    .section-title {
      margin-top: 24px;
      margin-bottom: 10px;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 50;
    }

    .modal {
      width: min(850px, 94vw);
      max-height: 90vh;
      overflow-y: auto;
      background: white;
      border-radius: 18px;
      padding: 24px;
      box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    }

    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
    }

    .hours-row {
      display: grid;
      grid-template-columns: 130px 90px 1fr 1fr;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #e5e7eb;
    }

    .hours-row strong {
      font-size: 15px;
    }

    .settings-actions {
      margin-top: 20px;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

    .employee-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #e5e7eb;
    }

    .employee-add-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
      margin-top: 10px;
    }

    .small-btn {
      padding: 8px 10px;
      font-size: 13px;
    }


    .service-row {
      display: grid;
      grid-template-columns: 1.4fr 95px 95px 95px 95px 90px 110px;
      gap: 10px;
      align-items: end;
      padding: 12px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #f8fafc;
      margin-bottom: 10px;
    }

    .service-row label {
      font-size: 13px;
      color: #374151;
    }

    .service-row input {
      margin-bottom: 0;
    }

    .service-help {
      grid-column: 1 / -1;
      color: #6b7280;
      font-size: 13px;
      margin-top: -4px;
    }

    .service-active-box {
      display: flex;
      align-items: center;
      gap: 6px;
      padding-bottom: 12px;
    }


    .main-hub {
      min-height: 100vh;
      background: #f4f6fb;
      padding: 24px;
      box-sizing: border-box;
    }

    .main-hub-card {
      background: white;
      border-radius: 18px;
      padding: 24px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.06);
      margin-bottom: 18px;
    }

    .main-hub-topbar {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 18px;
    }

    .main-hub-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .main-hub-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin: 16px 0;
    }

    .main-hub-stat {
      background: #f8fafc;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      padding: 14px;
    }

    .main-hub-stat strong {
      display: block;
      font-size: 26px;
      margin-top: 4px;
    }

    .main-hub-table-wrap {
      overflow-x: auto;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      background: white;
    }

    .main-hub-table {
      width: 100%;
      min-width: 900px;
      border-collapse: collapse;
    }

    .main-hub-table th,
    .main-hub-table td {
      padding: 12px;
      border-bottom: 1px solid #e5e7eb;
      text-align: left;
      vertical-align: top;
    }

    .main-hub-table th {
      background: #111827;
      color: white;
      font-size: 13px;
    }

    .main-hub-table tr:last-child td { border-bottom: 0; }

    .main-hub-form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      align-items: end;
    }

    .badge {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 12px;
      background: #e5e7eb;
      color: #111827;
    }

    .badge.superadmin { background: #ede9fe; color: #5b21b6; }
    .badge.admin { background: #dcfce7; color: #166534; }
    .badge.employee { background: #dbeafe; color: #1e40af; }


    .day-schedule-modal {
      width: min(1100px, 96vw);
    }

    .timeline-page {
      min-height: 100vh;
      background: #f4f6fb;
      padding: 24px;
      box-sizing: border-box;
    }

    .timeline-page-card {
      background: white;
      border-radius: 18px;
      padding: 24px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    }

    .timeline-page-topbar {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 18px;
    }

    .timeline-page-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .timeline-page .schedule-list {
      overflow-x: auto;
      overflow-y: visible;
      width: 100%;
      max-width: 100%;
      padding-bottom: 18px;
    }

    .timeline-page .timeline-wrap {
      min-width: 1400px;
    }

    .timeline-page .schedule-list {
      border-radius: 16px;
      scrollbar-width: auto;
    }

    .timeline-page .timeline-row {
      min-height: 145px;
    }

    .timeline-page .timeline-track {
      min-height: 145px;
    }

    .timeline-page .timeline-block {
  top: 14px;
  min-height: 116px;
  padding: 11px 12px;

  margin-right: 12px;
  transition: all 0.2s ease;

  transform: scaleX(0.96);
  }

  .timeline-page .timeline-block::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 12%;
  bottom: 12%;
  width: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}

    .timeline-page .timeline-block strong,
    .timeline-page .timeline-block span {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }

    .timeline-scroll-hint {
      color: #6b7280;
      font-size: 13px;
      margin: 8px 0 0;
    }


    .timeline-hover-tooltip {
      position: fixed;
      z-index: 9999;
      max-width: 340px;
      background: #111827;
      color: white;
      border-radius: 12px;
      padding: 12px 14px;
      box-shadow: 0 18px 40px rgba(15,23,42,0.35);
      font-size: 14px;
      line-height: 1.35;
      pointer-events: none;
      display: none;
    }

    .timeline-hover-tooltip h4 {
      margin: 0 0 8px 0;
      font-size: 16px;
    }

    .timeline-hover-tooltip p {
      margin: 4px 0;
    }

    .timeline-hover-tooltip .muted {
      color: #cbd5e1;
    }


    .booking-detail-modal {
      width: min(720px, 94vw);
    }

    .booking-detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .booking-detail-item {
      background: #f8fafc;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 12px;
    }

    .booking-detail-item.full {
      grid-column: 1 / -1;
    }

    .booking-detail-item strong {
      display: block;
      margin-bottom: 4px;
      color: #111827;
    }

    .booking-detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
    }

    @media (max-width: 700px) {
      .booking-detail-grid {
        grid-template-columns: 1fr;
      }
    }

    .timeline-details {
      margin-top: 22px;
    }

    .timeline-details h3 {
      margin: 0 0 12px 0;
    }

    .timeline-details-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 12px;
    }

    .timeline-detail-card {
      border: 1px solid #e5e7eb;
      background: #f8fafc;
      border-radius: 14px;
      padding: 14px;
    }

    .timeline-detail-card h4 {
      margin: 0 0 8px 0;
      font-size: 17px;
    }

    .timeline-detail-card p {
      margin: 5px 0;
    }

    .timeline-detail-card.cancelled {
      background: #fef2f2;
      border-color: #fecaca;
    }

    .schedule-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 14px 0 18px;
    }

    .filter-btn {
      background: #e5e7eb;
      color: #111827;
    }

    .filter-btn.active {
      background: #4f46e5;
      color: white;
    }

    .schedule-range-info {
      margin: -6px 0 14px 0;
      color: #6b7280;
      font-size: 14px;
    }

    .schedule-list {
      display: block;
      overflow-x: auto;
      overflow-y: visible;
      padding-bottom: 14px;
      width: 100%;
      max-width: 100%;
      scroll-behavior: smooth;
    }

    .timeline-wrap {
      min-width: 980px;
      width: max-content;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      background: white;
      overflow: hidden;
    }

    .timeline-header {
      display: grid;
      grid-template-columns: 150px 1fr;
      background: #111827;
      color: white;
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .timeline-employee-head {
      padding: 13px 14px;
      font-weight: bold;
      border-right: 1px solid rgba(255,255,255,0.18);
    }

    .timeline-hours { position: relative; height: 48px; }

    .timeline-hour-label {
      position: absolute;
      top: 13px;
      transform: translateX(-50%);
      font-size: 13px;
      font-weight: bold;
      color: white;
      white-space: nowrap;
      line-height: 1;
    }

    .timeline-hour-label.is-first {
      transform: translateX(0);
    }

    .timeline-hour-label.is-last {
      transform: translateX(-100%);
    }

    .timeline-row {
      display: grid;
      grid-template-columns: 150px 1fr;
      min-height: 82px;
      border-bottom: 1px solid #e5e7eb;
    }

    .timeline-row:last-child { border-bottom: 0; }

    .timeline-employee-name {
      padding: 14px;
      font-weight: bold;
      background: #f8fafc;
      border-right: 1px solid #e5e7eb;
      display: flex;
      align-items: center;
    }

    .timeline-track {
      position: relative;
      min-height: 82px;
      background: repeating-linear-gradient(to right, #ffffff 0, #ffffff calc(var(--hour-width) - 1px), #e5e7eb calc(var(--hour-width) - 1px), #e5e7eb var(--hour-width));
    }

    .timeline-block {
      position: absolute;
      top: 12px;
      min-height: 58px;
      border-radius: 14px;
      padding: 9px 10px;
      box-sizing: border-box;
      background: linear-gradient(135deg, #4f46e5, #06b6d4);
      color: white;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.35);
    }

    .timeline-block:nth-child(3n) { background: linear-gradient(135deg, #16a34a, #84cc16); }
    .timeline-block:nth-child(3n + 1) { background: linear-gradient(135deg, #f97316, #ec4899); }

    .timeline-block.cancelled {
      background: repeating-linear-gradient(45deg, #ef4444, #ef4444 8px, #f87171 8px, #f87171 16px);
      opacity: 0.75;
    }

    .timeline-block strong {
      display: block;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 3px;
    }

    .timeline-block span {
      display: block;
      font-size: 12px;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      opacity: 0.95;
    }

    .timeline-now {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 3px;
      background: #ef4444;
      z-index: 3;
    }

    .timeline-now::before {
      content: "Nå";
      position: absolute;
      top: 2px;
      left: 6px;
      background: #ef4444;
      color: white;
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 999px;
      white-space: nowrap;
    }

    .schedule-empty {
      padding: 18px;
      border: 1px dashed #cbd5e1;
      border-radius: 12px;
      background: #f8fafc;
      color: #6b7280;
    }

    .hidden {
      display: none !important;
    }
/* ==============================
   ISELD PUBLIC BOOKING - HIGH END
   Lagt til uten å fjerne eksisterende funksjoner
   ============================== */
.public-booking-cta{margin-top:20px;padding:16px;border-radius:18px;background:linear-gradient(135deg,rgba(15,23,42,.08),rgba(30,58,95,.05));border:1px solid rgba(15,23,42,.10);text-align:center}.public-booking-cta strong{display:block;color:#0f172a;font-size:15px;margin-bottom:5px}.public-booking-cta span{display:block;color:#64748b;font-size:13px;line-height:1.45;margin-bottom:12px}.public-booking-cta button{width:100%;border:0;border-radius:14px;padding:13px 16px;cursor:pointer;color:white;font-weight:800;letter-spacing:.01em;background:linear-gradient(135deg,#0f172a,#1e3a5f 55%,#2563eb);box-shadow:0 14px 30px rgba(15,23,42,.22);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.public-booking-cta button:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 18px 38px rgba(15,23,42,.28)}
.booking-view{min-height:100vh;padding:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(circle at 22% 18%,rgba(96,165,250,.28),transparent 32%),radial-gradient(circle at 82% 78%,rgba(249,115,22,.16),transparent 30%),linear-gradient(135deg,rgba(2,6,23,.94),rgba(15,23,42,.86))}.booking-view::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 35%,rgba(255,255,255,.04));pointer-events:none}.booking-shell{width:min(1120px,100%);position:relative;z-index:1;display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:stretch}.booking-brand-panel,.booking-card{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);box-shadow:0 30px 90px rgba(0,0,0,.28);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:32px}.booking-brand-panel{padding:34px;color:white;display:flex;flex-direction:column;justify-content:space-between;min-height:620px}.booking-brand-top{display:flex;align-items:center;gap:12px;margin-bottom:42px}.booking-brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#1e3a8a 55%,#fb923c);box-shadow:0 12px 28px rgba(0,0,0,.25);font-weight:900;color:white}.booking-brand-top span{font-size:19px;font-weight:800;letter-spacing:.02em}.booking-brand-panel h1{font-size:clamp(34px,4vw,56px);line-height:1.02;margin:0 0 18px;color:white;letter-spacing:-.055em}.booking-brand-panel p{color:rgba(226,232,240,.88);font-size:17px;line-height:1.65;margin:0;max-width:420px}.booking-trust-row{display:grid;gap:12px;margin-top:32px}.booking-trust-item{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.88);font-size:14px}.booking-card{padding:28px;background:rgba(248,250,252,.92)}.booking-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.booking-card h2{margin:0;color:#0f172a;font-size:30px;letter-spacing:-.035em}.booking-card-subtitle{margin:7px 0 0;color:#64748b;line-height:1.5}.booking-close-btn{border:0;border-radius:999px;width:42px;height:42px;cursor:pointer;background:#e2e8f0;color:#0f172a;font-size:22px;line-height:1;transition:transform .18s ease,background .18s ease}.booking-close-btn:hover{transform:rotate(5deg) scale(1.03);background:#cbd5e1}.booking-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0 26px}.booking-progress span{height:6px;border-radius:999px;background:#dbeafe;overflow:hidden;position:relative}.booking-progress span.active::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#1e3a5f,#2563eb);border-radius:inherit}.booking-step{animation:bookingFade .22s ease both}@keyframes bookingFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.booking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.booking-service-card,.booking-slot-card,.booking-date-card{border:1px solid #e2e8f0;background:rgba(255,255,255,.82);border-radius:20px;padding:17px;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;text-align:left;color:#0f172a;width:auto;box-shadow:none;font-weight:700}.booking-service-card:hover,.booking-slot-card:hover,.booking-date-card:hover,.booking-service-card.selected,.booking-slot-card.selected,.booking-date-card.selected{transform:translateY(-2px);border-color:#2563eb;background:white;box-shadow:0 18px 40px rgba(37,99,235,.14)}.booking-service-card small,.booking-date-card small{display:block;margin-top:7px;color:#64748b;font-weight:500;line-height:1.4}.booking-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.booking-field{display:grid;gap:7px}.booking-field.full{grid-column:1/-1}.booking-field label{color:#0f172a;font-weight:800;font-size:13px}.booking-field input,.booking-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:16px;padding:13px 14px;font-size:15px;outline:none;background:rgba(255,255,255,.86);color:#0f172a;transition:border-color .16s ease,box-shadow .16s ease;font-family:inherit}.booking-field textarea{min-height:92px;resize:vertical}.booking-field input:focus,.booking-field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.booking-actions{display:flex;gap:12px;margin-top:24px}.booking-primary-btn,.booking-secondary-btn{border:0;border-radius:16px;padding:14px 18px;cursor:pointer;font-weight:850;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}.booking-primary-btn{flex:1;color:white;background:linear-gradient(135deg,#0f172a,#1e3a5f 58%,#2563eb);box-shadow:0 16px 34px rgba(15,23,42,.22)}.booking-secondary-btn{width:auto;min-width:130px;color:#0f172a;background:#e2e8f0}.booking-primary-btn:hover,.booking-secondary-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}.booking-summary{display:grid;gap:10px;margin-top:4px;padding:18px;border-radius:22px;background:white;border:1px solid #e2e8f0}.booking-summary-row{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #f1f5f9;color:#334155}.booking-summary-row:last-child{border-bottom:0}.booking-summary-row strong{color:#0f172a}.booking-success-icon{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;color:white;font-size:34px;background:linear-gradient(135deg,#10b981,#2563eb);box-shadow:0 18px 42px rgba(16,185,129,.22);margin-bottom:18px}.booking-error{display:none;margin-top:14px;padding:12px 14px;border-radius:14px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;font-weight:700;font-size:14px}@media(max-width:900px){.booking-shell{grid-template-columns:1fr}.booking-brand-panel{min-height:auto}}@media(max-width:640px){.booking-view{padding:18px;align-items:flex-start}.booking-card,.booking-brand-panel{border-radius:24px;padding:22px}.booking-grid,.booking-input-grid{grid-template-columns:1fr}.booking-actions{flex-direction:column-reverse}.booking-secondary-btn{width:100%}}
/* Public booking: ekte databasekobling + logo */
.booking-brand-logo{width:52px;height:120px;border-radius:16px;object-fit:cover;box-shadow:0 14px 34px rgba(0,0,0,.28)}
.booking-loading-card{grid-column:1/-1;padding:18px;border-radius:20px;background:rgba(255,255,255,.72);border:1px dashed #cbd5e1;color:#64748b;font-weight:700}
.booking-slot-card small{display:block;margin-top:6px;color:#64748b;font-weight:600}
.booking-slot-card.selected small,.booking-slot-card:hover small{color:#dbeafe}
.booking-primary-btn:disabled,.booking-secondary-btn:disabled{opacity:.55;cursor:not-allowed;transform:none;filter:none}
.booking-meta-note{margin-top:14px;color:#64748b;font-size:13px;line-height:1.5}



/* Public booking: iPhone-vennlig tidsvelger uten native <select> */
.booking-time-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.booking-time-btn{
  width:100%;
  border:1px solid #dbe3ef;
  background:#fff;
  color:#0f172a;
  border-radius:16px;
  padding:12px 10px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease;
}
.booking-time-btn:hover,
.booking-time-btn.selected{
  transform:translateY(-1px);
  border-color:#2563eb;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
  color:#1d4ed8;
  box-shadow:0 10px 24px rgba(37,99,235,.13);
}
.booking-time-btn.selected{
  background:linear-gradient(135deg,#0f172a,#2563eb);
  color:#fff;
  border-color:#2563eb;
}
.booking-time-actions{
  display:flex;
  justify-content:flex-end;
}
@media(max-width:640px){
  .booking-time-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .booking-time-btn{
    padding:11px 8px;
    font-size:13px;
  }
}

/* Public booking: ryddigere kundevalg av ansatt + ønsket tidspunkt */
.booking-choice-panel{
  grid-column:1/-1;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid #e2e8f0;
  display:grid;
  gap:14px;
  margin-top:4px;
}
.booking-choice-title{
  color:#0f172a;
  font-weight:900;
  font-size:14px;
  margin-bottom:6px;
}
.booking-choice-help{
  color:#64748b;
  font-size:13px;
  line-height:1.45;
  margin-top:2px;
}
.booking-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.booking-pill{
  width:auto;
  border:1px solid #dbe3ef;
  background:white;
  color:#0f172a;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:800;
  box-shadow:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.booking-pill:hover,.booking-pill.selected{
  transform:translateY(-1px);
  border-color:#2563eb;
  background:#eff6ff;
  box-shadow:0 10px 24px rgba(37,99,235,.12);
}
.booking-time-preference{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
}
.booking-time-preference select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cbd5e1;
  border-radius:16px;
  padding:13px 14px;
  font-size:15px;
  outline:none;
  background:white;
  color:#0f172a;
  font-family:inherit;
  font-weight:800;
}
.booking-mini-btn{
  width:auto;
  border:0;
  border-radius:16px;
  padding:13px 16px;
  cursor:pointer;
  color:white;
  font-weight:900;
  background:linear-gradient(135deg,#0f172a,#2563eb);
  box-shadow:0 12px 26px rgba(15,23,42,.18);
}
.booking-result-title{
  grid-column:1/-1;
  color:#334155;
  font-weight:900;
  margin-top:4px;
}
.booking-slot-card .booking-slot-employees{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-weight:700;
}
.booking-slot-card.selected .booking-slot-employees,
.booking-slot-card:hover .booking-slot-employees{
  color:#dbeafe;
}
@media(max-width:640px){
  .booking-time-preference{grid-template-columns:1fr}
  .booking-mini-btn{width:100%}
}

/* NOVA FIX: Premium, lesbar timeplan uten overlapp-kaos */
.timeline-page{
  min-height:100vh;
  padding:28px;
  background:linear-gradient(180deg,#f7f9fe 0%,#edf2f8 100%) !important;
}
.timeline-page-card{
  border-radius:28px !important;
  padding:32px !important;
  background:#fff !important;
  border:1px solid rgba(226,232,240,.95) !important;
  box-shadow:0 26px 80px rgba(15,23,42,.12) !important;
}
.timeline-page-topbar{border-bottom:1px solid #edf2f7;padding-bottom:22px;margin-bottom:18px;}
.timeline-page-topbar h1{font-size:34px;letter-spacing:-.04em;color:#061333;margin:0 0 8px;}
.premium-toolbar-row{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:18px 0;}
.premium-filter-group,.premium-nav-group,.schedule-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.filter-btn,.premium-nav-btn,.timeline-page-actions button{
  min-height:46px;border-radius:13px;border:1px solid #e5ebf4;background:#fff;color:#17233d;
  padding:0 18px;font-weight:850;box-shadow:0 8px 22px rgba(15,23,42,.055);cursor:pointer;
}
.filter-btn.active{background:linear-gradient(135deg,#4f46e5,#6d5dfc);color:white;border-color:rgba(79,70,229,.2);box-shadow:0 18px 34px rgba(79,70,229,.25);}
.filter-avatar{width:24px;height:24px;border-radius:999px;object-fit:cover;background:#eef2ff;display:inline-flex;align-items:center;justify-content:center;font-weight:900;color:#4f46e5;}
.schedule-range-info{margin:0 0 16px 0;padding:15px 18px;border-radius:14px;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#f3f8ff);color:#5b6b85;font-size:16px;}
.timeline-page .schedule-list,.schedule-list{
  border-radius:20px;border:1px solid #e3eaf4;background:#fff;overflow:auto !important;resize:vertical;
  min-height:440px;max-height:72vh;padding-bottom:0 !important;box-shadow:inset 0 -1px 0 rgba(226,232,240,.65);
}
.timeline-page .schedule-list::-webkit-scrollbar{height:13px;width:13px}.timeline-page .schedule-list::-webkit-scrollbar-thumb{background:#c7d1df;border-radius:999px;border:3px solid #f8fafc}.timeline-page .schedule-list::-webkit-scrollbar-track{background:#f8fafc;border-radius:999px}
.timeline-wrap{border:0 !important;border-radius:0 !important;background:#fff !important;overflow:visible !important;}
.timeline-header{display:grid;grid-template-columns:250px 1fr !important;background:#fff !important;color:#071433 !important;border-bottom:1px solid #e3eaf4;position:sticky;top:0;z-index:6;}
.timeline-employee-head{padding:24px 26px !important;font-size:18px;font-weight:950;color:#071433;border-right:1px solid #e3eaf4;background:#fff;}
.timeline-hours{position:relative;height:70px !important;background:#fff;}
.timeline-hour-label{position:absolute;top:26px;transform:translateX(-50%);font-size:18px !important;line-height:1;font-weight:950;color:#071433 !important;white-space:nowrap;}
.timeline-hour-label.is-first{transform:translateX(0)}.timeline-hour-label.is-last{transform:translateX(-100%)}
.timeline-row{display:grid;grid-template-columns:250px 1fr !important;border-bottom:1px solid #e3eaf4;min-height:180px;}
.timeline-employee-name{padding:24px 26px !important;background:#fff !important;border-right:1px solid #e3eaf4;display:flex !important;align-items:center;gap:16px;color:#071433;position:sticky;left:0;z-index:4;}
.employee-avatar{width:62px;height:62px;border-radius:999px;object-fit:cover;flex:0 0 auto;border:3px solid #fff;box-shadow:0 12px 28px rgba(15,23,42,.13);background:#eef2ff;display:inline-flex;align-items:center;justify-content:center;font-weight:950;color:#4f46e5;font-size:20px;}
.employee-name-title{font-size:20px;font-weight:950;line-height:1.12;letter-spacing:-.03em;}.employee-name-subtitle{margin-top:5px;color:#7b879b;font-size:15px;font-weight:750;}
.timeline-track{position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour-width)/2 - 1px),#edf2f8 calc(var(--hour-width)/2 - 1px),#edf2f8 calc(var(--hour-width)/2),transparent calc(var(--hour-width)/2),transparent calc(var(--hour-width) - 1px),#dfe7f2 calc(var(--hour-width) - 1px),#dfe7f2 var(--hour-width)),#fff;overflow:visible;}
.timeline-block{position:absolute;box-sizing:border-box;border-radius:20px !important;padding:18px 20px !important;border:1px solid rgba(255,255,255,.68) !important;box-shadow:0 20px 40px rgba(15,23,42,.14);overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;backdrop-filter:blur(5px);}
.timeline-block:hover{transform:translateY(-3px);box-shadow:0 26px 55px rgba(15,23,42,.20);filter:saturate(1.05);z-index:8 !important;}
.timeline-block.service-color-0{background:linear-gradient(135deg,#5fda7b 0%,#a4ee6c 100%) !important;color:#06351c !important;}.timeline-block.service-color-1{background:linear-gradient(135deg,#dfe8ff 0%,#b7dcff 100%) !important;color:#0b2f70 !important;}.timeline-block.service-color-2{background:linear-gradient(135deg,#e6e4ff 0%,#cdd4ff 100%) !important;color:#1e1880 !important;}.timeline-block.service-color-3{background:linear-gradient(135deg,#ffb36a 0%,#ffe0bd 100%) !important;color:#7a3400 !important;}.timeline-block.service-color-4{background:linear-gradient(135deg,#ff8b8b 0%,#ffd1d1 100%) !important;color:#9b1111 !important;}.timeline-block.service-color-5{background:linear-gradient(135deg,#ff6b2f 0%,#f43f5e 100%) !important;color:#fff !important;}
.timeline-block.cancelled{background:repeating-linear-gradient(45deg,#ef4444,#ef4444 8px,#f87171 8px,#f87171 16px)!important;color:#fff!important;opacity:.82;}
.timeline-time{display:block;font-size:20px;font-weight:950;letter-spacing:-.03em;line-height:1.05;margin-bottom:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.timeline-customer-line{display:flex!important;align-items:center;gap:9px;font-size:20px;font-weight:950;line-height:1.15;margin-bottom:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.timeline-service-pill{display:inline-flex!important;align-items:center;gap:8px;max-width:100%;border-radius:999px;padding:10px 14px;background:rgba(255,255,255,.42);border:1px solid rgba(255,255,255,.45);font-size:17px;font-weight:900;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.timeline-mini-text{font-size:14px;font-weight:800;opacity:.78;margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.booking-mini-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;opacity:.9}.booking-mini-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.timeline-scroll-hint{margin:14px 0 0;padding:14px 18px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#f3f8ff);color:#6672ff;font-weight:850;}
.timeline-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:20px 0 0;}.timeline-stat-card{display:flex;align-items:center;gap:15px;min-height:76px;border-radius:18px;border:1px solid #e8eef7;background:#fff;padding:18px 20px;box-shadow:0 10px 26px rgba(15,23,42,.05);}.timeline-stat-icon{width:52px;height:120px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;background:#f1efff;color:#4f46e5;}.timeline-stat-icon svg{width:26px;height:26px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;}.timeline-stat-card strong{display:block;font-size:22px;color:#071433;margin-bottom:3px;font-weight:950;}.timeline-stat-card span{color:#64748b;font-size:15px;font-weight:800;}
.timeline-hover-tooltip{position:fixed;display:none;z-index:9999;width:min(360px,calc(100vw - 32px));background:#fff;border:1px solid #e5ebf4;border-radius:18px;box-shadow:0 26px 70px rgba(15,23,42,.20);padding:16px;color:#071433;}.timeline-hover-tooltip h4{margin:0 0 12px;font-size:18px;line-height:1.25;}.timeline-tooltip-row{display:flex;gap:11px;align-items:flex-start;padding:10px 0;border-top:1px solid #eef2f7;}.timeline-tooltip-row:first-of-type{border-top:0}.timeline-tooltip-row .booking-mini-icon{margin-top:2px;color:#4f46e5}.timeline-tooltip-label{font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.04em;}.timeline-tooltip-value{font-size:15px;font-weight:800;color:#0f172a;margin-top:2px;line-height:1.35;}.timeline-tooltip-note{background:#f8fafc;border:1px solid #eef2f7;border-radius:13px;padding:10px 12px;margin-top:8px;}.muted{color:#64748b!important;}
.timeline-now{position:absolute;top:0;bottom:0;width:3px;background:#ef4444;z-index:9}.timeline-now:before{content:"Nå";position:absolute;top:8px;left:7px;background:#ef4444;color:#fff;font-size:12px;font-weight:900;border-radius:999px;padding:3px 8px;white-space:nowrap;}
@media(max-width:900px){.timeline-page{padding:12px}.timeline-page-card{padding:18px!important}.timeline-header,.timeline-row{grid-template-columns:190px 1fr!important}.timeline-employee-name,.timeline-employee-head{padding:18px!important}.employee-avatar{width:50px;height:50px}.timeline-time,.timeline-customer-line{font-size:17px}.timeline-service-pill{font-size:15px}}


/* === Nova timeline zoom + kunde-farger === */
.timeline-wrap {
  overflow: visible;
}

.timeline-hours {
  height: 82px !important;
}

.timeline-hour-label {
  color: #071433 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.timeline-hour-label.is-hour {
  top: 20px !important;
  font-size: 20px !important;
}

.timeline-hour-label.is-half-hour {
  top: 50px !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 850 !important;
}

.timeline-track {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--hour-width) / 2 - 1px),
      #e7edf6 calc(var(--hour-width) / 2 - 1px),
      #e7edf6 calc(var(--hour-width) / 2),
      transparent calc(var(--hour-width) / 2),
      transparent calc(var(--hour-width) - 1px),
      #d9e3f0 calc(var(--hour-width) - 1px),
      #d9e3f0 var(--hour-width)
    ),
    #fff !important;
}

.timeline-block {
  min-height: 118px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
  transform: none !important;
}

.timeline-block .timeline-time {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  margin-bottom: 12px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-block .timeline-customer-line {
  display: block !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  margin-bottom: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.timeline-block .timeline-service-pill {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: rgba(255,255,255,.45) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.timeline-block.customer-color-0 { background: linear-gradient(135deg,#bfdbfe 0%,#93c5fd 100%) !important; color:#102a56 !important; }
.timeline-block.customer-color-1 { background: linear-gradient(135deg,#bbf7d0 0%,#86efac 100%) !important; color:#064e3b !important; }
.timeline-block.customer-color-2 { background: linear-gradient(135deg,#fed7aa 0%,#fdba74 100%) !important; color:#7c2d12 !important; }
.timeline-block.customer-color-3 { background: linear-gradient(135deg,#ddd6fe 0%,#c4b5fd 100%) !important; color:#312e81 !important; }
.timeline-block.customer-color-4 { background: linear-gradient(135deg,#fecdd3 0%,#fda4af 100%) !important; color:#881337 !important; }
.timeline-block.customer-color-5 { background: linear-gradient(135deg,#bae6fd 0%,#7dd3fc 100%) !important; color:#075985 !important; }
.timeline-block.customer-color-6 { background: linear-gradient(135deg,#fde68a 0%,#facc15 100%) !important; color:#713f12 !important; }
.timeline-block.customer-color-7 { background: linear-gradient(135deg,#a7f3d0 0%,#5eead4 100%) !important; color:#134e4a !important; }

.timeline-block.cancelled {
  background: repeating-linear-gradient(45deg,#ef4444,#ef4444 8px,#f87171 8px,#f87171 16px) !important;
  color:#fff !important;
}


/* Nova timeline zoom v2: bedre lesbarhet på splittede 20-min blokker */
.timeline-page .timeline-wrap {
  overflow: visible !important;
}
.timeline-hours .timeline-hour-label.is-half-hour {
  font-size: 16px !important;
  font-weight: 850 !important;
  color: #64748b !important;
}
.timeline-hours .timeline-hour-label.is-hour {
  font-size: 24px !important;
  font-weight: 950 !important;
  color: #020617 !important;
}
.timeline-page .timeline-block {
  padding: 14px 16px !important;
  min-width: 118px !important;
}
.timeline-page .timeline-block .timeline-time {
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  margin-bottom: 10px !important;
}
.timeline-page .timeline-block .timeline-customer-line {
  font-size: 16px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.timeline-page .timeline-block .timeline-service-pill {
  font-size: 13px !important;
  padding: 7px 10px !important;
}

/* ==========================================================
   NOVA FINAL TIMELINE FIX
   Større, mer lesbare bookingblokker i timeplanen.
   Denne ligger nederst for å overstyre eldre timeline-CSS.
   ========================================================== */

.timeline-page .schedule-list {
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-bottom: 26px !important;
}

.timeline-page .timeline-wrap {
  min-width: 2600px !important;
}

.timeline-page .timeline-row {
  min-height: 255px !important;
}

.timeline-page .timeline-track {
  min-height: 255px !important;
  overflow: visible !important;
}

.timeline-page .timeline-block {
  top: 26px !important;
  min-height: 178px !important;
  min-width: 150px !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
  box-sizing: border-box !important;
  overflow: visible !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px !important;

  transform: none !important;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14) !important;
}

.timeline-page .timeline-block:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.20) !important;
  z-index: 20 !important;
}

.timeline-page .timeline-block::after {
  display: none !important;
}

.timeline-page .timeline-time {
  display: block !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-customer-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-service-pill {
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.60) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-mini-text {
  font-size: 13px !important;
  font-weight: 800 !important;
  opacity: 0.80 !important;
  margin-top: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-hours {
  height: 70px !important;
}

.timeline-page .timeline-hour-label.is-hour {
  font-size: 26px !important;
  font-weight: 950 !important;
  color: #020617 !important;
  top: 18px !important;
}

.timeline-page .timeline-hour-label.is-half-hour {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #64748b !important;
  top: 42px !important;
}

.timeline-page .timeline-scroll-hint {
  margin-top: 18px !important;
}

@media (max-width: 900px) {
  .timeline-page .timeline-wrap {
    min-width: 2300px !important;
  }

  .timeline-page .timeline-row,
  .timeline-page .timeline-track {
    min-height: 240px !important;
  }

  .timeline-page .timeline-block {
    min-height: 168px !important;
    min-width: 140px !important;
    padding: 16px 18px !important;
  }
}

/* ==========================================================
   NOVA TIMELINE NAME FIX v3
   Beholder all eksisterende styling, men gir bookingkortene
   mer høyde og bedre intern spacing slik at navn vises tydelig.
   ========================================================== */

.timeline-page .schedule-list {
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-bottom: 32px !important;
}

.timeline-page .timeline-wrap {
  min-width: 2600px !important;
  overflow: visible !important;
}

.timeline-page .timeline-row,
.timeline-page .timeline-track {
  min-height: 310px !important;
}

.timeline-page .timeline-block {
  top: 24px !important;
  min-height: 220px !important;
  min-width: 170px !important;
  padding: 22px 20px 18px 20px !important;
  border-radius: 24px !important;
  box-sizing: border-box !important;
  overflow: visible !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;

  transform: none !important;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14) !important;
}

.timeline-page .timeline-block:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.20) !important;
  z-index: 20 !important;
}

.timeline-page .timeline-block::after {
  display: none !important;
}

.timeline-page .timeline-time {
  display: block !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 18px 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-customer-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  margin: 0 0 18px 0 !important;
  width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-customer-line svg,
.timeline-page .timeline-customer-line i {
  flex: 0 0 auto !important;
}

.timeline-page .timeline-service-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  width: fit-content !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  margin: 0 0 14px 0 !important;
  background: rgba(255, 255, 255, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.60) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-mini-text {
  display: block !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  opacity: 0.82 !important;
  margin-top: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.timeline-page .timeline-hours {
  height: 78px !important;
}

.timeline-page .timeline-hour-label.is-hour {
  font-size: 28px !important;
  font-weight: 950 !important;
  color: #020617 !important;
  top: 18px !important;
}

.timeline-page .timeline-hour-label.is-half-hour {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #64748b !important;
  top: 48px !important;
}

.timeline-page .timeline-scroll-hint {
  margin-top: 20px !important;
}

@media (max-width: 900px) {
  .timeline-page .timeline-wrap {
    min-width: 2350px !important;
  }

  .timeline-page .timeline-row,
  .timeline-page .timeline-track {
    min-height: 290px !important;
  }

  .timeline-page .timeline-block {
    min-height: 205px !important;
    min-width: 155px !important;
    padding: 20px 18px 16px 18px !important;
  }
}

/* ==========================================================
   NOVA TIMELINE - ZOOMKONTROLL + STATS UTENFOR SCROLL
   Lagt nederst for å overstyre tidligere timeline-styling uten
   å fjerne resten av designet.
   ========================================================== */

.timeline-page .schedule-list {
  overflow: auto !important;
  resize: vertical;
  min-height: 440px;
  max-height: 72vh;
  padding-bottom: 12px !important;
}

.timeline-page .timeline-wrap {
  overflow: visible !important;
}

.timeline-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 12px 0;
  flex-wrap: wrap;
}

.timeline-zoom-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  margin-right: 4px;
}

.timeline-zoom-btn {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #17233d;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.timeline-zoom-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .09);
}

.timeline-zoom-btn.active {
  background: linear-gradient(135deg, #4f46e5, #6d5dfc);
  color: #fff;
  border-color: rgba(79,70,229,.25);
}

.timeline-page .timeline-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.timeline-page .timeline-time {
  flex: 0 0 auto;
  margin-bottom: 10px !important;
}

.timeline-page .timeline-customer-line {
  flex: 0 0 auto;
  margin-bottom: 14px !important;
  max-width: 100%;
}

.timeline-page .timeline-service-pill {
  flex: 0 0 auto;
  max-width: 100%;
}

.timeline-page .timeline-mini-text {
  margin-top: auto !important;
  padding-top: 12px;
}

.timeline-stats-outside {
  margin-top: 16px;
}

.timeline-stats-outside .timeline-stats-grid {
  margin: 0;
}

@media (max-width: 900px) {
  .timeline-zoom-controls {
    justify-content: flex-start;
  }
}

/* ==========================================================
   NOVA PATCH 2026-05-04 - px-basert timeline + bedre scroll
   ========================================================== */
.timeline-page .schedule-list {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.timeline-page .timeline-wrap,
.timeline-wrap {
  width: max-content;
}

.timeline-page .timeline-track,
.timeline-track {
  flex: 0 0 auto;
}

.timeline-page .timeline-block,
.timeline-block {
  min-width: 64px;
  contain: layout paint;
}

.timeline-page .timeline-block .timeline-time,
.timeline-block .timeline-time {
  white-space: nowrap;
}

.timeline-scroll-hint {
  position: sticky;
  left: 0;
}

.timeline-zoom-controls {
  position: sticky;
  left: 0;
  z-index: 7;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 75%, rgba(255,255,255,0) 100%);
  padding: 4px 0 10px;
}

/* ==========================================================
   NOVA TIMELINE AXIS v4
   Adaptive tidsakse: 15/10/5 min, og 1-minutts tick på maks zoom.
   ========================================================== */
.timeline-page .timeline-hours {
  height: 92px !important;
  background:
    linear-gradient(to bottom, #ffffff 0%, #ffffff 72%, #f8fafc 100%) !important;
}

.timeline-page .timeline-hour-label {
  position: absolute !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #64748b !important;
}

.timeline-page .timeline-hour-label::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;
  width: 1px;
  height: 12px;
  background: #cbd5e1;
}

.timeline-page .timeline-hour-label.is-hour {
  top: 16px !important;
  font-size: 27px !important;
  font-weight: 950 !important;
  color: #020617 !important;
}

.timeline-page .timeline-hour-label.is-hour::after {
  height: 28px;
  width: 2px;
  background: #94a3b8;
  bottom: -34px;
}

.timeline-page .timeline-hour-label.is-minor.has-text {
  top: 50px !important;
  font-size: 14px !important;
  color: #475569 !important;
}

.timeline-page .timeline-hour-label.is-five-min.has-text::after {
  height: 18px;
  background: #b6c2d1;
  bottom: -24px;
}

.timeline-page .timeline-hour-label.is-one-min.no-text {
  top: 72px !important;
  width: 1px !important;
  height: 1px !important;
  font-size: 0 !important;
}

.timeline-page .timeline-hour-label.is-one-min.no-text::after {
  height: 7px;
  background: #e2e8f0;
  bottom: -7px;
}

.timeline-page .timeline-hour-label.is-first {
  transform: translateX(0) !important;
}

.timeline-page .timeline-hour-label.is-last {
  transform: translateX(-100%) !important;
}

/* ==========================================================
   NOVA TIMELINE AXIS v5 PRO
   Ren proff tidsakse: tekst på timer/kvarter, små ticks uten rot.
   ========================================================== */
.timeline-page .timeline-header,
.timeline-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(148,163,184,.25), 0 14px 30px rgba(15,23,42,.04) !important;
}

.timeline-page .timeline-hours,
.timeline-hours {
  height: 96px !important;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.98) 66%, #f8fafc 100%) !important;
  overflow: visible !important;
}

.timeline-page .timeline-hour-label,
.timeline-hour-label {
  position: absolute !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  color: #64748b !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
  user-select: none;
}

.timeline-page .timeline-hour-label::after,
.timeline-hour-label::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: -22px !important;
  width: 1px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: #d7e0ec !important;
}

.timeline-page .timeline-hour-label.is-hour,
.timeline-hour-label.is-hour {
  top: 15px !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  color: #020617 !important;
  letter-spacing: -0.055em !important;
}

.timeline-page .timeline-hour-label.is-hour::after,
.timeline-hour-label.is-hour::after {
  height: 38px !important;
  width: 2px !important;
  bottom: -47px !important;
  background: linear-gradient(to bottom, #64748b, #cbd5e1) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75) !important;
}

.timeline-page .timeline-hour-label.is-quarter.has-text,
.timeline-hour-label.is-quarter.has-text {
  top: 57px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  color: #475569 !important;
  letter-spacing: -0.025em !important;
}

.timeline-page .timeline-hour-label.is-quarter::after,
.timeline-hour-label.is-quarter::after {
  height: 21px !important;
  bottom: -29px !important;
  background: #aab8c9 !important;
}

.timeline-page .timeline-hour-label.is-five-min.no-text,
.timeline-hour-label.is-five-min.no-text {
  top: 72px !important;
  width: 1px !important;
  height: 1px !important;
  font-size: 0 !important;
  color: transparent !important;
}

.timeline-page .timeline-hour-label.is-five-min.no-text::after,
.timeline-hour-label.is-five-min.no-text::after {
  height: 14px !important;
  bottom: -17px !important;
  background: #cbd5e1 !important;
}

.timeline-page .timeline-hour-label.is-one-min.no-text,
.timeline-hour-label.is-one-min.no-text {
  top: 78px !important;
  width: 1px !important;
  height: 1px !important;
  font-size: 0 !important;
  color: transparent !important;
}

.timeline-page .timeline-hour-label.is-one-min.no-text::after,
.timeline-hour-label.is-one-min.no-text::after {
  height: 6px !important;
  bottom: -7px !important;
  background: #e5ebf3 !important;
}

.timeline-page .timeline-hour-label.is-first,
.timeline-hour-label.is-first {
  transform: translateX(0) !important;
}

.timeline-page .timeline-hour-label.is-last,
.timeline-hour-label.is-last {
  transform: translateX(-100%) !important;
}

.timeline-page .timeline-track,
.timeline-track {
  background:
    repeating-linear-gradient(to right,
      rgba(148,163,184,.30) 0,
      rgba(148,163,184,.30) 1px,
      transparent 1px,
      transparent var(--hour-width)
    ),
    repeating-linear-gradient(to right,
      rgba(148,163,184,.16) 0,
      rgba(148,163,184,.16) 1px,
      transparent 1px,
      transparent calc(var(--px-per-minute) * 15)
    ),
    repeating-linear-gradient(to right,
      rgba(148,163,184,.075) 0,
      rgba(148,163,184,.075) 1px,
      transparent 1px,
      transparent calc(var(--px-per-minute) * 5)
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.timeline-page .timeline-block,
.timeline-block {
  box-shadow: 0 18px 45px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
}

.timeline-page .timeline-block:hover,
.timeline-block:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

/* Nova fullscreen patch: stor, ryddig timeplan for mange ansatte */
body.timeline-fullscreen-mode {
  overflow: hidden;
}

.timeline-page.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, .10), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%) !important;
  overflow: hidden !important;
}

.timeline-page.is-fullscreen .timeline-page-card {
  height: calc(100vh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22) !important;
  overflow: hidden !important;
}

.timeline-page.is-fullscreen .timeline-page-topbar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding-bottom: 12px !important;
  margin-bottom: 10px !important;
}

.timeline-page.is-fullscreen .timeline-page-topbar h1 {
  font-size: clamp(24px, 2vw, 34px) !important;
  margin: 0 !important;
}

.timeline-page.is-fullscreen .timeline-page-topbar p {
  margin: 4px 0 0 !important;
}

.timeline-page.is-fullscreen .schedule-toolbar,
.timeline-page.is-fullscreen .schedule-range-info {
  flex: 0 0 auto !important;
}

.timeline-page.is-fullscreen .schedule-toolbar {
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  overflow-x: auto !important;
}

.timeline-page.is-fullscreen .schedule-range-info {
  margin-bottom: 10px !important;
}

.timeline-page.is-fullscreen .schedule-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.timeline-page.is-fullscreen .timeline-zoom-controls {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  justify-content: flex-end !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(203, 213, 225, .75) !important;
}

.timeline-page.is-fullscreen .timeline-header {
  top: 57px !important;
  z-index: 25 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
}

.timeline-page.is-fullscreen .timeline-employee-head,
.timeline-page.is-fullscreen .timeline-employee-name {
  width: 220px !important;
  min-width: 220px !important;
  padding-left: 22px !important;
  padding-right: 18px !important;
}

.timeline-page.is-fullscreen .employee-avatar {
  width: 58px !important;
  height: 58px !important;
  font-size: 22px !important;
}

.timeline-page.is-fullscreen .employee-name-title {
  font-size: 22px !important;
  line-height: 1.05 !important;
}

.timeline-page.is-fullscreen .employee-name-subtitle {
  font-size: 15px !important;
}

.timeline-page.is-fullscreen .timeline-block {
  padding: 18px 20px !important;
  border-radius: 20px !important;
}

.timeline-page.is-fullscreen .timeline-time {
  font-size: 19px !important;
}

.timeline-page.is-fullscreen .timeline-customer-line {
  font-size: 20px !important;
}

.timeline-page.is-fullscreen .timeline-service-pill {
  font-size: 14px !important;
  padding: 9px 13px !important;
}

.timeline-page.is-fullscreen .timeline-scroll-hint,
.timeline-page.is-fullscreen .timeline-stats-outside {
  display: none !important;
}

.timeline-fullscreen-btn {
  margin-left: 10px !important;
  border-color: rgba(79, 70, 229, .35) !important;
}

.timeline-fullscreen-btn::before {
  content: "⛶";
  margin-right: 7px;
  font-size: 15px;
}

.timeline-page.is-fullscreen .timeline-fullscreen-btn.active {
  background: linear-gradient(135deg, #111827, #334155) !important;
  color: #fff !important;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .25) !important;
}

@media (max-width: 900px) {
  .timeline-page.is-fullscreen {
    padding: 8px !important;
  }
  .timeline-page.is-fullscreen .timeline-page-card {
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }
  .timeline-page.is-fullscreen .timeline-header {
    top: 54px !important;
  }
}

/* Nova patch: 80% intern oversiktszoom kun på selve timeplanflaten i fullskjerm.
   Dette etterligner Opera/browser-zoom visuelt, uten å skalere toppbar, filter og knapper. */
.timeline-page.is-fullscreen .schedule-list {
  --timeline-overview-scale: .8;
  --timeline-unscaled-width: 1200px;
}

.timeline-page.is-fullscreen .timeline-wrap {
  transform-origin: top left !important;
  zoom: var(--timeline-overview-scale) !important;
}

/* Fallback for nettlesere uten CSS zoom. Opera/Chrome bruker zoom-regelen over. */
@supports not (zoom: 1) {
  .timeline-page.is-fullscreen .timeline-wrap {
    zoom: 1 !important;
    transform: scale(var(--timeline-overview-scale)) !important;
    margin-right: calc((var(--timeline-wrap-width, 100%) * -0.2)) !important;
  }
}

/* Litt mer luft når timeplanen er i 80%-oversikt, så den ser planlagt ut – ikke bare krympet. */
.timeline-page.is-fullscreen .timeline-header {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .10) !important;
}

.timeline-page.is-fullscreen .schedule-list::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.timeline-page.is-fullscreen .schedule-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(79,70,229,.38), rgba(15,23,42,.28));
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.92);
}


/* ==========================================================
   Nova patch: 80% intern zoom kun i scroll-vinduet for timeplanen
   - Tilsvarer browserzoom 100% -> 80%
   - Påvirker ikke toppbar, knapper, filter eller resten av siden
   - Variabelen settes også fra JS, men fallbacken under gjør løsningen robust
   ========================================================== */
.timeline-page .schedule-list {
  --timeline-overview-scale: .8;
}

.timeline-page .timeline-wrap {
  transform-origin: top left !important;
  zoom: var(--timeline-overview-scale, .8) !important;
}

@supports not (zoom: 1) {
  .timeline-page .timeline-wrap {
    zoom: 1 !important;
    transform: scale(var(--timeline-overview-scale, .8)) !important;
    transform-origin: top left !important;
  }
}


/* Nova: proff, enkel popup-booking i dagsvisning */
.timeline-add-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.timeline-add-booking-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.30);
  filter: saturate(1.05);
}
.quick-booking-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}
.quick-booking-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.quick-booking-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.quick-booking-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}
.quick-booking-step label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}
.quick-booking-step input,
.quick-booking-step select,
.quick-booking-step textarea {
  width: 100%;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  color: #0f172a;
  outline: none;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quick-booking-step input:focus,
.quick-booking-step select:focus,
.quick-booking-step textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.quick-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-booking-full {
  grid-column: 1 / -1;
}
.quick-time-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.quick-find-btn {
  height: 47px;
  white-space: nowrap;
  border-radius: 14px;
}

.quick-past-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.quick-past-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  box-shadow: none;
  padding: 0;
}

.quick-suggested-wrap {
  display: grid;
  gap: 10px;
}
.quick-suggested-title {
  margin: 0;
  font-size: 13px;
  color: #475569;
  font-weight: 800;
}
.quick-suggested-times {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.quick-time-chip {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #0f172a;
  border-radius: 13px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  transition: all .14s ease;
}
.quick-time-chip:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
}
.quick-time-chip.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
}

.quick-alternative-note {
  flex: 1 1 100%;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  color: #9a3412;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.quick-time-chip.alternative {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 112px;
}
.quick-time-chip.alternative small {
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
}
.quick-time-chip.alternative.active small {
  color: rgba(255,255,255,.85);
}
.quick-selected-info {
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  color: #166534;
  border-radius: 15px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}
.quick-booking-msg {
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.quick-booking-msg.error { color: #b91c1c; }
.quick-booking-msg.ok { color: #15803d; }
.quick-booking-submit {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .26);
}
.quick-booking-footnote {
  margin: -6px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.timeline-track {
  cursor: crosshair;
}
.timeline-block {
  cursor: pointer;
}
@media (max-width: 700px) {
  .quick-booking-grid,
  .quick-time-row { grid-template-columns: 1fr; }
}

/* Nova: hovedsiden er nå ren månedsvisning. Booking skjer via popup ved ett klikk på en dag. */
#dashboardView.dashboard {
  grid-template-columns: 1fr;
}

#dashboardView .main {
  max-width: none;
  width: 100%;
}

#dashboardView .side {
  display: none;
}

#dashboardView .calendar {
  min-height: calc(100vh - 140px);
}

#dashboardView .day {
  min-height: 145px;
}

#dashboardView .day::after {
  content: "Klikk for booking";
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
  opacity: 0;
  transition: opacity .15s ease;
}

#dashboardView .day:hover::after {
  opacity: 1;
}

#dashboardView .day.other-month::after,
#dashboardView .day.past-day::after {
  content: "";
}

/* Nova fix: bedre skalering på hovedsiden/topplinje slik at Logg ut aldri forsvinner utenfor skjermen */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#dashboardView .main {
  width: 100%;
  max-width: 100vw;
  padding: 24px clamp(12px, 1.6vw, 24px);
  overflow-x: hidden;
}

#dashboardView .topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

#dashboardView .topbar > div:first-child {
  min-width: 220px;
  flex: 1 1 260px;
}

#dashboardView .month-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  max-width: 100%;
  flex-wrap: wrap;
}

#dashboardView .month-controls h2 {
  margin: 0 4px;
  white-space: nowrap;
  font-size: clamp(16px, 1.25vw, 22px);
}

#dashboardView .month-controls button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: auto;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1;
}

#dashboardView .calendar {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  #dashboardView .topbar {
    align-items: stretch;
  }

  #dashboardView .month-controls {
    justify-content: flex-start;
    width: 100%;
  }

  #dashboardView .month-controls button {
    padding: 8px 10px;
    font-size: 11px;
  }

  #dashboardView .day {
    min-height: 118px;
  }
}


/* Nova fix: booking-popup må ligge over timeline også i ekte browser-fullskjerm */
.modal-backdrop.is-fullscreen-modal,
.timeline-page.is-fullscreen .modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
}

.timeline-page.is-fullscreen .quick-booking-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(92vh, 860px);
}

/* Kapasitetsfarger i månedsvisning: viser hvor fullbooket dagen er */
.day {
  position: relative;
  overflow: hidden;
}

.day:not(.other-month):not(.past-day).capacity-free {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%);
}

.day:not(.other-month):not(.past-day).capacity-medium {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 72%);
}

.day:not(.other-month):not(.past-day).capacity-busy {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
}

.day:not(.other-month):not(.past-day).capacity-full {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 70%);
}

.day:not(.other-month):not(.past-day).capacity-free::before,
.day:not(.other-month):not(.past-day).capacity-medium::before,
.day:not(.other-month):not(.past-day).capacity-busy::before,
.day:not(.other-month):not(.past-day).capacity-full::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #22c55e;
  opacity: 0.85;
  transform-origin: left center;
  transform: scaleX(calc(var(--day-load, 0%) / 100));
}

.day:not(.other-month):not(.past-day).capacity-medium::before { background: #f59e0b; }
.day:not(.other-month):not(.past-day).capacity-busy::before { background: #f97316; }
.day:not(.other-month):not(.past-day).capacity-full::before { background: #ef4444; transform: scaleX(1); }

.day-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.day-load-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  box-shadow: 0 3px 10px rgba(15,23,42,0.04);
}

.day.capacity-medium .day-load-badge,
.day.capacity-busy .day-load-badge,
.day.capacity-full .day-load-badge {
  display: inline-flex;
}

.day.capacity-medium .day-load-badge { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.day.capacity-busy .day-load-badge { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.day.capacity-full .day-load-badge { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

.day.capacity-free:hover,
.day.capacity-medium:hover,
.day.capacity-busy:hover,
.day.capacity-full:hover {
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.16), 0 8px 18px rgba(15,23,42,0.08);
}

.day.selected .day-load-badge,
.day.today .day-load-badge {
  background: rgba(255,255,255,0.88);
}

/* Public booking refresh - mer imøtekommende og lik booking-popupen */
#publicBookingView.booking-view {
  padding: 28px;
  background:
    radial-gradient(circle at 18% 15%, rgba(59,130,246,.30), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(249,115,22,.16), transparent 30%),
    linear-gradient(135deg, #162237 0%, #1f2937 52%, #111827 100%);
}

#publicBookingView .booking-shell {
  width: min(1180px, 100%);
  gap: 28px;
  grid-template-columns: .92fr 1.08fr;
}

#publicBookingView .booking-brand-panel {
  border-radius: 30px;
  min-height: 610px;
  padding: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.22);
}

#publicBookingView .booking-welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 13px;
}

#publicBookingView .booking-brand-top {
  margin-bottom: 34px;
}

#publicBookingView .booking-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
}

#publicBookingView .booking-brand-panel h1 {
  max-width: 460px;
  font-size: clamp(38px, 4.3vw, 58px);
  letter-spacing: -.06em;
}

#publicBookingView .booking-brand-panel p {
  max-width: 470px;
  color: rgba(241,245,249,.88);
}

#publicBookingView .booking-trust-item {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
  color: rgba(255,255,255,.92);
}

#publicBookingView .booking-card {
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 32px 90px rgba(15,23,42,.28);
}

#publicBookingView .booking-card h2 {
  font-size: 32px;
}

#publicBookingView .booking-card-subtitle {
  font-size: 15px;
  color: #64748b;
}

#publicBookingView .booking-close-btn {
  background: #f1f5f9;
  color: #0f172a;
}

#publicBookingView .booking-progress {
  margin-top: 22px;
}

#publicBookingView .booking-progress span {
  height: 5px;
  background: #e7eefb;
}

#publicBookingView .booking-progress span.active::after {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

#publicBookingView .booking-grid {
  gap: 14px;
}

#publicBookingView .booking-service-card,
#publicBookingView .booking-date-card,
#publicBookingView .booking-slot-card {
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe4f0;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

#publicBookingView .booking-service-card:hover,
#publicBookingView .booking-date-card:hover,
#publicBookingView .booking-slot-card:hover,
#publicBookingView .booking-service-card.selected,
#publicBookingView .booking-date-card.selected,
#publicBookingView .booking-slot-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 16px 36px rgba(37,99,235,.14);
}

#publicBookingView .booking-input-grid {
  gap: 16px;
}

#publicBookingView .booking-field label {
  font-size: 14px;
}

#publicBookingView .booking-field input,
#publicBookingView .booking-field textarea {
  border-radius: 17px;
  padding: 15px 16px;
  background: #fff;
  border-color: #d6e0ee;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}

#publicBookingView .booking-field textarea {
  min-height: 96px;
}

#publicBookingView .booking-section-note {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 13px;
}

#publicBookingView .booking-primary-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 18px 34px rgba(37,99,235,.24);
}

#publicBookingView .booking-secondary-btn {
  background: #edf2f7;
}

#publicBookingView .booking-choice-panel {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 16px;
}

#publicBookingView .booking-loading-card {
  border-radius: 18px;
}

@media(max-width:900px){
  #publicBookingView .booking-shell{grid-template-columns:1fr;}
  #publicBookingView .booking-brand-panel{min-height:auto;}
}

/* Nova: lysere og enklere public booking - matcher popup-flowen */
#publicBookingView.booking-view {
  background:
    radial-gradient(circle at 18% 12%, rgba(96,165,250,.22), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(37,99,235,.12), transparent 30%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 46%, #ffffff 100%);
  padding: 28px;
}

#publicBookingView .booking-shell {
  width: min(1160px, 100%);
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
}

#publicBookingView .booking-brand-panel {
  min-height: 620px;
  background: linear-gradient(145deg, rgba(30,58,95,.92), rgba(51,65,85,.86));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 28px 80px rgba(15,23,42,.22);
}

#publicBookingView .booking-brand-panel h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  letter-spacing: -.06em;
}

#publicBookingView .booking-brand-panel p {
  color: rgba(241,245,249,.9);
}

#publicBookingView .booking-trust-item {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.20);
}

#publicBookingView .booking-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15,23,42,.16);
  padding: 32px;
}

#publicBookingView .booking-card h2 {
  font-size: 32px;
  color: #0f172a;
}

#publicBookingView .booking-card-subtitle,
#publicBookingView .booking-meta-note,
#publicBookingView .booking-field small {
  color: #64748b;
}

#publicBookingView .booking-progress span {
  background: #e6eefb;
  height: 5px;
}

#publicBookingView .booking-progress span.active::after {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

#publicBookingView .booking-service-card,
#publicBookingView .booking-date-card,
#publicBookingView .booking-slot-card,
#publicBookingView .booking-loading-card {
  background: rgba(255,255,255,.94);
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}

#publicBookingView .booking-service-card:hover,
#publicBookingView .booking-date-card:hover,
#publicBookingView .booking-slot-card:hover,
#publicBookingView .booking-service-card.selected,
#publicBookingView .booking-date-card.selected,
#publicBookingView .booking-slot-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 18px 42px rgba(37,99,235,.13);
  background: #ffffff;
}

#publicBookingView .booking-field input,
#publicBookingView .booking-field select,
#publicBookingView .booking-field textarea {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
  min-height: 48px;
}

#publicBookingView .booking-field input:focus,
#publicBookingView .booking-field select:focus,
#publicBookingView .booking-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.13), 0 8px 22px rgba(15,23,42,.05);
}

#publicBookingView .public-simple-booking-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248,250,252,.82);
  border: 1px solid #e6eefb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

#publicBookingView .public-time-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

#publicBookingView .booking-mini-btn {
  min-height: 48px;
  border-radius: 15px;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
  white-space: nowrap;
}

#publicBookingView .public-nearest-grid {
  grid-column: 1 / -1;
  margin-top: 16px;
}

#publicBookingView .booking-result-title {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  color: #334155;
  font-size: 15px;
  font-weight: 850;
}

#publicBookingView .booking-slot-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

#publicBookingView .booking-slot-card .booking-slot-employees {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

#publicBookingView .booking-slot-card.selected {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
}

#publicBookingView .booking-slot-card.selected .booking-slot-employees,
#publicBookingView .booking-slot-card.selected small {
  color: rgba(255,255,255,.86);
}

#publicBookingView .booking-primary-btn {
  border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 16px 34px rgba(37,99,235,.25);
}

#publicBookingView .booking-secondary-btn,
#publicBookingView .booking-close-btn {
  background: #eef4fb;
}

@media (max-width: 900px) {
  #publicBookingView .booking-shell { grid-template-columns: 1fr; }
  #publicBookingView .booking-brand-panel { min-height: auto; }
}

@media (max-width: 640px) {
  #publicBookingView.booking-view { padding: 16px; }
  #publicBookingView .booking-card { padding: 22px; border-radius: 24px; }
  #publicBookingView .public-time-search-row { grid-template-columns: 1fr; }
  #publicBookingView .booking-mini-btn { width: 100%; }
}


/* Clean custom time input: avoids the browser's native time dropdown */
.clean-time-input{
  appearance:textfield;
  -webkit-appearance:none;
}
.clean-time-input::-webkit-calendar-picker-indicator{
  display:none;
}

/* Nova: neste kunde øverst i dagsvisning/fullskjerm */
.timeline-next-customer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.timeline-next-time {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.timeline-next-time span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  opacity: .86;
}

.timeline-next-time strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.timeline-next-main {
  flex: 1;
  min-width: 0;
}

.timeline-next-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 3px;
}

.timeline-next-main strong {
  display: block;
  color: #061333;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-next-main small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-next-action {
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.timeline-next-action:hover {
  transform: translateY(-1px);
}

.timeline-page.is-fullscreen .timeline-next-customer-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 8px;
}

.timeline-page.is-fullscreen .booking-detail-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(92vh, 860px);
}

.timeline-page.is-fullscreen .timeline-block .timeline-customer-line {
  font-size: 15px !important;
  font-weight: 950 !important;
}

@media (max-width: 760px) {
  .timeline-next-customer-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .timeline-next-time {
    width: fit-content;
  }
  .timeline-next-action {
    width: 100%;
  }
}

/* Nova: dashboard-topp med raske nøkkeltall på månedsvisningen */
.dashboard-top-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

.dashboard-info-card {
  position: relative;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f5;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dashboard-info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #3b82f6, #4f46e5);
  opacity: 0.9;
}

.dashboard-info-kicker {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 5px;
}

.dashboard-info-card strong {
  display: block;
  color: #071433;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-info-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-info-card-next.is-clickable {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-info-card-next.is-clickable:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
}

.dashboard-info-tooltip {
  position: fixed;
  z-index: 99999;
  display: none;
  width: min(360px, calc(100vw - 28px));
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5ebf4;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.20);
  color: #0f172a;
  pointer-events: none;
}

.dashboard-info-tooltip-title {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
  margin-bottom: 10px;
}

.dashboard-info-tooltip-row {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid #eef2f7;
}

.dashboard-info-tooltip-row strong,
.dashboard-tooltip-note strong {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-info-tooltip-row span,
.dashboard-tooltip-note span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-tooltip-note {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

@media (max-width: 1100px) {
  .dashboard-top-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .dashboard-top-info {
    grid-template-columns: 1fr;
  }
}

/* Nova: mørk venstremeny på månedsoversikten – samme innhold, mer SaaS/premium uttrykk */
#dashboardView.dashboard {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 70, 229, 0.20), transparent 26%),
    linear-gradient(135deg, #060b16 0%, #0f172a 42%, #111827 100%);
}

#dashboardView .dashboard-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 16px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
  border-right: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow: 22px 0 60px rgba(2, 6, 23, 0.25);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 4;
}

.dashboard-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.dashboard-nav-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.dashboard-nav-brand span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-nav-links {
  display: grid;
  gap: 8px;
}

.dashboard-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.dashboard-nav-link span {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  font-size: 13px;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(147, 197, 253, 0.24);
  transform: translateX(2px);
}

.dashboard-nav-link.active span {
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  color: #ffffff;
}

.dashboard-nav-footer {
  margin-top: auto;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.dashboard-nav-footer span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.dashboard-nav-footer strong {
  color: #f8fafc;
  font-size: 14px;
}

#dashboardView .main {
  background: #f3f6fb;
  min-height: 100vh;
  border-radius: 30px 0 0 30px;
  box-shadow: -28px 0 80px rgba(2, 6, 23, 0.28);
}

#dashboardView .topbar {
  padding: 4px 0 10px;
}

#dashboardView .topbar h1 {
  color: #071433;
}

#dashboardView .calendar {
  border: 1px solid #dbe7f5;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

@media (max-width: 980px) {
  #dashboardView.dashboard {
    grid-template-columns: 1fr;
  }

  #dashboardView .dashboard-nav {
    position: relative;
    height: auto;
    padding: 12px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .dashboard-nav-brand {
    padding: 4px 12px 4px 4px;
    border-bottom: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    flex: 0 0 auto;
  }

  .dashboard-nav-links {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
  }

  .dashboard-nav-link {
    width: auto;
    white-space: nowrap;
  }

  .dashboard-nav-footer {
    display: none;
  }

  #dashboardView .main {
    border-radius: 24px 24px 0 0;
    box-shadow: none;
  }
}

/* =========================================================
   Iseld animated landing page
   Added 2026-05-06: marketing/front page before login
   ========================================================= */
.landing-page {
  min-height: 100vh;
  color: #eef6ff;
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 120, 255, 0.32), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(91, 65, 245, 0.24), transparent 30%),
    linear-gradient(135deg, #06101f 0%, #0b1729 42%, #101827 100%);
  overflow-x: hidden;
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 70%);
}

.landing-nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.landing-brand,
.landing-actions,
.landing-links {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.landing-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #39bf73, #387bc5 70%, #5b4df5);
  box-shadow: 0 12px 28px rgba(56, 123, 197, 0.35);
}

.landing-links {
  gap: 28px;
}

.landing-links a {
  color: rgba(238,246,255,0.78);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  transition: color .2s ease, transform .2s ease;
}

.landing-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.landing-actions {
  gap: 10px;
}

.landing-btn {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.landing-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #5b4df5);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px rgba(59,130,246,0.28);
}

.landing-btn.ghost {
  color: #eef6ff;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px);
}

.landing-btn.large {
  padding: 14px 22px;
  border-radius: 16px;
}

.landing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.32);
}

.landing-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 56px;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  color: #cfe2ff;
  font-weight: 850;
  margin-bottom: 26px;
}

.landing-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #39bf73;
  box-shadow: 0 0 0 6px rgba(57,191,115,0.12);
}

.landing-hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
  margin: 0 0 24px;
  letter-spacing: -0.075em;
  color: #fff;
}

.landing-hero h1::after {
  content: "";
  display: block;
  width: 210px;
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, transparent);
}

.landing-hero p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(238,246,255,0.78);
  margin: 0 0 30px;
}

.landing-hero-buttons,
.landing-proof-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-proof-row {
  margin-top: 34px;
  color: rgba(238,246,255,0.72);
  font-size: 13px;
  font-weight: 750;
}

.landing-proof-row span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

.landing-hero-visual {
  position: relative;
  min-height: 520px;
}

.mock-window {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(5, 12, 25, 0.78);
  box-shadow: 0 34px 90px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  animation: landingFloat 7s ease-in-out infinite;
}

.mock-sidebar {
  background: rgba(2, 7, 18, 0.55);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: rgba(238,246,255,0.68);
  font-size: 13px;
  font-weight: 700;
}

.mock-logo {
  font-weight: 900;
  color: #fff;
  margin-bottom: 22px;
}

.mock-sidebar span {
  padding: 11px 12px;
  border-radius: 12px;
}

.mock-sidebar .mock-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,0.26), rgba(91,77,245,0.22));
}

.mock-calendar {
  padding: 28px;
}

.mock-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.mock-topline strong {
  font-size: 20px;
}

.mock-topline span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(238,246,255,0.82);
}

.mock-grid {
  min-height: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 100% 33.3%, 33.3% 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
}

.mock-event {
  border-radius: 14px;
  padding: 14px;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.mock-event.blue { background: linear-gradient(135deg, #2563eb, #387bc5); }
.mock-event.green { background: linear-gradient(135deg, #39bf73, #1d9d79); }
.mock-event.purple { background: linear-gradient(135deg, #5b4df5, #7c3aed); }
.mock-event.orange { background: linear-gradient(135deg, #fb923c, #f59e0b); }

.floating-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 18px 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.34);
  font-weight: 900;
  animation: landingFloat 6s ease-in-out infinite;
}

.floating-card span {
  display: block;
  margin-top: 6px;
  color: #a7c8ff;
  font-size: 13px;
}

.floating-card.one { right: -18px; bottom: 44px; transform: rotate(5deg); }
.floating-card.two { left: -18px; top: 38px; animation-delay: -2s; }

.landing-section {
  padding: 76px 0;
}

.landing-section-head {
  text-align: center;
  margin-bottom: 34px;
}

.landing-section-head span,
.landing-demo-strip span {
  color: #86b7ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.landing-section-head h2,
.landing-demo-strip h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  margin: 10px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.how-steps > div,
.landing-demo-strip {
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}

.feature-card {
  min-height: 220px;
  border-radius: 24px;
  padding: 24px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96,165,250,0.55);
  background: rgba(255,255,255,0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.16);
  color: #9ec5ff;
  margin-bottom: 22px;
}

.feature-card h3,
.how-steps h3 {
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.feature-card p,
.how-steps p {
  color: rgba(238,246,255,0.68);
  line-height: 1.55;
  margin: 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-steps > div {
  border-radius: 24px;
  padding: 26px;
}

.how-steps strong {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #5b4df5);
  margin-bottom: 18px;
}

.landing-demo-strip {
  margin: 60px 0 90px;
  border-radius: 30px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@keyframes landingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.reveal-on-load {
  opacity: 0;
  transform: translateY(18px);
  animation: landingReveal .75s ease forwards;
}

.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .26s; }

@keyframes landingReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .landing-links { display: none; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 44px; }
  .landing-hero-visual { min-height: 440px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .landing-nav { width: min(100% - 24px, 1180px); }
  .landing-main { width: min(100% - 24px, 1180px); }
  .landing-actions { gap: 8px; }
  .landing-btn { padding: 10px 12px; }
  .landing-hero { min-height: auto; }
  .mock-window { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .landing-demo-strip { flex-direction: column; align-items: flex-start; }
}

/* Updated realistic month preview on landing page */
.mock-window-month {
  grid-template-columns: 172px 1fr;
  min-height: 430px;
  max-width: 720px;
  margin-left: auto;
  background: #eef3fb;
  color: #071226;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 90px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.35);
}

.mock-window-month .mock-sidebar {
  background: linear-gradient(180deg, #071225, #020817);
  color: rgba(238,246,255,0.78);
  padding: 20px 14px;
  gap: 12px;
}

.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 4px;
}

.mock-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #39bf73, #3b82f6, #5b4df5);
  color: white;
  font-weight: 900;
}

.mock-sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.mock-sidebar-brand span {
  display: block;
  padding: 0;
  color: #7dd3fc;
  font-size: 9px;
  margin-top: 4px;
}

.mock-window-month .mock-sidebar span {
  border-radius: 12px;
  padding: 11px 12px;
}

.mock-window-month .mock-sidebar .mock-active {
  background: rgba(59,130,246,0.22);
  border: 1px solid rgba(96,165,250,0.35);
}

.mock-dashboard {
  padding: 20px;
  overflow: hidden;
}

.mock-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.mock-dashboard-top strong {
  display: block;
  font-size: 24px;
  color: #071226;
}

.mock-dashboard-top span {
  display: block;
  color: #64748b;
  font-size: 10px;
  margin-top: 5px;
}

.mock-month-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #071226;
  font-size: 14px;
  white-space: nowrap;
}

.mock-month-controls button {
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #5b4df5;
  color: #fff;
  font-weight: 900;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mock-stat-row div {
  min-height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #d9e5f5;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
  padding: 10px 12px;
  border-left: 4px solid #4f7cff;
}

.mock-stat-row span,
.mock-stat-row small {
  display: block;
  color: #50627c;
  font-size: 9px;
  font-weight: 800;
}

.mock-stat-row strong {
  display: block;
  color: #071226;
  font-size: 14px;
  margin: 3px 0 2px;
}

.mock-month-calendar {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d9e5f5;
  background: #fff;
}

.mock-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #071226;
  color: #fff;
  font-size: 9px;
}

.mock-weekdays b {
  padding: 9px 7px;
}

.mock-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 78px;
}

.mock-month-grid > div {
  position: relative;
  border-right: 1px solid #dfe7f2;
  border-bottom: 1px solid #dfe7f2;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  overflow: hidden;
}

.mock-month-grid > div.past {
  background: #fff4f4;
  color: #d43c64;
}

.mock-month-grid > div.busy {
  background: linear-gradient(180deg, #fff4f4, #fffafa);
}

.mock-month-grid > div.warn {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.mock-month-grid > div.selected {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #f1f8ff;
}

.mock-month-grid b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #071226;
}

.mock-month-grid .past b {
  color: #d43c64;
}

.mock-month-grid em {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-style: normal;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 6px;
  font-weight: 900;
}

.mock-pill {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-pill.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  color: #0755b8;
}

.mock-pill.red {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

@media (max-width: 900px) {
  .mock-window-month { grid-template-columns: 1fr; }
  .mock-window-month .mock-sidebar { display: none; }
  .mock-stat-row { grid-template-columns: 1fr; }
  .mock-weekdays, .mock-month-grid { min-width: 620px; }
  .mock-month-calendar { overflow-x: auto; }
}

/* Nova: public booking premium look - matcher forsiden bedre uten å endre funksjoner */
#publicBookingView.booking-view {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(59,130,246,.34), transparent 32%),
    radial-gradient(circle at 86% 74%, rgba(99,102,241,.28), transparent 34%),
    linear-gradient(135deg, #0b1930 0%, #101c35 46%, #171948 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  padding: 34px;
}

#publicBookingView.booking-view::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(5,10,30,.18) 72%, rgba(5,10,30,.46) 100%),
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 36%, rgba(99,102,241,.08));
}

#publicBookingView .booking-shell {
  width: min(1160px, 100%);
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
}

#publicBookingView .booking-brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 30px;
  padding: 38px;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.30), transparent 35%),
    linear-gradient(145deg, rgba(15,31,58,.96), rgba(25,32,84,.88));
  border: 1px solid rgba(148,163,184,.38);
  box-shadow: 0 34px 95px rgba(2,6,23,.38);
}

#publicBookingView .booking-brand-panel::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 260px;
  width: 190px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, transparent);
  opacity: .92;
}

#publicBookingView .booking-brand-top {
  margin-bottom: 50px;
  gap: 14px;
}

#publicBookingView .booking-brand-logo {
  width: 112px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#publicBookingView .booking-brand-mark {
  display: none;
}

#publicBookingView .booking-welcome-chip {
  margin-bottom: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

#publicBookingView .booking-brand-panel h1 {
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 470px;
  margin-bottom: 26px;
}

#publicBookingView .booking-brand-panel p {
  color: rgba(226,232,240,.88);
  font-size: 17px;
  max-width: 460px;
  margin-top: 34px;
}

#publicBookingView .booking-trust-row {
  gap: 12px;
  margin-top: 38px;
}

#publicBookingView .booking-trust-item {
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border-color: rgba(148,163,184,.30);
  color: rgba(241,245,249,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

#publicBookingView .booking-card {
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 34px 95px rgba(2,6,23,.26);
}

#publicBookingView .booking-card h2 {
  font-size: 34px;
  letter-spacing: -.045em;
}

#publicBookingView .booking-progress span.active::after,
#publicBookingView .booking-primary-btn,
#publicBookingView .booking-slot-card.selected {
  background: linear-gradient(135deg, #3b82f6, #5b5ff4 58%, #6d5dfc);
}

#publicBookingView .booking-service-card,
#publicBookingView .booking-date-card,
#publicBookingView .booking-slot-card,
#publicBookingView .booking-loading-card,
#publicBookingView .public-simple-booking-panel,
#publicBookingView .booking-choice-panel {
  border-color: #dbe7f5;
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
}

#publicBookingView .booking-service-card:hover,
#publicBookingView .booking-date-card:hover,
#publicBookingView .booking-slot-card:hover,
#publicBookingView .booking-service-card.selected,
#publicBookingView .booking-date-card.selected,
#publicBookingView .booking-slot-card.selected {
  border-color: #5b5ff4;
  box-shadow: 0 18px 42px rgba(79,70,229,.16);
}

#publicBookingView .booking-close-btn {
  background: #eef4fb;
  color: #0f172a;
}

@media (max-width: 900px) {
  #publicBookingView .booking-shell { grid-template-columns: 1fr; }
  #publicBookingView .booking-brand-panel { min-height: auto; }
}

@media (max-width: 640px) {
  #publicBookingView.booking-view { padding: 16px; }
  #publicBookingView .booking-brand-panel::after { left: 24px; top: 230px; width: 150px; }
  #publicBookingView .booking-brand-logo { width: 96px; }
}


/* Nova: Main Hub visuelt løftet til samme premium-følelse som dashboardet. Kun styling, ingen funksjoner endret. */
#mainHubView.main-hub {
  min-height: 100vh;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 8% 0%, rgba(71, 118, 255, 0.20), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(94, 77, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 44%, #f5f7fb 100%);
  color: #07142f;
  box-sizing: border-box;
}

#mainHubView .main-hub-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  padding: clamp(18px, 1.8vw, 28px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

#mainHubView .mainhub-hero-card {
  background:
    linear-gradient(135deg, rgba(10, 19, 43, 0.98), rgba(29, 50, 92, 0.94)),
    radial-gradient(circle at 12% 0%, rgba(77, 116, 255, 0.28), transparent 34%);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

#mainHubView .mainhub-hero-card .muted,
#mainHubView .mainhub-hero-card #mainHubMsg {
  color: rgba(226, 232, 240, 0.82);
}

#mainHubView .main-hub-topbar {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
}

#mainHubView .main-hub-topbar h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
}

#mainHubView .main-hub-topbar p {
  margin: 0;
  font-weight: 600;
}

#mainHubView .main-hub-actions button,
#mainHubView .main-hub-form-grid button {
  min-height: 40px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

#mainHubView .main-hub-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

#mainHubView .main-hub-stat {
  position: relative;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-left: 5px solid #4f6bff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

#mainHubView .mainhub-hero-card .main-hub-stat {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  border-left-color: #5b6cff;
  color: #fff;
}

#mainHubView .main-hub-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

#mainHubView .mainhub-hero-card .main-hub-stat span {
  color: rgba(226, 232, 240, 0.82);
}

#mainHubView .main-hub-stat strong {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.04em;
}

#mainHubView .main-hub-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

#mainHubView .main-hub-form-grid {
  margin-top: 18px;
  gap: 14px;
}

#mainHubView .main-hub-form-grid label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

#mainHubView .main-hub-form-grid input,
#mainHubView .main-hub-form-grid select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

#mainHubView .main-hub-form-grid input:focus,
#mainHubView .main-hub-form-grid select:focus {
  outline: none;
  border-color: #4f6bff;
  box-shadow: 0 0 0 4px rgba(79, 107, 255, 0.12);
}

#mainHubView .main-hub-table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

#mainHubView .main-hub-table th {
  background: #071225;
  color: #fff;
  padding: 14px 12px;
  font-size: 13px;
}

#mainHubView .main-hub-table td {
  background: rgba(255,255,255,0.92);
  padding: 13px 12px;
  border-color: #e5edf7;
}

#mainHubView .main-hub-table tr:hover td {
  background: #f5f9ff;
}

#mainHubView .badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  #mainHubView .main-hub-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 700px) {
  #mainHubView .main-hub-topbar { align-items: flex-start; flex-direction: column; }
  #mainHubView .main-hub-grid { grid-template-columns: 1fr; }
  #mainHubView .main-hub-actions { width: 100%; }
  #mainHubView .main-hub-actions button { flex: 1 1 100%; }
}


/* Bransje-demo: egne nettsidefølelser per look */
#publicBookingView {
  --booking-theme-accent: #635bff;
  --booking-theme-accent-2: #3b82f6;
  --booking-theme-bg-a: rgba(59,130,246,.26);
  --booking-theme-bg-b: rgba(99,91,255,.22);
  --industry-card-tint: rgba(255,255,255,.15);
  --industry-panel-glow: rgba(99,91,255,.18);
}

#publicBookingView.theme-iseld {
  --booking-theme-accent: #635bff;
  --booking-theme-accent-2: #3b82f6;
  --booking-theme-bg-a: rgba(59,130,246,.28);
  --booking-theme-bg-b: rgba(99,91,255,.24);
  --industry-card-tint: rgba(255,255,255,.15);
  --industry-panel-glow: rgba(99,91,255,.18);
}

#publicBookingView.theme-salon {
  --booking-theme-accent: #d946ef;
  --booking-theme-accent-2: #fb7185;
  --booking-theme-bg-a: rgba(244,114,182,.30);
  --booking-theme-bg-b: rgba(168,85,247,.24);
  --industry-card-tint: rgba(255,245,250,.20);
  --industry-panel-glow: rgba(244,114,182,.24);
}

#publicBookingView.theme-workshop {
  --booking-theme-accent: #f97316;
  --booking-theme-accent-2: #f59e0b;
  --booking-theme-bg-a: rgba(249,115,22,.25);
  --booking-theme-bg-b: rgba(71,85,105,.28);
  --industry-card-tint: rgba(255,255,255,.10);
  --industry-panel-glow: rgba(249,115,22,.22);
}

#publicBookingView.theme-electrician {
  --booking-theme-accent: #facc15;
  --booking-theme-accent-2: #38bdf8;
  --booking-theme-bg-a: rgba(250,204,21,.22);
  --booking-theme-bg-b: rgba(56,189,248,.24);
  --industry-card-tint: rgba(255,255,255,.13);
  --industry-panel-glow: rgba(250,204,21,.22);
}

#publicBookingView.theme-plumber {
  --booking-theme-accent: #06b6d4;
  --booking-theme-accent-2: #2563eb;
  --booking-theme-bg-a: rgba(6,182,212,.26);
  --booking-theme-bg-b: rgba(37,99,235,.24);
  --industry-card-tint: rgba(240,253,250,.16);
  --industry-panel-glow: rgba(6,182,212,.22);
}

#publicBookingView.booking-view {
  padding-top: 92px !important;
  transition: background .35s ease;
  background:
    radial-gradient(circle at 18% 14%, var(--booking-theme-bg-a), transparent 33%),
    radial-gradient(circle at 82% 78%, var(--booking-theme-bg-b), transparent 34%),
    linear-gradient(135deg, rgba(2,6,23,.96), rgba(15,23,42,.90)) !important;
}

#publicBookingView.theme-salon.booking-view {
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.20), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(244,114,182,.34), transparent 32%),
    linear-gradient(135deg, #2a153a 0%, #582a72 46%, #121834 100%) !important;
}

#publicBookingView.theme-workshop.booking-view {
  background:
    radial-gradient(circle at 15% 18%, rgba(249,115,22,.24), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(148,163,184,.18), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #111827 0%, #1f2937 42%, #0f172a 100%) !important;
}

#publicBookingView.theme-electrician.booking-view {
  background:
    radial-gradient(circle at 18% 14%, rgba(250,204,21,.24), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(56,189,248,.24), transparent 33%),
    linear-gradient(135deg, #071426 0%, #0f2c52 48%, #09111f 100%) !important;
}

#publicBookingView.theme-plumber.booking-view {
  background:
    radial-gradient(circle at 16% 16%, rgba(6,182,212,.27), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(37,99,235,.27), transparent 34%),
    linear-gradient(135deg, #06202f 0%, #083c57 45%, #081827 100%) !important;
}


#publicBookingView .booking-theme-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  color: rgba(255,255,255,.96);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.015em;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
  white-space: nowrap;
}

#publicBookingView .booking-theme-switcher {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#publicBookingView .theme-preview-btn {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

#publicBookingView .theme-preview-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.15);
}

#publicBookingView .theme-preview-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--booking-theme-accent-2), var(--booking-theme-accent));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

#publicBookingView .booking-brand-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 10%, var(--industry-panel-glow), transparent 34%),
    linear-gradient(145deg, var(--industry-card-tint), rgba(255,255,255,.07)) !important;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

#publicBookingView .booking-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .48;
  transition: opacity .35s ease, background .35s ease;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

#publicBookingView.theme-salon .booking-brand-panel::before {
  opacity: .55;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 14%, rgba(255,255,255,.18) 0 1.5px, transparent 3px),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 44%);
  background-size: 90px 90px, 120px 120px, auto;
}

#publicBookingView.theme-workshop .booking-brand-panel::before {
  opacity: .36;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 25% 20%, rgba(249,115,22,.18), transparent 30%);
}

#publicBookingView.theme-electrician .booking-brand-panel::before {
  opacity: .42;
  background:
    linear-gradient(90deg, rgba(250,204,21,.15) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56,189,248,.10) 1px, transparent 1px);
  background-size: 52px 52px;
}

#publicBookingView.theme-plumber .booking-brand-panel::before {
  opacity: .42;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(6,182,212,.24), transparent 34%),
    radial-gradient(ellipse at 80% 74%, rgba(125,211,252,.18), transparent 36%),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 70px 70px;
}

#publicBookingView .booking-brand-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 110px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  z-index: -1;
  background: radial-gradient(circle, var(--booking-theme-accent), transparent 68%);
  opacity: .20;
  filter: blur(4px);
  transition: background .35s ease, opacity .35s ease;
}

#publicBookingView .booking-brand-panel h1::before {
  content: "";
  display: block;
  width: 180px;
  height: 6px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--booking-theme-accent), transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--booking-theme-accent) 55%, transparent);
}

#publicBookingView .booking-welcome-chip {
  border-color: color-mix(in srgb, var(--booking-theme-accent) 46%, rgba(255,255,255,.18));
}

#publicBookingView .booking-progress span.active::after,
#publicBookingView .booking-progress span.done::after,
#publicBookingView .booking-primary-btn,
#publicBookingView .booking-slot-card.recommended {
  background: linear-gradient(135deg, var(--booking-theme-accent-2), var(--booking-theme-accent)) !important;
}

#publicBookingView .booking-service-card:hover,
#publicBookingView .booking-service-card.selected {
  border-color: var(--booking-theme-accent) !important;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--booking-theme-accent) 18%, transparent) !important;
}

@media (max-width: 900px) {
  #publicBookingView.booking-view {
    padding-top: 32px !important;
  }

  #publicBookingView .booking-theme-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin: 0 auto 10px;
  }

  #publicBookingView .booking-theme-switcher {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 16px;
    border-radius: 24px;
  }
}


/* Innlogget dashboard-tema */
#dashboardView {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
  --app-theme-sidebar-a: #081225;
  --app-theme-sidebar-b: #111b3f;
  --app-theme-bg-a: rgba(59,130,246,.12);
  --app-theme-bg-b: rgba(99,91,255,.10);
  --app-theme-soft: rgba(99,91,255,.10);
}

#dashboardView.app-theme-iseld {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
  --app-theme-sidebar-a: #081225;
  --app-theme-sidebar-b: #111b3f;
  --app-theme-bg-a: rgba(59,130,246,.12);
  --app-theme-bg-b: rgba(99,91,255,.10);
  --app-theme-soft: rgba(99,91,255,.10);
}

#dashboardView.app-theme-salon {
  --app-theme-accent: #d946ef;
  --app-theme-accent-2: #fb7185;
  --app-theme-sidebar-a: #25132f;
  --app-theme-sidebar-b: #4a1d5f;
  --app-theme-bg-a: rgba(217,70,239,.13);
  --app-theme-bg-b: rgba(251,113,133,.10);
  --app-theme-soft: rgba(217,70,239,.10);
}

#dashboardView.app-theme-workshop {
  --app-theme-accent: #f97316;
  --app-theme-accent-2: #f59e0b;
  --app-theme-sidebar-a: #111827;
  --app-theme-sidebar-b: #2f343d;
  --app-theme-bg-a: rgba(249,115,22,.12);
  --app-theme-bg-b: rgba(100,116,139,.10);
  --app-theme-soft: rgba(249,115,22,.10);
}

#dashboardView.app-theme-electrician {
  --app-theme-accent: #facc15;
  --app-theme-accent-2: #38bdf8;
  --app-theme-sidebar-a: #071426;
  --app-theme-sidebar-b: #10345f;
  --app-theme-bg-a: rgba(250,204,21,.11);
  --app-theme-bg-b: rgba(56,189,248,.11);
  --app-theme-soft: rgba(250,204,21,.10);
}

#dashboardView.app-theme-plumber {
  --app-theme-accent: #06b6d4;
  --app-theme-accent-2: #2563eb;
  --app-theme-sidebar-a: #06202f;
  --app-theme-sidebar-b: #083c57;
  --app-theme-bg-a: rgba(6,182,212,.12);
  --app-theme-bg-b: rgba(37,99,235,.11);
  --app-theme-soft: rgba(6,182,212,.10);
}

#dashboardView.dashboard {
  background:
    radial-gradient(circle at 20% 10%, var(--app-theme-bg-a), transparent 30%),
    radial-gradient(circle at 80% 80%, var(--app-theme-bg-b), transparent 34%),
    #f3f7fb !important;
}

#dashboardView .dashboard-nav {
  background:
    radial-gradient(circle at 25% 8%, color-mix(in srgb, var(--app-theme-accent) 22%, transparent), transparent 28%),
    linear-gradient(180deg, var(--app-theme-sidebar-a), var(--app-theme-sidebar-b)) !important;
  border-right: 1px solid color-mix(in srgb, var(--app-theme-accent) 18%, rgba(255,255,255,.10));
}

#dashboardView .dashboard-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
}

#dashboardView.app-theme-salon .dashboard-nav::before {
  background:
    radial-gradient(circle at 22% 16%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.13) 0 1.5px, transparent 3px);
  background-size: 90px 90px, 120px 120px;
}

#dashboardView.app-theme-workshop .dashboard-nav::before {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 16px);
}

#dashboardView.app-theme-electrician .dashboard-nav::before {
  background:
    linear-gradient(90deg, rgba(250,204,21,.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56,189,248,.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

#dashboardView.app-theme-plumber .dashboard-nav::before {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(6,182,212,.20), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 64px 64px;
}

#dashboardView .dashboard-nav > * {
  position: relative;
  z-index: 1;
}

#dashboardView .dashboard-theme-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 14px 18px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
}

#dashboardView .dashboard-theme-btn {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.84);
  font-size: 11px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

#dashboardView .dashboard-theme-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.13);
}

#dashboardView .dashboard-theme-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent));
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

#dashboardView .dashboard-nav-link.active,
#dashboardView .dashboard-nav-link:hover {
  border-color: color-mix(in srgb, var(--app-theme-accent) 48%, rgba(255,255,255,.18)) !important;
  background: color-mix(in srgb, var(--app-theme-accent) 24%, rgba(255,255,255,.06)) !important;
}

#dashboardView .dashboard-nav-link span,
#dashboardView .dashboard-nav-footer span {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent)) !important;
}

#dashboardView .topbar,
#dashboardView .dashboard-top-info > *,
#dashboardView .card,
#dashboardView .settings-card {
  border-color: color-mix(in srgb, var(--app-theme-accent) 20%, #dbeafe) !important;
}

#dashboardView .dashboard-top-info > * {
  box-shadow: 0 18px 45px color-mix(in srgb, var(--app-theme-accent) 10%, transparent);
}

#dashboardView .dashboard-top-info > *::before {
  background: linear-gradient(180deg, var(--app-theme-accent-2), var(--app-theme-accent)) !important;
}

#dashboardView .month-controls button:not(.danger),
#dashboardView button.primary,
#dashboardView .primary {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent)) !important;
}

#dashboardView .calendar-head {
  background: linear-gradient(135deg, #0f172a, color-mix(in srgb, var(--app-theme-accent) 22%, #0f172a)) !important;
}

#dashboardView .calendar-day.selected,
#dashboardView .day-cell.selected {
  border-color: var(--app-theme-accent) !important;
  box-shadow: inset 0 0 0 2px var(--app-theme-accent), 0 18px 42px color-mix(in srgb, var(--app-theme-accent) 10%, transparent) !important;
}

#dashboardView .calendar-day.today,
#dashboardView .day-cell.today {
  background: linear-gradient(180deg, color-mix(in srgb, var(--app-theme-accent) 8%, #ffffff), #ffffff) !important;
}

#dashboardView .booking-pill,
#dashboardView .booking-chip,
#dashboardView .appointment,
#dashboardView .calendar-booking {
  border-color: color-mix(in srgb, var(--app-theme-accent) 34%, #bfdbfe) !important;
}

@media (max-width: 900px) {
  #dashboardView .dashboard-theme-switcher {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}



/* Tema-valg flyttet til Innstillinger */
#settingsModal .settings-theme-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 10px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

#settingsModal .settings-theme-switcher .dashboard-theme-btn {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

#settingsModal .settings-theme-switcher .dashboard-theme-btn:hover {
  transform: translateY(-1px);
  background: #f1f5f9;
}

#settingsModal .settings-theme-switcher .dashboard-theme-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-theme-accent-2, #3b82f6), var(--app-theme-accent, #635bff));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15,23,42,.16);
}

/* Når tema-knappene ligger i innstillinger skal de ikke ta plass i sidebaren */
#dashboardView .dashboard-nav #dashboardThemeSwitcher {
  display: none;
}



/* Body-variabler så tema i Innstillinger får samme aktive farge */
body.app-theme-iseld {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
}

body.app-theme-salon {
  --app-theme-accent: #d946ef;
  --app-theme-accent-2: #fb7185;
}

body.app-theme-workshop {
  --app-theme-accent: #f97316;
  --app-theme-accent-2: #f59e0b;
}

body.app-theme-electrician {
  --app-theme-accent: #facc15;
  --app-theme-accent-2: #38bdf8;
}

body.app-theme-plumber {
  --app-theme-accent: #06b6d4;
  --app-theme-accent-2: #2563eb;
}



/* Fix: sidebar skal alltid gå helt ned */
#dashboardView.dashboard {
  align-items: stretch !important;
  min-height: 100vh !important;
}

#dashboardView .dashboard-nav {
  min-height: 100vh !important;
  height: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
}

#dashboardView .main {
  min-height: 100vh !important;
}



/* Tema på fullskjerm timeplan */
body {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
  --app-theme-bg-a: rgba(59,130,246,.12);
  --app-theme-bg-b: rgba(99,91,255,.10);
}

body.app-theme-iseld {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
  --app-theme-bg-a: rgba(59,130,246,.12);
  --app-theme-bg-b: rgba(99,91,255,.10);
}

body.app-theme-salon {
  --app-theme-accent: #d946ef;
  --app-theme-accent-2: #fb7185;
  --app-theme-bg-a: rgba(217,70,239,.13);
  --app-theme-bg-b: rgba(251,113,133,.10);
}

body.app-theme-workshop {
  --app-theme-accent: #f97316;
  --app-theme-accent-2: #f59e0b;
  --app-theme-bg-a: rgba(249,115,22,.12);
  --app-theme-bg-b: rgba(100,116,139,.10);
}

body.app-theme-electrician {
  --app-theme-accent: #facc15;
  --app-theme-accent-2: #38bdf8;
  --app-theme-bg-a: rgba(250,204,21,.11);
  --app-theme-bg-b: rgba(56,189,248,.11);
}

body.app-theme-plumber {
  --app-theme-accent: #06b6d4;
  --app-theme-accent-2: #2563eb;
  --app-theme-bg-a: rgba(6,182,212,.12);
  --app-theme-bg-b: rgba(37,99,235,.11);
}

body.app-theme-iseld .timeline-page,
body.app-theme-salon .timeline-page,
body.app-theme-workshop .timeline-page,
body.app-theme-electrician .timeline-page,
body.app-theme-plumber .timeline-page {
  background:
    radial-gradient(circle at 18% 10%, var(--app-theme-bg-a), transparent 30%),
    radial-gradient(circle at 84% 84%, var(--app-theme-bg-b), transparent 34%),
    #f4f6fb !important;
}

body.app-theme-salon .timeline-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(217,70,239,.16), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(251,113,133,.12), transparent 34%),
    #fbf7fc !important;
}

body.app-theme-workshop .timeline-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(249,115,22,.14), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(100,116,139,.12), transparent 34%),
    #f6f5f3 !important;
}

body.app-theme-electrician .timeline-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(250,204,21,.15), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(56,189,248,.13), transparent 34%),
    #f4f8fb !important;
}

body.app-theme-plumber .timeline-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(6,182,212,.16), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(37,99,235,.13), transparent 34%),
    #f3f9fb !important;
}

body.app-theme-iseld .timeline-page-card,
body.app-theme-salon .timeline-page-card,
body.app-theme-workshop .timeline-page-card,
body.app-theme-electrician .timeline-page-card,
body.app-theme-plumber .timeline-page-card {
  border: 1px solid color-mix(in srgb, var(--app-theme-accent) 18%, #dbeafe) !important;
  box-shadow: 0 24px 70px color-mix(in srgb, var(--app-theme-accent) 8%, rgba(15,23,42,.10)) !important;
}

body.app-theme-iseld .timeline-page-topbar,
body.app-theme-salon .timeline-page-topbar,
body.app-theme-workshop .timeline-page-topbar,
body.app-theme-electrician .timeline-page-topbar,
body.app-theme-plumber .timeline-page-topbar {
  border-bottom-color: color-mix(in srgb, var(--app-theme-accent) 18%, #e5e7eb) !important;
}

body.app-theme-iseld .timeline-page button:not(.danger):not(.secondary),
body.app-theme-salon .timeline-page button:not(.danger):not(.secondary),
body.app-theme-workshop .timeline-page button:not(.danger):not(.secondary),
body.app-theme-electrician .timeline-page button:not(.danger):not(.secondary),
body.app-theme-plumber .timeline-page button:not(.danger):not(.secondary),
body.app-theme-iseld .timeline-page .schedule-toolbar button.active,
body.app-theme-salon .timeline-page .schedule-toolbar button.active,
body.app-theme-workshop .timeline-page .schedule-toolbar button.active,
body.app-theme-electrician .timeline-page .schedule-toolbar button.active,
body.app-theme-plumber .timeline-page .schedule-toolbar button.active {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

body.app-theme-iseld .timeline-page .schedule-range-info,
body.app-theme-salon .timeline-page .schedule-range-info,
body.app-theme-workshop .timeline-page .schedule-range-info,
body.app-theme-electrician .timeline-page .schedule-range-info,
body.app-theme-plumber .timeline-page .schedule-range-info,
body.app-theme-iseld .timeline-page .schedule-list,
body.app-theme-salon .timeline-page .schedule-list,
body.app-theme-workshop .timeline-page .schedule-list,
body.app-theme-electrician .timeline-page .schedule-list,
body.app-theme-plumber .timeline-page .schedule-list {
  border-color: color-mix(in srgb, var(--app-theme-accent) 20%, #bfdbfe) !important;
}

body.app-theme-iseld .timeline-page .timeline-hour,
body.app-theme-salon .timeline-page .timeline-hour,
body.app-theme-workshop .timeline-page .timeline-hour,
body.app-theme-electrician .timeline-page .timeline-hour,
body.app-theme-plumber .timeline-page .timeline-hour {
  color: color-mix(in srgb, var(--app-theme-accent) 36%, #0f172a) !important;
}

body.app-theme-iseld .timeline-page .timeline-block,
body.app-theme-salon .timeline-page .timeline-block,
body.app-theme-workshop .timeline-page .timeline-block,
body.app-theme-electrician .timeline-page .timeline-block,
body.app-theme-plumber .timeline-page .timeline-block {
  box-shadow: 0 18px 42px color-mix(in srgb, var(--app-theme-accent) 10%, rgba(15,23,42,.12)) !important;
}

body.app-theme-workshop .timeline-page .timeline-block {
  filter: saturate(.95) contrast(1.02);
}

body.app-theme-salon .timeline-page .timeline-block {
  filter: saturate(1.06);
}

body.app-theme-iseld .timeline-page .stat-card,
body.app-theme-salon .timeline-page .stat-card,
body.app-theme-workshop .timeline-page .stat-card,
body.app-theme-electrician .timeline-page .stat-card,
body.app-theme-plumber .timeline-page .stat-card,
body.app-theme-iseld .timeline-page [class*="stat"],
body.app-theme-salon .timeline-page [class*="stat"],
body.app-theme-workshop .timeline-page [class*="stat"],
body.app-theme-electrician .timeline-page [class*="stat"],
body.app-theme-plumber .timeline-page [class*="stat"] {
  border-color: color-mix(in srgb, var(--app-theme-accent) 16%, #e5e7eb);
}

body.app-theme-iseld .timeline-page .timeline-scroll-hint,
body.app-theme-salon .timeline-page .timeline-scroll-hint,
body.app-theme-workshop .timeline-page .timeline-scroll-hint,
body.app-theme-electrician .timeline-page .timeline-scroll-hint,
body.app-theme-plumber .timeline-page .timeline-scroll-hint {
  color: color-mix(in srgb, var(--app-theme-accent) 50%, #64748b);
}

/* Ny ryddig innstillingsmeny */
#dashboardView .dashboard-settings-toggle {
  justify-content: flex-start;
}

#dashboardView .dashboard-settings-toggle small {
  margin-left: auto;
  font-size: 12px;
  opacity: .75;
}

#dashboardView .dashboard-settings-dropdown {
  display: grid;
  gap: 6px;
  margin: -4px 0 6px 30px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .34);
  border: 1px solid rgba(255,255,255,.08);
}

#dashboardView .dashboard-settings-dropdown.hidden {
  display: none;
}

#dashboardView .dashboard-settings-dropdown button {
  border: 0;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  color: rgba(255,255,255,.86);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

#dashboardView .dashboard-settings-dropdown button:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
}

#settingsModal .settings-modal {
  width: min(1120px, 96vw);
  padding: 0;
  overflow: hidden;
}

#settingsModal .settings-modal-head {
  padding: 24px 26px 18px;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

#settingsModal .settings-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 620px;
  max-height: calc(90vh - 108px);
}

#settingsModal .settings-menu {
  padding: 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fafc, #eef4fb);
  border-right: 1px solid #e5e7eb;
}

#settingsModal .settings-menu-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

#settingsModal .settings-menu button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 12px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

#settingsModal .settings-menu button:not(.settings-menu-title) {
  padding-left: 22px;
  font-size: 13px;
  color: #475569;
}

#settingsModal .settings-menu button:hover {
  background: #fff;
  border-color: #dbeafe;
}

#settingsModal .settings-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-theme-accent-2, #3b82f6), var(--app-theme-accent, #635bff));
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
}

#settingsModal .settings-menu-title {
  color: #0f172a !important;
  background: rgba(255,255,255,.62) !important;
  border-color: #e2e8f0 !important;
}

#settingsModal .settings-menu-title.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--app-theme-accent-2, #3b82f6), var(--app-theme-accent, #635bff)) !important;
}

#settingsModal .settings-panel {
  padding: 24px 28px 30px;
  overflow-y: auto;
}

#settingsModal .settings-section {
  display: none;
}

#settingsModal .settings-section.active {
  display: block;
}

#settingsModal .settings-section > h3 {
  margin-top: 0;
}

#settingsModal .settings-panel .card {
  margin-top: 12px;
}

@media (max-width: 850px) {
  #settingsModal .settings-shell {
    grid-template-columns: 1fr;
    max-height: calc(90vh - 108px);
  }

  #settingsModal .settings-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  #settingsModal .settings-menu-group {
    min-width: 220px;
    margin-bottom: 0;
  }
}

/* Settings accordion cleanup */
#dashboardView .dashboard-settings-group {
  display: grid;
  gap: 4px;
}

#dashboardView .dashboard-settings-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: .95;
}

#dashboardView .dashboard-settings-group-title small,
#settingsModal .settings-menu-title small {
  margin-left: auto;
  transition: transform .18s ease;
}

#dashboardView .dashboard-settings-group:not(.open) .dashboard-settings-submenu,
#settingsModal .settings-menu-group:not(.open) .settings-menu-items {
  display: none;
}

#dashboardView .dashboard-settings-group.open .dashboard-settings-group-title small,
#settingsModal .settings-menu-group.open .settings-menu-title small {
  transform: rotate(180deg);
}

#dashboardView .dashboard-settings-submenu {
  display: grid;
  gap: 3px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.1);
  margin-left: 8px;
}

#dashboardView .dashboard-settings-submenu button {
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
}

#settingsModal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  background: #f8fafc;
  padding: 0;
}

#settingsModal .settings-modal {
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

#settingsModal .settings-modal-head {
  height: 88px;
  box-sizing: border-box;
}

#settingsModal .settings-shell {
  min-height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
}

#settingsModal .settings-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

#settingsModal .settings-menu-items {
  display: grid;
  gap: 6px;
}

#settingsModal .settings-menu-title.active {
  color: #0f172a !important;
  background: rgba(255,255,255,.72) !important;
  border-color: #e2e8f0 !important;
}

/* Settings page dark sidebar theme - matches dashboard */
#settingsModal:not(.hidden) {
  background: #f6f8fc;
}

#settingsModal .settings-modal {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  grid-template-rows: 92px minmax(0, 1fr);
  background: #f6f8fc;
}

#settingsModal .settings-modal-head {
  grid-column: 2;
  grid-row: 1;
  height: 92px;
  padding: 26px 34px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 3;
}

#settingsModal .settings-shell {
  display: contents;
  min-height: 0;
  max-height: none;
}

#settingsModal .settings-menu {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100vh;
  min-height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top left, rgba(255, 137, 13, .18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #111827 0%, #101827 48%, #071426 100%);
  border-right: 1px solid rgba(255,255,255,.11);
  box-shadow: 20px 0 60px rgba(15,23,42,.16);
}

#settingsModal .settings-menu-brand {
  padding: 2px 6px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

#settingsModal .settings-menu-brand img {
  display: block;
  width: 112px;
  height: auto;
  margin: 0 0 10px;
}

#settingsModal .settings-menu-brand span {
  display: block;
  color: rgba(226,232,240,.72);
  font-size: 13px;
  font-weight: 700;
}

#settingsModal .settings-menu-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  margin: 0 0 18px;
  padding: 0 6px;
}

#settingsModal .settings-menu-heading-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-theme-accent-2, #ff8a00), var(--app-theme-accent, #ff6b00));
  box-shadow: 0 12px 24px rgba(255, 138, 0, .22);
}

#settingsModal .settings-menu-group {
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

#settingsModal .settings-menu-group:last-child {
  border-bottom: 0;
}

#settingsModal .settings-menu button {
  color: rgba(248,250,252,.9);
  border-radius: 14px;
  padding: 12px 13px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

#settingsModal .settings-menu-title,
#settingsModal .settings-menu-title.active {
  color: rgba(226,232,240,.76) !important;
  background: transparent !important;
  border-color: transparent !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 900;
}

#settingsModal .settings-menu button:not(.settings-menu-title) {
  padding-left: 14px;
  font-size: 14px;
  color: rgba(248,250,252,.88);
}

#settingsModal .settings-menu button:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
  color: #fff;
}

#settingsModal .settings-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,137,13,.92), rgba(255,111,0,.82));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 34px rgba(255, 128, 0, .20);
}

#settingsModal .settings-menu-items {
  gap: 7px;
  padding-left: 8px;
  margin-left: 8px;
  border-left: 1px solid rgba(255,255,255,.10);
}

#settingsModal .settings-panel {
  grid-column: 2;
  grid-row: 2;
  padding: 28px 36px 42px;
  overflow-y: auto;
  min-height: 0;
  background: #f6f8fc;
}

#settingsModal .settings-panel .card,
#settingsModal .settings-section > .card,
#settingsModal #serviceSettingsBox .card {
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
}

@media (max-width: 850px) {
  #settingsModal .settings-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  #settingsModal .settings-modal-head {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    padding: 18px;
  }

  #settingsModal .settings-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  #settingsModal .settings-menu {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    height: auto;
    display: block;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  #settingsModal .settings-panel {
    grid-column: 1;
    grid-row: 3;
    padding: 18px;
  }
}

/* Dynamisk tema for Innstillinger-sidebar: bruker samme tema som dashboardet */
body {
  --app-theme-sidebar-a: #081225;
  --app-theme-sidebar-b: #111b3f;
}

body.app-theme-iseld {
  --app-theme-sidebar-a: #081225;
  --app-theme-sidebar-b: #111b3f;
}

body.app-theme-salon {
  --app-theme-sidebar-a: #25132f;
  --app-theme-sidebar-b: #4a1d5f;
}

body.app-theme-workshop {
  --app-theme-sidebar-a: #111827;
  --app-theme-sidebar-b: #2f343d;
}

body.app-theme-electrician {
  --app-theme-sidebar-a: #071426;
  --app-theme-sidebar-b: #10345f;
}

body.app-theme-plumber {
  --app-theme-sidebar-a: #06202f;
  --app-theme-sidebar-b: #083c57;
}

#settingsModal .settings-menu {
  position: relative;
  overflow: hidden auto;
  background:
    radial-gradient(circle at 25% 8%, color-mix(in srgb, var(--app-theme-accent) 22%, transparent), transparent 28%),
    linear-gradient(180deg, var(--app-theme-sidebar-a), var(--app-theme-sidebar-b)) !important;
  border-right: 1px solid color-mix(in srgb, var(--app-theme-accent) 18%, rgba(255,255,255,.10)) !important;
}

#settingsModal .settings-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
}

#settingsModal .settings-menu > * {
  position: relative;
  z-index: 1;
}

body.app-theme-salon #settingsModal .settings-menu::before {
  background:
    radial-gradient(circle at 22% 16%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.13) 0 1.5px, transparent 3px);
  background-size: 90px 90px, 120px 120px;
}

body.app-theme-workshop #settingsModal .settings-menu::before {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 16px);
}

body.app-theme-electrician #settingsModal .settings-menu::before {
  background:
    linear-gradient(90deg, rgba(250,204,21,.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56,189,248,.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

body.app-theme-plumber #settingsModal .settings-menu::before {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(6,182,212,.20), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 64px 64px;
}

#settingsModal .settings-menu-heading-icon,
#settingsModal .settings-menu button.active,
#settingsModal .settings-theme-switcher .dashboard-theme-btn.active {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent)) !important;
}

#settingsModal .settings-menu button.active {
  box-shadow: 0 16px 34px color-mix(in srgb, var(--app-theme-accent) 22%, transparent) !important;
}

#settingsModal .settings-menu button:hover {
  border-color: color-mix(in srgb, var(--app-theme-accent) 36%, rgba(255,255,255,.10)) !important;
  background: color-mix(in srgb, var(--app-theme-accent) 14%, rgba(255,255,255,.07)) !important;
}


/* Nova: Superadmin Main Hub med samme venstremeny-følelse som kundedashboardet */
#mainHubView.main-hub {
  --app-theme-accent: #635bff;
  --app-theme-accent-2: #3b82f6;
  --app-theme-sidebar-a: #071426;
  --app-theme-sidebar-b: #10244a;
  --app-theme-bg-a: rgba(99,91,255,.14);
  --app-theme-bg-b: rgba(59,130,246,.11);
  --app-theme-soft: rgba(99,91,255,.10);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding: 0 !important;
  background:
    radial-gradient(circle at 20% 10%, var(--app-theme-bg-a), transparent 30%),
    radial-gradient(circle at 80% 80%, var(--app-theme-bg-b), transparent 34%),
    #f3f7fb !important;
}

#mainHubView.app-theme-salon {
  --app-theme-accent: #ec4899;
  --app-theme-accent-2: #a855f7;
  --app-theme-sidebar-a: #37113f;
  --app-theme-sidebar-b: #4a175c;
  --app-theme-bg-a: rgba(236,72,153,.13);
  --app-theme-bg-b: rgba(168,85,247,.12);
  --app-theme-soft: rgba(236,72,153,.10);
}

#mainHubView.app-theme-workshop {
  --app-theme-accent: #f97316;
  --app-theme-accent-2: #f59e0b;
  --app-theme-sidebar-a: #24151a;
  --app-theme-sidebar-b: #111827;
  --app-theme-bg-a: rgba(249,115,22,.13);
  --app-theme-bg-b: rgba(245,158,11,.10);
  --app-theme-soft: rgba(249,115,22,.10);
}

#mainHubView.app-theme-electrician {
  --app-theme-accent: #facc15;
  --app-theme-accent-2: #38bdf8;
  --app-theme-sidebar-a: #071426;
  --app-theme-sidebar-b: #10345f;
  --app-theme-bg-a: rgba(250,204,21,.11);
  --app-theme-bg-b: rgba(56,189,248,.11);
  --app-theme-soft: rgba(250,204,21,.10);
}

#mainHubView.app-theme-plumber {
  --app-theme-accent: #06b6d4;
  --app-theme-accent-2: #2563eb;
  --app-theme-sidebar-a: #06202f;
  --app-theme-sidebar-b: #083c57;
  --app-theme-bg-a: rgba(6,182,212,.12);
  --app-theme-bg-b: rgba(37,99,235,.11);
  --app-theme-soft: rgba(6,182,212,.10);
}

#mainHubView .mainhub-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 25% 8%, color-mix(in srgb, var(--app-theme-accent) 22%, transparent), transparent 28%),
    linear-gradient(180deg, var(--app-theme-sidebar-a), var(--app-theme-sidebar-b));
  border-right: 1px solid color-mix(in srgb, var(--app-theme-accent) 18%, rgba(255,255,255,.10));
  color: #fff;
}

#mainHubView .mainhub-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
}

#mainHubView.app-theme-salon .mainhub-nav::before {
  background:
    radial-gradient(circle at 22% 16%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.13) 0 1.5px, transparent 3px);
  background-size: 90px 90px, 120px 120px;
}

#mainHubView.app-theme-workshop .mainhub-nav::before {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 16px);
}

#mainHubView.app-theme-electrician .mainhub-nav::before {
  background:
    linear-gradient(90deg, rgba(250,204,21,.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(56,189,248,.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

#mainHubView.app-theme-plumber .mainhub-nav::before {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(6,182,212,.20), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 64px 64px;
}

#mainHubView .mainhub-nav > * {
  position: relative;
  z-index: 1;
}

#mainHubView .mainhub-nav-brand {
  margin: 0 0 22px;
  padding: 0 4px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

#mainHubView .mainhub-nav-links {
  margin-top: 12px;
}

#mainHubView .mainhub-nav .dashboard-nav-link {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.84);
}

#mainHubView .mainhub-nav .dashboard-nav-link.active,
#mainHubView .mainhub-nav .dashboard-nav-link:hover {
  border-color: color-mix(in srgb, var(--app-theme-accent) 48%, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--app-theme-accent) 24%, rgba(255,255,255,.06));
}

#mainHubView .mainhub-nav .dashboard-nav-link span,
#mainHubView .mainhub-nav-footer span {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent));
}

#mainHubView .mainhub-nav-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  margin: 0;
}

#mainHubView .mainhub-content {
  min-width: 0;
  padding: clamp(22px, 2.4vw, 36px);
  box-sizing: border-box;
}

#mainHubView .mainhub-panel {
  display: none;
  max-width: 1500px;
  margin: 0 auto;
}

#mainHubView .mainhub-panel.active {
  display: block;
}

#mainHubView .mainhub-section-head {
  margin: 0 0 18px;
}

#mainHubView .mainhub-section-head h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.045em;
}

#mainHubView .main-hub-card {
  margin-bottom: 18px;
}

#mainHubView .mainhub-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

#mainHubView .mainhub-shortcut {
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--app-theme-accent) 20%, #dbeafe);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
  color: #07142f;
  cursor: pointer;
}

#mainHubView .mainhub-shortcut strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

#mainHubView .mainhub-shortcut span {
  color: #64748b;
  font-weight: 650;
}

#mainHubView .mainhub-shortcut:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--app-theme-accent) 45%, #dbeafe);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--app-theme-accent) 12%, rgba(15,23,42,.08));
}

#mainHubView .main-hub-actions button:not(.secondary):not(.danger),
#mainHubView .main-hub-form-grid button,
#mainHubView .small-btn {
  background: linear-gradient(135deg, var(--app-theme-accent-2), var(--app-theme-accent));
}

#mainHubView .main-hub-form-grid input:focus,
#mainHubView .main-hub-form-grid select:focus {
  border-color: var(--app-theme-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-theme-accent) 14%, transparent);
}

#mainHubView .main-hub-stat {
  border-left-color: var(--app-theme-accent) !important;
}

#mainHubView .mainhub-hero-card .main-hub-stat {
  border-left-color: var(--app-theme-accent) !important;
}

@media (max-width: 900px) {
  #mainHubView.main-hub { grid-template-columns: 1fr; }
  #mainHubView .mainhub-nav {
    position: relative;
    height: auto;
    min-height: auto;
  }
  #mainHubView .mainhub-nav-footer { position: relative; left: auto; right: auto; bottom: auto; margin-top: 20px; }
  #mainHubView .mainhub-shortcut-grid { grid-template-columns: 1fr; }
}

#mainHubView .hub-table-input,
#mainHubView .hub-table-select {
  width: 100%;
  min-width: 150px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  padding: 7px 10px;
  font-weight: 700;
  color: #07142f;
  box-sizing: border-box;
}

#mainHubView .hub-table-input:focus,
#mainHubView .hub-table-select:focus {
  outline: none;
  border-color: var(--app-theme-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-theme-accent) 14%, transparent);
}

/* Superadmin: vis brukere direkte under valgt firma */
#mainHubView .mainhub-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#mainHubView .small-btn.secondary {
  background: rgba(15, 23, 42, .06) !important;
  color: #0f172a;
  border: 1px solid color-mix(in srgb, var(--app-theme-accent) 28%, #dbe6f5);
}

#mainHubView .mainhub-company-users > td {
  background: color-mix(in srgb, var(--app-theme-accent) 5%, #f8fbff);
  padding: 16px;
}

#mainHubView .mainhub-company-users-card {
  border: 1px solid color-mix(in srgb, var(--app-theme-accent) 18%, #dbe6f5);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

#mainHubView .mainhub-company-users-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

#mainHubView .mainhub-company-users-title strong {
  font-size: 17px;
}

#mainHubView .main-hub-table-wrap.nested {
  border-radius: 14px;
  overflow: auto;
}

#mainHubView .mainhub-users-table th {
  font-size: 12px;
}

#mainHubView .mainhub-company-user-row td {
  background: #fff;
}

/* Superadmin redigering av hovednettside */
.landing-admin-edit-bar {
  width: min(100% - 40px, 1180px);
  margin: 88px auto 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,23,42,.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 20;
}
.landing-admin-edit-bar strong { display:block; font-size: 14px; }
.landing-admin-edit-bar span { display:block; margin-top: 3px; color: rgba(226,232,240,.78); font-size: 13px; }
.landing-admin-edit-actions { display:flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.landing-page.superadmin-editing [data-landing-edit] {
  outline: 2px dashed rgba(249,115,22,.68);
  outline-offset: 5px;
  border-radius: 8px;
  cursor: text;
}
.landing-page.superadmin-editing [data-landing-edit]:focus {
  outline: 3px solid rgba(249,115,22,.92);
  background: rgba(255,255,255,.10);
}
@media(max-width: 760px){
  .landing-admin-edit-bar { align-items: flex-start; flex-direction: column; margin-top: 76px; }
  .landing-admin-edit-actions { justify-content: flex-start; }
}


/* Superadmin redigering av offentlig booking-side
   Ligger som flytende kontrollpanel, slik at bookingsiden ikke dyttes ned eller endrer layout. */
.booking-admin-edit-bar {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 24px;
  top: auto;
  z-index: 9999;
  width: min(720px, calc(100vw - 48px));
  max-width: none;
  margin: 0;
  border-radius: 20px;
}

.booking-admin-edit-bar .landing-admin-edit-actions {
  flex-wrap: nowrap;
}

@media(max-width: 820px){
  .booking-admin-edit-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-admin-edit-bar .landing-admin-edit-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

#publicBookingView.superadmin-editing [data-booking-edit] {
  outline: 2px dashed rgba(255, 149, 0, 0.8);
  outline-offset: 5px;
  border-radius: 8px;
  cursor: text;
}

#publicBookingView.superadmin-editing [data-booking-edit]:focus {
  outline-style: solid;
  background: rgba(255, 255, 255, 0.18);
}

/* Redigerbar footer på hovednettsiden */
.landing-footer {
  width: min(100% - 40px, 1180px);
  margin: 0 auto 42px;
  padding: 0 0 28px;
}

.landing-footer-inner {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15, 23, 42, .48);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  color: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-footer-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-footer-main strong {
  color: #fff;
  font-size: 15px;
}

.landing-footer-main p {
  margin: 0;
  max-width: 620px;
  color: rgba(226,232,240,.76);
  line-height: 1.6;
}

.landing-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 260px;
}

.landing-footer-contact span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.landing-footer [data-landing-edit]:empty {
  display: none;
}

.landing-page.superadmin-editing .landing-footer [data-landing-edit]:empty {
  display: inline-block;
  min-width: 120px;
  min-height: 1.35em;
}

.landing-page.superadmin-editing .landing-footer [data-landing-edit]:empty::before {
  content: attr(data-edit-placeholder);
  color: rgba(255,255,255,.42);
}

@media(max-width: 760px){
  .landing-footer-inner {
    flex-direction: column;
  }

  .landing-footer-contact {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* Superadmin: bytt bilde på animasjonen/forhåndsvisningen på hovedsiden */
.landing-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.landing-hero-default-visual {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.landing-hero-visual.has-custom-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.landing-hero-custom-image {
  width: 100%;
  max-width: 720px;
  max-height: 560px;
  object-fit: contain;
  border-radius: 30px;
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 34px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.07);
  background: rgba(5, 12, 25, 0.78);
}


/* Felles enkelt symbol for tjenestebrikker i kalender/dagsvisning */
.booking-service-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  flex:0 0 auto;
  background:currentColor;
  opacity:.9;
}
.timeline-tooltip-row .booking-service-dot{
  margin-top:4px;
}

/* Nova fix: Theme selector should not overlap booking panels on desktop */
#publicBookingView.booking-view {
  align-items: flex-start !important;
  padding-top: 132px !important;
  box-sizing: border-box;
  overflow-y: auto;
}

#publicBookingView .booking-shell {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  #publicBookingView.booking-view {
    padding-top: 32px !important;
  }
}

/* Public booking: when chosen employee is busy at requested time, show exact match from another employee */
.booking-other-employee-match {
  grid-column: 1 / -1;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.10);
}

.booking-other-employee-btn {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #14532d;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.booking-other-employee-btn:hover,
.booking-other-employee-btn.selected {
  background: #22c55e;
  border-color: #16a34a;
  color: white;
}


/* Iseld public booking - månedskalender */
.booking-calendar{
  grid-column:1/-1;
  border:1px solid rgba(148,163,184,.28);
  border-radius:24px;
  background:rgba(255,255,255,.78);
  padding:16px;
  box-shadow:0 18px 42px rgba(15,23,42,.08);
}
.booking-calendar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.booking-calendar-header strong{
  display:block;
  color:#0f172a;
  font-size:20px;
  text-transform:capitalize;
  letter-spacing:-.025em;
}
.booking-calendar-header small{display:block;color:#64748b;font-weight:800;margin-top:3px;}
.booking-calendar-nav{
  width:42px;
  height:42px;
  border:0;
  border-radius:15px;
  cursor:pointer;
  color:white;
  font-size:20px;
  font-weight:900;
  background:linear-gradient(135deg,#4f7cff,#7c3aed);
  box-shadow:0 14px 28px rgba(79,124,255,.18);
  transition:transform .16s ease,filter .16s ease;
}
.booking-calendar-nav:hover{transform:translateY(-1px);filter:brightness(1.04);}
.booking-calendar-weekdays,.booking-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
}
.booking-calendar-weekdays{margin-bottom:7px;}
.booking-calendar-weekdays span{
  text-align:center;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.booking-calendar-day{
  min-height:72px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:17px;
  background:rgba(255,255,255,.94);
  color:#0f172a;
  cursor:pointer;
  padding:10px 7px;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
  font-family:inherit;
}
.booking-calendar-day strong{font-size:17px;line-height:1;}
.booking-calendar-day small{font-size:11px;color:#64748b;font-weight:900;line-height:1.1;}
.booking-calendar-day:not(.empty):not(:disabled):hover{
  transform:translateY(-2px);
  border-color:#4f7cff;
  box-shadow:0 16px 32px rgba(79,124,255,.14);
}
.booking-calendar-day.selected{
  background:linear-gradient(135deg,#4f7cff,#7c3aed);
  border-color:#4f7cff;
  color:white;
  box-shadow:0 18px 36px rgba(79,124,255,.22);
}
.booking-calendar-day.selected small{color:rgba(255,255,255,.88);}
.booking-calendar-day.closed,.booking-calendar-day.past{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#9f1239;
  cursor:not-allowed;
  opacity:.82;
}
.booking-calendar-day.closed small,.booking-calendar-day.past small{color:#be123c;}
.booking-calendar-day.empty{
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:default;
}
.booking-calendar-legend{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:13px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.booking-calendar-legend span{display:inline-flex;align-items:center;gap:7px;}
.booking-calendar-legend i{width:11px;height:11px;border-radius:999px;display:inline-block;}
.booking-calendar-legend i.open{background:#ffffff;border:1px solid rgba(148,163,184,.35);}
.booking-calendar-legend i.closed{background:#fff1f2;border:1px solid #fecdd3;}
@media (max-width: 720px){
  .booking-calendar{padding:12px;border-radius:20px;}
  .booking-calendar-weekdays,.booking-calendar-grid{gap:5px;}
  .booking-calendar-day{min-height:58px;border-radius:13px;padding:8px 5px;}
  .booking-calendar-day strong{font-size:15px;}
  .booking-calendar-day small{font-size:9px;}
}


/* Kalender: dagens dato + måned/år dropdown */
.booking-calendar-title{
  text-align:center;
}
.booking-calendar-select-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.booking-calendar-select{
  appearance:none;
  border:1px solid rgba(148,163,184,.38);
  border-radius:14px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.96));
  color:#0f172a;
  font-weight:900;
  font-size:18px;
  padding:10px 38px 10px 14px;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(15,23,42,.07);
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,250,252,.96));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%,
    0 0;
  background-size:5px 5px,5px 5px,100% 100%;
  background-repeat:no-repeat;
}
.booking-calendar-select.year{
  min-width:98px;
}
.booking-calendar-day.today{
  position:relative;
  border-color:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.18), 0 16px 32px rgba(34,197,94,.10);
}
.booking-calendar-day.today::after{
  content:"I dag";
  position:absolute;
  right:7px;
  top:7px;
  border-radius:999px;
  padding:3px 7px;
  background:#dcfce7;
  color:#15803d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.01em;
}
.booking-calendar-day.today.selected::after{
  background:rgba(255,255,255,.92);
  color:#15803d;
}
@media (max-width: 720px){
  .booking-calendar-select-row{gap:6px;}
  .booking-calendar-select{font-size:15px;padding:9px 32px 9px 11px;}
  .booking-calendar-select.year{min-width:86px;}
  .booking-calendar-day.today::after{font-size:9px;padding:2px 5px;right:5px;top:5px;}
}

/* Nova premium månedskalender v2: ryddigere status, åpningstid og bookinggrad */
#dashboardView .day {
  position: relative;
  overflow: hidden;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-free {
  background: linear-gradient(135deg, #effdf6 0%, #ffffff 78%);
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-medium {
  background: linear-gradient(135deg, #fff7df 0%, #ffffff 76%);
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-busy {
  background: linear-gradient(135deg, #fff0db 0%, #ffffff 74%);
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-full,
#dashboardView .day:not(.other-month):not(.past-day).capacity-closed {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 74%);
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-free::before,
#dashboardView .day:not(.other-month):not(.past-day).capacity-medium::before,
#dashboardView .day:not(.other-month):not(.past-day).capacity-busy::before,
#dashboardView .day:not(.other-month):not(.past-day).capacity-full::before,
#dashboardView .day:not(.other-month):not(.past-day).capacity-closed::before {
  display: none !important;
}

#dashboardView .day-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

#dashboardView .day-number {
  font-size: 20px;
  font-weight: 900;
  color: #020617;
  line-height: 1;
}

#dashboardView .other-month .day-number,
#dashboardView .past-day .day-number {
  color: #d23f63;
}

#dashboardView .day-load-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148, 163, 184, 0.20);
  color: #475569;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

#dashboardView .day.capacity-free .day-load-badge {
  color: #166534;
  background: rgba(240,253,244,0.92);
  border-color: #bbf7d0;
}

#dashboardView .day.capacity-medium .day-load-badge {
  color: #ea580c;
  background: rgba(255,251,235,0.95);
  border-color: #fed7aa;
}

#dashboardView .day.capacity-busy .day-load-badge {
  color: #c2410c;
  background: rgba(255,247,237,0.96);
  border-color: #fdba74;
}

#dashboardView .day.capacity-full .day-load-badge,
#dashboardView .day.capacity-closed .day-load-badge {
  color: #b91c1c;
  background: rgba(254,242,242,0.96);
  border-color: #fecaca;
}

#dashboardView .day-hours {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #047857;
}

#dashboardView .day.capacity-medium .day-hours {
  color: #ea580c;
}

#dashboardView .day.capacity-busy .day-hours {
  color: #c2410c;
}

#dashboardView .day.capacity-full .day-hours,
#dashboardView .day.capacity-closed .day-hours {
  display: none;
}

#dashboardView .day.capacity-full .day-number,
#dashboardView .day.capacity-closed .day-number {
  color: #dc2626;
}

#dashboardView .day.selected {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18), 0 10px 22px rgba(37,99,235,0.10);
}

@media (max-width: 900px) {
  #dashboardView .day-load-badge {
    font-size: 10px;
    padding: 3px 7px;
  }

  #dashboardView .day-hours {
    font-size: 11px;
  }
}

/* Nova premium månedskalender v3: matcher ryddig mockup bedre */
#dashboardView .day {
  padding: 16px 14px 12px !important;
  min-height: 178px !important;
  background: #ffffff;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-free,
#dashboardView .day:not(.other-month).capacity-free {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 74%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-medium,
#dashboardView .day:not(.other-month).capacity-medium {
  background: linear-gradient(135deg, #fff7df 0%, #ffffff 74%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-busy,
#dashboardView .day:not(.other-month).capacity-busy {
  background: linear-gradient(135deg, #fff1dd 0%, #ffffff 72%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-full,
#dashboardView .day:not(.other-month):not(.past-day).capacity-closed,
#dashboardView .day.capacity-full,
#dashboardView .day.capacity-closed,
#dashboardView .day.other-month {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 74%) !important;
}

#dashboardView .day-topline {
  align-items: center !important;
  margin-bottom: 8px !important;
}

#dashboardView .day-number {
  font-size: 18px !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
}

#dashboardView .day.other-month .day-number {
  color: #64748b !important;
}

#dashboardView .day.capacity-full .day-number,
#dashboardView .day.capacity-closed .day-number {
  color: #dc2626 !important;
}

#dashboardView .day:not(.other-month).capacity-medium .day-number,
#dashboardView .day:not(.other-month).capacity-busy .day-number {
  color: #ea580c !important;
}

#dashboardView .day-load-badge {
  padding: 4px 12px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(15,23,42,0.05) !important;
}

#dashboardView .day.capacity-free .day-load-badge {
  color: #166534 !important;
  background: rgba(240,253,244,0.94) !important;
  border-color: #bbf7d0 !important;
}

#dashboardView .day.capacity-medium .day-load-badge,
#dashboardView .day.capacity-busy .day-load-badge {
  color: #ea580c !important;
  background: rgba(255,251,235,0.96) !important;
  border-color: #fed7aa !important;
}

#dashboardView .day.capacity-full .day-load-badge,
#dashboardView .day.capacity-closed .day-load-badge {
  color: #b91c1c !important;
  background: rgba(254,242,242,0.97) !important;
  border-color: #fecaca !important;
}

#dashboardView .day-hours {
  margin: 0 0 14px 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  color: #047857 !important;
  letter-spacing: 0 !important;
}

#dashboardView .day.capacity-medium .day-hours,
#dashboardView .day.capacity-busy .day-hours {
  color: #ea580c !important;
}

#dashboardView .day.capacity-full .day-hours,
#dashboardView .day.capacity-closed .day-hours,
#dashboardView .day.other-month .day-hours {
  display: none !important;
}

#dashboardView .event-pill {
  margin-top: 8px !important;
  height: 31px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  max-width: 100% !important;
}

#dashboardView .event-pill::before {
  flex: 0 0 auto;
}

#dashboardView .day.selected {
  outline: 3px solid #2563eb !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18), 0 12px 24px rgba(37,99,235,0.10) !important;
}

@media (max-width: 1100px) {
  #dashboardView .day { padding: 13px 10px 10px !important; min-height: 160px !important; }
  #dashboardView .day-number { font-size: 16px !important; }
  #dashboardView .day-load-badge { font-size: 10px !important; padding: 3px 8px !important; }
  #dashboardView .day-hours { font-size: 11px !important; }
  #dashboardView .event-pill { font-size: 11px !important; height: 28px !important; }
}


/* Nova v4: ryddigere månedsvisning
   - Åpne dager vises kun med grønn bakgrunn, uten Åpent/åpningstid-tekst
   - Delvis booket vises med gul/oransje badge
   - 100% booket og stengt vises rødt
   - Beholder de mindre/event-pill rammene slik de var før */
#dashboardView .day {
  padding: 10px 12px !important;
  min-height: 145px !important;
}

#dashboardView .day-topline {
  align-items: center !important;
  margin-bottom: 8px !important;
}

#dashboardView .day-number {
  font-size: 18px !important;
  font-weight: 900 !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-free,
#dashboardView .day:not(.other-month).capacity-free {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-medium,
#dashboardView .day:not(.other-month).capacity-medium {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 72%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-busy,
#dashboardView .day:not(.other-month).capacity-busy {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%) !important;
}

#dashboardView .day:not(.other-month):not(.past-day).capacity-full,
#dashboardView .day.capacity-full,
#dashboardView .day:not(.other-month):not(.past-day).capacity-closed,
#dashboardView .day.capacity-closed,
#dashboardView .day.other-month {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 74%) !important;
}

#dashboardView .day-load-badge {
  display: none !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 16px rgba(15,23,42,0.05) !important;
}

#dashboardView .day.capacity-medium .day-load-badge,
#dashboardView .day.capacity-busy .day-load-badge,
#dashboardView .day.capacity-full .day-load-badge,
#dashboardView .day.capacity-closed .day-load-badge {
  display: inline-flex !important;
}

#dashboardView .day.capacity-medium .day-load-badge,
#dashboardView .day.capacity-busy .day-load-badge {
  color: #ea580c !important;
  background: rgba(255,251,235,0.96) !important;
  border: 1px solid #fed7aa !important;
}

#dashboardView .day.capacity-full .day-load-badge,
#dashboardView .day.capacity-closed .day-load-badge {
  color: #b91c1c !important;
  background: rgba(254,242,242,0.97) !important;
  border: 1px solid #fecaca !important;
}

#dashboardView .day.capacity-free .day-load-badge {
  display: none !important;
}

#dashboardView .day-hours {
  display: none !important;
}

#dashboardView .day.capacity-medium .day-number,
#dashboardView .day.capacity-busy .day-number {
  color: #ea580c !important;
}

#dashboardView .day.capacity-full .day-number,
#dashboardView .day.capacity-closed .day-number,
#dashboardView .day.other-month .day-number {
  color: #dc2626 !important;
}

#dashboardView .event-pill {
  margin-top: 8px !important;
  height: auto !important;
  min-height: 28px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  max-width: 100% !important;
}

@media (max-width: 1100px) {
  #dashboardView .day { min-height: 132px !important; padding: 9px 9px !important; }
  #dashboardView .day-number { font-size: 16px !important; }
  #dashboardView .day-load-badge { font-size: 10px !important; padding: 3px 7px !important; }
  #dashboardView .event-pill { font-size: 11px !important; min-height: 26px !important; }
}

/* Nova v5: månedsvalg + kun aktiv måned + dagens dato */
#dashboardView .month-select {
  appearance: none;
  min-width: 178px;
  padding: 9px 34px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background:
    linear-gradient(45deg, transparent 50%, #334155 50%) right 14px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

#dashboardView .calendar-empty-day {
  background: linear-gradient(135deg, rgba(248,250,252,0.42), rgba(255,255,255,0.78)) !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

#dashboardView .calendar-empty-day::before,
#dashboardView .calendar-empty-day::after {
  display: none !important;
}

#dashboardView .day.today .day-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #22c55e;
  background: rgba(240,253,244,0.92);
  color: #14532d !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.10), 0 8px 18px rgba(34,197,94,0.12);
}

#dashboardView .day.today.selected .day-number {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16), 0 8px 18px rgba(34,197,94,0.16);
}

@media (max-width: 900px) {
  #dashboardView .month-select {
    min-width: 150px;
    font-size: 11px;
    padding: 8px 30px 8px 10px;
  }

  #dashboardView .day.today .day-number {
    width: 26px;
    height: 26px;
  }
}

/* Nova v6: forrige måned i starten av kalenderen skal vise status/bookinger,
   mens neste måned nederst fortsatt er blank. Andre-måned-dager får samme
   rolige fargekoding som aktiv måned, men litt svakere dato. */
#dashboardView .day.other-month.capacity-free {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%) !important;
}

#dashboardView .day.other-month.capacity-medium {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 72%) !important;
}

#dashboardView .day.other-month.capacity-busy {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%) !important;
}

#dashboardView .day.other-month.capacity-full,
#dashboardView .day.other-month.capacity-closed {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 74%) !important;
}

#dashboardView .day.other-month.capacity-free .day-number {
  color: #d23f63 !important;
}

#dashboardView .day.other-month.capacity-medium .day-number,
#dashboardView .day.other-month.capacity-busy .day-number {
  color: #ea580c !important;
}

#dashboardView .day.other-month.capacity-full .day-number,
#dashboardView .day.other-month.capacity-closed .day-number {
  color: #dc2626 !important;
}

#dashboardView .day.other-month.capacity-free .day-load-badge {
  display: none !important;
}

#dashboardView .day.other-month.capacity-medium .day-load-badge,
#dashboardView .day.other-month.capacity-busy .day-load-badge,
#dashboardView .day.other-month.capacity-full .day-load-badge,
#dashboardView .day.other-month.capacity-closed .day-load-badge {
  display: inline-flex !important;
}

/* Nova v7: dagens dato skal kun ha grønn ring, ikke blå valgt-rute.
   Blå rute brukes bare midlertidig på nylig valgt/booket dag. */
#dashboardView .day.today {
  box-shadow: none !important;
}

#dashboardView .day.today:not(.transient-selected) {
  outline: none !important;
}

#dashboardView .day.today:not(.transient-selected) .day-number {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 2px solid #22c55e !important;
  background: rgba(240,253,244,0.94) !important;
  color: #14532d !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.10), 0 8px 18px rgba(34,197,94,0.12) !important;
}

#dashboardView .day.transient-selected {
  outline: 3px solid #2563eb !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18), 0 12px 24px rgba(37,99,235,0.10) !important;
}

/* Nova v7: ryddigere månedskontroller. Dropdown er hovedvalg, pilene ligger fast på hver side. */
#dashboardView .month-controls {
  display: grid !important;
  grid-template-columns: 38px minmax(190px, 1fr) 38px auto auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: end !important;
}

#dashboardView .month-controls h2 {
  display: none !important;
}

#dashboardView .month-controls .month-nav-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#dashboardView .month-select {
  width: 100% !important;
  min-width: 190px !important;
  height: 38px !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  #dashboardView .month-controls {
    grid-template-columns: 36px minmax(150px, 1fr) 36px !important;
    width: 100% !important;
  }

  #dashboardView .month-controls .secondary,
  #dashboardView .month-controls .danger {
    grid-column: auto !important;
  }
}


/* Nova v8: måned + år velger, ryddige piler, og Dagsvisning er fjernet fra HTML. */
#dashboardView .month-controls {
  display: grid !important;
  grid-template-columns: 38px minmax(145px, 1fr) 88px 38px auto auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: end !important;
}

#dashboardView .month-controls h2 {
  display: none !important;
}

#dashboardView .month-select,
#dashboardView .year-select {
  height: 38px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  font-weight: 850 !important;
  padding: 0 34px 0 16px !important;
  outline: none !important;
}

#dashboardView .month-select {
  width: 100% !important;
  min-width: 145px !important;
}

#dashboardView .year-select {
  width: 88px !important;
  min-width: 88px !important;
}

#dashboardView .month-controls .month-nav-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

@media (max-width: 900px) {
  #dashboardView .month-controls {
    grid-template-columns: 36px minmax(130px, 1fr) 82px 36px !important;
    width: 100% !important;
  }

  #dashboardView .month-controls .secondary,
  #dashboardView .month-controls .danger {
    grid-column: auto !important;
  }
}

/* Nova v9: marker faktisk måned/år i dropdown med grønn ramme.
   Dette viser tydelig hva som er måneden/året akkurat nå, også når man blar rundt. */
#dashboardView .month-select.is-current-real-month,
#dashboardView .year-select.is-current-real-year {
  border-color: rgba(34, 197, 94, 0.82) !important;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.14),
    0 10px 24px rgba(15, 23, 42, 0.08) !important;
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.95)) !important;
  color: #14532d !important;
}

#dashboardView .month-select option.current-real-date-option,
#dashboardView .year-select option.current-real-date-option {
  background: #dcfce7 !important;
  color: #14532d !important;
  font-weight: 900 !important;
}

/* Tilbud i kalender */
.event-pill.estimate-pill{border:0;width:100%;text-align:left;cursor:pointer;background:rgba(255,184,77,.16);color:inherit;border:1px solid rgba(255,184,77,.32)}
.event-pill.estimate-pill:hover{background:rgba(255,184,77,.26)}

.estimate-booked-pill{font-weight:800;border-style:solid}


/* Tilbud fullført i kalender/timeline */
.event-pill.estimate-completed-pill{background:rgba(34,197,94,.18)!important;border-color:rgba(34,197,94,.45)!important;color:#14532d!important;font-weight:900}
.timeline-block.estimate-completed-block{background:linear-gradient(135deg,#16a34a,#15803d)!important;border-color:#86efac!important;box-shadow:0 12px 32px rgba(22,163,74,.24)!important}
.timeline-mini-text.estimate-done-label{background:rgba(255,255,255,.22);border-radius:999px;padding:2px 7px;font-weight:900}
.booking-detail-item.estimate-completed-info{border-color:#86efac!important;background:#f0fdf4!important;color:#14532d!important}


/* Nova: månedsstatistikk for fakturering, materialer, fortjeneste og timer */
.dashboard-finance-panel{margin:18px 0 22px;padding:20px;border:1px solid rgba(226,232,240,.95);border-radius:24px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 16px 40px rgba(15,23,42,.06)}
.dashboard-finance-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.dashboard-finance-head span{display:block;color:#64748b;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.dashboard-finance-head h2{margin:3px 0 0;color:#071433;font-size:22px}.dashboard-finance-head small{color:#64748b;font-weight:800}.dashboard-finance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.dashboard-finance-card{min-height:104px;padding:17px 18px;border-radius:20px;border:1px solid #e8eef7;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05)}.dashboard-finance-card span{display:block;color:#64748b;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.dashboard-finance-card strong{display:block;margin-top:8px;color:#071433;font-size:24px;font-weight:950}.dashboard-finance-card small{display:block;margin-top:5px;color:#64748b;font-weight:750;line-height:1.35}.dashboard-finance-card.profit-positive strong{color:#047857}.dashboard-finance-card.profit-negative strong{color:#b91c1c}.dashboard-finance-note{margin:12px 2px 0;color:#64748b;font-size:13px;font-weight:750;line-height:1.45}

/* =========================================================
   Nova mobile polish – gjør dashboard/nettside bedre på telefon
   ========================================================= */
@media (max-width: 768px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

  #dashboardView.dashboard {
    display: block !important;
    min-height: 100vh !important;
    background: #f3f6fb !important;
  }

  #dashboardView .dashboard-nav {
    position: sticky !important;
    top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    padding: 10px 10px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    z-index: 50 !important;
  }
  #dashboardView .dashboard-nav::-webkit-scrollbar { display: none; }
  #dashboardView .dashboard-nav::before { display: none !important; }

  #dashboardView .dashboard-nav-brand {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 4px 10px 4px 2px !important;
    border-bottom: 0 !important;
    border-right: 1px solid rgba(148,163,184,.20) !important;
  }
  #dashboardView .dashboard-nav-logo { width: 34px !important; height: 34px !important; border-radius: 12px !important; }
  #dashboardView .dashboard-nav-brand strong { font-size: 15px !important; }
  #dashboardView .dashboard-nav-brand span { display: none !important; }

  #dashboardView .dashboard-nav-links {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
  }
  #dashboardView .dashboard-nav-link {
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    padding: 10px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    transform: none !important;
  }
  #dashboardView .dashboard-nav-link span {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }
  #dashboardView .dashboard-nav-footer { display: none !important; }

  #dashboardView .main {
    min-height: calc(100vh - 64px) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px 24px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  #dashboardView .topbar {
    display: grid !important;
    gap: 12px !important;
    padding: 0 0 10px !important;
  }
  #dashboardView .topbar > div:first-child { min-width: 0 !important; }
  #dashboardView .topbar h1 { font-size: 24px !important; line-height: 1.1 !important; }
  #dashboardView .topbar p { font-size: 13px !important; }

  #dashboardView .month-controls {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 6px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
  }
  #dashboardView .month-controls h2 {
    text-align: center !important;
    font-size: 15px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #dashboardView .month-controls button {
    padding: 9px 10px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
  }

  #dashboardView .dashboard-top-info,
  #dashboardView .stats-grid,
  #dashboardView .overview-grid,
  #dashboardView .main-hub-grid {
    grid-template-columns: 1fr !important;
  }

  #dashboardView .calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px !important;
  }
  #dashboardView .calendar-head,
  #dashboardView .calendar-grid {
    min-width: 720px !important;
  }
  #dashboardView .calendar-head div {
    padding: 9px 8px !important;
    font-size: 12px !important;
  }
  #dashboardView .day {
    min-height: 96px !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
  #dashboardView .day::after { display: none !important; }
  #dashboardView .day-topline { margin-bottom: 4px !important; }
  #dashboardView .day-load-badge { min-width: 38px !important; padding: 3px 6px !important; font-size: 9px !important; }

  .modal-backdrop,
  .quick-booking-backdrop {
    padding: 10px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }
  .modal,
  .quick-booking-modal,
  .settings-modal,
  .booking-modal {
    width: min(100%, calc(100vw - 20px)) !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
    border-radius: 22px !important;
  }
  .quick-booking-grid,
  .quick-time-row,
  .booking-grid,
  .booking-input-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .booking-actions,
  .modal-actions,
  .actions {
    flex-direction: column !important;
  }
  .booking-actions button,
  .modal-actions button,
  .actions button {
    width: 100% !important;
  }

  #settingsModal .settings-shell,
  .settings-shell {
    grid-template-columns: 1fr !important;
  }
  .settings-menu {
    position: static !important;
    max-height: none !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 420px) {
  #dashboardView .dashboard-nav-link { padding: 9px 10px !important; font-size: 11px !important; }
  #dashboardView .month-controls { grid-template-columns: auto 1fr auto !important; }
  #dashboardView .month-controls .danger,
  #dashboardView .month-controls button[onclick*="logout"] { grid-column: 1 / -1; width: 100% !important; }
  #dashboardView .calendar-head,
  #dashboardView .calendar-grid { min-width: 650px !important; }
}


/* Superadmin pakkevalg per kunde */
.feature-toggle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:center;margin-top:12px}
.feature-toggle-grid label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(15,23,42,.12);border-radius:12px;background:rgba(255,255,255,.72);font-weight:700}
.feature-toggle-grid input{width:18px;height:18px}
