﻿/* =========================
BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f3f7;
  font-size: 14px;
}


/* =========================
TOPBAR
========================= */

.topbar {
  background: #ffffff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.topbar h1 {
  margin: 0;
  font-size: 14px;
}

.topbar-right button {
  background: #d62828;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}


/* =========================
LAYOUT
========================= */

.workspace {
  display: flex;
  height: calc(100vh - 50px);
  padding: 12px;
  gap: 12px;
}


/* =========================
SIDEBAR (GUL PANEL)
========================= */

.sidebar {
  width: 230px;
  padding: 10px;

  background: linear-gradient(180deg,#fff6cc,#ffeaa7);
  border-radius: 14px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


/* =========================
SUPERADMIN BADGE
========================= */

.superadmin-badge {
  background: #2f4fa3;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid #fff;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.superadmin-badge.is-active {
  background: #f5d76e;
  color: #000;
}

.superadmin-badge.is-warn {
  background: #ffb020;
  color: #000;
}

.superadmin-badge.is-danger {
  background: #ea5455;
  color: #fff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}


/* =========================
MINI STATUS
========================= */

.mini-status {
  background: linear-gradient(180deg,#7f97d9,#6b84cc);
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 12px;
}

.mini-status h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
}

.mini-status .meta {
  font-size: 12px;
}


/* STATUS PILLS */

   .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;

  border-radius: 999px;
  white-space: nowrap;

  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* fÃ¤rger */
.pill.ok {
  background: #28c76f;
  color: #fff;
}

.pill.warn {
  background: #ffb020;
  color: #000;
}

.pill.error {
  background: #ea5455;
  color: #fff;
}

.pill.ok { background: #28c76f; color: #fff; }
.pill.warn { background: #ffb020; color: #000; }
.pill.error { background: #ea5455; color: #fff; }


/* MINI FOOTER */

.mini-footer {
  margin-top: 8px;
  background: #ffffff;
  color: #333;
  padding: 6px;
  border-radius: 8px;
  font-size: 11px;
}


/* =========================
MENU â€“ CLEAN
========================= */

.menu-clean {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 10px;

  background: rgba(255,255,255,0.6);
  color: #1f2937;

  text-decoration: none;

  transition: all 0.15s ease;
}

.menu-item:hover {
  background: #ffd94d;
  transform: translateX(2px);
}

.menu-item.active {
  background: #f2c94c;
  font-weight: 600;
}

.menu-item .icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
}


/* =========================
DESK
========================= */

.desk {
  flex: 1;
  padding: 16px;
  background: radial-gradient(circle at 50% 30%, #a9bdf5 0%, #7f9be0 40%, #6d87d0 100%);
  border-radius: 18px;
}


/* =========================
SYSTEM STATUS
========================= */

.system-status {
  background: linear-gradient(180deg,#ffe8a3,#f2c94c);
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 13px;
}


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

.card {
  background: #f4f6fb;
  border-radius: 14px;
  padding: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.card__title {
  font-size: 14px;
  font-weight: bold;
}

.muted {
  font-size: 12px;
  color: #555;
}
.mini-buttons {
  display: flex;
  flex-wrap: nowrap;     /* ðŸ”¥ stoppar radbrytning */
  gap: 6px;
  margin-top: 6px;

  overflow-x: auto;      /* om det inte fÃ¥r plats */
  scrollbar-width: none;
}

.mini-buttons::-webkit-scrollbar {
  display: none;
}

.mini-buttons .pill {
  flex: 0 0 auto;        /* ðŸ”¥ superviktigt */
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 8px;        /* ðŸ”¥ mindre padding */
  font-size: 10px;         /* ðŸ”¥ mindre text */
  font-weight: 600;

  border-radius: 999px;
  white-space: nowrap;

  flex: 1;                 /* ðŸ”¥ delar utrymmet */
  min-width: 0;            /* ðŸ”¥ viktigt */
}
.mini-buttons {
  display: flex;
  gap: 4px;               /* ðŸ”¥ mindre mellanrum */
  flex-wrap: nowrap;
}
.mini-buttons .pill {
  overflow: hidden;
  text-overflow: ellipsis;   /* ðŸ”¥ om det blir tight */
}
.pill.ok {
  box-shadow: 0 0 6px rgba(40,199,111,0.6);
}

.pill.warn {
  box-shadow: 0 0 6px rgba(255,176,32,0.6);
}

.pill.error {
  box-shadow: 0 0 6px rgba(234,84,85,0.6);
}
/* Tele-users menu icon: blue shield + phone */
.tele-shield-icon {
  display: inline-block;
  width: 14px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  background: #2f80ed;
  clip-path: polygon(
    50% 0%,
    92% 16%,
    92% 48%,
    76% 78%,
    50% 100%,
    24% 78%,
    8% 48%,
    8% 16%
  );
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

/* Mini status pills - prevent E-POST from being clipped */
.mini-status .mini-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  overflow: visible;
}

.mini-status .mini-buttons .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: auto;
  max-width: none;
  padding: 4px 8px;
  line-height: 1;
  font-size: 11px;
  box-sizing: border-box;
}

/* PATCH 2026-05-10: kompakt vänstermeny med Ljud-knapp */
.menu-clean {
  gap: 5px !important;
  padding: 8px 10px !important;
}

.menu-item {
  min-height: 38px !important;
  padding: 7px 12px !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.menu-item .icon {
  width: 24px !important;
  min-width: 24px !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.menu-item span:not(.icon):not(.tele-shield-icon) {
  font-size: 15px !important;
  line-height: 1.15 !important;
}

.tele-shield-icon {
  width: 13px !important;
  height: 15px !important;
  margin-right: 2px !important;
}



.system-status.status-green {
  background: linear-gradient(135deg, #b8ffd0, #60d982) !important;
  border: 2px solid #00a83a !important;
  color: #002b12 !important;
}

.system-status.status-yellow {
  background: linear-gradient(135deg, #ffe784, #ffd34f) !important;
  border: 2px solid #d6a900 !important;
  color: #1f1600 !important;
}

.system-status.status-red {
  background: linear-gradient(135deg, #ffb0b0, #ff6868) !important;
  border: 2px solid #d00000 !important;
  color: #2b0000 !important;
}

.portal-dr-panel-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.portal-dr-action-btn {
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
  color: #06111f;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
}

.portal-dr-action-btn[data-dr-usb-action="trust"] {
  background: linear-gradient(135deg, #22c55e, #86efac);
}

.portal-dr-action-btn[data-dr-usb-action="ignore"] {
  background: linear-gradient(135deg, #ef4444, #fecaca);
}

.portal-dr-action-btn[data-dr-usb-action="ask-later"] {
  background: linear-gradient(135deg, #facc15, #fde68a);
}

.portal-dr-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

