

.global-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  padding: 14px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 2000;
}


.hide-header .global-header {
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
}



.header-version {
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
  opacity: 0.6;
}

.header-account {
  margin-left: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.header-account small {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 6px;
}


.dimmed {
  opacity: 0.4;
  pointer-events: none;
}



    .border-blue-500 {
      border-color: #3b82f6 !important;
      border-width: 2px !important;
    }

    .item a {
      color: #1a0dab;
      text-decoration: underline;
      cursor: pointer;
    }
    .item a:hover {
      color: #551a8b;
    }

    .section-block {
      margin: 20px 0;
    }

    .editable-block {
      border: 1px solid #ccc;
      padding: 10px;
      min-height: 60px;
      border-radius: 6px;
      background: #fafafa;
      font-size: 1.1em;
    }

    #preview-container {
    border: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
    }

  #html-preview {
    width: 100%;
    height: 700px;
    border: 1px solid #aaa;
    background: white;
    border-radius: 4px;
    }

/* Roll-låst (får inte användas) */
.action-btn.dimmed {
  opacity: 0.35;
  pointer-events: none;
}

/* Dirty-låst (måste spara först) */
.action-btn.dirty-locked {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.4);
}


#action-bar {
  box-sizing: border-box;

  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  height: 45px;

  background: #fff;
  border-bottom: 1px solid #ddd;

  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 10px;

  z-index: 9990;
}

body.hide-action-bar #action-bar {
  display: none !important;
}


#btnGenerateHtml, #btnPublic, #btnUtskick {
  display: none;
}


/* Action bar grupper  ---------------------------------------*/


/* Grupp 1: Material */
#btnGenerateHtml,
#btnPublic,
#btnShowDatesEdit,
#btnShowDatesTemplate {
  background-color: #6f6fde !important;   /* tydlig blå */
  border-color: #4e41de !important;
  color: white !important;   /* ⭐ fixar snygg textfärg */
}

/* Grupp 2: Utskick / Kommunikation */
#btnUtskickPopup,
#btnDashboard {
  background-color: #cb9191 !important;   /* tydlig grå */
  border-color: #bdbdbd !important;
  color: white !important;   /* ⭐ fixar snygg textfärg */
}

/* Grupp 3: Admin */
#btnShowLog {
  background-color: #f3bb6b !important;   /* tydlig orange */
  border-color: #e0a96b !important;
  color: white !important;   /* ⭐ fixar snygg textfärg */
}

/* Logout separat */
#logout-btn {
  margin-left: auto; /* flyttar logout till höger */
  background-color: #f87171; /* valfritt: gör den rödare */
  color: white;
}

/* === Hover-effekt på knapparna (accent) === */

/* Grupp 1: Material spara (grön) */
#save-all:hover{
  background-color: #8cbdb5 !important;   /* lite ljusare grön */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Grupp 1: Material (blå) */
#btnAdmin:hover,
#btnShowDatesView:hover,
#btnGenerateHtml:hover,
#btnPublic:hover,
#btnShowDatesEdit:hover,
#btnShowDatesTemplate:hover {
  background-color: #7f7ffe !important;   /* lite ljusare blå */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Grupp 2: Utskick / Kommunikation (rosa/grå) */
#btnUtskickPopup:hover,
#btnDashboard:hover {
  background-color: #d7a3a3 !important;   /* lite ljusare */
  border-color: #c9c9c9 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);}

/* Grupp 3: Admin (orange) */
#btnShowLog:hover {
  background-color: #f8c67c !important;   /* lite ljusare */
  border-color: #e7b47c !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);}

/* Logout (matchar befintlig stil) */
#logout-btn:hover {
  background-color: #f98a8a !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);}


/* Format-toolbar --------------------------------------- */

#format-bar {
  position: fixed;
  left: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;

  width: max-content;
  max-width: calc(100vw - 20px);

  padding: 6px 8px;
  box-sizing: border-box;

  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;

  z-index: 5000;
}

