﻿/*Tillfälliga till det är dags för riktiga*/




#AuditOccasionFormExport_bs5 #ContentPlaceHolder1_GridViewRevPunkter thead th:nth-child(9),
#AuditOccasionFormExport_bs5 #ContentPlaceHolder1_GridViewRevPunkter thead th:nth-child(10),
#AuditOccasionFormExport_bs5 #ContentPlaceHolder1_GridViewRevPunkter tbody td:nth-child(9),
#AuditOccasionFormExport_bs5 #ContentPlaceHolder1_GridViewRevPunkter tbody td:nth-child(10),
#ModulAckUnderhallsjournalUpload_bs5 .underhallinfo,
#ModulAckUnderhallsjournalUpload_bs5 .underhallnoupload,
#ModulAckUnderhallsjournalUpload_bs5 .underhallupload,
#ModulAckUnderhallsjournalUpload_bs5 .sparaknappar,
#modulRadera, #modulMakulera,
#activitiesMain .month, 
#msystem_page, 
#NEWBtnSaveClear, 
#modulpanebtn,
#gbvpanebtn,
#ackpanebtn,
#gmvpanebtn,
#msyspanebtn,
#acpanebtn,
#gaspanebtn,
#konceptpanebtn,
#skadeverkstadpanebtn,
#arbmiljohhandbokpanebtn,
#arendenpanebtn, 
#uc_statusModulesAccess_bs5_top_modulesAccessAll {
    display: none;
}

/*
.main-content {
    overflow-y: auto;
    height: 100vh;
}
*/
#page-todo-all .card .accordion ul {
    max-height: 300px;
    overflow: auto;
}

#page-todo-all .accordion .accordion-button {
    font-size: 0.9rem !important
}

    #page-todo-all .accordion .accordion-button:hover {
        font-size: 0.9rem !important
    }




/* ── Bedömning / Risk radioknappar ──────────────────────────── */
.assessment-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: background .15s;
}

    .assessment-option:hover {
        background: rgba(52,71,103,.06);
    }



    .assessment-option input[type=radio] {
        width: 1.1rem;
        height: 1.1rem;
        accent-color: #344767;
        cursor: pointer;
    }

/* ── Läs-mer collapse-länk ───────────────────────────────────── */
.collapse-toggle-icon {
    transition: transform .2s;
    display: inline-block;
}

.collapsed .collapse-toggle-icon {
    transform: rotate(-90deg);
}

/* ── Filuppladdning toggle ────────────────────────────────────── */
.toggle_files {
    color: #344767;
}

    .toggle_files:hover {
        text-decoration: underline;
    }

/* ── Risk-badge i sidekortet ─────────────────────────────────── */
#riskBadge {
    font-size: .75rem;
    letter-spacing: .04em;
}


span.status1 {
    display: inline-block;
    background-color: lime;
    color: lime;
    width: 100%;
}

span.status1 {
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    background-color: lime;
    margin-left: 1em;
    color: hsla(0, 0%, 100%, 0);
}

span.status3 {
    display: inline-block;
    background-color: red;
    color: red;
    width: 100%;
}

span.status3 {
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    background-color: red;
    margin-left: 1em;
    color: hsla(0, 0%, 100%, 0);
}

span.status5 {
    display: inline-block;
    background-color: #00ff21;
    color: #00ff21;
    border: solid 2px red;
    width: 100%;
}

span.status5 {
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    background-color: #00ff21;
    border: solid 2px red;
    margin-left: 1em;
    color: hsla(0, 0%, 100%, 0);
}

#avvikelsetyp a, #modulesPanel a {
    transition: all 0.3s ease;
}

    #modulesPanel a div {
        width: 64px;
        height: 64px;
    }




    #modulesPanel a.active div {
        background-color: #0073aa;
        color: white;
    }

    #modulesPanel a.active i {
        color: white !important;
    }

    #modulesPanel a:hover.active i {
        color: #000 !important;
    }

    #modulesPanel a:hover {
        transform: scale(1.05);
    }


        #modulesPanel a:hover .d-flex {
            background-color: #e0e0e0 !important;
        }



        #modulesPanel a:hover i.fal {
            color: #000;
        }



