[v-cloak] {
    display: none;
}

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;
}

.dashed-box {
    border: 1px dashed #000; /* Set the border width and color */
    width: 300px; /* Set the width of the box */
    margin: 14px;
    padding: 4px;
}

.documentation-main {
    border-left:2px dashed #126fcc;
    min-height: 70vh;    
    overflow:auto;
}

.docSectionElement {
    margin: 1.4em;
}

.doc_url {
    background-color: white;
    border: 1px dashed;
    border-color: pink;
    border-radius: 12px 12px;
    padding: 2px 2px 2px 4px;
    margin: 4px;
    width: 94%;
    font-weight: bold;
    font-size: 1.4em;
}

.ukcdb-search-button {    
    background-color: #0c5eb0;
    border-radius: 10px;
}

.subtab-container-button-container {
    margin-bottom: 10px;
    display: flex; 
    flex-wrap: wrap;
}

.button-wrapper {
  
    flex: 0 0 calc(100% / 5); 
    box-sizing: border-box; 
    padding: 5px; 
    
    display: flex; 
}

    .button-wrapper button {
        width: 100%;
    }

.search-subtab-button {
    width: 14%;
    margin-left: 8px;
    margin-right: 8px;
    background-color: #0c5eb0;
    border-radius: 10px;
}

.active-subtab {
    background-color: #0c5eb0 !important;
    color: white !important; 
}

.search-subtab-button-outline {
    width: 14%;
    margin-left: 8px;
    margin-right: 8px;
    color: #0c5eb0;
    border-color: #0c5eb0;
    background-color: white;
    border-radius: 10px;
    white-space: normal; 
    overflow-wrap: break-word; 
    text-align: center; 
    padding: 4px;
}


.search-subtab-button-download {
    width: 14%;
    margin-left: 8px;
    margin-right: 8px;
    color: white;
    border-color: purple;
    background-color: purple;
    border-radius: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    padding: 4px;
}

    .search-subtab-button-download:hover {
        background-color: black;
        color: white;
        border-color: #888;
    }
     

.send-feedback-button {
    width: 100%;
    background-color: #e0af0b;
    border-radius: 10px;
    color: black;
    font-weight: bold;
}

.ukcdb-viewfinancials-button {
    width: 50%;
    background-color: #0c5eb0;
    border-radius: 10px;
}

.ukcdb-details-panel {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 14px; 
}

.ukcdb-advanced-search-panel {
    background: var(--purple);
    background-size: cover;
    background-position: center;
    padding-top: 10px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px #0c0c0c21;
    font-size: 9pt;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.scrollable-content {
    overflow-x: hidden;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin; 
    scrollbar-color: lightgray transparent; 
}


/* FILTER BADGES */
/* FILTER BADGES */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f3f3f3;
    padding: 6px 10px;
    border-radius: 12px;
    margin: 4px;
    animation: bounceIn 0.4s ease-out;
    font-weight:bold;
}


/* Enhancements for VueJS dynamic values */
.filter-value {
    font-weight: 900;
    color: #e0b000;
    margin-left: 4px;
    margin-right:4px;
}

/* CLEAR FILTER BUTTON */
.clearFilterButton {
    color: #bbb;
    background-color: transparent;
    border: 1px solid #bbb;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    transition: all 0.2s ease-in-out;
}

    .clearFilterButton:hover {
        background-color: #888;
        color: white;
        border-color: #888;
    }
     

/* END OF FILTER BADGES*/


.closeCompanyTabButton {
    color: #ffffff;
    border-color: #ffffff;
    background-color: transparent;
    border: 1px solid #ffffff;
    font-size: 12px; 
    font-weight: bold;
    cursor: pointer;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left:4px;
    width: 20px;
    height: 20px;
    transition: all 0.2s ease-in-out;
    padding: 2px;
    line-height: 1;
}

    .closeCompanyTabButton:hover {
        background-color: red;
        color: white;
        border-color: red;
    }




/* END OF FILTER BADGES*/

.ukcdb-advanced-search-panel-text-entry {
    font-size: 9pt;
}

.ukcdb-advanced-search-panel-text-entry::placeholder {
        font-size: 9pt;
    }

.ukcdb-filter-label-text {
    color: white;
}

