/* Page Layout */
.page-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
    overflow: visible;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Card Component */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: visible;
}

/* Home analytics */
.home-analytics-grid {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .home-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-analytics-stat-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .home-analytics-grid {
        grid-template-columns: 1fr;
    }
}

.home-analytics-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 24px;
    text-align: center;
}

.home-analytics-stat-label {
    margin: 0 0 8px 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.home-analytics-stat-value {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #10384f;
    letter-spacing: -0.02em;
}

.home-analytics-stat-subsection {
    margin-top: 20px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid #e2e8f0;
}

.home-analytics-stat-label--secondary {
    margin: 0 0 6px 0;
    color: #64748b;
}

.home-analytics-stat-value--secondary {
    color: #1e4a63;
}

.home-analytics-chart-card {
    padding: 8px 8px 16px 8px;
    min-height: 360px;
}

.home-analytics-graph {
    height: 340px;
}

.home-analytics-chart-card--span-all {
    grid-column: 1 / -1;
}

.home-analytics-graph--runs-timeline {
    height: 380px;
}

/* Primary Button */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10384f 0%, #1a4a66 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 56, 79, 0.2);
    white-space: nowrap;
    text-align: center;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.3);
}

.primary-button:active {
    transform: translateY(0);
}

/* Legacy add-button - kept for backwards compatibility */
.add-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sequence-input-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 8px;
    resize: vertical;
}

.Select-control {
    border-radius: 8px !important;
}