.format-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.format-label {
  flex: 0 0 52px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
}

.format-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.format-btn {
  background: #8ab1de45;
  color: rgb(13, 12, 12);
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  white-space: nowrap;
  transition: background 0.2s;
}

.format-btn:hover {
  background: #97b7db;
}

/* Format-toolbar end --------------------------------------- */


html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

#studio-scroll {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  bottom: 0;

  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;

  padding: 0 16px;
}

#app-view {
  height: calc(100dvh - 90px);
  overflow-y: hidden;
}

button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#dirty-indicator {
  font-size: 18px;
  margin-left: 8px;
  cursor: help;
  color: #d97706; /* amber-600 */
}

.drag-handle {
  touch-action: none;
}

.drag-handle:hover svg {
  fill: #0ace00;
  cursor: grab;
}

.drag-handle:active svg {
  fill: #0ace00;
  cursor: grabbing;
}

.object-item {
  user-select: none;
}

.object-image-wrap {
  position: relative;
}

.object-image {
  cursor: pointer;
}

.image-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.image-toolbar-btn {
  padding: 6px 10px;
  border: 3px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5  );
  color: white;
  font-size: 13px;
  cursor: pointer;
}

.image-replace-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 13px;
  white-space: nowrap;
}

.image-replace-status[hidden] {
  display: none;
}

.image-replace-cancel {
  border: 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 20%);
  color: white;
  cursor: pointer;
}

.object-image-area {
  width: 100%;
}

.object-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 20px;
  border: 2px dashed #bbb;
  border-radius: 8px;
  background: #f7f7f7;
  color: #666;
  text-align: center;
}

.object-image-placeholder-title {
  font-weight: 600;
}

.object-image-placeholder-text {
  margin-top: 4px;
  font-size: 13px;
  color: #888;
}

button svg {
  transition: fill 0.15s ease;
}


.edit-btn {
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-btn svg {
  stroke: #000;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.edit-btn:hover svg {
  stroke: #0077ff; /* blå highlight vid hover */
  transform: scale(1.1);
}


.delete-btn {
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-btn svg {
  stroke: #000;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.delete-btn:hover svg {
  stroke: rgb(252, 1, 1);
  transform: scale(1.1);
}

.add-object-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: fit-content;
  margin: 14px 0 20px;
  padding: 8px 16px;

  border: 1px solid #aaa;
  border-radius: 7px;
  background: #f5f5f5;

  color: #444;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.add-object-btn:hover {
  background: #e9e9e9;
  border-color: #888;
}

.add-object-btn:active {
  transform: translateY(1px);
}

.add-object-plus {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

#link-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 6000; /* Viktigt */
}

@keyframes diamondBlink {
  0%   { opacity: 0;   filter: brightness(3) saturate(2); transform: scale(1.15); }
  40%  { opacity: 1;   filter: brightness(1.4) saturate(1.3); transform: scale(1.00); }
  70%  { opacity: 1;   filter: brightness(1.0) saturate(1.0); }
  100% { opacity: 1;   filter: none; }
}

.global-header .header-title.diamond {
  animation: diamondBlink 0.9s ease-out;
  display: inline-block;
}

.header-logo {
  height: 36px;   /* eller vad som passar */
  width: auto;
}

.header-title {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.header-title::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 90%;
  height: 220%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
}

.header-title.glint::after {
  animation: glintSweep 3.2s ease-out forwards;
}

@keyframes glintSweep {
  0%   { left: -120%; opacity: 0; }
  10%  { opacity: 0.4; }
  40%  { left: 20%; opacity: 1; }
  70%  { left: 120%; opacity: 0.6; }
  100% { left: 160%; opacity: 0; }
}



@keyframes glintSweep {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 120%; opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.dialog.hidden {
  display: none;
}

.dialog-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
  width: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.dialog-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.dialog-content textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 12px;
}

.dialog-content input[type="text"],
.dialog-content input[type="datetime-local"] {
  width: 100%;
  margin-bottom: 12px;
  padding: 6px;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-buttons button {
  padding: 8px 14px;
}

.utskick-row {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.utskick-row strong {
  color: #333;
}


.utskick-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s;
}

.utskick-item:hover {
  background: #f7f7f7;
}

.utskick-status {
  font-size: 22px;
}

.utskick-main {
  display: flex;
  flex-direction: column;
}

.utskick-date {
  font-size: 12px;
  color: #666;
}

.utskick-to {
  font-size: 12px;
  color: #444;
}

.duplicate-row {
  background-color: #fff7cc; /* mild gul */
}
.duplicate-row td[title] {
  cursor: help;
}



.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;

  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.popup:not(.hidden) {
  pointer-events: auto;
}

.popup.hidden {
  /* ⭐ Fade-out istället för display:none */
  opacity: 0;
  pointer-events: none; /* så man kan klicka igenom när den är gömd */
}


.hidden {
  display: none;
  visibility: hidden;
}

/* Själva popup-rutan */
.popup-content {
  background: white;
  padding: 20px 24px;
  width: 95%;
  max-height: 80vh;
  max-width: 95%;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


/* Gör h2 till en flex-container */
.popup-content h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
}

/* Stäng-knappen */
#closeUtskickPopup {
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
}


.popup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


#date-list {
  width: 100%;  
}

