﻿.bg-nav-tjk {
    background-color: #7e4859 !important;
    padding: 0px;
}

.bg-tjk {
    background-color: #7e4859 !important;
}
.hero-area {
    background-color: #7e4859 !important;
    color: white;
}

.btn-sm {
    padding: .09rem .5rem;
    font-size: .75rem;
    border-radius: .2rem;
}
.darker-bg {
    background: linear-gradient( rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) )
}
.title {
    font-size: 50px;
    font-family: Montserrat,Arial, Helvetica, sans-serif;
}
.subtitle {
    font-family: Montserrat,Arial, Helvetica, sans-serif;
    text-align: center;
    font-weight: 100;
    padding-bottom: 30px;
    position: relative;
    color: #bdc3c7;
}

/* ul > .active,
li > a:hover {
    background-color: #d5c8c0 !important;
} */
.navbar-dark .navbar-nav .nav-link {
    color: white;
}

li 
td > a {
    color: #4682b4;
    text-decoration: none;
}

td > a:hover {
    color: #4682b4;
    text-decoration: underline;
}


.toggle-vis:hover {
    color: #4682b4;
    text-decoration: underline;
}

.toggle-vis {
    color: #4682b4;
    text-decoration: none;
}


.btn {
   /* border-radius: 0 !important;*/
}

@font-face {
    font-family: Montserrat;
    src: url(fonts/Montserrat/Montserrat-Regular.ttf);
}

body {
    font-family: Montserrat;
    min-height: 100%;
}

.result-link {
    color: white;
    text-decoration: none;
}
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited{
    background-color: #3d566e !important;
    border-color: #3d566e !important;
}
.btn-outline-primary{
    border-color: #3d566e !important;
    color: #3d566e !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    background-color: #3d566e !important;
    color:white !important;
}

.bg-primary {
    background-color: #3d566e !important;
}

.footer {
    bottom: 0;
    height: 100px;
}

.tableTextSameLine {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px !important;
}

.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:hover {
    background-color: #3d566e !important;
    border-color: #3d566e !important;
    color: #fff !important;
}

.btn-outline-primary-standard{
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}
.btn-outline-primary-standard:hover, .btn-outline-primary-standard:active {
    background-color: #0d6efd !important;
    color:white !important;
}
.btn-primary-standard, .btn-primary-standard:hover, .btn-primary-standard:active, .btn-primary-standard:visited{
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.bg-primary-standard {
    background-color: #0d6efd !important;
}

/* ── Card base ───────────────────────────────────────────────────── */
.sl-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    border: none;
}