#modulesPanel .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
/* ================================================================== */
/*  Notifikationsprickar                                                */
/* ================================================================== */

.js-notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.notification-dot-warning {
    background-color: #f44335; /* röd */
}

.notification-dot-info {
    background-color: #1A73E8; /* blå */
}

/* Submeny-prick lite mindre än toppnivå */
.sidenav .collapse .nav-link .js-notif-dot {
    width: 6px;
    height: 6px;
}

/* Prick på accordion-knapp i GBV+-panelen */
.accordion-button .js-notif-dot {
    width: 8px;
    height: 8px;
    margin-left: 8px;
}

/* För oavklarade aktiviteter (röd knapp) */
#aktiviteter_collapse button.hover-check {
    position: relative; /* Krävs för att ::after ska positioneras korrekt */
}

.hover-check:hover::after {
    content: "✓";
    color: #f44336; /* Röd färg */
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Så att hover-effekten inte stör klick */
}

#aktiviteter_collapse .btn-outline-success::after {
    content: "✓";
    color: #4caf50; /* Grön */
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Så att hover-effekten inte stör klick */
}

#toastContainer .toast.show {
    display: block !important;
    opacity: 1 !important;
}

#toastSuccess.show,
#toastDanger.show {
    opacity: 1 !important;
    display: block !important;
}

.z-index-2{z-index: 1021 !important};

#appToast {
    border: 1px solid #d2d6da !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
}

/*datatable*/
.table > :not(:first-child) {
    border-top: none;
}

.dt-paging .pagination {
    gap: 2px;
}

.dt-paging .page-item .page-link {
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.875rem;
}

.dt-paging .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.dt-paging .page-item:not(.active) .page-link {
    background: transparent;
    border-color: transparent;
    color: inherit;
}

/* Dölj texten */
.dt-paging .page-link.first,
.dt-paging .page-link.previous,
.dt-paging .page-link.next,
.dt-paging .page-link.last {
    font-size: 0;
}

    /* Lägg på ikoner */
    .dt-paging .page-link.first::after {
        content: "\f100";
        font-size: 14px;
        font-family: "Font Awesome 6 Pro";
    }

    .dt-paging .page-link.previous::after {
        content: "\f104";
        font-size: 14px;
        font-family: "Font Awesome 6 Pro";
    }

    .dt-paging .page-link.next::after {
        content: "\f105";
        font-size: 14px;
        font-family: "Font Awesome 6 Pro";
    }

    .dt-paging .page-link.last::after {
        content: "\f101";
        font-size: 14px;
        font-family: "Font Awesome 6 Pro";
    }

.dt-info {
    font-size: 0.8em;
    margin-top: 1em;
}

.dt-paging {
    padding-bottom: 3em;
}

.collapsed tr > td.sort_red {
    border-left: 2px solid red !important
}

.collapsed tr > td.sort_green {
    border-left: 2px solid lime !important
}

.collapsed tr > td.sort_blue {
    border-left: 2px solid #00bcd4 !important
}

.collapsed tr > td.sort_yellow {
    border-left: 2px solid #ff0 !important
}

.collapsing {
    transition: height 0.2s ease;
}

/* ── Riskmatris ─────────────────────────────────────────────── */
.riskmatris {
    border-collapse: separate;
    border-spacing: 4px;
}

    .riskmatris th {
        font-size: .7rem;
        font-weight: 600;
        color: #344767;
        padding: 6px 8px;
    }

#riskMatrisTable {
    table-layout: fixed;
    width: 100%;
}

    #riskMatrisTable th:first-child {
        width: 100px;
        font-size: 0.7rem;
        vertical-align: middle;
        white-space: normal;
        word-break: break-word;
    }

    #riskMatrisTable thead th {
        font-size: 0.7rem;
        vertical-align: bottom;
        padding: 4px;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    #riskMatrisTable td {
        height: 60px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        font-weight: bold;
        font-size: .8rem;
        padding: 0;
        border-radius: 4px;
    }

        #riskMatrisTable td:hover {
            filter: brightness(1.2);
            box-shadow: inset 0 0 0 3px rgba(0,0,0,0.2);
        }

        #riskMatrisTable td.selected {
            outline: 3px solid #344767;
            outline-offset: -2px;
        }