.header-container {
    display: flex;
    width: 80%;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.header-logo-slot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.header-logo-link:focus-visible {
    outline: 2px solid #10384f;
    outline-offset: 3px;
}

.header-bar-logo {
    height: 96px;
    width: auto;
    display: block;
}

/* Landscape BFXOne mark + wordmark — cap width so the nav stays usable */
.header-bar-logo--bfxone {
    height: auto;
    max-height: 108px;
    max-width: min(520px, 55vw);
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.header-nav .navbar {
    justify-content: center;
    flex-wrap: wrap;
}

.navbar {
    display: flex;
    gap: 5px;
    min-height: 68px;
    align-items: center;
}

.navbar > a,
.navbar .dropdown-toggle {
    color: #333;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar > a:hover,
.navbar .dropdown:hover .dropdown-toggle {
    background-color: #f0f0f0;
    color: #10384f;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dropdown-toggle i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 225px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
    border-radius: 9px;
    z-index: 1000;
    flex-direction: column;
    padding: 9px 0;
    padding-top: 14px;
    border: 1px solid #e0e0e0;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 0;
    right: 0;
    height: 9px;
}

.dropdown-menu a {
    padding: 11px 18px;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.15s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #10384f;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* DataTable Enhancements */
.dash-table-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: visible !important;
}

.dash-spreadsheet-container {
    overflow: visible !important;
}

.dash-spreadsheet-inner {
    overflow: visible !important;
}

.dash-spreadsheet {
    overflow: visible !important;
}

.dash-spreadsheet-inner table {
    overflow: visible !important;
}

.dash-spreadsheet-inner td {
    overflow: visible !important;
}

.dash-spreadsheet-inner td.dropdown {
    overflow: visible !important;
}

/* DataTable dropdown fixes */
.dash-table-container .Select-menu-outer {
    z-index: 1000 !important;
    position: absolute !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: white;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.15);
    padding: 4px 0;
}

.dash-table-container .Select-option {
    font-family: inherit !important;
    font-size: 14px !important;
    color: #334155 !important;
    padding: 8px 12px;
    cursor: pointer;
    background: white;
    transition: background 0.15s;
}

.dash-table-container .Select-option:hover,
.dash-table-container .Select-option.is-focused {
    background: #f1f5f9 !important;
    color: #10384f !important;
}

.cell-markdown, .cell-markdown p {
    overflow: visible !important;
}

/* Ensure dropdowns in editable cells work */
.dash-cell-value {
    overflow: visible !important;
}

.dash-input-cell-value-container {
    overflow: visible !important;
}

.dash-dropdown-cell-value-container {
    overflow: visible !important;
}

.dash-cell.dropdown {
    overflow: visible !important;
}

/* Fix for page content container */
#page-content {
    overflow: visible !important;
}

/* Ensure all parent containers allow dropdown overflow */
.dash-table-container,
.dash-spreadsheet-container,
.dash-spreadsheet-inner,
.dash-spreadsheet,
.dash-spreadsheet-inner table,
.dash-spreadsheet-inner tbody,
.dash-spreadsheet-inner tr,
.dash-spreadsheet-inner td {
    overflow: visible !important;
}

/* DataTable dropdown z-index and positioning */
.Select.is-open {
    z-index: 9999 !important;
    position: relative;
}

.Select-menu-outer {
    z-index: 9999 !important;
    position: absolute !important;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.Select-option {
    padding: 8px 12px;
    cursor: pointer;
}

.Select-option:hover {
    background: #f0f0f0;
}

/* Card with dropdowns needs higher z-index when focused */
.card:has(.Select.is-open) {
    z-index: 100;
}

/* Ensure dropdown cells are clickable and visible */
.dash-spreadsheet-inner td.cell--selected {
    overflow: visible !important;
    clip-path: none !important;
}

.dash-spreadsheet-inner td.focused {
    overflow: visible !important;
}

/* Make dropdown trigger area more accessible */
.dash-cell-value.dropdown {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Style the dropdown within cells */
td .Select {
    width: 100% !important;
    min-width: 150px !important;
}

td .Select-control {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100% !important;
}

td .Select-input {
    width: 100% !important;
}

td .Select-input > input {
    width: 100% !important;
    min-width: 100px !important;
}

td .Select-value {
    max-width: calc(100% - 30px);
}

td .Select-placeholder {
    color: #64748b;
}

td .Select-arrow-zone {
    cursor: pointer;
    padding-right: 8px;
}

td .Select-menu-outer {
    width: 100% !important;
    min-width: 200px !important;
}

/* Fix dropdown cell container width */
.dash-spreadsheet-inner td.dropdown .dash-cell-value {
    width: 100% !important;
}

.dash-spreadsheet-inner td.dropdown .unfocused {
    width: 100% !important;
}

.dash-spreadsheet-inner td.dropdown .focused {
    width: 100% !important;
}

/* Ensure the dropdown container takes full cell width */
.dash-dropdown-cell-value-container {
    width: 100% !important;
}

.dash-dropdown-cell-value-container > div {
    width: 100% !important;
}

/* Fix for focused dropdown input */
.dash-spreadsheet-inner .focused .Select-input,
.dash-spreadsheet-inner .focused .Select-input input {
    width: 100% !important;
    box-sizing: border-box;
}

/* Ensure the focused dropdown takes full width */
.dash-spreadsheet-inner td.dropdown .focused {
    display: block !important;
    width: 100% !important;
}

.dash-spreadsheet-inner td.dropdown .focused > div {
    width: 100% !important;
}

/* Fix Select component within focused cell */
.focused .Select {
    width: 100% !important;
}

.focused .Select-control {
    width: 100% !important;
    display: flex !important;
}

.focused .Select-multi-value-wrapper {
    flex: 1;
    width: 100% !important;
}

.dash-spreadsheet-container .dash-spreadsheet-inner td {
    transition: background-color 0.15s ease;
}

.dash-spreadsheet-container .dash-spreadsheet-inner tr:hover td {
    background-color: #f1f5f9 !important;
    cursor: pointer;
}

.dash-spreadsheet-container .dash-spreadsheet-inner input {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    font-size: 13px;
}

.dash-spreadsheet-container .dash-spreadsheet-inner input:focus {
    outline: none;
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
}

/* Pagination styling */
.previous-next-container {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.previous-next-container button {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.previous-next-container button:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.previous-next-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Elements */
input[type="text"],
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
}

/* Section Headers */
h2 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

/* Details Page Styles */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.detail-value-mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    word-break: break-all;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: #10384f;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
}

/* Bootstrap form-control on same node: keep one focus ring */
#pipeline-study-number.form-input.form-control:focus {
    outline: none;
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
}

/* Dash 4+ dcc.Dropdown is Radix-based (.dash-dropdown on the trigger button).
   Older rules targeted react-select .Select-control and no longer match. */
.form-dropdown.dash-dropdown {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: all 0.15s ease;
    background: white;
}

.radio-label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.radio-input:checked + .radio-label,
.radio-label:has(input:checked) {
    border-color: #10384f;
    background: #e0f2fe;
    color: #10384f;
}

.region-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: all 0.15s ease;
    background: white;
    font-family: inherit;
    font-weight: 500;
}

.region-toggle-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.region-toggle-btn-selected {
    border-color: #10384f;
    background: #e0f2fe;
    color: #10384f;
}

/* Secondary Button */
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.secondary-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Edit product historical comments modal */
.edit-historical-comments-modal.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.edit-historical-comments-modal .modal-dialog {
    margin: 0;
    max-width: 640px;
    width: 100%;
    flex-shrink: 0;
}

.edit-historical-comments-modal .modal-dialog.modal-dialog-centered {
    min-height: 0;
    height: auto;
    display: block;
}

.edit-historical-comments-modal .modal-content {
    padding: 24px 24px 0 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.edit-historical-comments-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.edit-historical-comments-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.edit-historical-comments-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.edit-historical-comments-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    margin-left: auto;
    padding: 0.25rem;
    transition: color 0.15s ease;
}

.edit-historical-comments-close-btn:hover {
    color: #1e293b;
}

.edit-historical-comments-modal .modal-body {
    background-color: #f8fafc;
    padding: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.edit-historical-comments-modal .modal-footer {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    justify-content: flex-end;
}

/* Card Header Row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header-row .card-title {
    margin: 0;
    padding: 0;
    border: none;
}

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 14px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-top: 16px;
}

.error-message:empty {
    display: none;
}

/* Request Study Number Page */
.request-study-number-page {
    max-width: 560px;
}

.request-study-number-header {
    flex-direction: column;
    align-items: stretch;
}

.request-study-number-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.request-study-number-header .page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.request-study-number-card {
    padding: 28px 24px;
}

.request-study-number-form-group {
    margin-bottom: 4px;
}

.request-study-number-dropdown.dash-dropdown {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    min-height: 44px;
    padding: 4px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.request-study-number-dropdown.dash-dropdown:hover {
    border-color: #94a3b8;
}

.request-study-number-dropdown.dash-dropdown[aria-expanded="true"],
.request-study-number-dropdown.dash-dropdown:focus {
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
    outline: none;
}

.request-study-number-dropdown .dash-dropdown-placeholder {
    color: #64748b;
}

.dash-dropdown-wrapper:has(.request-study-number-dropdown) .dash-dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
}

.dash-dropdown-wrapper:has(.request-study-number-dropdown) .dash-dropdown-content {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.12);
}

.request-study-number-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.request-study-number-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 56, 79, 0.2);
}

