/* SheetShow Custom CSS */

/* Base styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    font-weight: 400;
    letter-spacing: -0.01em;
    /* Flex layout: content fills viewport, footer stays at bottom */
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Main content wrapper fills available space, scrolls internally */
.app-wrapper {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* GenoPath full-screen layout: constrain height so the React app's
   <Content overflow="auto"> becomes the scroll container for long pages
   (e.g. test detail) while tabs like the worklist manage their own scroll. */
body.genopath-shell .app-wrapper {
    overflow: hidden;
}

/* GenoPath container chain: Bootstrap wrappers must propagate height to React mount point.
   Without this, main.main-content padding (0.25rem 0) shifts #genopath-root down by 4px,
   causing app-wrapper (overflow:hidden) to clip the React layout's bottom 4px.
   Setting height:100% + padding:0 + min-height:0 on each wrapper fixes the chain so
   GenoPathDashboard mount point fills available height.
   Note: GenoPathDashboard Layout uses height:100dvh (not height:100%) to bypass the parent
   chain entirely -- this chain still matters for padding/clip correctness on the wrapper divs.
   .ant-app is added because AntD <App> renders a <div class="ant-app"> with no height —
   without this, height:100% on inner elements resolves to auto (breaks the chain). */
body.genopath-shell .container-fluid,
body.genopath-shell .main-content,
body.genopath-shell #genopath-root,
body.genopath-shell .ant-app {
    height: 100%;
    padding: 0;
    min-height: 0;
}

/* Footer stays fixed at bottom of viewport */
.app-footer {
    flex-shrink: 0;
}

/* Navigation improvements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Form enhancements */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Status badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Main content area adjustments */
.main-content {
    min-height: calc(100vh - 160px); /* Full height minus navbar and header */
    padding: 0.25rem 0;
}

/* Page header styling - minimal, using Bootstrap classes */
.page-header h1 {
    font-weight: 600;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}

/* Dropdown menu improvements */
.navbar .dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background-color 0.15s ease-in-out;
}

.navbar .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.navbar .dropdown-item.disabled {
    opacity: 0.5;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