.risklag {
    background-color: var(--bs-success) !important;
    color: white !important;
}

.riskmed {
    background-color: var(--bs-warning) !important;
    color: white !important;
}

.riskhog {
    background-color: var(--bs-danger) !important;
    color: white !important;
}


td.matrixtrans {
    filter: brightness(1.2);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,0.2);
}

#riskmatris_modal .modal-body {
}

/* Färger */
.risklag {
    background-color: var(--bs-success) !important;
    color: white !important;
}

.riskmed {
    background-color: var(--bs-warning) !important;
    color: white !important;
}

.riskhog {
    background-color: var(--bs-danger) !important;
    color: white !important;
}

#riskmatris_modal .modal-body {
}

/*Radioassessmen & risk*/
.assessment-option .form-check-input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    border: 2px solid #344767;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.assessment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
}

#AuditOccasionFormExport_bs5 #lblKtrlTyp-header, #AOFormExportAction_bs5 #lblKtrlTyp-header {
    display: block !important
}

#AuditOccasionFormExport_bs5 #lblKtrlTyp, #AOFormExportAction_bs5 #lblKtrlTyp {
    display: none !important
}

/*Krajee modal*/
.modal {
    --bs-modal-zindex: 10050;
}

.krajee-default.file-preview-frame .kv-file-content {
    height: 25px !important;
}

.file-preview-other i {
    padding-top: 5px !important;
}

.krajee-default .file-other-icon {
    font-size: 3em !important;
    line-height: 1;
}

.theme-explorer-fa6 .btn-outline-secondary, .kv-zoom-actions .btn-outline-secondary {
    --bs-btn-color: #000;
    --bs-btn-border-color: #737373;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #737373;
    --bs-btn-hover-border-color: #737373;
    --bs-btn-focus-shadow-rgb: 115, 115, 115;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #737373;
    --bs-btn-active-border-color: #737373;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #737373;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #737373;
    --bs-gradient: none;
}


.theme-explorer-fa6 .btn.btn-sm i, .btn-group-sm > .btn i, .kv-zoom-actions .btn.btn-sm i, .btn-group-sm > .btn i {
    font-size: 1rem;
}

.dataTables_wrapper {
    width: 100%;
    overflow: hidden;
}

/*krajee*/
.file-drop-zone-title {
    padding-top: 20px !important;
    padding-right: 10px !important;
    padding-bottom: 20px !important;
    padding-left: 10px !important;
}

.file-drop-zone {
    min-height: 130px !important;
}


@media (max-width: 1199.98px) {
    .g-sidenav-show:not(.rtl) .sidenav {
    }
}

/*Datatables*/
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date, table.dataTable .dt-column-header {
    text-align: left !important;
}

.table thead th {
    padding: 0rem 0rem;
}

table.dataTable .child ul {
    font-size: .875em
}

/*Menmy vid scroll
    
    #navbarBlur {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: saturate(200%) blur(30px);
}*/

label.error {
    color: red;
}