/* Panelens grund */
.slide-panel {
  position: fixed;
  top: 0;
  right: -320px; /* gömd */
  width: 320px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #ddd;
  box-shadow: -4px 0 12px rgba(0,0,0,0.08);
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-sizing: border-box;
}

/* När panelen är öppen */
.slide-panel.open {
  right: 0;
}

/* Header */
.slide-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 600;
}

/* Innehåll */
.slide-panel-content {
  padding: 16px;
    width: 100%;
  box-sizing: border-box;
  overflow: auto;
}


/* Stäng-knapp */
.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.close-btn:hover {
  opacity: 1;
}


/* använd denna klass för att få en snygg layout med stäng-knappen */
.header-close {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


#toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* gör att klick går igenom */
}

.toast {
  background: rgba(50, 50, 50, 0.95);
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto; /* toasten själv kan få hover/click om du vill */
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

[contenteditable="true"][data-placeholder]:empty::before,
[contenteditable="true"][data-placeholder]:not(:focus):has(br:only-child)::before {
  content: attr(data-placeholder);
  color: #888;
  font-style: italic;
  pointer-events: none;
}

#analyze-view,
#admin-view {
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#admin-view {
  background: #f8fafc;
  color: #1f2937;
}

.admin-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px calc(40px + env(safe-area-inset-bottom, 0px));
}

.admin-content h1 {
  margin: 28px 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.admin-intro,
.admin-card-description {
  color: #5f6b7a;
  line-height: 1.6;
}

.admin-section {
  margin-top: 32px;
}

.admin-section h2 {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 14px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.admin-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--admin-icon-background);
  color: var(--admin-icon-color);
}

.admin-card-add {
  --admin-icon-background: #edf8f0;
  --admin-icon-color: #287344;
}

.admin-card-destinations {
  --admin-icon-background: #edf4ff;
  --admin-icon-color: #3569a8;
}

.admin-card-users {
  --admin-icon-background: #f4effb;
  --admin-icon-color: #7952a3;
}

.admin-card-log {
  --admin-icon-background: #f1f5f9;
  --admin-icon-color: #475569;
}

.admin-card-title {
  font-size: 18px;
  font-weight: 600;
}

.admin-card-description {
  font-size: 14px;
}

.admin-card:focus-visible {
  outline: 2px solid #3569a8;
  outline-offset: 3px;
}

