/* ===== Top Navbar ===== */

.top-navbar-shell {
    width: 100%;
    margin-top: 0;
    padding: 0 4px;
}

.top-navbar {
    position: relative;
    width: 100%;
    min-height: 46px;
    margin: 0 auto;
    overflow: visible;
    background: #474747;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 12px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.top-navbar-gloss,
.top-navbar-art,
.top-navbar-art-red {
    display: none;
}

.top-navbar-left {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-navbar-logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.top-navbar-logo {
    width: 96px;
    height: auto;
    max-width: 96px;
    display: block;
    object-fit: contain;
}

.top-navbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
}

.top-navbar-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-navbar-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.top-navbar-title-link:hover,
.top-navbar-title-link:focus {
    color: inherit;
    text-decoration: none;
}

.top-navbar-nav-dropdown {
    display: inline-flex;
    align-items: center;
}

.top-navbar-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.top-navbar-nav-toggle:hover,
.top-navbar-nav-toggle:focus,
.top-navbar-nav-toggle.show {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border-radius: 4px;
}

.top-navbar-nav-caret {
    font-size: 0.7rem;
    line-height: 1;
}

.top-navbar-nav-menu {
    min-width: 220px;
    margin-top: 10px;
    padding: 6px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.top-navbar-nav-item {
    padding: 0.48rem 0.95rem;
    font-size: 0.88rem;
    color: #353b42;
}

.top-navbar-nav-item:hover,
.top-navbar-nav-item:focus {
    background: #f4f6f8;
    color: #1f252b;
}

.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 20px;
    padding: 0;
    font-weight: 500;
    color: #fff;
}

.top-navbar-session {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.96rem;
    font-weight: 500;
}

.top-navbar-session-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.top-navbar-session-time {
    min-width: 58px;
    letter-spacing: 0.02em;
}

.top-navbar-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.top-navbar-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.top-navbar-user-toggle:hover,
.top-navbar-user-toggle:focus,
.top-navbar-user-toggle.show {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.top-navbar-user-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    line-height: 1.1;
}

.top-navbar-user-avatar {
    font-size: 1.7rem;
    line-height: 1;
}

.top-navbar-user-name {
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
}

.top-navbar-user-date {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.02em;
}

.top-navbar-user-caret {
    font-size: 0.78rem;
    line-height: 1;
    margin-left: 2px;
}

.top-navbar-logout-form {
    margin: 0;
}

.top-navbar-dropdown-menu {
    min-width: 188px;
    margin-top: 10px;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 1080;
}

.top-navbar-dropdown-header {
    padding: 4px 14px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #68707c;
}

.top-navbar-dropdown-divider {
    margin: 0.2rem 0 0.35rem;
}

.top-navbar-dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 0.95rem;
    color: #2f3640;
}

.top-navbar-dropdown-item:hover,
.top-navbar-dropdown-item:focus {
    background: #f4f6f8;
    color: #1f252b;
}

.top-navbar-guest {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    font-weight: 500;
}

/* ===== Layout ===== */

.page-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 28px;
}

.page-content > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.login-page-wrap {
    display: flex;
    flex: 1 0 auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0 0 12px;
}

.login-panel {
    width: 100%;
    max-width: 340px;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b1b1b;
}

.login-label {
    display: none;
}

.login-input {
    height: 46px;
    border-radius: 4px;
    font-size: 0.96rem;
}

.login-submit-btn {
    min-width: 108px;
    border-radius: 4px;
    background: #ffbf1f;
    border: 1px solid #ffbf1f;
    color: #111;
    font-weight: 600;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    background: #f0b10b;
    border-color: #f0b10b;
    color: #111;
}

/* ===== Dashboard Top Area ===== */

.dashboard-top {
    margin-top: 8px;
}

.dashboard-filter-form {
    max-width: none;
}

.dashboard-filter-toolbar {
    width: 100%;
}

.dashboard-date-field {
    width: 190px;
}

.dashboard-company-field {
    width: 360px;
    max-width: 100%;
}

.dashboard-filter-label {
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #2f2f2f;
}

.dashboard-filter-input {
    height: 28px;
    padding: 0.2rem 0.55rem;
    font-size: 0.82rem;
    border-color: #d8d8d8;
}

.dashboard-filter-input:disabled {
    background-color: #edf0f3;
    border-color: #d2d6dc;
    color: #7b8490;
    cursor: not-allowed;
    opacity: 1;
}