select.form-control {
    appearance: none;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c%2fsvg%3e");
    background-image: var(--bs-form-select-bg-img);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.input-group.input-group-dynamic select.form-control,
.input-group.input-group-static select.form-control {
    background-image: var(--bs-form-select-bg-img), linear-gradient(0deg, #0073aa 2px, rgba(156, 39, 176, 0) 0), linear-gradient(0deg, #d2d2d2 1px, hsla(0, 0%, 82%, 0) 0) !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-position: right 0.75rem center, center bottom, center calc(100% - 1px) !important;
    background-size: 16px 12px, 0 2px, 100% 1px !important; /* blå är 0 bredd = osynlig */
}

    .input-group.input-group-dynamic select.form-control:focus,
    .input-group.input-group-static select.form-control:focus {
        background-size: 16px 12px, 100% 2px, 100% 1px !important; /* blå växer till 100% */
    }

.dt-search input[type="search"], .choices__list--multiple {
    background-image: linear-gradient(0deg, #0073aa 2px, rgba(156, 39, 176, 0) 0), linear-gradient(0deg, #d2d2d2 1px, hsla(0, 0%, 82%, 0) 0) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center bottom, center calc(100% - 1px) !important;
    background-size: 0 2px, 100% 1px !important;
    background-color: transparent !important;
    padding-bottom: 4px !important;
    transition: background-size 0.3s ease !important;
}

    .dt-search input[type="search"]:focus, .choices[data-type="select-multiple"] .choices__inner:focus {
        background-size: 100% 2px, 100% 1px !important;
        outline: none !important;
        box-shadow: none !important;
    }

/*Choices*/

.choices__inner, .choices[data-type="select-multiple"] {
    display: inline-block
}

    /*.choices__input--cloned {
    min-width: 1ch !important;
    width: 1ch !important;
}*/


    .choices[data-type="select-multiple"] .choices__inner::after {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        content: '\f078';
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #344767;
    }
/*
.choices[data-type="select-multiple"] {
    position: relative;
}*/

/*Modul avtal*/

.dtsp-panesContainer {
    display: none;
}

    .dtsp-panesContainer.visible {
        display: block;
    }

#avtalstatsrow2 canvas {
    max-height: 360px !important;
}

#ModulAvtalDisplay_bs5 #avtalstats .card {
    min-height: 135px;
}

.d-block {
    display: block;
    white-space: wrap
}

/*Modul inspektioner*/
#senaste_brister {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px; /* undviker att scrollbaren klipper text */
}

.green-circle {
    background-color: green !important;
    color: white !important;
    border-radius: 50% !important;
}

.green-circle, .red-circle, .greenred-circle, .blue-circle {
    color: white !important;
}

.red-circle {
    background-color: #f00 !important;
    color: white !important;
    border-radius: 50% !important;
}

.greenred-circle {
    background-color: green !important;
    border: solid 2px red;
    color: white !important;
    border-radius: 50% !important;
}

.blue-circle {
    background-color: #00bcd4 !important;
    color: white !important;
    border-radius: 50% !important;
}

#datetimepicker12 .bootstrap-datetimepicker-widget table td.disabled > div {
    color: rgba(0,0,0,1);
}

.datepicker-container {
    position: relative;
    width: 300px; /* Adjust to match your datepicker's width */
}

.date-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to the datepicker */
}

.highlight-criteria-not-met {
    border-left: 2px solid red;
}

.highlight-row td:first-child {
    border-left: 2px solid red;
}


/*Orgchart*/
div.orgChart {
    margin: 10px;
    padding: 20px;
}

    div.orgChart h2 {
        margin: 0px;
        font-size: 14px;
        font-weight: bold;
        min-height: 20px;
    }

        div.orgChart h2:hover {
            background: #fcfaca;
            cursor: text;
        }

    div.orgChart p {
        margin: 0px;
        font-size: 14px;
        font-weight: normal;
        min-height: 20px;
    }

        div.orgChart p:hover {
            background: #fcfaca;
            cursor: text;
        }

    div.orgChart ul {
        list-style: none;
        margin: 4px;
        padding: 0px;
        font-size: 0.8em;
        text-align: left;
    }

        div.orgChart ul.stack,
        div.orgChart ul.stack ul {
            text-align: center;
        }

    div.orgChart table {
        width: 100%;
    }

    div.orgChart tr.lines td.line {
        width: 1px;
        height: 20px;
    }

    div.orgChart tr.lines td.top {
        border-top: 1px solid #666;
    }

    div.orgChart tr.lines td.left {
        border-right: 1px solid #666;
    }

    div.orgChart tr.lines td.right {
        border-left: 0px solid #666;
    }

    div.orgChart tr.lines td.half {
        width: 50%;
    }

    div.orgChart td {
        text-align: center;
        vertical-align: top;
        padding: 0px 2px;
    }

    div.orgChart div.node {
        cursor: default;
        border: 1px solid #e7e7e7;
        display: inline-block;
        padding: 5px;
        /*width : 96px;
        height : 60px;*/
        background: #ffffff; /* Old browsers */
        background: -moz-linear-gradient(top, #ffffff 0%, #fbfbfb 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #fbfbfb)); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top, #ffffff 0%, #fbfbfb 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top, #ffffff 0%, #fbfbfb 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(top, #ffffff 0%, #fbfbfb 100%); /* IE10+ */
        background: linear-gradient(to bottom, #ffffff 0%, #fbfbfb 100%); /* W3C */
        line-height: 1.3em;
        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        position: relative;
        box-shadow: 1px 1px 0px #ddd;
    }

.org-add-button,
.org-del-button,
.org-confirm-del-button {
    position: absolute;
    font-size: 12px;
}

.org-add-button {
    bottom: 3px;
    left: 5px;
    padding-left: 5px;
}

    .org-add-button:hover,
    .org-del-button:hover {
        background-color: #eef;
        border-radius: 2px;
        cursor: pointer;
    }

.org-del-button {
    width: 12px;
    height: 12px;
    bottom: 7px;
    right: 5px;
}

.org-input {
    width: 90px;
}

.org-confirm-del-button {
    display: none;
}

#orgChart {
    width: auto;
    height: auto;
}

#orgChartContainer {
    min-height: 500px;
    overflow: auto;
    /*background: #eeeeee;*/
}