.admin-form-header {
  margin-top: 28px;
}

.admin-form-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.admin-form {
  max-width: 620px;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.admin-form-field label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.admin-form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.admin-form-field input:focus {
  border-color: #3569a8;
  outline: 3px solid rgb(53 105 168 / 12%);
}

.admin-form-help {
  color: #64748b;
  font-size: 13px;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.studio-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 38px;
  padding: 8px 15px;

  border: 1px solid #cfd5dc;
  border-radius: 8px;

  background: #fff;
  color: #27313d;

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.03);

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.studio-primary-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.studio-primary-action:hover {
  background: #f8fafc;
  border-color: #aeb8c4;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 10px rgba(0, 0, 0, 0.04);

  transform: translateY(-1px);
}

.studio-primary-action:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.studio-primary-action:focus-visible {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}

.destination-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 16px;
}

.destination-search {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  max-width: 460px;
}

.destination-search-label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.destination-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.destination-search input:focus {
  border-color: #3569a8;
  outline: 3px solid rgb(53 105 168 / 12%);
}

.destination-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
}

.destination-table {
  width: 100%;
  border-collapse: collapse;
}

.destination-table th {
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: left;
}

.destination-table td {
  padding: 8px 16px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.destination-table tbody tr:last-child td {
  border-bottom: 0;
}

.destination-sort {
  width: 100%;
  padding: 9px 16px;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.destination-sort-indicator {
  margin-left: 4px;
  font-size: 9px;
}

.destination-name {
  font-weight: 600;
}

.destination-phone,
.destination-modified {
  color: #475569;
}

.destination-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.destination-status.is-active {
  background: #edf8f0;
  color: #287344;
}

.destination-status.is-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.destination-list-message {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
}

.destination-actions-column {
  width: 132px;
}

.destination-actions-heading {
  display: block;
  padding: 9px 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.destination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.destination-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.destination-action-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.destination-delete-btn {
  color: #995e5e;
}

.destination-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin-right: 3px;
}

.destination-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.destination-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s;
}

.destination-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 20%);
  transition: transform 0.15s;
}

.destination-switch input:checked + .destination-switch-slider {
  background: #527660;
}

.destination-switch input:checked + .destination-switch-slider::after {
  transform: translateX(14px);
}

.destination-switch input:focus-visible + .destination-switch-slider {
  outline: 2px solid #3569a8;
  outline-offset: 2px;
}

.destination-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(15 23 42 / 35%);
}

.destination-edit-modal[hidden] {
  display: none;
}

.destination-edit-dialog {
  width: min(100%, 430px);
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgb(15 23 42 / 22%);
}

.destination-edit-dialog h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.destination-edit-fields {
  display: grid;
  gap: 16px;
}

.destination-edit-fields label {
  display: grid;
  gap: 6px;
}

.destination-edit-fields label > span {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.destination-edit-fields input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.destination-edit-fields input:focus {
  border-color: #64748b;
  outline: 2px solid rgb(100 116 139 / 15%);
}

.destination-edit-error {
  margin-top: 14px;
  color: #995e5e;
  font-size: 14px;
}

.destination-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .destination-edit-modal {
    padding: 14px;
  }

  .destination-edit-dialog {
    padding: 20px;
  }
}

.destination-import-card {
  max-width: 900px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.destination-import-card > label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

#destination-import-text {
  display: block;
  width: 100%;
  min-height: 280px;
  box-sizing: border-box;
  padding: 14px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

#destination-import-text:focus {
  border-color: #64748b;
  outline: 2px solid rgb(100 116 139 / 15%);
}

