/**
 * Frontend Styles for HH Zorgverzekeringen Import
 * Version: 2.0.0
 */

.hsk-wachttijden-wr {
    background-color: #F1FAFB;
    border-radius: 0.25rem;
    padding: 1rem;
    scroll-margin-top: 100px;
}

.wachttijden-table {
    background-color: #F1FAFB;
    border: none;
    box-shadow: none;
    border-radius: 0.25rem;
    font-size: 16px;
}

.wachttijden-table .tablesorter-header .tablesorter-header-inner {
    font-size: 13px !important;
}

body div .hh-zorgverzekeraars-dropdown {
    width: 100%;
    padding: 0.51rem 35px 0.51rem 1rem;
    font-size: 1rem;
    border: 1px solid rgb(205, 215, 255);
    font-weight: bold;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.wachttijden-table .opm-yes>div {
    background-color: hsl(61, 100%, 85%);
    padding: 0.25rem 0.5rem;
    width: 100%;
    border-radius: 0.25rem;
}

.wachttijden-table tr {
    display: flex;
    flex-flow: wrap;
}

.wachttijden-table .opm-none .btn {
    min-width: 20px;
}

.hh-wachttijden-overzicht .wachttijden-table td,
.hh-wachttijden-overzicht .wachttijden-table th {
    display: flex;
    flex: 0 0 50%;
    border: none;
    font-size: 16px;
}

.hh-wachttijden-overzicht .wachttijden-table span,
.hh-wachttijden-overzicht .wachttijden-table a,
.hh-wachttijden-overzicht .wachttijden-table strong {
    font-size: 16px;
}

.hh-wachttijden-overzicht .wachttijden-table td:first-child,
.hh-wachttijden-overzicht .wachttijden-table th:first-child {
    flex: 0 0 100%;
    background-color: #F1FAFB;
}

.hh-wachttijden-overzicht .wachttijden-table td:last-child,
.hh-wachttijden-overzicht .wachttijden-table th:last-child {
    flex: 0 0 100%;
}

.hh-wachttijden-overzicht .wachttijden-table td:nth-child(2) div:before {
    content: 'Wachttijd intake: ';
    font-size: 0.9rem;
    font-weight: 600;
}

.hh-wachttijden-overzicht .wachttijden-table td:nth-child(3) div:before {
    content: 'Wachttijd behandeling: ';
    font-size: 0.9rem;
    font-weight: 600;
}

.hh-wachttijden-overzicht .wachttijden-table td .i-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-info-circle' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    top: 2px;
    position: relative;
    display: inline-flex;
}

.hh-wachttijden-overzicht .wachttijden-table td .info {
    padding-left: 0.5rem;
    display: inline-flex;
    width: calc(100% - 20px);
}

.wachttijden-table strong:last-child {
    display: block;
}

.tablesorter-headerRow {
    border-bottom: solid 2px #333;
}

.wachttijden-table.tablesorter thead th:last-child {
    display: none !important;
}

.wachttijden-table.tablesorter thead th:first-child {
    border-top: none !important;
}

table.wachttijden-table td,
table.wachttijden-table th,
table.wachttijden-table tbody>tr:nth-child(odd)>td,
table.wachttijden-table tbody>tr:nth-child(odd)>th {
    background-color: #ffffff !important;
}

table.wachttijden-table td:first-child,
table.wachttijden-table th:first-child,
table.wachttijden-table tbody>tr:nth-child(odd)>td:first-child,
table.wachttijden-table tbody>tr:nth-child(odd)>th:first-child {
    background-color: #F1FAFB !important;
}

table.wachttijden-table td:first-child a,
table.wachttijden-table th:first-child a,
table.wachttijden-table tbody>tr:nth-child(odd)>td:first-child a,
table.wachttijden-table tbody>tr:nth-child(odd)>th:first-child a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}


table.wachttijden-table td:first-child:hover a,
table.wachttijden-table th:first-child:hover a,
table.wachttijden-table tbody>tr:nth-child(odd)>td:first-child:hover a,
table.wachttijden-table tbody>tr:nth-child(odd)>th:first-child:hover a {
    color: #0056b3;
    text-decoration: underline;
}

.tablesorter-header>div {
    position: relative;
}

.tablesorter-header>div:after,
.tablesorter-header>div:before {
    content: '';
    position: absolute;
    display: block;
    right: -1.25rem;
    top: 0.8rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #333 transparent transparent transparent;
    opacity: 0.25;
}

.tablesorter-header>div:before {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #333 transparent;
    top: 0.25rem;
}

.tablesorter-header.tablesorter-headerDesc>div:before {
    opacity: 1;
}

.tablesorter-header.tablesorter-headerAsc>div:after {
    opacity: 1;
}

.tablesorter-headerUnSorted,
.tablesorter-headerDesc,
.tablesorter-headerAsc {
    background-color: #fff !important;
}