div.orgChart div.node {
    min-width: 150px;
    min-height: 100px;
}

.org-add-button {
    margin-top: 10px;
}

#AuditItemLibrary_bs5 .table td,
#AuditItemLibrarySort_bs5 .table td,
#RegulationsLinkLibrary_bs5 .table td,
#admin_custEdit_bs5 .table td,
#admin_custEdit_noversion_bs5 .table td,
#admin_custEdit03_bs5 .table td,
#admin_custEdit03_noversion_bs5 .table td,
#admin_links_bs5 .table td,
#admin_news_bs5 .table td,
#admin_agendaTemplates_bs5 .table td,
#admin_RiskbedomningTypeTemplate_bs5 .table td,
#admin_inspectionChecklistTemplates_bs5 .table td,
#errlog_bs5 .table td,
#ModulInspectionList_bs5 #itemPlaceholderContainer.table td,
#ModulGbvVerkstadsmoteAgenda_bs5 .table td,
#AOActiveList_bs5 .table td,
#RemindersList_bs5 .table td,
#ModulGbvRedovisandedokList_bs5 .table td,
#ModulMaskinList_bs5 .table td,
#ModulAckAvvikelserList_bs5 .table td,
#ModulAckInformationsgenomgangList_bs5 .table td
#ModulAckStickprovDisplay_bs5 .table td,
#AuditOccasionFormExport_bs5 .table td,
#AOFormExportAction_bs5 .table td,
#AuditReportFinal_bs5 .table td,
#main_bs5 .table td,
#admin_chapEdit_bs5 .table td,
#RemindersInsert_bs5 .table td,
#RemindersEdit_bs5 .table td {
    white-space: normal !important;
    word-wrap: break-word !important;
}

@media print {
    .table-responsive {
        overflow: visible !important;
    }

    ; .card {
        border: none !important;
        box-shadow: none !important;
    }

    aside, nav {
        display: none
    }

    #ContentPlaceHolder1_ListView1_lbEdit_0, .btn, #modulMakulera, #modulRadera {
        display: none !important;
    }

    .badge {
        color: black;
        font-size: 0.8rem;
        font-weight: normal;
        text-align: left;
    }

    body#ModulAckRiskbedomningDisplay_bs5 {
        @page {
            size: landscape;
        }
    }

    #tabulatortable {
        width: 100% !important
    }

    
}




/* Förälderelementet som innehåller dt-length och dt-search */
#itemPlaceholderContainer_wrapper {
    display: flex !important;
    justify-content: space-between !important; /* Tvingar dt-length till vänster och dt-search till höger */
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

    /* Se till att dt-length och dt-search tar upp nödvändig bredd */
    #itemPlaceholderContainer_wrapper > .dt-length,
    #itemPlaceholderContainer_wrapper > .dt-search {
        flex: 0 1 auto !important; /* Tillåter flexibla bredder men håller dem åtskilda */
        min-width: 0 !important;
    }






