/* Hide chrome while initial loader is active */
body.is-loading .top-bar,
body.is-loading .search-container,
body.is-loading .box-container,
body.is-loading .org-info-box,
body.is-loading #zoom-controls-container,
body.is-loading .legend,
body.is-loading .back-button,
body.is-loading .dev-bar {
    visibility: hidden;
    pointer-events: none;
}

/* Ensure graph stays hidden via opacity until loader completes */
body.is-loading .graph-container {
    opacity: 0 !important;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
}
body.table-view-active {
    overflow: auto;
}
body.list-view-active {
    overflow: auto;
}
.top-bar {
    flex-shrink: 0;
    height: 60px;
}
.site-footer {
    flex-shrink: 0;
    height: 60px;
    background-color: #f5f5f5;
    padding: 20px 40px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
#main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.container-fluid {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#map {
    height: calc(100vh - 180px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.graph-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#graph {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.node {
    cursor: pointer;
}
.node circle {
    cursor: pointer;
}
.node text {
    font-size: 12px;
    pointer-events: none;
    fill: #333;
    text-shadow: none;
    text-anchor: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.link {
    stroke: #999;
    stroke-opacity: 0.6;
    stroke-width: 3.5px;
}

/* Special styling for person-category links */
.link.person-category {
    stroke: #ff6b6b;
    stroke-width: 2px;
    stroke-dasharray: 5,5;
}

.tooltip {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}
.tooltip h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
}
.tooltip p {
    margin: 0;
    color: #666;
}
.tooltip .metrics {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
}
.legend {
    position: fixed;
    top: 160px;
    left: 20px;
    background: white;
    padding: 0 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    width: 250px;
    font-size: 16px;
}
.legend h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}
.stats-box {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 0 15px 0 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    font-size: 16px;
    z-index: 1000;
    width: 250px;
}
.stats-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}
.stats-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    color: #666;
}
.stats-item .count {
    font-weight: 600;
    color: #333;
}
.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.legend-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.legend-item .segment-info {
    display: flex;
    align-items: center;
}
.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.legend-item .org-count {
    color: #666;
    font-size: 0.9em;
}
.segment {
    background: #1f77b4;
}
.subsegment {
    background: #ff7f0e;
}
.active {
    background: #2ca02c;
}
.inactive {
    background: #d62728;
}
.bounding-box {
    fill: none;
    stroke-width: 3px;
    stroke-dasharray: 5, 5;
    pointer-events: none;
}
.bounding-box-label {
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}
.dev-bar {
    position: fixed;
    bottom: 0px;
    width: 340px;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
}
.back-button {
    padding: 8px 16px;
    background: #1f77b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 20px;
}
.back-button:hover {
    background: #0d4b8c;
}
.segment-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}
.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
}
.loading-steps {
    margin-bottom: 30px;
    text-align: left;
    width: 300px;
}
.loading-step {
    display: flex;
    align-items: center;
    margin: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.loading-step.visible {
    opacity: 1;
    transform: translateY(0);
}
.loading-step .step-indicator {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-step .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #1f77b4;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-step .checkmark {
    color: #2ca02c;
    font-size: 16px;
    display: none;
}
.loading-step.complete .spinner {
    display: none;
}
.loading-step.complete .checkmark {
    display: block;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.loading-bar {
    width: 300px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: #1f77b4;
    transition: width 0.3s ease-out;
    border-radius: 10px;
}
.loading-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.toggle-boxes-button {
    padding: 8px 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 20px;
}
.toggle-boxes-button:hover {
    background: #444;
}
.toggle-boxes-button.hidden {
    background: #2ca02c;
}
.toggle-boxes-button.hidden:hover {
    background: #1f7f1f;
}
.org-info-box {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: none;
}
.org-info-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #1f77b4;
    padding-bottom: 8px;
}
.org-info-item {
    margin-bottom: 8px;
    line-height: 1.4;
}
.org-info-label {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}
.org-info-value {
    color: #666;
}
.org-info-value a {
    color: #0066cc;
    text-decoration: none;
}
.org-info-value a:hover {
    text-decoration: underline;
}
.org-info-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.org-info-category {
    background: #f0f0f0;
    padding: 4px 8px;
    margin-right: 4px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}
.org-info-category.main {
    background: #1f77b4;
    color: white;
}
.org-info-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}
.org-info-status.active {
    background: #2ca02c;
    color: white;
}
.org-info-status.inactive {
    background: #d62728;
    color: white;
}
.org-info-status.merged {
    background: #ff7f0e;
    color: white;
}
.org-info-status.acquired {
    background: #9467bd;
    color: white;
}
.org-info-logo {
    max-width: 100%;
    height: auto;
    margin: 0 0 10px 0;
    border-radius: 4px;
}
.social-media-icons-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 5px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}
.social-icon i {
    line-height: 1;
}
.social-icon.active {
    color: #ffffff;
    cursor: pointer;
}
.social-icon.active:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.social-icon.twitter.active {
    background-color: #1DA1F2;
}
.social-icon.instagram.active {
    background-color: #E1306C;
}
.social-icon.linkedin.active {
    background-color: #0A66C2;
}
.social-icon.youtube.active {
    background-color: #FF0000;
}
.social-icon.inactive {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}
.org-info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.org-info-box-header h3 {
    margin: 0;
}
.open-org-info-button-mobile {
    display: none;
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 1005;
    padding: 10px;
    background-color: #1f77b4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.open-org-info-button-mobile:hover {
    background-color: #0d4b8c;
}
.org-info-box-toggle-mobile {
    display: none;
}
@media (min-width: 769px) {
    .org-info-open-button,
    .org-info-close-button {
      display: none !important;
    }
  }