.ukcdb-savedsearches-table
{
    color:white;
}
.ukcdb-savedsearch-result-number {
    background-color: white;
    border-radius: 14px;
    color: var(--purple);
    font-size: 8pt;
    text-align: center;
    padding: 4px;
    display: block;
    margin-bottom: 6px;
    width:24px;
    height:24px;
}

.ukcdb-result-number { 
    background-color: #4a4a4a;
    border-radius: 20px;
    color: white;
    height: 20px;
    font-size: 8pt;
    text-align: center;
    padding: 2px;
    margin-top: 4px;
    min-width: 20px;
    max-width: 40px;
}

.toggle-advanced-search-button {
    cursor: pointer;
    background-color: white;
    color: #126fcc;
    margin-right: 2em;
    margin-left:0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* .toggle-advanced-search-button:hover {
        background-color: #3e95ed;
    }*/

.filter-value-label {
    color: white;
    margin: 1px;
}

/*This is for the multiselect input box*/
.multiselect__input2 {
    font-size: 9pt;
    border: none;
}

.multiselect__single2 {
    font-size: 9pt;
    border: none;
}



/*transitions*/

.slide-fade-enter-active,
.slide-fade-leave-active {
    transition: all 0.3s cubic-bezier(0.5, 0, 0.3, 1);
    max-height: 80px; 
    overflow: hidden;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
    transform: translateY(-30px);
    opacity: 0;
    max-height: 0;
}

.slide-fade-enter-to,
.slide-fade-leave-from {
    transform: translateY(0);
    opacity: 1;
    max-height: 80px; 
}


.bounce-enter-active {
    animation: bounce-in 0.6s;
}

.bounce-enter {
    opacity: 0;
}

@keyframes bounce-in {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }

    20% {
        transform: translateY(-20px);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(5px);
    }
}

 


.spinning-ring-white {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
}

    .spinning-ring-white div {
        box-sizing: border-box;
        display: block;
        position: absolute;
        width: 32px;
        height: 32px;
        margin: 4px;
        margin-left:auto;
        margin-right:auto;
        border: 4px solid white;
        text-align:center;
        border-radius: 50%;
        animation: spinning-ring 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        border-color: white transparent transparent transparent;
    }


.docs-mainheading {
    font-size: 22pt;
    font-weight: 600;
    margin-bottom: 20px;
}

.docs-subheading {
    font-size: 16pt;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
}

.docs-text {
    font-size: 12pt;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight:normal;
}

.docs-active{
    font-weight:bold;
    color:red;
}

.code-block {
    background-color: #e7e7e7;
    color: #2f2f2f;
    font-family: Courier New, Courier, monospace;
    font-size: 11pt;
    display: inline-block;
    padding: 4px;
    border-radius: 8px;
}
.hidden {
    display: none;
}


.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: white;
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .autocomplete-results li {
        padding: 8px 12px;
        cursor: pointer;
    }

        .autocomplete-results li:hover {
            background-color: #f0f0f0;
        }

.autocomplete-spinner {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 100%;
    height: 100%;
}

.path {
    stroke: #555;
    stroke-linecap: round;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
.autocomplete-company-number {
    font-weight: bold;
    background-color: rgb(33, 150, 243);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    margin-right: 8px;
    font-size:0.8em;
}
.autocomplete-multiselect .multiselect__select {
    display: none !important;
}


.multiselect:focus-within,
.multiselect__input:focus,
.multiselect__tags:focus-within,
.multiselect__option--highlight {
    outline: none !important;
    box-shadow: none !important; /* Remove any related box-shadows */
    border-color: transparent !important; /* Remove any related borders */
}

/* Also specifically target the dropdown content wrapper */
.multiselect__content-wrapper:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* If there's an active selected label, sometimes it might get focus too */
.multiselect__single:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/*
    IMPORTANT ACCESSIBILITY NOTE:
    You are removing the default focus indicator. This is bad for keyboard users.
    You MUST add an alternative visual cue if you use the above.
    Example:
*/
.multiselect:focus-within,
.multiselect__input:focus,
.multiselect__tags:focus-within,
.multiselect__option--highlight {
    /* ... (outline: none etc. as above) ... */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5) !important; /* Custom focus ring */
    transition: box-shadow 0.2s ease-in-out; /* Smooth transition */
}


*:focus {
    outline: none;
}