.wachttijden-overzicht .wachttijden-table {
    background-color: initial;
    display: none;
}

.wachttijden-overzicht .wachttijden-table tr {
    display: flex;
    flex-flow: wrap;
}

.wachttijden-overzicht .wachttijden-table .opm-none {
    display: none;
}

.wachttijden-overzicht .wachttijden-table td,
.wachttijden-overzicht .wachttijden-table th {
    display: flex;
    flex: 0 0 50%;
    border: none;
}

.wachttijden-overzicht .wachttijden-table td:first-child,
.wachttijden-overzicht .wachttijden-table th:first-child {
    flex: 0 0 100%;
}

.wachttijden-overzicht .wachttijden-table td:last-child,
.wachttijden-overzicht .wachttijden-table th:last-child {
    flex: 0 0 100%;
}

.wachttijden-overzicht .wachttijden-table th {
    display: flex;
    flex: 0 0 50%;
    border: none;
    padding: 10px 20px;
}

.wachttijden-overzicht .wachttijden-table th:first-child {
    flex: 0 0 100%;
}

.wachttijden-overzicht .wachttijden-table td.intake span {
    display: block;
}

.wachttijden-overzicht .wachttijden-table td.intake span:before {
    display: block;
    content: 'Wachttijd intake: ';
    font-weight: bold;
}

.wachttijden-overzicht .wachttijden-table td.behandeling span {
    display: block;
}

.wachttijden-overzicht .wachttijden-table td.behandeling span:before {
    display: block;
    content: 'Wachttijd behandeling: ';
    font-weight: bold;
}

.wachttijden-overzicht .wachttijden-table td:nth-child(2) div:before {
    content: 'Intake: ';
    font-size: 0.9rem;
    font-weight: 600;
}

.wachttijden-overzicht .wachttijden-table td:nth-child(3) div:before {
    content: 'Behandeling: ';
    font-size: 0.9rem;
    font-weight: 600;
}

.wachttijden-overzicht .wachttijden-table strong:last-child {
    display: block;
}

.wachttijden-overzicht table {
    border: none;
}

.wachttijden-overzicht .wachttijden-table strong:last-child {
    display: block;
}

.wachttijden-overzicht table {
    border: none;
}

/* Table Sorter - Table Headers */
.table thead th,
.tablesorter thead th {
    vertical-align: top;
    font-size: 0.8rem;
}

.tablesorter-headerDesc span:before {
    opacity: 1;
}

.tablesorter-headerAsc span:after {
    opacity: 1;
}

.tablesorter-headerAsc span span {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    padding-left: 0.25em;
}

.tablesorter-headerAsc span span:before,
.tablesorter-headerAsc span span:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    opacity: 0;
}

.tablesorter-headerAsc span span:before {
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #0066cc transparent transparent transparent;
    top: auto;
    bottom: 1px;
}

.tablesorter-headerAsc span span:after {
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #0066cc transparent;
    top: 3px;
    bottom: auto;
}

.tablesorter-headerAsc span span:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    opacity: 0;
}

.tablesorter-headerAsc span span:before {
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #0066cc transparent transparent transparent;
    top: auto;
    bottom: 1px;
}

.tablesorter-headerAsc span span:after {
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #0066cc transparent;
    top: 3px;
    bottom: auto;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.hh-wachttijden-table thead {
    background: #333;
    color: white;
}

.hh-wachttijden-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hh-wachttijden-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.hh-wachttijden-table tbody tr:hover {
    background-color: #f5f5f5;
}

.hh-wachttijden-table tbody tr:last-child {
    border-bottom: none;
}

.hh-wachttijden-overzicht .wachttijden-table td {
    padding: 12px;
    vertical-align: middle;
}

/* ========================================
   Table Content Styling
   ======================================== */

.hh-wachttijden-table .vestiging-naam {
    display: block;
    font-weight: normal;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.hh-wachttijden-table .weken {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}

.hh-wachttijden-table td.intake,
.hh-wachttijden-table td.behandeling {
    font-weight: 500;
}

.hh-wachttijden-table a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hh-wachttijden-table a:hover {
    color: #005177;
    text-decoration: underline;
}

/* ========================================
   Opmerking Styling
   ======================================== */

.hh-wachttijden-table .opm-yes,
.hh-wachttijden-table .opm-none {
    text-align: center;
}

.hh-wachttijden-table .opm-yes {
    position: relative;
}

.hh-wachttijden-table .opm-yes .i-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-style: normal;
    font-weight: bold;
    cursor: help;
    position: relative;
}

.hh-wachttijden-table .opm-yes .i-icon:before {
    content: "i";
    font-size: 14px;
}

.hh-wachttijden-table .opm-yes .info {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

.hh-wachttijden-table .opm-yes:hover .info {
    display: block;
}

/* Arrow for tooltip */
.hh-wachttijden-table .opm-yes .info:before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 10px;
    border: 6px solid transparent;
    border-bottom-color: #ddd;
}

.hh-wachttijden-table .opm-yes .info:after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 11px;
    border: 5px solid transparent;
    border-bottom-color: white;
}