.btn-outline-primary:hover:not(.active) {
    color: var(--bs-btn-active-color);
    background-image: linear-gradient(195deg, #2196F3 0%, #1976D2 100%);
    border-color: var(--bs-btn-active-border-color);
    opacity: 1;
}


.file-preview-object, .file-preview-other-frame, .kv-file-content, .kv-zoom-body {
    margin-bottom: 1em !important;
    margin-top: 1em !important
}

#activelist-dashboard .card {
    min-height: 180px !important;
}

.remind-body a:hover {
    background-color: var(--bs-gray-100);
    cursor: pointer;
}

.act-check:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(23, 173, 55, 0.25);
}


/*Yearvis*/
#YearWheelVis {
    --yw-card: #ffffff;
    --yw-ink: #212529; /* gray-900 — används för hjulets text/siffror */
    --yw-ink-dim: #6c757d; /* gray-600 */
    --yw-ring-line: #e9ecef; /* gray-200 */
    --yw-track: #f5f6f8;
    --yw-primary: #e91e63;
}

    #YearWheelVis *,
    #YearWheelVis *::before,
    #YearWheelVis *::after {
        box-sizing: border-box;
    }

    #YearWheelVis .yw-sub {
        color: var(--yw-ink-dim);
        font-size: 13px;
        margin: 0 0 14px;
        max-width: 520px;
        font-weight: 400;
    }

    #YearWheelVis .yw-controls-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 8px;
    }

    #YearWheelVis .yw-legend {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        font-size: 12.5px;
    }

    #YearWheelVis .yw-legend-item {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #212529;
        cursor: pointer;
        user-select: none;
        padding: 6px 14px 6px 10px;
        border-radius: 50px;
        font-weight: 500;
        transition: opacity 0.15s ease;
    }

        #YearWheelVis .yw-legend-item.off {
            opacity: 0.35;
        }

    #YearWheelVis .yw-swatch {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex: none;
    }

    #YearWheelVis .yw-status-pills {
        display: flex;
        gap: 4px;
        background: #f5f6f8;
        border-radius: 50px;
        padding: 3px;
        margin-top: 10px;
        width: fit-content;
    }

    #YearWheelVis .yw-status-pill {
        padding: 6px 16px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
        color: var(--yw-ink-dim);
        cursor: pointer;
        user-select: none;
        transition: all 0.15s ease;
    }

        #YearWheelVis .yw-status-pill.active {
            background: var(--yw-primary);
            color: #fff;
            box-shadow: 0 3px 8px rgba(233,30,99,0.35);
        }

    #YearWheelVis .yw-stage {
        position: relative;
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }

    #YearWheelVis .yw-center-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        text-align: center;
        pointer-events: none;
    }

        #YearWheelVis .yw-center-label .yw-n {
            font-size: 32px;
            font-weight: 700;
            color: var(--yw-ink);
            line-height: 1;
        }

        #YearWheelVis .yw-center-label .yw-l {
            font-size: 10.5px;
            color: var(--yw-ink-dim);
            letter-spacing: 1.2px;
            text-transform: uppercase;
            margin-top: 4px;
            font-weight: 500;
        }

    #YearWheelVis .yw-month-label {
        font-size: 12px;
        font-weight: 500;
        fill: var(--yw-ink);
        letter-spacing: 0.3px;
    }

    #YearWheelVis .yw-month-tick {
        stroke: var(--yw-ring-line);
        stroke-width: 1;
    }

    #YearWheelVis .yw-count-badge circle {
        fill: var(--yw-card);
        stroke: var(--yw-primary);
        stroke-width: 1.4;
    }

    #YearWheelVis .yw-count-badge text {
        font-size: 11px;
        font-weight: 700;
        fill: var(--yw-primary);
        text-anchor: middle;
    }

    #YearWheelVis .yw-count-badge.zero circle {
        stroke: var(--yw-ring-line);
    }

    #YearWheelVis .yw-count-badge.zero text {
        fill: var(--yw-ink-dim);
    }

    #YearWheelVis .yw-ring-track {
        fill: var(--yw-track);
    }

    #YearWheelVis .yw-area-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        fill: var(--yw-ink-dim);
    }

    #YearWheelVis .yw-activity {
        cursor: pointer;
    }

        #YearWheelVis .yw-activity:hover {
            filter: brightness(1.08);
        }

    #YearWheelVis .yw-activity-label {
        font-size: 9.5px;
        font-weight: 500;
        fill: #ffffff;
        text-anchor: middle;
        pointer-events: none;
    }

    #YearWheelVis .yw-footer {
        text-align: center;
        color: var(--yw-ink-dim);
        font-size: 11.5px;
        margin-top: 14px;
    }