/* Director Monitoring Styles */
.subscription-status {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-label {
    font-weight: bold;
    margin-right: 10px;
}

.status-text {
    font-weight: bold;
}

.text-warning-dark {
    color: #856404; /* Darker amber color for better readability */
}

.notification-settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.directors-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

/* Notification Controls Box */
.notification-controls-box {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-width: 280px;
    font-size: 0.8rem;
    margin-left: auto;
}

.notification-toggle {
    margin-bottom: 4px;
}

.notification-toggle .form-label {
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Bootstrap form-switch styling - using default Bootstrap classes */

.subscription-status {
    font-size: 0.75rem;
    margin-top: 1px;
    text-align: center;
}

.directors-controls .form-label.small {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.directors-controls .form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.directors-controls .status-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.directors-count {
    text-align: center;
    margin: 20px 0;
}

.directors-count .badge {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    border: 2px solid #007bff;
}

.directors-count .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    transition: all 0.3s ease;
}

.directors-list {
    max-height: 600px;
    overflow-y: auto;
}

.director-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
    transition: all 0.3s ease;
}

.director-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.director-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
}

.director-checkbox {
    margin-right: 15px;
}

.director-info {
    flex: 1;
    margin-right: 20px;
}

.director-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.director-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.director-company,
.director-address,
.director-dob {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.director-company i,
.director-address i,
.director-dob i {
    margin-right: 8px;
    width: 16px;
    color: #999;
}

.director-status {
    margin-right: 20px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-resigned {
    background: #f8d7da;
    color: #721c24;
}

.director-actions {
    display: flex;
    gap: 10px;
}

/* Compact Director Layout */
.director-item-compact {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.3s ease;
}

.director-item-compact:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.director-item-compact.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.director-item-compact.selected:hover {
    background: #bbdefb;
}

.director-row {
    display: grid;
    grid-template-columns: 30px 200px 250px 200px 150px auto;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.director-name-section {
    display: flex;
    align-items: center;
}

.director-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.director-company-section,
.director-address-section,
.director-dob-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.director-icon {
    color: #6c757d;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.director-text {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.director-actions-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state h4 {
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    margin-bottom: 25px;
}

.spinning-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.spinning-ring div {
    display: none; /* Hide the inner div to prevent double spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Director Monitoring Steps */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.step-box {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.step-box:hover {
    transform: translateY(-2px);
}

.step-number {
    background: #5ea8ff;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 15px auto;
    border: 2px solid #5ea8ff;
}

.step-content h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.step-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.step-arrow {
    color: #007bff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.advanced-matching-box {
    background: rgba(94, 168, 255, 0.1);
    color: #2c3e50;
    border: 2px solid rgba(94, 168, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.advanced-matching-box h6 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.advanced-matching-box p {
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design for Steps */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }
    
    .step-box {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .step-box {
        padding: 15px;
    }
    
    .step-content h6 {
        font-size: 14px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

/* Director Import Tab Styles */
.import-directors-tab {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.tab-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.tab-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3498db;
    background-color: #ecf0f1;
}

.upload-area.dragover {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.upload-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.file-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.file-input-group label {
    white-space: nowrap;
    font-weight: 500;
    color: #2c3e50;
}

.file-input-group input[type="file"] {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.upload-content i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.upload-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-content p {
    color: #7f8c8d;
    margin-bottom: 5px;
}

.file-limit {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
}

.file-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
}

.file-size {
    color: #7f8c8d;
    font-size: 14px;
}

.company-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-label {
    color: #7f8c8d;
}

.count-value {
    font-weight: 500;
    color: #27ae60;
}

.action-buttons {
    display: none;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.directors-selection {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.selection-header h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.selection-controls {
    margin-bottom: 20px;
}

.selection-controls .form-control {
    width: 100%;
    margin-bottom: 15px;
}

.selection-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.left-actions, .right-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.selected-count {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.directors-list {
    max-height: none;
    overflow: visible;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    margin-top: 35px;
    margin-bottom: 20px;
}

/* Style for directors already being monitored */
.director-already-added {
    background-color: #f8f9fa !important;
    color: #6c757d;
    opacity: 0.7;
}

.director-already-added:hover {
    background-color: #e9ecef !important;
}

.director-already-added input[type="checkbox"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Style for directors that were just imported */
.director-imported {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745;
}

.director-imported:hover {
    background-color: #c3e6cb !important;
}

.director-imported input[type="checkbox"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Company grouping styles */
.company-group {
    margin-bottom: 2rem;
}

.company-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-sequence {
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.company-details h5 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.company-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Compact company header styling */
.company-header-compact {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.company-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-sequence-compact {
    background-color: #007bff;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.company-details-compact h5 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.company-number-inline {
    color: #666;
    font-weight: 400;
    font-size: 0.9em;
}

/* Director content styling */
.director-content {
    background: white;
    border: none;
    border-bottom: 1px solid #f1f2f6;
    margin-bottom: 0;
    transition: background-color 0.2s ease;
}

.director-content:hover {
    background-color: #f8f9fa;
}

.director-content:last-child {
    border-bottom: none;
}

.director-content-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
}

.director-content .director-info {
    flex: 1;
}

.director-content .director-name {
    color: #333;
    margin: 0 0 4px 0;
    font-weight: 500;
    font-size: 0.95em;
    text-shadow: none;
}

.director-content .director-dob,
.director-content .director-address {
    color: #666;
    font-size: 0.85em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.director-content .director-actions {
    margin-left: auto;
}

.director-content .director-name-line {
    display: grid;
    grid-template-columns: 200px 120px 1fr;
    gap: 15px;
    align-items: start;
}

.director-content .director-name-line h5 {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Flat directors list */
.directors-list-flat {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.directors-list-flat .director-content:first-child {
    border-top: none;
}

.directors-list-flat .director-content:last-child {
    border-bottom: none;
}

/* Issue row styling */
.director-content.director-issue-row {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.director-content.director-issue-row.director-invalid {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.director-issue-message {
    font-style: italic;
    color: #6c757d;
}

.director-issue-message p {
    margin: 0;
    font-size: 0.9em;
}

/* Import progress styling */
.import-loading-content p strong {
    color: #126fcc;
    font-size: 1.05em;
}

.import-loading-content .progress {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.import-loading-content .progress-bar {
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
}

.director-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f2f6;
    transition: background-color 0.2s ease;
}

.director-item:hover {
    background-color: #f8f9fa;
}

.director-item:last-child {
    border-bottom: none;
}

.director-checkbox {
    margin-right: 12px;
}

.director-info {
    flex: 1;
}

.director-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.director-company {
    font-size: 14px;
    color: #7f8c8d;
}

.director-status {
    margin-left: 10px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-resigned {
    background-color: #f8d7da;
    color: #721c24;
}

.upload-progress {
    margin-top: 20px;
    display: none;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
}

.upload-results {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    display: none;
}

.results-header h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.result-item i {
    margin-right: 10px;
    font-size: 18px;
}

.result-item.success i {
    color: #27ae60;
}

.result-item.error i {
    color: #e74c3c;
}

.result-text {
    color: #2c3e50;
}

.results-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.director-row-clickable {
    cursor: pointer;
}

/* Vue.js controlled visibility classes */
.show-section {
    display: block !important;
}

.show-flex {
    display: flex !important;
}

/* Vue transition bounce effect */
.bounce-enter-active {
    animation: bounce-in 0.5s;
}

.bounce-leave-active {
    animation: bounce-out 0.3s;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce-out {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

/* Responsive Design for Import Tab */
@media (max-width: 768px) {
    .upload-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .file-input-group {
        flex-direction: column;
        align-items: stretch;
        min-width: auto;
    }
    
    .file-input-group input[type="file"] {
        width: 100%;
    }
    
    .selection-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .left-actions, .right-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .selected-count {
        order: -1;
        margin-bottom: 10px;
    }
}

/* Director Monitoring BETA badge - twice default size (for status area) */
.director-monitoring-beta-badge {
    font-size: 1.5em;
    padding: 0.4em 0.75em;
    vertical-align: middle;
}

/* Smaller BETA badge next to page headings (avoid 1.5em of h1 size) */
.director-monitoring-beta-badge-in-heading {
    font-size: 0.5em;
    padding: 0.35em 0.6em;
    vertical-align: middle;
}

/* Monitored Directors - App Blue Theme */
.monitored-directors-list {
    max-height: none;
    overflow: visible;
}

.director-card {
    background: #ffffff;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.director-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #6c757d;
}

.director-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 6px 20px rgba(0,123,255,0.2);
}

.director-header {
    padding: 12px 16px;
    background: #6c757d;
    color: white;
    position: relative;
}

.director-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.director-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.director-info {
    flex: 1;
}

.director-name-line {
    display: grid;
    grid-template-columns: 1fr 200px 300px auto;
    align-items: center;
    gap: 20px;
    min-height: 40px;
}

.director-name {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    min-height: 40px;
    line-height: 1.2;
    grid-column: 1;
}

.director-dob {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
    min-height: 40px;
    line-height: 1.2;
    grid-column: 2;
}

.director-address {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
    min-height: 40px;
    line-height: 1.2;
    grid-column: 3;
}

.director-dob i,
.director-address i {
    color: rgba(255,255,255,0.8);
    width: 14px;
    text-align: center;
}

.director-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.director-actions .btn-outline-danger {
    background-color: white;
    border-color: #dc3545;
    color: #dc3545;
    font-weight: 600;
}

.director-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.director-appointments {
    padding: 12px 16px;
    background: #fafbfc;
}

.appointments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.appointments-header:hover {
    background: #dee2e6;
}

.appointments-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
}

.appointments-summary i {
    color: #007bff;
}

.appointments-count {
    font-size: 14px;
}

.appointments-toggle {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.appointments-list {
    animation: slideDown 0.3s ease;
}

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

.appointment-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.appointment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6c757d;
}


.appointment-item:last-child {
    margin-bottom: 0;
}

/* Custom style for "Open in App" button */
.appointment-actions .btn-outline-primary {
    border-color: #0c5eb0;
    color: #0c5eb0;
}

.appointment-actions .btn-outline-primary:hover {
    background-color: #0c5eb0;
    border-color: #0c5eb0;
    color: white;
}

.director-appointment-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.director-appointment-number {
    font-weight: 700;
    color: #495057;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.director-appointment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 32px;
    min-width: 120px;
    justify-content: center;
}

.status-current-appointment {
    background: #28a745;
    color: white;
    width: 180px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}

.status-appointed {
    background: #28a745;
    color: white;
    width: 180px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}

.status-resigned {
    background: #dc3545;
    color: white;
    width: 180px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}

.status-updated {
    background: #ffc107;
    color: #212529;
    width: 180px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}

.status-likely-dissolved,
.status-company-likely-dissolved {
    background: #dc3545;
    color: white;
    width: 180px;
    text-align: center;
    display: inline-block;
    text-transform: capitalize;
}

/* Import Loading Overlay */
.import-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.import-loading-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.import-loading-content h4 {
    color: #007bff;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.import-loading-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.import-loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.import-loading-content .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.import-loading-content .progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 4px;
}

/* Ensure directors-selection has relative positioning for overlay */
.directors-selection {
    position: relative;
}

/* Appointment Type Badges */
.appointment-badges {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.badge-current-appointment {
    background: #28a745;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-likely-dissolved {
    background: #dc3545;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Director Monitoring Specific Styles */
/* Import Directors – total directors badge above list */
.directors-total-badge {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196F3;
    border-radius: 10px;
    font-weight: 600;
}
.directors-total-badge .directors-total-label {
    color: #1565c0;
    font-size: 1rem;
    margin-right: 8px;
}
.directors-total-badge .directors-total-count {
    font-size: 1.5rem;
    color: #0d47a1;
    min-width: 2.5rem;
    text-align: center;
}
.directors-total-badge .directors-total-hint {
    font-weight: 400;
}

.directors-count-badge {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
}

.directors-count-badge:hover {
    color: #2c3e50 !important;
    background: none !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}
/* Disable hover effects on Directors button */
.directors-count .btn[style*="cursor: default"]:hover {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

.director-appointment-company-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.director-appointment-company-info strong {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: inline;
}

.director-appointment-company-number {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    white-space: nowrap;
}

.appointment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 32px;
    min-width: 80px;
    justify-content: flex-start;
}

.appointment-actions .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.appointment-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.appointment-date {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 32px;
    min-width: 140px;
    justify-content: flex-start;
}

.appointment-date .date-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
}

.appointment-date i {
    color: #6c757d;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .director-appointment-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .director-appointment-company-info {
        min-width: auto;
        width: 100%;
    }
    
    .appointment-actions {
        width: 100%;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .appointment-date {
        min-height: auto;
    }
    
    .director-appointment-number,
    .director-appointment-status,
    .appointment-date {
        white-space: normal;
    }
}

.no-appointments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    font-size: 16px;
}

.no-appointments i {
    margin-right: 8px;
    color: #6c757d;
    font-size: 18px;
}

/* Styles moved from Vue templates */
.search-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.feature-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.directors-dropdown {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 10px;
    padding: 15px;
}

.directors-list {
    max-height: 300px;
    overflow-y: auto;
}

.director-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.director-item:last-child {
    border-bottom: none;
}

.director-info {
    flex: 1;
    min-width: 0;
}

.director-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.director-name strong {
    color: #2c3e50;
    word-break: break-word;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.director-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: #6c757d;
}

.director-address,
.director-dob {
    display: flex;
    align-items: center;
    gap: 5px;
}

.director-address i,
.director-dob i {
    font-size: 10px;
    width: 12px;
}

.director-actions {
    margin-left: 15px;
    flex-shrink: 0;
}

.director-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 80px;
}

@media (max-width: 768px) {
    .director-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .director-actions {
        margin-left: 0;
        align-self: center;
    }
    
    .director-details {
        flex-direction: column;
    }
}

/* SIC code selector modal – match app fonts and left-menu style (blue text, white background) */
.sic-selector-modal {
    font-size: 1rem;
    max-width: min(1560px, 95vw); /* 50% wider than 1040px, never full page */
}
.sic-selector-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}
.sic-selector-modal-title {
    font-size: 1.1rem;
}
.sic-selector-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    font-size: 1rem;
}
.sic-selector-fixed-top {
    flex-shrink: 0;
}
.sic-selector-search-row {
    flex: 1 1 auto;
}
.sic-selector-search-row .sic-selector-search {
    flex: 1 1 auto;
    min-width: 0;
}
.sic-selector-search {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}
.sic-selector-search-hint {
    font-size: 0.9rem;
    color: #6c757d;
}
.sic-selector-company-name-toggle {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.45rem 0.6rem;
    color: #1f2937;
    font-size: 0.9rem;
    gap: 0.75rem;
}
.sic-selector-company-name-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
}
.sic-selector-company-name-toggle small {
    color: #4b5563;
}
.sic-selector-clear-all-btn {
    background: #7f1d1d;
    color: #ffffff;
    border: 1px solid #7f1d1d;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    align-self: center;
}
.sic-selector-clear-all-btn:hover:not(:disabled) {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}
.sic-selector-clear-all-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.sic-selector-chips-wrap {
    min-height: 2.5rem;
}
.sic-selector-selected-summary {
    min-height: 2.15rem;
}
.sic-selector-selected-summary-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: 0;
}
.sic-selector-selected-preview-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.32rem;
    min-width: 0;
    padding-bottom: 2px;
}
.sic-selector-selected-preview-row.is-expanded {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
}
.sic-selector-selected-preview-chip {
    background: #ffffff;
    color: #334155;
    border: 1px solid #c9d9ef;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}
.sic-selector-selected-preview-code {
    color: #0e4f95;
    font-weight: 700;
}
.sic-selector-selected-preview-desc {
    color: #475569;
    font-weight: 500;
}
.sic-selector-selected-preview-more-btn {
    border: 1px solid #c9d9ef;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.sic-selector-selected-toggle {
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 600;
}
.sic-selector-chips-empty {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}
/* Selected codes: same style as home/search filter badges – grey rectangle, rounded corners, description dark grey, code yellow */
.sic-selector-chip.filter-badge {
    background-color: #f3f3f3;
    padding: 6px 10px;
    border-radius: 12px;
    margin: 2px 4px 2px 0;
    font-weight: bold;
}
.sic-selector-chip-code.filter-value {
    color: #e0b000;
    margin-right: 4px;
}
.sic-selector-chip-desc {
    color: #343a40;
    font-weight: normal;
    margin-right: 4px;
}
.sic-selector-chip-remove {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

/* SIC filters on home selected-filters bar */
.sic-home-filter-badge {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    padding: 0;
}
.sic-home-filter-container {
    border: 1px solid #d7e4f6;
    border-radius: 10px;
    padding: 6px 8px;
    background: #ffffff;
    width: 100%;
}
.sic-home-preview-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
.sic-home-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    background: #ffffff;
    border: 1px solid #c9d9ef;
    border-radius: 999px;
    padding: 0.12rem 0.46rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #334155;
    width: 100%;
    min-width: 0;
}
.sic-home-filter-code {
    color: #0e4f95;
    font-weight: 700;
    flex: 0 0 auto;
}
.sic-home-filter-desc {
    color: #4b5563;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sic-home-chip-remove {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 12px;
    margin-left: 4px;
    flex: 0 0 auto;
}
.sic-home-more-btn,
.sic-home-clear-all-btn {
    border: 1px solid #c9d9ef;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}
.sic-home-clear-all-btn {
    border: 1px solid #cf9ca3;
    color: #8c1f2d;
}
.sic-home-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.sic-modal-chip-remove,
.sic-home-chip-remove {
    color: #7a8797;
    border-color: #c3cfdf;
    background-color: #ffffff;
}
.sic-selector-chip-remove:hover {
    color: #343a40;
}
.sic-selector-max-hint {
    font-size: 0.9rem;
    color: #856404;
}
.sic-selector-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.sic-selector-full-list {
    display: flex;
}
.sic-selector-section-list {
    width: 220px;
    overflow-y: auto;
    min-height: 0;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}
.sic-selector-division-list {
    width: 220px;
    overflow-y: auto;
    min-height: 0;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}
.sic-selector-section-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    background: white;
    color: #126fcc;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease;
}
.sic-selector-section-item:last-child {
    border-bottom: none;
}
.sic-selector-section-item:hover:not(.sic-selector-section-item-disabled) {
    background: #f0f7ff;
}
.sic-selector-section-item-active {
    background: #126fcc !important;
    color: white !important;
}
.sic-selector-section-item-active .sic-selector-section-icon {
    background: white;
    color: #126fcc;
}
.sic-selector-section-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.sic-selector-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50%;
    background: #e8f0fe;
    color: #126fcc;
    font-size: 1rem;
    margin-right: 0.5rem;
}
.sic-selector-section-label {
    flex: 1;
    text-align: left;
}
.sic-selector-codes-panel {
    font-size: 1rem;
    min-height: 0;
}
.sic-selector-codes-scroll {
    min-height: 0;
}
.sic-selector-codes-empty {
    font-size: 0.95rem;
    color: #6c757d;
    padding: 1rem;
}
.sic-selector-codes-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
}
.sic-selector-codes-header .sic-selector-actions .btn-link {
    font-size: 0.875rem;
    font-weight: normal;
}
.sic-selector-codes-header .sic-selector-actions .btn-link:disabled {
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: none;
}
.sic-selector-max-msg {
    font-size: 0.8rem;
}
.sic-selector-code-row {
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    color: #212529;
}
.sic-selector-code-row:hover:not(:disabled) {
    background: #f8f9fa;
}
.sic-selector-code-row-selected {
    background: #126fcc !important;
    color: white !important;
}
.sic-selector-code-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 2px solid #adb5bd;
    border-radius: 2px;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.sic-selector-code-row-selected .sic-selector-code-checkbox {
    border-color: white;
    background: rgba(255,255,255,0.3);
}
.sic-selector-code-code {
    font-weight: 600;
    color: #6c757d;
    margin-right: 0.5rem;
    min-width: 3.5rem;
}
.sic-selector-code-row-selected .sic-selector-code-code {
    color: rgba(255,255,255,0.95);
}
.sic-selector-code-label {
    font-size: 0.95rem;
}
.sic-selector-save-btn {
    background-color: #004085;
    font-size: 1rem;
}
.sic-selector-tabs {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem !important;
}
.sic-selector-tab-btn {
    appearance: none;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    min-width: 130px;
    text-align: center;
    padding: 0.4rem 1rem;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease-in-out, border-color 0.18s ease-in-out, color 0.18s ease-in-out;
}
.sic-selector-tab-btn:hover {
    color: #004085;
    background: #cfe2ff;
    border-color: #9ec5fe;
}
.sic-selector-tab-btn:focus,
.sic-selector-tab-btn:active {
    outline: none;
    box-shadow: none;
}
.sic-selector-tab-btn-active {
    background: #126fcc;
    border-color: #126fcc;
    color: #ffffff !important;
}
.sic-selector-tab-btn-active:hover {
    color: #ffffff;
    background: #126fcc;
    border-color: #126fcc;
}
.sic-selector-by-topic {
    min-height: 0;
}
.sic-selector-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.75rem;
}
.sic-selector-topic-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.62rem 0.68rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    text-align: left;
    min-height: 98px;
    height: 100%;
    transition: border-color 0.15s, background-color 0.15s;
}
.sic-selector-topic-tile-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sic-selector-topic-tile:hover {
    border-color: #004085;
    background: #f8f9fa;
}
.sic-selector-topic-tile-icon {
    font-size: 1.16rem;
    line-height: 1;
    margin-bottom: 0;
}
.sic-selector-topic-tile-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.25;
    text-align: left;
    display: block;
}
.sic-selector-topic-tile-count {
    font-size: 0.74rem;
    color: #6c757d;
    text-align: left;
    margin-top: 0.34rem;
    margin-left: 1.62rem;
}
.sic-selector-topic-tile-selected {
    border-color: #004085;
    background-color: #e7f1ff;
}
.sic-selector-topic-tile-partial {
    border-color: #004085;
    background-color: #f0f4ff;
}

/* Shared modal refresh for SIC + financial filter popup */
.ukcdb-modern-modal {
    border: 1px solid #d8e6ff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(16, 52, 103, 0.12);
}

.ukcdb-modern-modal .modal-header {
    border-bottom: 1px solid #e4edfb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
}

.sic-selector-modal-title,
.financial-filter-modal-title {
    color: #126fcc;
    border: 1px solid #cfe0ff;
    background: #ebf3ff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-weight: 600;
}

.modal-close-pill {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    border: 1px solid #b9d3ff;
    background: #dbe9ff;
    color: #126fcc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-close-pill:hover {
    background: #cde0ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(18, 111, 204, 0.18);
}

.modal-close-pill:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(18, 111, 204, 0.2);
}

/* Financial popup polish */
#xbrlConceptFilterContainer .modal-dialog {
    max-width: min(860px, 92vw);
}

.financial-filter-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fbfdff;
}

.financial-filter-row {
    border: 1px solid #e3ebf8;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    background: #ffffff;
}

.financial-filter-label {
    font-weight: 600;
    color: #126fcc;
    margin-bottom: 0.45rem;
}

.financial-filter-input {
    font-size: 0.95rem;
    border-radius: 8px;
    border-color: #d5e3fb;
    padding: 0.35rem 0.5rem;
}

.financial-filter-input:focus {
    border-color: #91b7ef;
    box-shadow: 0 0 0 0.18rem rgba(18, 111, 204, 0.15);
}

.financial-filter-save-btn {
    background: #004a99;
    border-color: #004a99;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
}

.financial-filter-save-btn:hover {
    background: #005cc0;
    border-color: #005cc0;
}

/* SIC selector mobile responsiveness (desktop layout unchanged) */
@media (max-width: 767.98px) {
    .sic-selector-modal {
        max-width: 100vw;
        margin: 0.35rem;
    }

    .sic-selector-modal .modal-content {
        max-height: calc(100vh - 0.7rem);
    }

    .sic-selector-full-list {
        flex-direction: column;
        gap: 0.5rem;
        min-height: 0;
        overflow: hidden;
    }

    .sic-selector-section-list,
    .sic-selector-division-list {
        width: 100%;
        max-height: 22vh;
    }

    .sic-selector-panels {
        overflow-y: auto;
    }

    .sic-selector-codes-panel {
        min-height: 34vh;
    }

    .sic-selector-search-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sic-selector-search-row .sic-selector-save-btn {
        width: 100%;
    }

    .sic-selector-company-name-toggle {
        flex-wrap: wrap;
    }
}

/* Financial filter launcher cards */
.more-filters-button {
    border-radius: 14px;
    border: 1px solid #d5e5ff;
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    color: #145fae;
    font-weight: 500;
    font-size: 0.76rem;
    line-height: 1.22;
    padding: 8px 10px;
    height: 88px;
    box-shadow: 0 5px 14px rgba(12, 55, 110, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.more-filters-button i {
    font-size: 15px;
    color: #126fcc;
}

.more-filters-button:hover {
    color: #0d4f94;
    border-color: #a9c9f4;
    background: linear-gradient(180deg, #fafdff 0%, #e9f3ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(12, 55, 110, 0.1);
}