.request-study-number-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.3);
}

.request-study-number-btn-icon {
    margin-right: 0;
    font-size: 14px;
}

.request-study-number-toast {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    min-width: 320px;
}

@media (max-width: 640px) {
    .request-study-number-page {
        max-width: none;
    }

    .request-study-number-card {
        padding: 20px 16px;
    }

    .request-study-number-actions {
        margin-top: 20px;
        padding-top: 16px;
    }

    .request-study-number-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Generate Protocol File Page */
.generate-protocol-file-page {
    max-width: 560px;
}

.generate-protocol-file-header {
    flex-direction: column;
    align-items: stretch;
}

.generate-protocol-file-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.generate-protocol-file-header .page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.generate-protocol-file-card {
    padding: 28px 24px;
}

.generate-protocol-file-form-group {
    margin-bottom: 4px;
}

.generate-protocol-file-dropdown.dash-dropdown {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    min-height: 44px;
    padding: 4px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.generate-protocol-file-dropdown.dash-dropdown:hover {
    border-color: #94a3b8;
}

.generate-protocol-file-dropdown.dash-dropdown[aria-expanded="true"],
.generate-protocol-file-dropdown.dash-dropdown:focus {
    border-color: #10384f;
    box-shadow: 0 0 0 3px rgba(16, 56, 79, 0.1);
    outline: none;
}

.generate-protocol-file-dropdown .dash-dropdown-placeholder {
    color: #64748b;
}

.dash-dropdown-wrapper:has(.generate-protocol-file-dropdown) .dash-dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
}

.dash-dropdown-wrapper:has(.generate-protocol-file-dropdown) .dash-dropdown-content {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.12);
}

.generate-protocol-file-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.generate-protocol-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 56, 79, 0.2);
}

.generate-protocol-file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 56, 79, 0.3);
}

.generate-protocol-file-btn-icon {
    margin-right: 0;
    font-size: 14px;
}

.generate-protocol-file-toast {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    min-width: 320px;
}

@media (max-width: 640px) {
    .generate-protocol-file-page {
        max-width: none;
    }

    .generate-protocol-file-card {
        padding: 20px 16px;
    }

    .generate-protocol-file-actions {
        margin-top: 20px;
        padding-top: 16px;
    }

    .generate-protocol-file-btn {
        width: 100%;
        justify-content: center;
    }
}