/* Tooltipen renderas i <body> (se script) för att undvika att en
     position:relative-förälder i värdsidan (t.ex. WebForms/Material
     Dashboards layout-wrappers) kapar dess koordinatsystem. Klassen
     är unikt namngiven för att inte krocka med annat på sidan. */
.yw-tooltip-portal {
    position: fixed;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #212529;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    max-width: 220px;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 9999;
    box-shadow: 0 8px 26px rgba(20,20,40,0.12);
    font-family: 'Roboto', sans-serif;
}

    .yw-tooltip-portal b {
        color: #e91e63;
        font-weight: 700;
    }

body[id*=List_bs5] tbody td:not(:first-child):not(:last-child) {
    color: #0073aa;
}

    body[id*=List_bs5] tbody td:not(:first-child):not(:last-child):hover {
        text-decoration: underline;
        cursor: pointer;
    }

#AuditOccasionFormExport_bs5 tbody td:not(:first-child):not(:last-child),
#AOFormExportAction_bs5 tbody td:not(:first-child):not(:last-child) {
    color: #0073aa;
}

    #AuditOccasionFormExport_bs5 tbody td:not(:first-child):not(:last-child):hover,
    #AOFormExportAction_bs5 tbody td:not(:first-child):not(:last-child):hover {
        text-decoration: underline;
        cursor: pointer;
    }


nav.shadow-blur.top-1 {
    top: 0% !important;
}

#modulePanelData {
    transition: opacity 0.15s ease;
}

    #modulePanelData.panel-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


.page-header {
    background-position: initial;
}

.sidenav {
    z-index: 1040;
}

.swal2-container {
    z-index: 10060;
}

/*Högerkort main*/
/* Fast korthöjd. Listan scrollar, rubrik och knapp ligger kvar */
#todoOverview {
    --todo-card-h: 380px;
}

    #todoOverview .card {
        height: var(--todo-card-h) !important;
    }

    #todoOverview .card-header,
    #todoOverview .card-footer {
        flex-shrink: 0;
    }

    #todoOverview .card-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

.todo-ov-item {
    color: inherit;
    transition: background-color .15s;
}

a.todo-ov-item:hover {
    background-color: #f8f9fa;
}

.todo-ov-list li + li .todo-ov-item {
    border-top: 1px solid #f0f2f5;
}

@media (min-width: 992px) {
    #page-todo-all {
        display: none !important;
    }
}

.card[data-is-current-month="false"] .act-check.activitynotdone {
    display: none !important;
}

body:not(.dark-version) .sidenav.bg-white .collapse .nav-item .nav-link.active.text-dark .sidenav-mini-icon i,
body:not(.dark-version) .sidenav.bg-white .collapse .nav-item .nav-link.active.text-dark .sidenav-mini-icon svg {
    color: #fff !important;
}


.navbar-vertical .navbar-nav>.nav-item .nav-link.active+.collapse .nav-item.active .nav-link.active span{
    color:#fff !important;
}

.dt-layout-row:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}


.avatar-link {
  display: block;
  position: relative;
  border-radius: 0.5rem; /* samma som border-radius-lg */
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-dark-rgb), 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.avatar-overlay .material-symbols-rounded {
  font-size: 1.75rem;
  transform: scale(0.8);
  transition: transform 0.2s ease;
}

.avatar-link:hover .avatar-overlay,
.avatar-link:focus-visible .avatar-overlay {
  opacity: 1;
}

.avatar-link:hover .material-symbols-rounded,
.avatar-link:focus-visible .material-symbols-rounded {
  transform: scale(1);
}

.avatar-link:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