/* ========================================
   CTA Button Styling
   ======================================== */

.hh-wachttijden-table .btn-cta {
    display: inline-block;
    padding: 8px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hh-wachttijden-table .btn-cta:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

/* ========================================
   Overzicht Specific Styling
   ======================================== */

.hh-wachttijden-overzicht table {
    animation: fadeIn 0.3s ease-in;
}

.hh-wachttijden-overzicht table.active {
    display: table;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Styling
   ======================================== */

@media (max-width: 768px) {
    .hh-wachttijden-table {
        font-size: 14px;
    }

    .hh-wachttijden-table th,
    .hh-wachttijden-table td {
        padding: 10px 8px;
    }

    .hh-wachttijden-table .vestiging-naam {
        font-size: 0.8em;
    }

    .hh-zorgverzekeraars-dropdown {
        max-width: 100%;
    }

    .hh-wachttijden-table .opm-yes .info {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .hh-wachttijden-table .opm-yes .info:before,
    .hh-wachttijden-table .opm-yes .info:after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {

    /* Stack table for mobile */
    .hh-wachttijden-table thead {
        display: none;
    }

    .hh-wachttijden-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .hh-wachttijden-overzicht .wachttijden-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .hh-wachttijden-table td:last-child {
        border-bottom: none;
    }

    .hh-wachttijden-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #333;
    }

    .hh-wachttijden-table .btn-cta {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

/* ========================================
   Admin Notices
   ======================================== */

.notice.notice-warning,
.notice.notice-info {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #ffb900;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.notice.notice-info {
    border-left-color: #00a0d2;
}

.notice p {
    margin: 0.5em 0;
}

/* ========================================
   TableSorter Styles
   ======================================== */

.wachttijden-table tr:nth-child(even) {
    background: transparent;
}

.hsk-wachttijden-wr {
    background-color: #F1FAFB;
    border-radius: 0.25rem;
    padding: 1rem;
    scroll-margin-top: 100px;
}

.wachttijden-table {
    background-color: #F1FAFB;
    border: none;
    box-shadow: none;
    border-radius: 0.25rem;
}

.wachttijden-table .opm-yes>div {
    background-color: hsl(61, 100%, 85%);
    padding: 0.25rem 0.5rem;
    width: 100%;
    border-radius: 0.25rem;
}

/* Mobile-specific flex layout moved to @media queries below */

.wachttijden-table td .i-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-info-circle' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    top: 2px;
    position: relative;
    display: inline-flex;
}

.wachttijden-table td .info {
    padding-left: 0.5rem;
    display: inline-flex;
    width: calc(100% - 20px);
}

.wachttijden-table strong:last-child {
    display: block;
}

/* TableSorter Header Styles */
.tablesorter-headerRow {
    border-bottom: solid 2px #333;
}

.tablesorter-header {
    cursor: pointer;
    position: relative;
}

.tablesorter-header>div {
    position: relative;
    padding-right: 20px;
}

.tablesorter-header>div:after,
.tablesorter-header>div:before {
    content: '';
    position: absolute;
    display: block;
    right: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.25;
}

.tablesorter-header>div:after {
    border-width: 6px 6px 0 6px;
    border-color: #333 transparent transparent transparent;
    top: 50%;
    margin-top: 2px;
}

.tablesorter-header>div:before {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #333 transparent;
    top: 50%;
    margin-top: -8px;
}

.tablesorter-header.tablesorter-headerDesc>div:before {
    opacity: 1;
}

.tablesorter-header.tablesorter-headerAsc>div:after {
    opacity: 1;
}

.tablesorter-headerUnSorted,
.tablesorter-headerDesc,
.tablesorter-headerAsc {
    background-color: #fff !important;
}

/* Wachttijden Overzicht Specific */
.wachttijden-overzicht .wachttijden-table {
    background-color: initial;
}

.wachttijden-overzicht .wachttijden-table .opm-none {
    display: none;
}

.hh-wachttijden-overzicht .wachttijden-table table {
    border: none;
}

/* Table Sorter - Table Headers */
.hh-wachttijden-overzicht .wachttijden-table .table thead th,
.hh-wachttijden-overzicht .wachttijden-table .tablesorter thead th {
    vertical-align: top;
    font-size: 0.8rem;
    position: relative;
    padding-right: 30px !important;
}

/* Base Table Styles */
.hh-wachttijden-overzicht .wachttijden-table table {
    border-collapse: collapse;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.hh-wachttijden-overzicht .wachttijden-tabletd {
    border: 1px solid #dcdcdc;
    padding: 10px 20px;
}

.hh-wachttijden-overzicht .wachttijden-table tr:nth-child(even) {
    background: transparent;
}