html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
}

.fonas {
    background-color: #f8f9fa;
}

.fonas-active {
    background-color: #AED6F3;
}
.fonas-data {
    background-color: #D8EDFC;
}
.hidden {
    display: none;
}

.toggle-details {
    transition: transform 0.2s ease;
}

    .toggle-details.open {
        transform: rotate(180deg);
    }

.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

tr {
    vertical-align: top;
}

.table-wrapper {
    max-height: 70vh;
    overflow-y: auto;
}

thead th {
    position: sticky;
    top: 0;
    background: rgb(242,242,242) !important;
    z-index: 2;
}
.styled_table {
    table-layout: fixed;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    width: calc(100% - 1px);
    min-height:350px;
}
/*rodikliai*/
.summary-row {
    cursor: pointer;
    transition: background-color .15s ease;
}

    .summary-row:hover {
        background-color: #f8f9fa;
    }

.risk-low {
    background-color: #1b7a1a;
    color: white !important;
}

.risk-medium {
    background-color: #FF9800; /*#CDDC3A;*/
    color: black !important;
}

.risk-high {
    background-color: #FF0101; /*#FF9800;*/
    color: black !important;
}

.risk-very-high {
    background-color: #C00000; /*#E51C22;*/
    color: white !important;
}

.risk-unrated {
    background-color: #B9B9B9;
    color: black !important;
}
/*veiklos*/
.implemented {
    display: inline-block;
    background: url("../images/implemented.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.canceled {
    display: inline-block;
    background: url("../images/canceled.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.notstarted {
    display: inline-block;
    background: url("../images/notstarted.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.partially_implemented {
    display: inline-block;
    background: url("../images/partially-implemented.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.paused {
    display: inline-block;
    background: url("../images/pause.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.waiting {
    display: inline-block;
    background: url("../images/waiting.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.waiting_for_implementation {
    display: inline-block;
    background: url("../images/waiting-for-imlpementation.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}
.planned {
    display: inline-block;
    background: url("../images/planned.svg") no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/*veikla ir auditas dezutes*/
.stat-number-box {
    width: 200px;
    height: 50px;
    margin: 0 auto;
    /* border-radius: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    /* font-size: 2rem;
        font-weight: 700; */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    /* transition: transform 0.2s ease; */
    background-color: rgb(242,242,242);
    font-weight: bold;
}

/*         .stat-number-box:hover {
            transform: translateY(-3px);
        } */

.stat-label {
    margin-top: 12px;
    font-size: 0.95rem;
    /* font-weight: 500; */
}


.progress-bar {
    pointer-events: auto;
}

html, body {
    height: 100%;
    overflow: auto; /* or hidden in one of them */
}


/* Dissabled due to leeching
a {
    color: #084298 !important;
}
*/

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: black;
    color: white !important;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 6px;
    transition: top 0.2s ease;
}

    .skip-link:focus-visible,
    .skip-link:active {
        top: 10px;
    }


/*filtras*/
.filter-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

    .filter-btn:focus,
    .filter-btn:active,
    .filter-btn.show {
        box-shadow: none !important;
        /* border: 0 !important; */
        background: transparent !important;
    }

.filter-menu {
    width: 250px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden; /* hide horizontal scroll */
}

    .filter-menu .dropdown-item {
        white-space: normal;
        word-break: break-word;
    }

    .filter-menu .dropdown-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        white-space: normal;
    }

        .filter-menu .dropdown-item input[type="checkbox"] {
            flex-shrink: 0;
            margin-top: 4px;
        }

/*Master styling*/

.app-header {
    padding: 1.25rem 0;
}

.app-header-inner {
    /*max-width: 1000px;*/
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

    .back-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    .back-link i {
        font-size: 0.9rem;
    }

.app-background {
    background: linear-gradient(135deg, #102f59 0%, #1d477f 100%);
    padding-bottom: 3rem;
}

/* =========================================
   About page
   ========================================= */

.about-page {
/*    max-width: 1000px;*/
    margin: 0 auto;
}


/* Main white container */

.about-card {
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =========================================
   Page introduction
   ========================================= */

.about-header {
    padding: 2rem 2rem 1.75rem;
    background: #f7f9fb;
    border-bottom: 1px solid #e1e6eb;
}

    .about-header h1 {
        color: black;
        font-size: 2.5rem;
        font-weight: 600;
        margin: 0 0 1.25rem;
    }

    .about-header p {
        text-align: justify;
        color: black;
        font-size: 1rem;
        margin: 0 0 0.75rem;
    }

        .about-header p:last-child {
            margin-bottom: 0;
        }


/* =========================================
   Individual sections
   ========================================= */

.about-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.0rem;
    padding: 2rem;
    border-bottom: 1px solid #e1e6eb;
    align-items: start;
}

    .about-section:last-child {
        border-bottom: none;
    }


/* Text */

    .about-section-text h2 {
        color: black;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.35;
        margin: 0rem;
        margin-bottom: 1rem;
    }

    .about-section-text p {
        color: black;
        font-size: 1rem;
        margin: 0 0 0.9rem;
        text-align: justify;
    }

        .about-section-text p:last-child {
            margin-bottom: 0;
        }


    /* First paragraph under heading */

    .about-section-text .section-lead {
        color: black;
        font-size: 1rem;
        font-weight: 300;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        opacity: 0.7;
    }


/* Video */

.about-section-video {
    width: 100%;
    align-self: center;
}

    .about-section-video iframe {
        width: 100%;
        border: 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.video-preview {
    cursor: pointer;
    position: relative;
}

    .video-preview iframe {
        pointer-events: none;
    }

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

.play-icon {
    width: 54px;
    height: 54px;
    transition: transform 0.2s ease;
}

    .play-icon circle {
        fill: rgba(0, 0, 0, 0.65);
    }

    .play-icon path {
        fill: white;
    }

.video-preview:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.video-preview:hover .play-icon {
    transform: scale(1.12);
}


/* Fullscreen video */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.85);
}

    .video-modal.active {
        display: flex;
    }

.video-modal-content {
    position: relative;
    width: min(1200px, 90vw);
    aspect-ratio: 16 / 9;
}

    .video-modal-content iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.video-modal-close {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-modal-close svg {
        width: 24px;
        height: 24px;
    }

    .video-modal-close line {
        stroke: white;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .video-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {

    .about-header {
        padding: 1.35rem;
    }

        .about-header h1 {
            font-size: 1.75rem;
        }

    .about-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.35rem;
    }

    .about-section-video {
        order: 2;
    }
}

/* =========================================
   Contacts page
   ========================================= */

.contact-page {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 1.5rem;
}

    .contact-header h1 {
        margin: 0;
        color: #ffffff;
        font-size: 2rem;
        font-weight: 600;
    }


/* Main white contact box */

.contact-content {
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* Organization */

.contact-organization {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e6eb;
}

.contact-logo {
    width: 65px;
    height: auto;
    flex-shrink: 0;
}

.contact-organization h2 {
    margin: 0 0 0.5rem;
    color: #172b4d;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-organization p {
    margin: 0.2rem 0;
    color: #657384;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Contact details */

.contact-details {
    padding-top: 1.5rem;
}

    .contact-details p {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin: 0 0 0.8rem;
        color: #3f4b5a;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .contact-details i {
        width: 18px;
        color: #315b91;
        text-align: center;
        margin-top: 0.15rem;
    }

    .contact-details a {
        color: #315b91;
        text-decoration: none;
    }

        .contact-details a:hover {
            text-decoration: underline;
        }


/* Accessibility link */

.contact-accessibility {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e1e6eb;
}

    .contact-accessibility a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #315b91;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
    }

        .contact-accessibility a:hover {
            text-decoration: underline;
        }