.destination-import-hint {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.destination-import-submit {
  padding: 7px 12px;
  border: 1px solid #527660;
  border-radius: 7px;
  background: #527660;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.destination-import-submit:hover:not(:disabled) {
  background: #42634f;
}

.destination-import-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.destination-import-button {
  padding: 6px 11px;
  border: 1px solid #64748b;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.destination-import-button:hover {
  background: #f1f5f9;
  border-color: #475569;
}

.destination-import-button:focus-visible {
  outline: 2px solid #3569a8;
  outline-offset: 2px;
}

.destination-import-preview {
  max-width: 900px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.destination-import-preview-header h3 {
  margin: 0;
  font-size: 18px;
}

.destination-import-preview-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.destination-import-message {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

.destination-import-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

.destination-import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.destination-import-table th,
.destination-import-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.destination-import-table th {
  background: #f8fafc;
  vertical-align: top;
}

.destination-import-column-select {
  min-width: 130px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

.destination-import-original-heading {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
}

.destination-import-row-invalid {
  background: #fff7f7;
}

.destination-import-row-duplicate {
  background: #fffaf0;
}

.destination-import-row-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.destination-import-row-status.is-valid {
  color: #527660;
}

.destination-import-row-status.is-invalid {
  color: #995e5e;
}

.destination-import-row-status.is-duplicate {
  color: #946b32;
}

.destination-import-status-heading {
  min-width: 145px;
}

.destination-import-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.destination-import-problem-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.destination-import-problem-filter input {
  margin: 0;
}

.destination-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.destination-import-update-option {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
}

.destination-import-update-option input {
  margin: 0;
}

.destination-import-row-status.is-existing {
  color: #64748b;
}

.destination-import-row-status.is-update {
  color: #946b32;
}

.destination-tools {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.destination-import-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.destination-count {
  color: #64748b;
  font-size: 13px;
  margin-top: 8px;
}
.destination-update-existing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.destination-update-existing input {
  width: 12px;
  height: 12px;
  margin: 0;
}


@media (max-width: 600px) {
  .destination-import-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .destination-import-preview-header {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .destination-import-card {
    padding: 16px;
  }

  #destination-import-text {
    min-height: 240px;
  }
}


@media (hover: hover) and (pointer: fine) {
  .destination-action-btn:hover {
    background: #f1f5f9;
    color: #334155;
  }

  .destination-delete-btn:hover {
    background: #f8eeee;
    color: #834e4e;
  }
}

@media (hover: hover) and (pointer: fine) {
  .destination-table tbody tr:hover {
    background: #f8fafc;
  }

  .destination-sort:hover {
    color: #1f2937;
  }
}

@media (max-width: 600px) {
  .admin-form {
    padding: 20px;
  }

  .admin-form-actions {
    flex-direction: column-reverse;
  }

  .admin-form-actions .dt-btn {
    width: 100%;
  }
}


@media (hover: hover) and (pointer: fine) {
  .admin-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgb(15 23 42 / 8%);
  }
}

@media (max-width: 600px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#analyzeTable {
  font-size: 11px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 4px solid #ccc;
  border-top-color: #4e79a7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 10px 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#save-indicator:not([hidden]) {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #444;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  pointer-events: none;
  z-index: 5000;
}

#save-indicator .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  #save-indicator .spinner { animation: none; }
}

#chartTitle {
  font-size: 14px;
  margin-bottom: 8px;
  color: #444;
}


  


@keyframes fadeIn {
  from { opacity:0 }
  to { opacity:1 }
}
@keyframes popIn {
  from { transform:scale(0.92); opacity:0 }
  to { transform:scale(1); opacity:1 }
}




.utskick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.utskick-table th,
.utskick-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.utskick-table tbody tr:hover {
  background: #f5f5f5;
}

.utskick-actions {
  display: flex;
  gap: 6px;
  opacity: 0.7;
}

.utskick-actions span {
  cursor: pointer;
  font-size: 14px;
}

.utskick-actions span:hover {
  opacity: 1;
}

.utskick-table thead th {
  background: #f0f4ff;      /* ljus blå ton */
  color: #2a3f7a;           /* mörkare blå text */
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 2px solid #d0d8f0;
}

.utskick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid #ddd;
}

.utskick-title {
  font-size: 18px;
  font-weight: 600;
}

.utskick-header-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.75;
  padding: 2px 4px;
}