.sl-card > *:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.sl-card > *:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.sl-card > .list-group:last-child .list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── Inset bordered box (same radius as sl-card) ─────────────────── */
.sl-inset-box {
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* ── Info box ────────────────────────────────────────────────────── */
.sl-info-box {
    border-radius: 8px;
}

/* ── Tree picker scroll container ───────────────────────────────── */
.sl-tree-picker {
    max-height: 60vh;
    overflow: auto;
}

/* ── Scrollable modal list ───────────────────────────────────────── */
.sl-method-scroll {
    max-height: 300px;
    overflow-y: auto;
}

/* ── Error toast container ───────────────────────────────────────── */

/* ── Narrow search input group ──────────────────────────────────── */
.sl-search-narrow {
    max-width: 280px;
}

/* ── Inline badge dropdown ───────────────────────────────────────── */
.sl-inline-dropdown {
    position: absolute;
    z-index: 100;
    min-width: 100px;
    left: 50%;
    transform: translateX(-50%);
}
.sl-inline-dropdown-lg {
    min-width: 130px;
}

/* ── Inline editable field ───────────────────────────────────────── */
.sl-inline-edit {
    cursor: pointer;
}
.sl-inline-edit:hover,
.sl-card:hover .sl-inline-edit {
    outline: 1px dashed #adb5bd;
}

/* ── Shared status / revision pill badge ──────────────────────────── */
.sl-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1.5px solid;
}
.sl-badge.sl-green  { background: rgba(5, 150, 105, 0.12);  border-color: #059669; color: #065f46; }
.sl-badge.sl-red    { background: rgba(220, 38, 38, 0.12);   border-color: #dc2626; color: #991b1b; }
.sl-badge.sl-yellow { background: rgba(217, 119, 6, 0.12);  border-color: #d97706; color: #92400e; }
.sl-badge.sl-blue   { background: rgba(13, 110, 253, 0.12); border-color: #0d6efd; color: #1d4ed8; }
.sl-badge.sl-grey   { background: #f3f4f6; border-color: #d1d5db; color: #374151; }
.sl-badge.sl-violet { background: rgba(139, 92, 246, 0.1);  border-color: #8b5cf6; color: #6d28d9; }
.sl-badge.sl-teal   { background: rgba(20, 184, 166, 0.1);  border-color: #14b8a6; color: #0f766e; }
.sl-badge.sl-indigo { background: rgba(99, 102, 241, 0.1);  border-color: #6366f1; color: #4338ca; }

/* ── Icon circle (overview cards) ───────────────────────────────── */
.sl-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(13, 110, 253, 0.1);
}

/* ── Scrollable list container (dashboard cards) ────────────────── */
.sl-scroll-list {
    max-height: 420px;
    overflow-y: auto;
}
.sl-scroll-list thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 0 1px 0 #e9ecef;
}
.sl-scroll-list table > tbody {
    border-top: none;
}
.sl-scroll-list thead th[data-sort] {
    cursor: pointer;
    user-select: none;
}
.sl-scroll-list thead th[data-sort]:hover {
    color: #212529;
}

/* ── Notification badge (Åtgärdslista) ──────────────────────────── */
.sl-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Fact chips (overview header card) ──────────────────────────── */
.sl-fact-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    border: 1.5px solid;
    white-space: nowrap;
}
.sl-fact-chip-label { color: #111827; }
.sl-fact-chip-green { background: rgba(5,150,105,.08); border-color: #059669; }
.sl-fact-chip-green .sl-fact-chip-value,
.sl-fact-chip-green i { color: #059669; }
.sl-fact-chip-red   { background: rgba(220,38,38,.08);  border-color: #dc2626; }
.sl-fact-chip-red   .sl-fact-chip-value,
.sl-fact-chip-red   i { color: #dc2626; }
.sl-fact-chip-grey  { background: rgba(156,163,175,.1); border-color: #9ca3af; }
.sl-fact-chip-grey  .sl-fact-chip-value,
.sl-fact-chip-grey  i { color: #374151; }

/* ── Relations partial ───────────────────────────────────────────── */
.rel-scroll-list { max-height: 350px; overflow: auto; }
.rel-d-none      { display: none; }
.modal-dialog-widen { min-width: 1000px; }

.relation-connections-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8f9fa;
    border-bottom: 2px solid var(--bs-border-color);
    box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 2px 0 rgba(0,0,0,.03);
}
.relation-connections-header {
    border-bottom: 1px solid #3d566e;
    box-shadow: none;
}
.relation-connections-header + li {
    border-top: 0 !important;
}

.js-pair-filter.disabled {
    pointer-events: none;
    opacity: .65;
}
.js-pair-filter.disabled:hover,
.js-pair-filter.disabled:focus,
.js-pair-filter.disabled:active {
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
}
.js-pair-filter.disabled .js-pair-close { pointer-events: auto; cursor: pointer; }

/* ── Connection wizard (connectionModal) ─────────────────────────── */
@keyframes blink-bg {
    0%, 100% { background-color: inherit; }
    50% { background-color: rgb(170, 49, 49); color: white; }
}
.blinking { animation: blink-bg 0.5s ease-in-out 3; }

.step-content { min-height: 300px; }

.direction-card { cursor: pointer; transition: all 0.3s; }
.direction-card:hover { background-color: #f8f9fa; border-color: #3d566e; }
.direction-card.selected { border: 2px solid #3d566e; background-color: #f0f7ff; }

.connection-flow-item {
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    margin: 0 10px;
    position: relative;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 40px;
}
.connection-flow-item:hover { transform: scale(1.05); box-shadow: 0 0 6px rgba(0,0,0,0.2); }
.connection-flow-item.is-active {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(88,101,242,.35), 0 5px 11px rgba(0,0,0,.08);
}
.flow-direction, .flow-start, .flow-end, .flow-datatype, .flow-interface { background-color: #3d566e; }
.connection-flow-arrow { font-size: 24px; color: #6c757d; display: flex; align-items: center; }
.connection-preview { align-items: flex-start; }
.step-icon i { font-size: 1.2rem; }

.modern-radio { display: flex; justify-content: center; }
.modern-radio .form-check-input { display: none; }
.modern-radio .form-check-label {
    display: inline-block;
    width: 33%;
    min-width: 140px;
    padding: .6rem 1rem;
    border-radius: 6px;
    border: 2px solid #3d566e;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}
.modern-radio .form-check-label:hover { background-color: #eef0ff; }
.modern-radio .form-check-input:checked + .form-check-label { background-color: #3d566e; color: #fff; border-color: #3d566e; }
#step2 .col-6 { margin-left: auto; margin-right: auto; float: none; }
#step2 .select2-container { width: 100% !important; }

.interface-radio .form-check-input { display: none; }
.interface-radio .form-check-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: .4rem .8rem;
    border-radius: 6px;
    border: 2px solid #3d566e;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .9rem;
    min-height: 48px;
}
.interface-radio .form-check-label:hover { background-color: #eef0ff; }
.interface-radio .form-check-input:checked + .form-check-label { background-color: #3d566e; color: #fff; border-color: #3d566e; }
.interface-radio .form-check-input:checked + .form-check-label small { color: rgba(255,255,255,.85) !important; }

select optgroup { font-style: normal; font-weight: 600; }

/* ── Active filter badges (shared) ───────────────────────────────── */
.ov-filter-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 6px 2px 9px; border-radius: 999px;
    background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe;
    font-size: 0.74rem; font-weight: 500; white-space: nowrap;
}
.ov-filter-badge.ov-filter-global { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ov-filter-badge.ov-filter-condition-true  { background: #dcfce7; color: #14532d; border-color: #86efac; }
.ov-filter-badge.ov-filter-condition-false { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.ov-filter-badge.ov-filter-view { background: #f3e8ff; color: #6d28d9; border-color: #ddd6fe; }
.ov-filter-badge-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(29,78,216,.15); color: #1d4ed8;
    font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
    transition: background .1s;
}
.ov-filter-badge-x:hover                                          { background: rgba(29,78,216,.35); }
.ov-filter-badge.ov-filter-global          .ov-filter-badge-x     { background: rgba(146,64,14,.15);  color: #92400e; }
.ov-filter-badge.ov-filter-global          .ov-filter-badge-x:hover { background: rgba(146,64,14,.35); }
.ov-filter-badge.ov-filter-condition-true  .ov-filter-badge-x     { background: rgba(20,83,45,.12);   color: #14532d; }
.ov-filter-badge.ov-filter-condition-true  .ov-filter-badge-x:hover { background: rgba(20,83,45,.25); }
.ov-filter-badge.ov-filter-condition-false .ov-filter-badge-x     { background: rgba(127,29,29,.12);  color: #7f1d1d; }
.ov-filter-badge.ov-filter-condition-false .ov-filter-badge-x:hover { background: rgba(127,29,29,.25); }
.ov-filter-badge.ov-filter-view            .ov-filter-badge-x     { background: rgba(109,40,217,.15); color: #6d28d9; }
.ov-filter-badge.ov-filter-view            .ov-filter-badge-x:hover { background: rgba(109,40,217,.35); }
.ov-filter-badge.ov-filter-clear-all { background: #fef2f2; color: #dc2626; border-color: #fecaca; cursor: pointer; }
.ov-filter-badge.ov-filter-clear-all:hover { background: #fee2e2; }

/* ── Clickable overview cards ─────────────────────────────────────── */
.sl-card[role="button"] {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sl-card[role="button"]:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

/* ── Security content pane: allow vertical scroll, clip scale-hover bleed ── */
.sec-content-scroll {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── Security map (embedded in dashboard) ─────────────────────────── */
.sec-map-container { height: 480px; position: relative; }
.sec-map-tooltip   { z-index: 9999; max-width: 260px; pointer-events: none; }
.sec-map-overlay   { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* ── Person link / tooltip (shared by overview and security dashboard) */
.ov-person-link, .ov-person-link * { font-size: 1.05rem; text-decoration: none; background: transparent !important; }
.ov-person-link:hover { filter: brightness(1.3); }
.ov-person-badge { display: inline-block; font-size: 0.82rem !important; font-weight: 500; line-height: 1.5; }
.ov-person-badge::before, .ov-person-duo-item::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: middle; }
.ov-person-duo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: transparent !important; }
.ov-person-duo-item { font-size: 0.70rem !important; line-height: 1; display: inline-block; }
#ovPersonTooltip { display: none; position: fixed; z-index: 9999; background: rgba(17,24,39,0.88); backdrop-filter: blur(6px); border-radius: 8px; padding: 8px 13px; pointer-events: none; min-width: 150px; }
#ovPersonTooltip .pt-row { font-size: 0.75rem; color: #fff; line-height: 1.7; }
#ovPersonTooltip .pt-label { font-size: 0.62rem; color: rgba(255,255,255,0.65); display: block; }

/* ── Shared underline tab bar (EditSystem pattern) ────────────────────── */
.sys-tab-bar {
    position: relative;
    padding: 0 20px;
    margin-bottom: 1.5rem;
}
.sys-tab-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}
.sys-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.sys-tab-btn:hover { color: #212529; }
.sys-tab-btn.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 600; }

/* ── CRUD icon action buttons (reusable across all CRUD views) ────── */
.crud-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
    background: none;
    transition: background-color .15s;
}
.crud-icon-btn-edit {
    background-color: #dbeafe;
    color: #1d4ed8;
}
.crud-icon-btn-edit:hover {
    background-color: #bfdbfe;
    color: #1e40af;
}
.crud-icon-btn-delete {
    background-color: #fee2e2;
    color: #dc2626;
}
.crud-icon-btn-delete:hover {
    background-color: #fecaca;
    color: #b91c1c;
}
.crud-icon-btn-info {
    background-color: #cff4fc;
    color: #055160;
}
.crud-icon-btn-info:hover {
    background-color: #9eeaf9;
    color: #04414d;
}

/* ── CRUD modern table (reusable across all CRUD views) ───────────── */
.crud-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
    background: #fff;
}
.crud-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}
.crud-table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 12px 16px;
    white-space: nowrap;
    vertical-align: middle;
}
.crud-table tbody td {
    padding: 12px 16px;
    height: 56px;
    vertical-align: middle;
    border-top: 1px solid #f3f4f6;
    font-size: 0.875rem;
    white-space: nowrap;
}
.crud-table tbody tr:nth-child(odd) td  { background-color: #fff; }
.crud-table tbody tr:nth-child(even) td { background-color: #f5f6f8; }
.crud-table tbody tr:hover td           { background-color: #e9ecef; }

/* ── CRUD sortable column headers ────────────────────────────────── */
.crud-table thead th.sortable { cursor: pointer; user-select: none; position: relative; padding-right: 20px; }
.crud-table thead th.sortable::after { content: '⇅'; position: absolute; right: 6px; color: #c0c4cc; font-size: 0.72rem; }
.crud-table thead th.sort-asc::after  { content: '↑'; color: #374151; }
.crud-table thead th.sort-desc::after { content: '↓'; color: #374151; }

/* ── Role color dot (reusable: dashboard ansvar, overview, etc.) ──── */
.sl-role-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── CRUD color dot ───────────────────────────────────────────────── */
.crud-color-dot {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

/* ── CRUD search input ────────────────────────────────────────────── */
.crud-search { width: 210px; }

/* ── CRUD add button ──────────────────────────────────────────────── */
.crud-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #198754;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    color: #198754;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}
.crud-add-btn:hover {
    background-color: rgba(25, 135, 84, 0.07);
    color: #146c43;
    border-color: #146c43;
}

/* ── System map v2 ────────────────────────────────────────────────── */
.map-page-wrapper {
    height: calc(100vh - 52px);
    overflow: hidden;
}
.map-body {
    height: 100%;
    display: flex;
    flex-direction: row;
}
#cy-wrapper {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    position: relative;
}
#cy {
    width: 100%;
    height: 100%;
    background-color: #f0f2f5;
    background-image: radial-gradient(circle, #c4c9d4 1.3px, transparent 1.3px);
    background-size: 28px 28px;
}
.js-highlight-section {
    cursor: pointer;
}
#map-search-dropdown {
    z-index: 20;
    min-width: 300px;
    max-height: 320px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.map-search-suggestion {
    cursor: pointer;
}
.map-search-suggestion:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.map-search-suggestion-active {
    opacity: 0.6;
}
.map-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.map-search-group {
    width: 220px;
    flex-shrink: 0;
}

/* PDF export trigger — shared by the EditSystem topbar, the SecurityDashboard header
   and the start page (all load site.css via _LayoutSystemList). Icon with the word
   under it; the whole button is one click target, label included. */
.es-export-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-size: 1.4rem;
    color: #dc3545;
    cursor: pointer;
    transition: color .15s, transform .15s;
}
/* Its own size: the button's font-size belongs to the icon. */
.es-export-icon .es-export-icon-label {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
}
.es-export-icon:hover  { color: #b02a37; transform: translateY(-1px); }
.es-export-icon:active { transform: translateY(0); }
.es-export-icon:focus-visible { outline: 2px solid #dc3545; outline-offset: 2px; border-radius: 3px; }

