/* Shared page-level patterns used across feature stylesheets. */

:root {
    --jp-page-title-size: 1.35rem;
    --jp-page-title-mobile-size: 1.2rem;
}

:is(.office-settings-header, .ai-settings-header) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

:is(.office-settings-eyebrow, .ai-settings-eyebrow) {
    margin-bottom: 8px;
    color: #66748b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

:is(.office-settings-title, .ai-settings-title) {
    margin: 0;
    color: #1b2640;
    font-size: var(--jp-page-title-size);
    font-weight: 800;
}

:is(.office-settings-subtitle, .ai-settings-subtitle) {
    margin: 10px 0 0;
    color: #66748b;
    font-size: 1rem;
}

:is(.office-settings-header, .ai-settings-header) {
    gap: 12px !important;
    margin-bottom: 4px !important;
}

:is(.office-settings-title, .ai-settings-title) {
    font-size: var(--jp-page-title-size) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
}

:is(.activity-title-row, .app-received-title-row) {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 10px;
}

:is(.activity-title, .app-received-title) {
    margin: 0 0 8px;
    color: #1b2640;
    font-size: var(--jp-page-title-size);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

:is(
    .office-settings-title,
    .ai-settings-title,
    .activity-title,
    .app-received-title,
    .applicant-calendar-page-title,
    .dashboard-title,
    .manual-page-title,
    .jp-page-title,
    .jp-main-content .page-title,
    .jp-main-content .candidates-title,
    .jp-main-content .jobs-title
) {
    font-size: var(--jp-page-title-size) !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

:is(
    .office-settings-subtitle,
    .ai-settings-subtitle,
    .app-received-subtitle,
    .dashboard-subtitle,
    .applicant-calendar-subtitle
) {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
}

:is(.activity-action-card, .activity-table-card, .app-received-action-card, .app-received-table-card) {
    background: #fff;
    border: 0 !important;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

:is(.candidate-list-tools, .activity-list-tools, .app-received-list-tools) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

:is(
    .candidate-list-date-filter,
    .candidate-column-tools,
    .activity-list-date-filter,
    .activity-column-tools,
    .app-received-list-date-filter,
    .app-received-column-tools
) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

:is(.candidate-list-date-filter, .activity-list-date-filter) {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

:is(.candidate-list-date-filter, .activity-list-date-filter) .btn,
:is(.candidate-column-tools, .activity-column-tools) .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

:is(.candidate-list-date-filter, .activity-list-date-filter, .app-received-list-date-filter) label {
    margin: 0;
    color: #55657f;
    font-weight: 700;
    font-size: .86rem;
    white-space: nowrap;
}

:is(.candidate-list-date-filter, .activity-list-date-filter) label,
.candidate-list-date-filter .form-control-sm,
.activity-list-date-filter .form-control-sm {
    flex: 0 0 auto;
}

.candidate-resume-cell {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.candidate-resume-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    text-decoration: none;
    line-height: 1;
}

.candidate-resume-link:hover {
    background: transparent;
    text-decoration: none;
}

.candidate-resume-icon {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

table.dataTable {
    font-size: .88rem;
}

table.dataTable thead th,
table.dataTable thead td {
    color: #34425a !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.18 !important;
    padding: 10px 8px !important;
    border-bottom: 1px solid #d9e1ec !important;
}

table.dataTable tbody td {
    color: #536278;
}

@media (max-width: 767.98px) {
    :is(
        .office-settings-title,
        .ai-settings-title,
        .activity-title,
        .app-received-title,
        .applicant-calendar-page-title,
        .dashboard-title,
        .manual-page-title,
        .jp-page-title,
        .jp-main-content .page-title,
        .jp-main-content .candidates-title,
        .jp-main-content .jobs-title
    ) {
        font-size: var(--jp-page-title-mobile-size) !important;
    }
}