.icon-btn:hover {
  opacity: 1;
}

.close-x {
  font-size: 20px;
}


/* === SMS-dialogen: tydligare, renare, modernare === */

/* Block runt preview + meta + varning */
.sms-info-block {
  margin-top: 12px;
  padding: 12px;
  background: #f6f6f6;          /* lite tydligare än #fafafa */
  border: 1px solid #d0d0d0;    /* mildare kontrast */
  border-radius: 6px;
}

/* Preview-rutan (det som faktiskt skickas) */
.sms-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.sms-preview {
  white-space: pre-wrap;
  font-family: monospace;
  background: #ffffff;
  border: 1px solid #bcbcbc;    /* lite mörkare för tydlighet */
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  color: #222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* subtil kort-effekt */
}

/* Teckenräkning + segmentinfo */
.sms-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #444;                  /* lite tydligare än #555 */
  margin-bottom: 10px;
}

/* Varning om {LÄNK} saknas */
.sms-warning {
  display: none;
  background: #fff6d6;          /* modern mild gul */
  border: 1px solid #e6c200;
  padding: 10px;
  border-radius: 4px;
  color: #7a5f00;
  font-weight: 600;
}

/* Gul varning (mild) */
.sms-warning-yellow {
    background-color: #fff6d6;
    border-left: 4px solid #f0c200;
    color: #7a5f00;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 4px;
}

.sms-warning-red {
    background-color: #ffe5e5;
    border-left: 4px solid #d00000;
    color: #7a0000;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 4px;
}

.sms-warning-tooltip {
    position: relative;
    cursor: help;
}

.sms-warning-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-top: 4px;
    z-index: 999;
}


/* Inputfält */
#smsText,
#smsKeywords,
#utskick-time {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}

#smsText:focus,
#smsKeywords:focus,
#utskick-time:focus {
  border-color: #888;
  background: #fff;
}

/* Knappar */
#utskick-send {
  background: #2d7dd2;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
}

#utskick-send:hover {
  background: #1f5fa3;
}

#utskick-cancel {
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
}

#utskick-cancel:hover {
  background: #ddd;
}

/* Rubriker */
#utskick-dialog label {
  color: #555;
  font-weight: 600;
  margin-top: 10px;
  display: block;
}




/* Backdrop */
.override-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 9998;   /* ⭐ FIX */
}

.override-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    width: 360px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    text-align: center;
    font-family: sans-serif;
    z-index: 9999;   /* ⭐ FIX */
}

.override-window h2 {
    margin-top: 0;
    color: #b00000;
}

.override-window p {
    margin: 15px 0 25px;
    font-size: 14px;
    color: #444;
}

/* Buttons */
.override-buttons {
    display: flex;
    justify-content: space-between;
}

.btn-danger {
    background: #d00000;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #ddd;
    color: #333;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

/* Hidden state */
.override-hidden {
    display: none;
}




/* spara detta ======================================================================================================*/
/* === Tooltip UNDER knappen — ren, vit, bred, med pil === */

/* === Tooltip UNDER knappen — vit, bred, med pil, aldrig utanför skärmen === */

/* === Tooltip UNDER knappen — vänsterjusterad, säker, med pil === */

.action-btn {
  position: relative;
  background: #006aff;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #005fcc;
}

#delete-all-btn {
  background: transparent;
  color: #b13b3b;
  padding: 2px 4px;
}

#delete-all-btn:hover:not(:disabled) {
  color: #8f2424;
}

#delete-all-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#save-all {
  background-color: #527660;
}

#discard-changes {
  background-color: #995e5e;
}

#save-all:hover:not(:disabled) {
  background-color: #42634f;
}

#discard-changes:hover:not(:disabled) {
  background-color: #834e4e;
}

