:root {
    --header-height: 52px;
    --page-bg: #f3f5f7;
    --surface: #ffffff;
    --text: #17212b;
    --muted: #6f7882;
    --border: #dfe4e8;
    --header-bg: #0b0b0b;
    --header-border: #0b98a6;
    --teal: #0b98a6;
    --teal-dark: #087884;
    --shadow: 0 8px 24px rgba(20, 35, 50, .08);
}

* {
    box-sizing: border-box;
}

html,
body,
form {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.app-body {
    background: var(--page-bg);
    padding-top: var(--header-height);
}

.app-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 10px;
    padding: 3px 14px;
    background: var(--header-bg);
    border-bottom: 3px solid var(--header-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.header-left,
.header-right {
    min-width: 0;
}

.app-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
}

.app-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.app-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    height: 100%;
}

.app-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 5px 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.app-nav a:hover,
.app-nav a:focus {
    color: var(--teal);
}

.app-nav a.is-active {
    color: #ffffff;
}

.app-nav a.is-active:after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    background: var(--teal);
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

.login-status {
    max-width: 165px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-status-label {
    display: inline;
    margin-right: 4px;
    color: #b6bec6;
    font-size: 11px;
}

.login-status a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-button {
    display: none;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
    padding: 7px 10px;
    background: #181818;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.app-content {
    min-height: calc(100vh - var(--header-height));
    padding: 18px;
}

.blank-page {
    min-height: calc(100vh - var(--header-height) - 36px);
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-welcome h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.home-welcome p {
    margin: 0;
    color: var(--muted);
}

.login-body {
    min-height: 100vh;
    background: #f3f5f7;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(410px, 100%);
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.login-logo-area {
    padding: 15px 24px 14px;
    background: #000000;
}

.login-logo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    margin: 0 auto;
}

.login-form {
    padding: 22px 28px 26px;
}

.login-form h1 {
    margin: 0 0 4px;
    font-size: 24px;
}

.login-intro,
.login-note {
    color: var(--muted);
}

.login-intro {
    margin: 0 0 22px;
}

.login-note {
    margin: 18px 0 0;
    font-size: 12px;
    text-align: center;
}

.login-form label {
    display: block;
    margin: 12px 0 5px;
    font-size: 13px;
    font-weight: 700;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd4da;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.text-input:focus {
    border-color: var(--teal);
    outline: 2px solid rgba(11, 152, 166, .15);
}

.remember-row {
    margin: 13px 0 15px;
    color: #3d4750;
    font-size: 13px;
}

.primary-button {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    background: var(--teal);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover,
.primary-button:focus {
    background: var(--teal-dark);
}

.form-message {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
}

.form-message.info {
    background: #eef7f8;
    border: 1px solid #c9e7ea;
    color: #17636b;
}

@media (max-width: 1120px) {
    .app-header {
        grid-template-columns: 56px minmax(0, 1fr) 145px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .app-nav a {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
    }

    .login-status-label {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 50px;
    }

    .app-header {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        height: var(--header-height);
        padding: 2px 8px;
    }

    .app-logo-link,
    .app-logo {
        width: 30px;
        height: 30px;
    }

    .mobile-menu-button {
        display: block;
        justify-self: end;
        grid-column: 2;
    }

    .header-right {
        grid-column: 3;
    }

    .app-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px;
        background: #0b0b0b;
        border-bottom: 3px solid var(--teal);
        box-shadow: var(--shadow);
    }

    .app-nav.is-open {
        display: flex;
    }

    .app-nav a {
        height: auto;
        padding: 11px 12px;
        font-size: 15px;
    }

    .app-nav a.is-active:after {
        right: 12px;
        bottom: 2px;
        left: 12px;
        height: 2px;
    }

    .app-content {
        padding: 12px;
    }

    .blank-page {
        min-height: calc(100vh - var(--header-height) - 24px);
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .app-header {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 20px;
        padding: 2px 7px;
    }

    .mobile-menu-button {
        padding: 6px 9px;
        font-size: 12px;
    }

    .login-status {
        max-width: 92px;
        font-size: 11px;
    }

    .login-logo-area {
        padding: 13px 18px 12px;
    }

    .login-logo {
        width: min(270px, 100%);
    }

    .login-form {
        padding: 20px 20px 22px;
    }
}

/* User menu dropdown */

.user-menu {
    position: relative;
}

.user-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 170px;
    border: 0;
    padding: 7px 8px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.user-menu-button:hover,
.user-menu-button:focus {
    color: var(--teal);
}

.user-menu-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-caret {
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 11px;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.user-menu.is-open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 4px;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown a:focus {
    background: #eef7f8;
    color: var(--teal-dark);
}

@media (max-width: 520px) {
    .user-menu-button {
        max-width: 105px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 11px;
    }
}

/* Section subnavigation */

.section-subnav-shell {
    position: fixed;
    z-index: 990;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: 30px;
    background: var(--teal);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .12);
}

.section-subnav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-subnav a {
    padding: 4px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.section-subnav a:hover {
    opacity:.85;
}

.section-subnav a.is-active {
    color:#ffffff;
    border-bottom:3px solid #000000;
}

.app-body.has-subnav {
    padding-top: calc(var(--header-height) + 30px);
}

/* Shared list page design */

.workspace-page {
    min-height: calc(100vh - var(--header-height) - 36px);
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.workspace-toolbar h1 {
    margin: 0 0 4px;
    font-size: 28px;
}

.workspace-toolbar p {
    margin: 0;
    color: var(--muted);
}

.list-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.list-controls label,
.form-grid label,
.full-width-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #26323c;
    font-size: 12px;
    font-weight: 700;
}

.bq-input,
.bq-select,
.bq-textarea {
    width: 100%;
    border: 1px solid #cbd3d9;
    border-radius: 5px;
    padding: 10px 11px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.bq-input:focus,
.bq-select:focus,
.bq-textarea:focus {
    border-color: var(--teal);
    outline: 2px solid rgba(11, 152, 166, .14);
}

.bq-textarea {
    min-height: 125px;
    resize: vertical;
}

.suggested-value {
    color: #8d969d;
    font-style: italic;
}

.field-help {
    min-height: 14px;
    color: #8d969d;
    font-size: 11px;
    font-weight: 400;
}

.bq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 9px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bq-button:disabled {
    opacity: .55;
    cursor: wait;
}

.bq-button-primary {
    background: var(--teal);
    border-color: var(--teal);
    color: #050505;
}

.bq-button-primary:hover,
.bq-button-primary:focus {
    background: #11afbe;
    border-color: #11afbe;
    color: #050505;
}

.bq-button-outline {
    background: #ffffff;
    border-color: var(--teal);
    color: #075e67;
}

.bq-button-outline:hover,
.bq-button-outline:focus {
    background: var(--teal);
    color: #050505;
}

.button-plus {
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.record-table th {
    position: sticky;
    top: 0;
    padding: 11px 12px;
    background: #0b0b0b;
    color: #ffffff;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.record-table th:hover {
    color: var(--teal);
}

.record-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6eaed;
    font-size: 13px;
}

.record-table tbody tr {
    cursor: pointer;
    transition: background .12s ease;
}

.record-table tbody tr:hover {
    background: #eef9fa;
}

.record-table tbody tr:last-child td {
    border-bottom: 0;
}

.inline-editable {
    position: relative;
}

.inline-editable:hover:after {
    content: "edit";
    position: absolute;
    top: 50%;
    right: 6px;
    color: var(--teal-dark);
    font-size: 9px;
    font-weight: 700;
    transform: translateY(-50%);
}

.inline-edit-input {
    width: 100%;
    border: 1px solid var(--teal);
    border-radius: 3px;
    padding: 5px 6px;
    background: #ffffff;
    font: inherit;
}

.inline-save-success {
    background: #d8f5ee;
}

.newly-added-row {
    background: #bff2e7 !important;
    box-shadow: inset 5px 0 0 var(--teal);
    animation: newRecordPulse 1.1s ease-in-out 2;
}

@keyframes newRecordPulse {
    0%, 100% { background: #bff2e7; }
    50% { background: #e8fbf7; }
}

.empty-state {
    display: none;
    padding: 34px;
    color: var(--muted);
    text-align: center;
}

/* Record modal */

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, .58);
}

.modal-overlay.is-open {
    display: flex;
}

.record-modal {
    width: min(920px, 100%);
    max-height: calc(100vh - 44px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 12px 16px;
    background: #0b0b0b;
    border-bottom: 3px solid var(--teal);
    color: #ffffff;
}

.modal-header h2 {
    margin: 0 0 2px;
    font-size: 19px;
}

.modal-header span {
    color: #bfc8ce;
    font-size: 12px;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--teal);
    color: #050505;
}

.modal-body {
    overflow-y: auto;
    padding: 18px;
}

.form-section-title {
    margin: 18px 0 12px;
    padding: 7px 10px;
    background: #0b0b0b;
    border-left: 5px solid var(--teal);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
}

.full-width-label {
    width: 100%;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .section-subnav-shell {
        top: var(--header-height);
    }

    .list-controls {
        grid-template-columns: 1fr 1fr;
    }

    .quick-search-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .workspace-page {
        padding: 15px;
    }

    .workspace-toolbar {
        align-items: flex-start;
    }

    .workspace-toolbar p {
        display: none;
    }

    .list-controls {
        grid-template-columns: 1fr;
    }

    .quick-search-wrap {
        grid-column: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 0;
    }

    .record-modal {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .section-subnav {
        justify-content: flex-start;
        padding-left: 8px;
    }
}


/* Projects V2 responsive navigation and filters */

.header-navigation {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.quick-search-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle-button {
    display: none;
    flex: 0 0 auto;
}

.advanced-filters {
    display: contents;
}

@media (max-width: 900px) {
    .app-header {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .header-navigation {
        min-width: 0;
        justify-content: flex-start;
    }

    .app-nav {
        position: static;
        display: flex;
        flex: 1 1 auto;
        width: auto;
        height: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1px;
        overflow: hidden;
        padding: 0;
        background: transparent;
        border-bottom: 0;
        box-shadow: none;
    }

    .app-nav a {
        display: inline-flex;
        flex: 0 0 auto;
        height: auto;
        padding: 5px 7px;
        font-size: 12px;
    }

    .app-nav a.is-overflow-hidden {
        display: none;
    }

    .mobile-menu-button {
        flex: 0 0 auto;
        justify-self: auto;
        grid-column: auto;
        margin-left: 2px;
    }

    .app-header.menu-expanded {
        height: auto;
        min-height: var(--header-height);
    }

    .app-header.menu-expanded .header-navigation {
        position: static;
    }

    .app-header.menu-expanded .app-nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        padding: 7px;
        background: #0b0b0b;
        border-bottom: 3px solid var(--teal);
        box-shadow: var(--shadow);
    }

    .app-header.menu-expanded .app-nav a,
    .app-header.menu-expanded .app-nav a.is-overflow-hidden {
        display: flex;
        width: 100%;
        padding: 11px 12px;
        font-size: 15px;
    }

    .app-header.menu-expanded + .section-subnav-shell {
        z-index: 980;
    }
}

@media (max-width: 640px) {
    .list-controls {
        display: block;
    }

    .quick-search-wrap {
        display: block;
        margin-bottom: 10px;
    }

    .quick-search-line .bq-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .filter-toggle-button {
        display: inline-flex;
    }

    .advanced-filters {
        display: none;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        background: #eef9fa;
        border: 1px solid #c9e7ea;
        border-radius: 6px;
    }

    .advanced-filters.is-open {
        display: grid;
    }
}


/* Shared data maintenance interaction modes */

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-mode-control {
    display: inline-flex;
    padding: 3px;
    background: #0b0b0b;
    border: 1px solid #222222;
    border-radius: 6px;
}

.mode-button {
    border: 0;
    border-radius: 4px;
    padding: 7px 11px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mode-button:hover:not(:disabled) {
    color: var(--teal);
}

.mode-button.is-active {
    background: var(--teal);
    color: #050505;
}

.mode-button:disabled {
    color: #777777;
    cursor: not-allowed;
}

.read-only-access-message {
    padding: 7px 10px;
    background: #0b0b0b;
    border-left: 4px solid var(--teal);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.row-action-heading {
    width: 78px;
    cursor: default !important;
}

.row-action-cell {
    width: 78px;
    text-align: right;
}

.row-edit-button {
    border: 1px solid var(--teal);
    border-radius: 4px;
    padding: 5px 10px;
    background: #ffffff;
    color: #075e67;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.row-edit-button:hover,
.row-edit-button:focus {
    background: var(--teal);
    color: #050505;
}

.workspace-page.is-click-mode .inline-editable:hover:after,
.workspace-page.is-read-only .inline-editable:hover:after {
    content: none;
}

.workspace-page.is-edit-mode .record-table tbody tr {
    cursor: default;
}

.workspace-page.is-edit-mode .inline-editable {
    cursor: text;
}

.record-modal.is-read-only .bq-input:disabled,
.record-modal.is-read-only .bq-select:disabled,
.record-modal.is-read-only .bq-textarea:disabled {
    opacity: 1;
    background: #f7f9fa;
    color: #26323c;
    -webkit-text-fill-color: #26323c;
}

.record-modal.is-read-only .form-section-title {
    border-left-color: #7c858c;
}

@media (max-width: 760px) {
    .workspace-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .workspace-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .maintenance-mode-control {
        order: 1;
    }

    .read-only-access-message {
        order: 2;
    }

    #btnNewProject {
        order: 3;
        margin-left: auto;
    }
}


/* Projects and Jobs shared compact list layout */

.compact-workspace-toolbar {
    min-height: 44px;
    margin-bottom: 8px;
}

.compact-workspace-toolbar h1 {
    margin: 0 0 1px;
    font-size: 21px;
    line-height: 1.05;
}

.compact-workspace-toolbar p {
    font-size: 12px;
    line-height: 1.15;
}

.compact-workspace-toolbar .bq-button {
    min-height: 31px;
    padding: 5px 11px;
}

.compact-workspace-toolbar .mode-button {
    padding: 5px 9px;
}

.maintenance-sticky-area {
    position: sticky;
    z-index: 80;
    top: calc(var(--header-height) + 30px);
    margin: -24px -24px 12px;
    padding: 10px 24px 0;
    background: #ffffff;
    border-bottom: 1px solid transparent;
}

.maintenance-sticky-area.is-stuck {
    box-shadow: 0 5px 12px rgba(0, 0, 0, .08);
    border-bottom-color: var(--border);
}

.sticky-filter-button {
    display: none;
    border: 1px solid var(--teal);
    border-radius: 4px;
    padding: 5px 10px;
    background: #ffffff;
    color: #075e67;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.maintenance-sticky-area.filters-collapsed {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.maintenance-sticky-area.filters-collapsed .workspace-toolbar {
    display: none;
}

.maintenance-sticky-area.filters-collapsed .list-controls {
    display: block;
    margin: 0;
}

.maintenance-sticky-area.filters-collapsed .advanced-filters {
    display: none;
}

.maintenance-sticky-area.filters-collapsed .quick-search-wrap > label {
    display: none;
}

.maintenance-sticky-area.filters-collapsed .filter-toggle-button {
    display: none;
}

.maintenance-sticky-area.filters-collapsed .sticky-filter-button {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
}

.maintenance-sticky-area.filters-collapsed .list-controls {
    grid-column: 1;
    grid-row: 1;
}

.maintenance-sticky-area.filters-expanded .sticky-filter-button {
    display: none;
}

.table-shell {
    overflow: visible;
}

.record-table th {
    position: sticky;
    z-index: 70;
    top: calc(var(--header-height) + 30px + 46px);
}

.maintenance-sticky-area.filters-expanded + .table-shell .record-table th {
    top: calc(var(--header-height) + 30px + 126px);
}

.bq-button-danger {
    margin-right: auto;
    background: #ffffff;
    border-color: #bd2f2f;
    color: #9e2020;
}

.bq-button-danger:hover,
.bq-button-danger:focus {
    background: #bd2f2f;
    border-color: #bd2f2f;
    color: #ffffff;
}

.job-summary-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.job-summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--teal);
    border-radius: 6px;
    padding: 11px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.job-summary-card:hover {
    background: #eef9fa;
}

.job-summary-card span,
.job-summary-card small {
    color: var(--muted);
    font-size: 11px;
}

.job-summary-card strong {
    color: #075e67;
    font-size: 16px;
}

.table-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #075e67;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--teal);
    cursor: pointer;
}

@media (max-width: 640px) {
    .maintenance-sticky-area {
        top: calc(var(--header-height) + 30px);
        margin: -15px -15px 10px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .compact-workspace-toolbar h1 {
        font-size: 19px;
    }

    .compact-workspace-toolbar p {
        display: none;
    }

    .job-summary-links {
        grid-template-columns: 1fr;
    }

    .record-table th {
        top: calc(var(--header-height) + 30px + 46px);
    }
}
