﻿body, html {
    margin: 0 auto;
    height: 100%;
    width: 100%;
    max-width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    /*background-color: #ffffff;*/
}

/* Apply consistent font to all common elements */
*, *::before, *::after {
    font-family: inherit;
}

.my-blue-text {
    color: #0d6efd; /* Or #007bff, or the exact hex from your theme */
}

/*.amCaptionBar {
    width: 100%;
    height: 30px;
    background-color: #54717f;
    margin-left: auto;
    font-size: 10pt;
    color: #FFFFFF;
    font-weight: bold;
}


.amCaptionSubBar {
    width: 100%;
    height: 30px;
    background-color: #FFFFFF;
    margin-left: auto;
    font-size: 10pt;
    color: black;
    font-weight: bold;
    border-collapse: separate; 
    border-spacing: 5px;
}*/
.caption-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /*padding: 0 1rem;*/
}

.amCaptionBar {
    width: 100%;
    background-color: #54717f;
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
}

.amCaptionSubBar {
    width: 100%;
    background-color: #FFFFFF;
    font-size: 1rem;
    color: black;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    margin-top: 0.5rem;
}
    .amCaptionBar h2,
    .amCaptionSubBar h2 {
        font-weight: 700; /* Stronger bold */
        margin: 0; /* Removes extra spacing */
        font-size: 2.00rem; /* Slightly larger */
    }



.header-container {
    width: 100%;
    margin-bottom: 20px;
}

.amLabel {
    font-size: 12pt;
    color: black;
    font-weight: bold;
}

.dateWidth {
    width: 140px;
}

.tableStyle {
    border-collapse: separate;
    border-spacing: 5px;
}

table.centered-table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 10px;
}

.spacer5x {
    border-spacing: 5px;
}

.spacer10x {
    border-spacing: 10px;
}
.spacer20x {
    border-spacing: 20px;
}

.divDisplayNone {
    display: none;
}

cmn-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}

.cmn-toggle + label {
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
    user-select: none;
}

input.cmn-toggle-round + label {
    padding: 2px;
    width: 60px;
    height: 20px;
    background-color: #dddddd;
    border-radius: 60px;
}

    input.cmn-toggle-round + label:before,
    input.cmn-toggle-round + label:after {
        display: block;
        position: absolute;
        top: 1px;
        left: 1px;
        bottom: 1px;
        content: "";
    }

    input.cmn-toggle-round + label:before {
        right: 1px;
        background-color: #f1f1f1;
        border-radius: 60px;
        transition: background 0.4s;
    }

    input.cmn-toggle-round + label:after {
        width: 20px; /*Circle Radious*/
        background-color: #fff;
        border-radius: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: margin 0.4s;
    }

input.cmn-toggle-round:checked + label:before {
    background-color: #8ce196;
}

input.cmn-toggle-round:checked + label:after {
    margin-left: 38px;
}

.form-check-label {
    margin-left: 0.25rem;
}

select.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

.form-check.form-switch {
    gap: 0.5rem;
}

input[type="text"].form-control {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.customlabel {
    display: block;
    font-weight: 600;
    font-size: 1.10rem;
    margin-bottom: 0.4rem;
    color: #212529; /* Bootstrap's default text color */
}

button[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    button[type="submit"]:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

.divSearchPanel {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

.toggle-panel {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s ease;
    margin: 0; /* Removes extra vertical spacing */
    padding: 0; /* Prevents layout shift during transition */
}

    .toggle-panel.active {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        padding: 1rem; /* Only applies when visible */
        margin-top: 0.5rem; /* Optional: controlled spacing when shown */
    }
.meeting-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .meeting-table thead {
        background-color: #2c3e50;
        color: white;
    }

    .meeting-table th,
    .meeting-table td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
    }

    .meeting-table tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .meeting-table tbody tr:hover {
        background-color: #e8f0fe;
        cursor: default;
    }

    .meeting-table td a {
        color: #007acc;
        text-decoration: none;
    }

        .meeting-table td a:hover {
            text-decoration: underline;
        }

    .meeting-table .options {
        text-align: center;
    }

/* Main Grid Styling */
#SearchGrid {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

    /* Header Styling */
    #SearchGrid .dx-header-row {
        background: linear-gradient(to bottom, #4a5568, #2d3748);
        color: white;
        /*font-weight: 600;*/
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        #SearchGrid .dx-header-row td {
            color: #ffffff !important;
            border-right: 1px solid #5a6578;
            padding: 12px 8px;
        }

        #SearchGrid .dx-header-row .dx-sort-indicator {
            color: white;
        }

    /* Row Styling */
    #SearchGrid .dx-data-row {
        border-bottom: 1px solid #e2e8f0;
        transition: background-color 0.2s ease;
    }

        #SearchGrid .dx-data-row:hover {
            background-color: #f7fafc;
        }

    #SearchGrid .dx-row-alt {
        background-color: #f8fafc;
    }

    #SearchGrid .dx-data-row td {
        padding: 10px 8px;
        vertical-align: middle;
        border-right: 1px solid #e2e8f0;
    }