.dashboard-load-btn {
    min-width: 96px;
    height: 30px;
    padding: 0.2rem 0.95rem;
    border: 1px solid #2d67d8;
    border-radius: 0.35rem;
    background: linear-gradient(180deg, #3a80f7 0%, #2a66df 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 1px 2px rgba(25, 66, 145, 0.18);
}

.dashboard-load-btn:disabled {
    background: #d7dce2;
    border-color: #cbd1d8;
    color: #7b8490;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.dashboard-load-btn:not(:disabled):hover {
    background: linear-gradient(180deg, #4a8bf7 0%, #326fe6 100%);
    color: #fff;
}

.dashboard-load-btn:not(:disabled):focus,
.dashboard-load-btn:not(:disabled):active {
    color: #fff;
    background: linear-gradient(180deg, #2f73ec 0%, #285fd0 100%);
    border-color: #285fd0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 0.15rem rgba(48, 109, 230, 0.16);
}

.dashboard-export-btn {
    height: 30px;
    padding: 0.2rem 0.85rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}

.dashboard-table-area {
    margin-top: 24px;
}

.dashboard-table-area .card.shadow-sm.border-0 {
    background: transparent;
    box-shadow: none !important;
}

.sql-unavailable-alert {
    max-width: 920px;
    margin: 0 0 14px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    border-color: #f2cf72;
    background: #fff7df;
    color: #6f5200;
}

.wemacom-table {
    table-layout: fixed;
    width: 100%;
}

.wemacom-table thead th {
    background-color: #f6d060 !important;
    border-color: #d6b04e !important;
    color: #1f1f1f;
}

.work-report-table {
    min-width: 1846px;
}

.source-auto-table {
    min-width: 1196px;
}

.task-dictionary-table {
    min-width: 900px;
}

.project-task-map-table {
    min-width: 1488px;
}

.source-auto-table,
.source-auto-edit-panel-grid {
    --source-auto-action-col: 8.027%;
    --source-auto-client-col: 21.739%;
    --source-auto-booking-col: 26.756%;
    --source-auto-task-load-col: 43.478%;
}

.task-dictionary-table,
.task-dictionary-edit-panel-grid {
    --task-dictionary-action-col: 58px;
    --task-dictionary-task-name-col: calc(48% - 58px);
    --task-dictionary-issue-key-col: 16%;
    --task-dictionary-active-col: 8%;
    --task-dictionary-date-col: 14%;
}

.project-task-map-table,
.project-task-map-edit-panel-grid {
    --project-task-map-action-col: 58px;
    --project-task-map-project-col: 260px;
    --project-task-map-task-col: 420px;
    --project-task-map-issue-key-col: 160px;
    --project-task-map-active-col: 90px;
    --project-task-map-date-col: 160px;
}

.work-report-table thead th,
.work-report-table tbody td {
    border-color: #363636;
}

.work-report-table thead th {
    height: 24px;
    padding: 0.16rem 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
    line-height: 1.05;
    vertical-align: middle;
}

.work-report-crud-table thead th {
    height: auto;
    padding: 0.25rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.work-report-crud-table thead th,
.work-report-crud-table tbody td {
    border-color: var(--bs-border-color) !important;
}

.work-report-table tbody td {
    white-space: nowrap;
}

.work-report-table tbody td.work-report-text-column {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    vertical-align: top;
}

.work-report-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.source-auto-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.source-auto-client-cell {
    min-height: 28px;
    padding-top: 0.16rem;
    padding-bottom: 0.16rem;
    font-size: 0.82rem;
}

.task-dictionary-date-cell {
    font-variant-numeric: tabular-nums;
}

.task-dictionary-table .detail-action-header,
.task-dictionary-table .detail-action-cell {
    width: 58px;
    min-width: 58px;
    padding-left: 4px;
    padding-right: 4px;
}

.task-dictionary-table .detail-row-action {
    margin-right: 1px;
    font-size: 0.78rem;
}

.project-task-map-table .detail-action-header,
.project-task-map-table .detail-action-cell {
    width: 58px;
    min-width: 58px;
    padding-left: 4px;
    padding-right: 4px;
}

.project-task-map-table .detail-row-action {
    margin-right: 1px;
    font-size: 0.78rem;
}

.work-report-band-yellow {
    background-color: #fff200 !important;
}

.work-report-band-blue {
    background-color: #9db9e5 !important;
}

.work-report-band-green {
    background-color: #b7d9a2 !important;
}

.work-report-band-magenta {
    background-color: #f1a6f2 !important;
}

.detail-table-pagination-wrap {
    padding: 12px 16px 14px;
    border-top: 1px solid #edf0f5;
    background: transparent;
}

.detail-table-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 6px;
    background: transparent;
}

.detail-table-toolbar-action-start {
    align-items: center;
    justify-content: flex-start;
}

.detail-table-toolbar-table-edge {
    padding-left: 0;
    padding-right: 0;
}

.detail-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-edit-panel {
    padding: 6px 0;
    border-bottom: 1px solid #edf0f5;
    background: transparent;
}

.source-auto-edit-panel {
    padding-bottom: 10px;
}

.task-dictionary-edit-panel {
    padding-bottom: 10px;
}

.project-task-map-edit-panel {
    padding-bottom: 10px;
}

.detail-edit-panel-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 2px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.detail-edit-panel-cancel {
    background: #d9534f;
}

.detail-edit-panel-save {
    background: #e5a216;
}

.detail-edit-panel-title {
    display: none;
    align-self: center;
    color: #50545b;
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-edit-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 6px 10px;
    align-items: end;
    width: 100%;
}

.detail-edit-panel-field {
    min-width: 0;
    padding: 0;
}

.detail-edit-panel-field .form-label {
    margin-bottom: 0.15rem;
    color: #2f2f2f;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.detail-edit-panel-field .form-control,
.detail-edit-panel-field .form-select {
    width: 100%;
    min-height: 30px;
}

.source-auto-booking-native-select {
    display: none !important;
}

.source-auto-task-combobox {
    position: relative;
}

.source-auto-task-search {
    width: 100%;
    padding-right: 30px;
    cursor: text;
}

.source-auto-task-dropdown-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 28px;
    height: calc(100% - 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #ced4da;
    border-radius: 0 0.2rem 0.2rem 0;
    color: #3f4650;
    background: transparent;
    font-size: 0.78rem;
    line-height: 1;
}

.source-auto-task-dropdown-btn:hover,
.source-auto-task-dropdown-btn:focus {
    color: #1f2933;
    background: #edf2f7;
}

.source-auto-task-results {
    position: fixed;
    z-index: 1060;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: #fff;
    border: 1px solid #9aa4b2;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.source-auto-task-result,
.source-auto-task-empty {
    display: block;
    width: 100%;
    padding: 5px 8px;
    color: #1f2933;
    font-size: 0.76rem;
    line-height: 1.25;
}

.source-auto-task-result {
    cursor: pointer;
}

.source-auto-task-result:hover,
.source-auto-task-result.is-active {
    color: #fff;
    background: #1f6fd6;
}

.source-auto-task-result-name,
.source-auto-task-result-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-auto-task-result-meta {
    margin-top: 2px;
    color: #5f6b7a;
    font-size: 0.68rem;
}

.source-auto-task-result:hover .source-auto-task-result-meta,
.source-auto-task-result.is-active .source-auto-task-result-meta {
    color: rgba(255, 255, 255, 0.84);
}

.source-auto-task-empty {
    color: #6b7280;
}

.detail-edit-panel-field textarea.form-control {
    min-height: 30px;
    resize: none;
}

.work-report-task-english-input {
    height: 30px;
    max-height: 30px;
    overflow-y: auto;
    line-height: 1.25;
}

.source-auto-task-load-input {
    height: 30px;
    max-height: 30px;
    overflow-y: auto;
    line-height: 1.25;
}

.task-dictionary-check-wrap {
    min-height: 30px;
    display: flex;
    align-items: center;
}

.task-dictionary-grid-task-name {
    padding-right: 10px;
}

.task-dictionary-grid-issue-key {
    padding-right: 10px;
}

.task-dictionary-grid-active {
    padding-left: 8px;
}

.task-dictionary-edit-panel-grid .detail-edit-panel-actions {
    gap: 4px;
}

.project-task-map-edit-panel-grid .detail-edit-panel-actions {
    gap: 4px;
}

.detail-edit-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 2px;
}

.detail-action-header,
.detail-action-cell {
    width: 96px;
    min-width: 96px;
    white-space: nowrap;
}

.detail-row-action {
    margin-right: 4px;
    color: #2a66df;
    font-size: 0.9rem;
    text-decoration: none;
}

.detail-row-action:last-child {
    margin-right: 0;
}

.detail-row-action:disabled {
    color: #8f9aa7;
    opacity: 0.55;
    pointer-events: none;
}

.detail-delete-btn {
    color: #d9534f;
}

.detail-row-action.detail-delete-btn:disabled {
    color: #8f9aa7;
}

.detail-row-editing td {
    background-color: #fff6e7 !important;
}

.detail-add-floating-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.detail-add-record-btn {
    background: linear-gradient(180deg, #2bbf56 0%, #16963b 100%);
}

.task-dictionary-import-form {
    margin: 0;
}

.task-dictionary-import-btn {
    background: linear-gradient(180deg, #4f95df 0%, #2d6fbd 100%);
}

.detail-table-pagination-wrap .pagination {
    gap: 4px;
}

.detail-table-pagination-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: #d49647;
    font-size: 11px;
    line-height: 1;
    box-shadow: none;
}

.detail-table-pagination-wrap .page-link:hover {
    border-color: #f0d5ad;
    background: #fff4e6;
    color: #cb8731;
}

.detail-table-pagination-wrap .page-item.active .page-link {
    border-color: #d68b33;
    background: #e49d46;
    color: #fff;
}

.detail-table-pagination-wrap .page-item.disabled .page-link {
    border-color: transparent;
    background: transparent;
    color: #d7b58e;
}

.wemacom-table col.work-report-col-project {
    width: 260px;
}

.wemacom-table col.detail-col-action {
    width: 96px;
}

.wemacom-table.source-auto-table col.detail-col-action {
    width: var(--source-auto-action-col);
}

.wemacom-table.task-dictionary-table col.detail-col-action {
    width: var(--task-dictionary-action-col);
}

.wemacom-table.project-task-map-table col.detail-col-action {
    width: var(--project-task-map-action-col);
}

.wemacom-table col.work-report-col-date {
    width: 110px;
}

.wemacom-table col.work-report-col-client {
    width: 260px;
}

.wemacom-table col.work-report-col-task-english {
    width: 580px;
}

.wemacom-table col.work-report-col-timer-task {
    width: 230px;
}

.wemacom-table col.work-report-col-time {
    width: 80px;
}

.wemacom-table col.work-report-col-duration,
.wemacom-table col.work-report-col-split,
.wemacom-table col.work-report-col-booked,
.wemacom-table col.work-report-col-open {
    width: 95px;
}

.wemacom-table col.work-report-col-taskfile {
    width: 680px;
}

.wemacom-table col.source-auto-col-client {
    width: var(--source-auto-client-col);
}

.wemacom-table col.source-auto-col-booking {
    width: var(--source-auto-booking-col);
}

.wemacom-table col.source-auto-col-work-task-load {
    width: var(--source-auto-task-load-col);
}

.wemacom-table col.task-dictionary-col-task-name {
    width: var(--task-dictionary-task-name-col);
}

.wemacom-table col.task-dictionary-col-issue-key {
    width: var(--task-dictionary-issue-key-col);
}

.wemacom-table col.task-dictionary-col-active {
    width: var(--task-dictionary-active-col);
}

.wemacom-table col.task-dictionary-col-date {
    width: var(--task-dictionary-date-col);
}

.wemacom-table col.project-task-map-col-project {
    width: var(--project-task-map-project-col);
}

.wemacom-table col.project-task-map-col-task {
    width: var(--project-task-map-task-col);
}

.wemacom-table col.project-task-map-col-issue-key {
    width: var(--project-task-map-issue-key-col);
}

.wemacom-table col.project-task-map-col-active {
    width: var(--project-task-map-active-col);
}

.wemacom-table col.project-task-map-col-date {
    width: var(--project-task-map-date-col);
}

@media (min-width: 992px) {
    .detail-edit-panel {
        overflow-x: auto;
    }

    .work-report-edit-panel-grid {
        min-width: 1846px;
        grid-template-columns: 96px 110px 260px 260px 80px 80px 95px 580px 95px 95px 95px;
        column-gap: 0;
        row-gap: 6px;
    }

    .work-report-edit-panel-grid .detail-edit-panel-actions {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .work-report-edit-panel-grid .work-report-grid-client {
        grid-column: 3;
        grid-row: 1;
    }

    .work-report-edit-panel-grid .work-report-grid-project {
        grid-column: 4;
        grid-row: 1;
    }

    .work-report-edit-panel-grid .work-report-grid-task {
        grid-column: 8;
        grid-row: 1;
    }

    .work-report-edit-panel-grid .work-report-grid-split {
        grid-column: 9;
        grid-row: 1;
    }

    .work-report-edit-panel-grid .work-report-grid-booked {
        grid-column: 10;
        grid-row: 1;
    }

    .work-report-edit-panel-grid .work-report-grid-open {
        grid-column: 11;
        grid-row: 1;
    }

    .source-auto-edit-panel-grid {
        min-width: 1196px;
        grid-template-columns:
            minmax(0, var(--source-auto-action-col))
            minmax(0, var(--source-auto-client-col))
            minmax(0, var(--source-auto-booking-col))
            minmax(0, var(--source-auto-task-load-col));
        column-gap: 0;
        row-gap: 8px;
    }

    .source-auto-edit-panel-grid .detail-edit-panel-actions {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .source-auto-edit-panel-grid .source-auto-grid-client {
        grid-column: 2;
        grid-row: 1;
    }

    .source-auto-edit-panel-grid .source-auto-grid-booking {
        grid-column: 3;
        grid-row: 1;
    }

    .source-auto-edit-panel-grid .source-auto-grid-task-load {
        grid-column: 4;
        grid-row: 1;
    }

    .task-dictionary-edit-panel-grid {
        min-width: 900px;
        grid-template-columns:
            minmax(0, var(--task-dictionary-action-col))
            minmax(0, var(--task-dictionary-task-name-col))
            minmax(0, var(--task-dictionary-issue-key-col))
            minmax(0, var(--task-dictionary-active-col))
            minmax(0, var(--task-dictionary-date-col))
            minmax(0, var(--task-dictionary-date-col));
        column-gap: 0;
        row-gap: 8px;
    }

    .task-dictionary-edit-panel-grid .detail-edit-panel-actions {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .task-dictionary-edit-panel-grid .task-dictionary-grid-task-name {
        grid-column: 2;
        grid-row: 1;
    }

    .task-dictionary-edit-panel-grid .task-dictionary-grid-active {
        grid-column: 4;
        grid-row: 1;
    }

    .task-dictionary-edit-panel-grid .task-dictionary-grid-issue-key {
        grid-column: 3;
        grid-row: 1;
    }

    .project-task-map-edit-panel-grid {
        min-width: 1468px;
        grid-template-columns:
            var(--project-task-map-action-col)
            var(--project-task-map-project-col)
            var(--project-task-map-task-col)
            var(--project-task-map-issue-key-col)
            var(--project-task-map-active-col)
            var(--project-task-map-active-col)
            var(--project-task-map-active-col)
            var(--project-task-map-date-col)
            var(--project-task-map-date-col);
        column-gap: 0;
        row-gap: 8px;
    }

    .project-task-map-edit-panel-grid .detail-edit-panel-actions {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
    }

    .project-task-map-edit-panel-grid .project-task-map-grid-project {
        grid-column: 2;
        grid-row: 1;
        padding-right: 10px;
    }

    .project-task-map-edit-panel-grid .project-task-map-grid-task {
        grid-column: 3;
        grid-row: 1;
        padding-right: 10px;
    }

    .project-task-map-edit-panel-grid .project-task-map-grid-active {
        grid-column: 5;
        grid-row: 1;
        padding-left: 8px;
    }
}

footer.footer {
    margin-top: auto;
    text-align: center;
}

footer.footer .container {
    text-align: center;
}

.footer-compact {
    border-top: 1px solid #d9dde3;
    background: #f3f5f8;
}

.footer-compact-inner {
    padding: 7px 12px;
    font-size: 0.72rem;
    color: #7b8593;
    letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
    .page-content {
        padding: 20px 12px;
    }

    .dashboard-company-field,
    .dashboard-date-field {
        width: 100%;
    }

    .top-navbar {
        padding: 0 16px 0 10px;
    }

    .top-navbar-title {
        font-size: 14px;
    }

    .top-navbar-logo {
        width: 90px;
        max-width: 90px;
    }

    .top-navbar-left {
        gap: 8px;
    }

    .top-navbar-right {
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .top-navbar {
        padding: 0 10px;
    }

    .top-navbar-title {
        font-size: 14px;
    }

    .top-navbar-divider {
        display: none;
    }

    .top-navbar-nav-toggle {
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .top-navbar-right {
        font-size: 12px;
        gap: 8px;
        margin-left: 12px;
    }

    .top-navbar-session {
        gap: 7px;
        font-size: 0.82rem;
    }

    .top-navbar-session-icon,
    .top-navbar-user-avatar {
        font-size: 1.35rem;
    }

    .top-navbar-user-name,
    .top-navbar-guest {
        font-size: 0.82rem;
    }

    .top-navbar-user-date {
        font-size: 0.68rem;
    }
}