@media (max-width: 1024px) {
    .org-info-logo {
        max-width: 50%;
        height: auto;
        margin: 0 25% 0 25%;
        border-radius: 4px;
    }
    .box-container-open-button {
        top: 72px !important;
    }
    .dev-bar {
        display: none !important;
    }
    .org-info-box {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: none;
        padding: 15px;
        transform: translateX(0);
        transition: transform 0.35s ease-in-out;
    }
    .org-info-box.org-info-box--offscreen {
        transform: translateX(100vw);
    }
    .org-info-close-button {
        display: flex !important;
        margin-left: auto;
        top: 0px !important;
    }
}
.box-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 350px;
    background: white;
    padding: 10px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(0);
    transition: transform 0.35s ease-in-out;
    z-index: 1999;
}
.box-container--offscreen-left {
    transform: translateX(calc(-100% - 5px));
}
.box-container .stats-box,
.box-container .legend {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    box-shadow: none;
    margin-bottom: 0;
}
.box-container-toggle-button {
    position: absolute;
    width: 20px;
    height: 45px;
    background-color: white;
    color: #333;
    border: 0px solid #ddd;
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 1999;
}
.box-container-toggle-button:hover {
    background-color: #f8f8f8;
    color: #000;
}
.box-container-open-button {
    top: 80px;
    left: -1px;
    border-right: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.box-container-close-button {
    top: 0px;
    left: 98%;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.box-container-close-button:hover {
    background-color: #f8f8f8;
    color: #000;
}
.panel-toggle-bookmark {
    position: absolute;
    width: 20px;
    height: 45px;
    background-color: white;
    color: #333;
    border: 0px solid #ddd;
    box-shadow: -5px 5px 5px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.35s ease-in-out;
    z-index: 1999;
}
.panel-toggle-bookmark:hover {
    background-color: #f8f8f8;
    color: #000;
}
.org-info-open-button {
    display: none;
    position: fixed;
    top: 72px;
    right: -1px;
    border-left: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.org-info-close-button {
    display: none;
    top: 10px;
    right: 0;
    margin-right: 0px;
    border-right: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.top-bar-left {
    display: flex;
    align-items: center;
}
.platform-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #333;
}
.top-bar-right {
    display: flex;
    align-items: center;
}
.created-by {
    display: flex;
    align-items: center;
    gap: 10px;
}
.created-by span {
    color: #666;
    font-size: 14px;
}
.created-by .logo {
    height: 50px;
    width: auto;
}
.search-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1999;
}
.box-container {
    z-index: 1999;
}
.org-info-box {
    z-index: 1999;
}
.box-container-toggle-button {
    z-index: 1999;
}
.panel-toggle-bookmark {
    z-index: 1999;
}
.org-info-category.clickable-category {
    padding: 3px 8px;
    margin: 2px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}
.org-info-category.clickable-category:hover {
    background-color: #d9d9d9;
}
@media (max-width: 768px) {
    .top-bar {
        height: 50px;
    }
    .platform-title {
        display: none;
    }
    .view-btn {
        padding: 8px;
    }
    .view-btn span {
        display: none;
    }
    .view-btn i {
        margin: 0;
        font-size: 18px;
    }
    .created-by span {
        font-size: 12px;
    }
    .created-by .logo {
        height: 40px;
    }
    .graph-container {
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        height: auto;
        max-height: none;
    }
    .search-container,
    .box-container,
    .org-info-box {
        top: 70px;
    }
    .site-footer {
        padding: 12px 8px;
        font-size: 13px;
        height: auto;
        min-height: 60px;
        flex-shrink: 0;
    }
    .footer-right {
        display: none !important;
    }
    body, #main-content, .graph-container, .table-container {
        min-height: 0;
    }
}
@media (max-width: 480px) {
    .top-bar-content {
        padding: 0 10px;
    }
    .platform-title {
        font-size: 18px;
    }
    .created-by span {
        display: none;
    }
}
#zoom-level-display {
    width: 50px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: border-radius 0.2s ease-in-out;
}
#zoom-controls-container {
    position: absolute;
    top: 135px;
    left: 380px;
    display: flex;
    align-items: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
}
#zoom-buttons {
    display: none;
    flex-direction: row;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    height: 30px;
}
#zoom-controls-container.open #zoom-level-display {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
#zoom-controls-container:not(.open) #zoom-level-display {
    border-right: 1px solid #ccc;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