#SearchGrid {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

    /* Header Styling */
#ItemAttachementGrid .dx-header-row {
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    color: white;
    /*font-weight: 600;*/
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    #ItemAttachementGrid .dx-header-row td {
        color: #ffffff !important;
        border-right: 1px solid #5a6578;
        padding: 12px 8px;
    }

    #ItemAttachementGrid .dx-header-row .dx-sort-indicator {
        color: white;
    }

    /* Row Styling */
#ItemAttachementGrid .dx-data-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

    #ItemAttachementGrid .dx-data-row:hover {
        background-color: #f7fafc;
    }

#ItemAttachementGrid .dx-row-alt {
    background-color: #f8fafc;
}

#ItemAttachementGrid .dx-data-row td {
    padding: 10px 8px;
    vertical-align: middle;
    border-right: 1px solid #e2e8f0;
}

/* Header Styling */
#ItemHistoryGrid .dx-header-row {
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    color: white;
    /*font-weight: 600;*/
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    #ItemHistoryGrid .dx-header-row td {
        color: #ffffff !important;
        border-right: 1px solid #5a6578;
        padding: 12px 8px;
    }

    #ItemHistoryGrid .dx-header-row .dx-sort-indicator {
        color: white;
    }

/* Row Styling */
#ItemHistoryGrid .dx-data-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

    #ItemHistoryGrid .dx-data-row:hover {
        background-color: #f7fafc;
    }

#ItemHistoryGrid .dx-row-alt {
    background-color: #f8fafc;
}

#ItemHistoryGrid .dx-data-row td {
    padding: 10px 8px;
    vertical-align: middle;
    border-right: 1px solid #e2e8f0;
}

/* Meeting Title Column */
.meeting-title-column {
    font-weight: 500;
    color: black;
}

/* Date/Time Column */
.datetime-column {
    color: #4a5568;
    font-size: 13px;
}

/* Documents Cell Styling */
.documents-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.doc-link {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.agenda-link {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

    .agenda-link:hover {
        background-color: #1976d2;
        color: white;
        text-decoration: none;
    }

.minutes-link {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

    .minutes-link:hover {
        background-color: #7b1fa2;
        color: white;
        text-decoration: none;
    }

.no-docs {
    color: #a0aec0;
    font-style: italic;
}

/* Video Cell Styling */
.video-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 2px solid #ff0000;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .youtube-link:hover {
        background-color: #ff0000;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    }

        .youtube-link:hover .youtube-icon {
            fill: white;
        }

.youtube-icon {
    transition: fill 0.2s ease;
}

.no-video {
    color: #a0aec0;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #SearchGrid .dx-data-row td {
        padding: 8px 4px;
    }

    .doc-link {
        font-size: 10px;
        padding: 1px 4px;
    }

    .youtube-link {
        width: 28px;
        height: 28px;
    }

    .youtube-icon {
        width: 16px;
        height: 16px;
    }
}

/* Pagination Styling */
#SearchGrid .dx-pager {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 8px;
}

/* Search Panel Styling */
#SearchGrid .dx-datagrid-search-panel {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
}

/* Filter Row Styling */
#SearchGrid .dx-filter-row {
    background-color: #f1f5f9;
}

/* Loading indicator */
#SearchGrid .dx-loadindicator {
    border-color: #4a5568;
}

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .no-results-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
        border-radius: 12px 12px 0 0;
    }