#save-all:disabled,
#discard-changes:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Själva rutan */
.action-btn::after {
  content: attr(data-tip);
  position: absolute;

  top: calc(100% + 8px);   /* under knappen */
  left: 0;                 /* börjar vid knappens vänsterkant */
  
  background: rgba(255,255,255,0.95);
  color: #222;
  border: 1px solid #ddd;

  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-line;
  text-align: left;

  min-width: 180px;
  max-width: min(280px, 100vw - 20px);  /* aldrig utanför skärmen */
  
  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.action-btn:hover::after {
  opacity: 1;
  transform: translateY(2px);
}

/* Pil under knappen, vid vänsterkant */
.action-btn::before {
  content: "";
  position: absolute;

  top: calc(100% + 2px);
  left: 12px;  /* lite in från vänsterkant */

  border-width: 6px;
  border-style: solid;
  border-color: rgba(255,255,255,0.95) transparent transparent transparent;

  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.action-btn:hover::before {
  opacity: 1;
  transform: translateY(2px);
}

.destination-import-validation {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.destination-import-validation strong {
  color: #1e293b;
}

/* ==================== Logg-dialogen ==================== */

.log-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9999;
  padding: 30px;
}

.log-dialog {
  background: #fff;
  width: min(1500px, 96vw);
  margin: 0 auto;
  border-radius: 10px;
  max-height: 88vh;

  display: flex;
  flex-direction: column;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 24px 14px;
}

.log-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.log-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.55;
}

.log-close:hover {
  opacity: 1;
}

.log-toolbar {
  padding: 0 24px 14px;
}

.log-search-wrap {
  position: relative;
  max-width: 520px;
}

.log-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 16px;
  height: 16px;

  transform: translateY(-50%);

  fill: none;
  stroke: #7a7f87;
  stroke-width: 2;
  stroke-linecap: round;

  pointer-events: none;
}

#log-search {
  width: 100%;
  height: 36px;

  padding: 7px 12px 7px 36px;

  border: 1px solid #ccd2da;
  border-radius: 7px;

  background: #fff;
  font: inherit;
  font-size: 13px;
}

#log-search:focus {
  outline: none;
  border-color: #9299a5;
  box-shadow: 0 0 0 2px rgba(80, 90, 110, 0.08);
}

.log-table-wrap {
  margin: 0 24px;

  max-height: 65vh;
  overflow: auto;

  border-top: 1px solid #e4e7eb;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.log-table th {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 5px 10px;
  text-align: left;

  background: #f1f3ff;
  border-bottom: 1px solid #d8dcef;

  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.log-table td {
  padding: 3px 10px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

.log-table tbody tr:hover {
  background: #fafbfc;
}

.log-empty {
  padding: 30px;
  text-align: center;
  color: #777;
}

.log-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  padding: 16px 24px 18px;
}

.log-page-button {
  padding: 7px 13px;
  border: 1px solid #ccd2da;
  border-radius: 6px;

  background: #fff;
  color: #27313d;

  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.log-page-button:hover:not(:disabled) {
  background: #f5f6f8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.log-page-button:disabled {
  opacity: 0.35;
  cursor: default;
}

#log-page-info {
  font-size: 12px;
  color: #555;
}

/* ==================== small media (phones) css ==================== */

@media (max-width: 600px) {
  .global-header {
    gap: 4px;
    padding: 8px 5px;
    font-size: 15px;
  }

  .global-header .header-logo {
    width: 55px;
    max-width: 55px;
    height: auto;
    flex-shrink: 0;
  }

  .header-version {
    font-size: 9px;
    margin-left: 2px;
  }

  .header-account {
    margin-left: 3px;
    font-size: 11px;
  }

  .header-account small {
    font-size: 9px;
    margin-left: 2px;
  }

  #utskick-dialog {
    padding: 8px;
    box-sizing: border-box;
  }

  #utskick-dialog .dialog-content {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    margin: 0 auto;
  }

  #utskick-dialog input,
  #utskick-dialog textarea,
  #utskick-dialog select {
    max-width: 100%;
    box-sizing: border-box;
  }


  /* ---------- Utskickslistan ---------- */

  .popup {
    padding: 8px;
    box-sizing: border-box;
  }

  .popup-content {
    box-sizing: border-box;

    width: 100%;
    max-width: 100%;

    padding: 12px;
    max-height: calc(100dvh - 16px);

    overflow-x: hidden;
    overflow-y: auto;
  }

  .utskick-item {
    box-sizing: border-box;
    width: 100%;

    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "status main"
      "status actions";

    gap: 6px 8px;
    padding: 8px;
  }


  .utskick-main {
    min-width: 0;
  }


  /* ---------- Ändra utskick ---------- */

  .dialog {
    padding: 8px;
    box-sizing: border-box;
  }

  .dialog-content {
    box-sizing: border-box;

    width: 100%;
    max-width: 100%;

    padding: 14px;

    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .dialog-content input[type="text"],
  .dialog-content input[type="datetime-local"],
  .dialog-content textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }


.utskick-date,
.utskick-to {
  overflow-wrap: anywhere;
}



  /* Dölj på mobil:
     Job ID, Web, Ändrad, Nyckelord och actions */
  .utskick-table th:nth-child(1),
  .utskick-table td:nth-child(1),
  .utskick-table th:nth-child(3),
  .utskick-table td:nth-child(3),
  .utskick-table th:nth-child(7),
  .utskick-table td:nth-child(7),
  .utskick-table th:nth-child(9),
  .utskick-table td:nth-child(9) {
    display: none;
  }

  .utskick-table {
    width: 100%;
    table-layout: fixed;
  }

  /* Status */
  .utskick-table th:nth-child(2),
  .utskick-table td:nth-child(2) {
    width: 28px;
  }

  /* Skickas */
  .utskick-table th:nth-child(4),
  .utskick-table td:nth-child(4) {
    width: 72px;
  }

  /* Klart */
  .utskick-table th:nth-child(5),
  .utskick-table td:nth-child(5) {
    width: 42px;
  }

  /* Antal */
  .utskick-table th:nth-child(6),
  .utskick-table td:nth-child(6) {
    width: 35px;
    text-align: right;
  }

  /* SMS får resterande bredd */
  .utskick-table th:nth-child(8),
  .utskick-table td:nth-child(8) {
    width: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* edit och delete knapparna får lite mer plats på mobil */
  .utskick-table th:nth-child(10),
  .utskick-table td:nth-child(10) {
    width: 48px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .utskick-actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
  }

/* global header i app view skalas ned så den får plats på 1 rad*/

  #app-view > .global-header {
    flex-wrap: nowrap;
    gap: 2px;
    padding: 6px 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  #app-view > .global-header .header-logo {
    width: 42px;
    max-width: 42px;
    height: auto;
    flex-shrink: 0;
  }

  #app-view > .global-header .header-title {
    font-size: 12px;
  }

  #app-view > .global-header .header-version {
    font-size: 8px;
    margin-left: 1px;
  }

  #app-view > .global-header .header-account {
    font-size: 9px;
    margin-left: 2px;
  }

  #app-view > .global-header .header-account small {
    font-size: 7px;
    margin-left: 1px;
  }

  /* action bar ska få plats */
  #action-bar {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 4px 3px;
    -webkit-overflow-scrolling: touch;
  }

  #action-bar .action-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 5px 7px;
    font-size: 11px;
  }

  .destination-toolbar {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.destination-search {
  max-width: none;
}

.destination-count {
  padding-bottom: 0;
}

.destination-table td,
.destination-sort {
  padding: 7px 10px;
}

.destination-modified-column {
  display: none;
}



}