#zoom-buttons button {
    width: 35px;
    height: 100%;
    background-color: transparent;
    border: none;
    border-left: 1px solid #eee;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
#zoom-buttons button:first-child {
    border-left: none;
}
#zoom-buttons button:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
#zoom-buttons button:hover {
    background-color: #f0f0f0;
}
@media (max-width: 1024px) {
    #zoom-controls-container {
        top: 10px;
        left: auto;
        right: 10px;
        width: auto;
    }
}
@media (max-width: 768px) {
    #zoom-controls-container {
        top: 125px;
        left: 10px;
        right: auto;
        width: auto;
    }
    #zoom-level-display {
        width: 45px;
        height: 35px;
    }
    #zoom-buttons {
        height: 35px;
    }
    #zoom-buttons button {
        width: 30px;
        font-size: 14px;
    }
}
.auth-buttons {
    margin-left: 20px;
}
.auth-btn {
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.auth-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.auth-btn i {
    margin-right: 8px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h2 {
    margin: 0;
    color: #333;
}
.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.modal-body {
    padding: 20px 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-actions {
    text-align: right;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: #1976d2;
    color: white;
}
.btn-primary:hover {
    background-color: #1565c0;
}
.user-menu {
    position: relative;
    display: inline-block;
    padding-left: 20px;
}
.user-menu-dropdown {
    position: relative;
}
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-menu-trigger:hover {
    background: #e9ecef;
}
.user-menu-trigger i {
    font-size: 1.2em;
}
.user-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.user-menu-dropdown.active .user-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.menu-item:hover {
    background-color: #f8f9fa;
}
.menu-item i {
    width: 20px;
    color: #6c757d;
}
.menu-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 4px 0;
}
.role-item {
    color: #6c757d;
    font-size: 0.9em;
    padding: 8px 16px;
}
.user-username {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.view-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}
.view-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.view-btn:hover {
    background-color: #e0e0e0;
}
.view-btn.active {
    background-color: #007bff;
    color: white;
}
.view-btn i {
    font-size: 16px;
}
.table-container {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    background: #fff;
    display: none;
    padding: 20px;
    margin-bottom: 0 !important;
}
body.table-view-active .graph-container {
    display: none;
}
body.table-view-active .table-container {
    display: block;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
}
.footer-center a {
    color: #555;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-center a:hover {
    color: #007bff;
}
.footer-left a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}
.footer-left a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 15px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .footer-center {
        flex-wrap: wrap;
        order: 3;
        margin-bottom: 0;
    }
    .footer-center a {
        margin: 5px 10px;
    }
    .footer-right {
        order: 2;
        margin-bottom: 15px;
    }
    .footer-left {
        order: 1;
    }
}

/* Request buttons styles for people focus mode */
.request-buttons-container {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    padding: 12px !important;
}

.request-buttons-container .org-info-label {
    color: #2c3e50;
    font-size: 0.9em;
}

.request-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-buttons .button {
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.85em;
    padding: 8px 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-buttons .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.request-buttons .button.is-primary {
    background-color: #3273dc;
    color: white;
}

.request-buttons .button.is-primary:hover {
    background-color: #2366d1;
}

.request-buttons .button.is-info {
    background-color: #209cee;
    color: white;
}

.request-buttons .button.is-info:hover {
    background-color: #1190db;
}

.request-buttons-container .help-text {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #3273dc;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
    body {
        margin: 0;
        -webkit-print-color-adjust: exact !important; /* Chrome, Safari, Edge */
        print-color-adjust: exact !important; /* Firefox */
    }
    .table-view {
        max-width: 100%;
        margin-top: 70px !important;
    }

    /* Hide non-essential elements for print (top-bar is now visible) */
    .filter-container, .view-switcher, .dev-bar, .org-info-box, .loader, #openOrgInfoBoxMobile, #openBoxContainerButton, #closeBoxContainerButton, .box-container, #zoom-controls-container, .tooltip, .search-container {
        display: none !important;
    }
}