.no-results-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.no-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.no-results-message {
    font-size: 16px;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.no-results-suggestions {
    margin-top: 24px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

    .no-results-suggestions h4 {
        font-size: 14px;
        font-weight: 600;
        color: #2d3748;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .no-results-suggestions ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .no-results-suggestions li {
        font-size: 14px;
        color: #4a5568;
        margin: 6px 0;
        padding-left: 16px;
        position: relative;
    }

        .no-results-suggestions li::before {
            content: '•';
            color: #3b82f6;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

/* Alternative compact version */
.no-results-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

    .no-results-compact .icon {
        width: 48px;
        height: 48px;
        margin-right: 16px;
        opacity: 0.6;
    }

    .no-results-compact .content {
        text-align: left;
    }

    .no-results-compact .title {
        font-size: 18px;
        font-weight: 600;
        color: #2d3748;
        margin: 0 0 4px 0;
    }

    .no-results-compact .message {
        font-size: 14px;
        color: #718096;
        margin: 0;
    }

/* Minimal version */
.no-results-minimal {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-style: italic;
    font-size: 16px;
    background-color: rgba(247, 250, 252, 0.5);
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-results-container {
        padding: 40px 20px;
        margin: 10px;
        max-width: 100%;
    }

    .no-results-title {
        font-size: 20px;
    }

    .no-results-message {
        font-size: 14px;
    }

    .no-results-icon {
        width: 48px;
        height: 48px;
    }
}

/* Animation for smooth appearance */
.no-results-container {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Container - Center alignment with controlled width */
.grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    /*background-color: #f8fafc;*/
}

/* Main Grid Styling with width control */
#SearchGrid {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    /* Width settings */
    width: 100% !important;
    /*max-width: 1000px;*/ /* Maximum width */
    /*min-width: 700px;*/ /* Minimum width to prevent compression */
}

/* Responsive width adjustments */
@media (max-width: 1040px) {
    .grid-container {
        padding: 15px;
    }

    #SearchGrid {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .grid-container {
        padding: 10px;
    }

    #SearchGrid {
        min-width: 100%;
        max-width: 100%;
    }

        /* Adjust column widths for mobile */
        #SearchGrid .dx-datagrid-headers .dx-header-row td:first-child {
            width: 40% !important;
        }

        #SearchGrid .dx-datagrid-headers .dx-header-row td:nth-child(2) {
            width: 25% !important;
        }

        #SearchGrid .dx-datagrid-headers .dx-header-row td:nth-child(3) {
            width: 25% !important;
        }

        #SearchGrid .dx-datagrid-headers .dx-header-row td:nth-child(4) {
            width: 10% !important;
        }
}

@media (max-width: 480px) {
    #SearchGrid {
        font-size: 12px;
    }
}

.document-0 {
    color: #2f79c1 !important;
    align-items: center;
}

.text-button {
    cursor: pointer;
    color: #2f79c1 !important;
}

.iconColour {
    color: #2f79c1 !important;
    font-size: 2.5em;
}
/*
.iconColour, #searchResults .iconColour, .iconColour i {
    color: #1d2856 !important;
}

.fa-lg {
    font-size: 1.33333333em;
    line-height: 0.75em;
    vertical-align: -15%;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}
*/

.fa-lg {
    font-size: 1.33333333em;
    line-height: 0.75em;
    vertical-align: -15%;
}

.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading Overlay */
.loading-overlay {
    display: none; /* Start hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .loading-overlay.show {
        display: flex;
    }

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #0078D7; /* Accent color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.dx-freespace-row {
    height: 0px !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.search-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 0px solid #dee2e6;
    margin-bottom: 20px;
    margin-left: 140px;
    margin-right: 140px;
}
@media (max-width: 991px) and (min-width: 768px) {
    .search-container {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Remove margin-left for phones (below 768px) */
@media (max-width: 767px) {
    .search-container {
        margin-left:0;
        margin-right:0;
    }
}
.amLabel {
    font-weight: 700;
    color: black;
    margin-bottom: 5px;
}

/* Ensure DevExtreme date boxes are responsive */
.dx-texteditor {
    width: 100% !important;
    min-width: 150px;
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 575px) {
    .search-container {
        padding: 15px;
    }

    .btn {
        width: 100%;
    }

    .d-flex.flex-column.flex-sm-row .btn {
        margin-bottom: 8px;
    }

        .d-flex.flex-column.flex-sm-row .btn:last-child {
            margin-bottom: 0;
        }
}

.btn-sm-custom {
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold; /* Add this for bold font */
}

.btn-navy {
    background-color: #0070f3; /* Updated to match image's vibrant blue */
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

    .btn-navy:hover {
        background-color: #005bd1; /* Slightly darker on hover */
    }

.section-container {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.section-header {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

    .section-header:hover {
        background-color: #eaeaea;
    }

.section-content {
    display: none;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

.toggle-icon {
    font-weight: bold;
    font-size: 18px;
}

.font-weight-bold {
    font-weight: bold;
}

.white-space-prewrap {
    white-space: pre-wrap;
}

.label-col {
    width: 160px;
    font-weight: bold;
}

.value-col {
    flex: 1;
}

.white-space-prewrap {
    white-space: pre-wrap;
}

.page-footer {
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: 0px; /* optional spacing above footer */
}

    .page-footer a {
        color: #6c757d;
        text-decoration: none;
        margin-left: 8px;
    }

        .page-footer a:hover {
            text-decoration: underline;
            color: #495057;
        }
