/* Grafisk profil */
.gp-page {
    min-height: 100vh;
    padding-top: 4.5rem;
    background: #f4f6fb;
}

.gp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.gp-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1976d2;
}

.gp-page-title {
    margin: 0;
    color: #1565c0;
    font-size: 1.6rem;
    font-weight: 700;
}

.gp-page-subtitle {
    margin-top: .25rem;
    color: #6b7280;
    font-size: .9rem;
}

.gp-section {
    margin-bottom: 2.5rem;
}

.gp-section-title {
    margin-bottom: 1rem;
    padding-bottom: .4rem;
    color: #1565c0;
    border-bottom: 2px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gp-section-desc {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: .83rem;
}

.gp-demo {
    margin-bottom: .75rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: .6rem;
}

.gp-demo-label {
    margin-bottom: .5rem;
    color: #9ca3af;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.gp-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.gp-color-swatch {
    width: 110px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    font-size: .75rem;
}

.gp-color-box {
    height: 52px;
}

.gp-color-box--primary-dark {
    background: #1565c0;
}

.gp-color-box--primary {
    background: #1976d2;
}

.gp-color-box--primary-light {
    background: #e3f2fd;
}

.gp-color-box--success {
    background: #198754;
}

.gp-color-box--warning {
    background: #ffc107;
}

.gp-color-box--danger {
    background: #dc3545;
}

.gp-color-info {
    padding: .35rem .5rem;
    background: #ffffff;
    line-height: 1.4;
}

.gp-color-name {
    color: #111827;
    font-size: .75rem;
    font-weight: 600;
}

.gp-color-hex {
    color: #6b7280;
    font-family: monospace;
    font-size: .7rem;
}

.gp-typo-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: .4rem 0;
    border-bottom: 1px dashed #f3f4f6;
}

.gp-typo-row:last-child {
    border-bottom: none;
}

.gp-typo-meta {
    flex-shrink: 0;
    width: 140px;
    color: #9ca3af;
    font-family: monospace;
    font-size: .72rem;
}

.gp-type-page-title,
.gp-type-section-title,
.gp-type-card-title {
    margin: 0;
}

.gp-type-page-title {
    color: #1565c0;
    font-size: 1.75rem;
    font-weight: 700;
}

.gp-type-section-title {
    color: #1565c0;
    font-size: 1.4rem;
    font-weight: 700;
}

.gp-type-card-title {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
}

.gp-card-header {
    color: #343a40;
    background: #e9ecef;
    font-weight: 600;
}

.gp-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gp-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    width: 72px;
    padding: .5rem .25rem;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    font-size: .65rem;
    text-align: center;
    word-break: break-word;
}

.gp-icon-item i {
    color: #1976d2;
    font-size: 1.1rem;
}

.gp-icon-item span {
    line-height: 1.2;
}

.gp-time-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gp-time-option {
    position: relative;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: .6rem;
}

.gp-time-option-recommended {
    background: #eff6ff;
    border: 2px solid #1976d2;
}

.gp-time-option-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    min-height: 6.7rem;
}

.gp-time-option-title {
    margin: 0 0 .35rem;
    color: #374151;
    font-size: .95rem;
    font-weight: 700;
}

.gp-time-option-desc,
.gp-time-option-note {
    margin: 0;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.45;
}

.gp-time-option-note {
    margin-top: .75rem;
}

.gp-time-recommendation {
    flex-shrink: 0;
    padding: 2px 8px;
    color: #ffffff;
    background: #1976d2;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 600;
}

.gp-mdb-timepicker {
    background: #ffffff;
}

.gp-time-select-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: .5rem;
}

.gp-time-separator {
    padding-bottom: .55rem;
    color: #374151;
    font-size: 1.2rem;
    font-weight: 700;
}

.gp-time-value-preview {
    margin-top: .75rem;
    padding: .55rem .7rem;
    color: #374151;
    background: #ffffff;
    border-left: 3px solid #1976d2;
    font-size: .8rem;
}

.gp-time-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .8rem;
}

.gp-time-quick-btn {
    min-width: 3.6rem;
    margin: 0;
}

#demoTabs .nav-link {
    margin-right: 3px;
    padding: .4rem .9rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: .375rem .375rem 0 0;
    font-size: .85rem;
}

#demoTabs .nav-link.active {
    color: #ffffff;
    background: #1976d2;
    border-color: #1976d2;
    font-weight: 600;
}

#demoTabs .nav-link:hover:not(.active) {
    color: #1565c0;
    background: #dbeafe;
}

.gp-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    font-size: .78rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .gp-time-options {
        grid-template-columns: 1fr;
    }

    .gp-time-option-header {
        min-height: auto;
        margin-bottom: .75rem;
    }
}

@media (max-width: 575.98px) {
    .gp-container {
        padding: 1.25rem 1rem 6.5rem;
    }

    .gp-page-header,
    .gp-section {
        margin-bottom: 1.75rem;
    }

    .gp-page-title {
        font-size: 1.4rem;
    }

    .gp-demo {
        padding: 1rem;
    }

    .gp-color-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }

    .gp-color-swatch {
        width: auto;
    }

    .gp-icon-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gp-icon-item {
        width: auto;
        min-height: 4.5rem;
        justify-content: center;
    }

    .gp-icon-item i {
        font-size: 1.4rem;
    }

    .gp-typo-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
        padding: .65rem 0;
    }

    .gp-typo-meta {
        width: auto;
    }
}

:root {
    --tryggare-dark: #343a40;
    --tryggare-dark-hover: #23272b;
    --tryggare-text: #283342;
    --tryggare-muted: #6c757d;
    --tryggare-border: #d5dbe3;
    --tryggare-focus: #3b4657;
    --tryggare-error: #b42318;
    --tryggare-error-background: #fff1f0;
    --tryggare-warning: #92400e;
    --tryggare-warning-background: #fffbeb;
}

.mytasks-page {
    color: #283342;
    background: #f4f6fb;
}

.mytasks-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 0 7rem;
}

.mytasks-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1976d2;
}

.mytasks-eyebrow {
    margin: 0 0 .2rem;
    color: #1976d2;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mytasks-header h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.6rem;
    font-weight: 700;
}

.mytasks-intro {
    margin: .3rem 0 0;
    color: #6b7280;
    font-size: .88rem;
}

.mytasks-actions {
    display: flex;
    flex-shrink: 0;
    gap: .5rem;
}

.mytasks-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
    font-size: .85rem;
    font-weight: 600;
}

.mytasks-toolbar {
    margin-bottom: .65rem;
    padding: .85rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.mytasks-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    padding: .25rem;
    background: #f3f4f6;
    border-radius: .55rem;
}

.mytasks-filter__button {
    min-height: 40px;
    padding: .4rem .55rem;
    color: #4b5563;
    background: transparent;
    border: 0;
    border-radius: .4rem;
    font-size: .82rem;
    font-weight: 600;
}

.mytasks-filter__button.active {
    color: #ffffff;
    background: #1976d2;
    box-shadow: 0 2px 5px rgba(21, 101, 192, .25);
}

.mytasks-filter__button:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .3);
    outline-offset: 1px;
}

.mytasks-result-count {
    min-height: 1.25rem;
    margin: 0 0 .45rem;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 600;
}

.mytasks-list {
    display: grid;
    gap: .7rem;
}

.mytasks-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-left: 4px solid #1976d2;
    border-radius: .7rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.mytasks-card--active {
    border-left-color: #198754;
    background: #f7fcf9;
}

.mytasks-card__link {
    display: block;
    padding: .95rem 1rem .8rem;
    color: inherit;
    text-decoration: none;
}

.mytasks-card__link:hover,
.mytasks-card__link:focus-visible {
    color: inherit;
    background: #f8fbff;
}

.mytasks-card__link:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .35);
    outline-offset: -3px;
}

.mytasks-card__top,
.mytasks-card__date,
.mytasks-card__address {
    display: flex;
    align-items: center;
}

.mytasks-card__top {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}

.mytasks-card__top-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
    margin-left: auto;
}

.mytasks-card__vehicle-badge {
    min-width: 5.5rem;
    padding: .28rem .55rem .28rem 1.05rem;
    color: #111 !important;
    background: linear-gradient(90deg, #0756a5 0, #0756a5 .68rem, #fff .68rem, #fff 100%) !important;
    border: 1.5px solid #202020;
    border-radius: .22rem;
    box-shadow: inset 0 0 0 1px #d7d7d7, 0 1px 2px rgba(0, 0, 0, .18);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.mytasks-card__date {
    gap: .4rem;
    color: #1565c0;
    font-size: .8rem;
    font-weight: 600;
}

.mytasks-card__time {
    margin-left: .65rem;
}

.mytasks-card__title {
    margin: 0 0 .35rem;
    color: #283342;
    font-size: 1.05rem;
    font-weight: 700;
}

.mytasks-card__address {
    align-items: flex-start;
    gap: .4rem;
    margin: 0 0 .35rem;
    color: #4b5563;
    font-size: .86rem;
}

.mytasks-card__address i {
    flex-shrink: 0;
    color: #1976d2;
}

.mytasks-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: .83rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mytasks-card__open {
    display: flex;
    align-items: center;
    gap: .2rem;
    color: #1976d2;
    font-size: .78rem;
    font-weight: 700;
}

.mytasks-empty {
    padding: 2.5rem 1rem;
    color: #6b7280;
    text-align: center;
}

.mytasks-empty > i {
    color: #9ca3af;
    font-size: 2.2rem;
}

.mytasks-empty h2 {
    margin: .65rem 0 .25rem;
    color: #374151;
    font-size: 1.05rem;
}

.mytasks-empty p {
    margin: 0;
    font-size: .85rem;
}

.today-tasks-page {
    color: #283342;
    background: #f4f6fb;
}

.today-tasks-main {
    max-width: 760px;
    margin: 0 auto;
    padding: .5rem 0 7rem;
}

.today-tasks-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .75rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid #1976d2;
}

.today-tasks-header h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.6rem;
    font-weight: 700;
}

.today-tasks-header p {
    margin: .3rem 0 0;
    color: #6b7280;
    font-size: .88rem;
}

.today-tasks-sections {
    display: grid;
    gap: .65rem;
}

.today-tasks-section {
    overflow: hidden;
    padding: .65rem;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-top: 4px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.today-tasks-section--ongoing {
    border-top-color: #198754;
}

.today-tasks-section--finished {
    border-top-color: #6c757d;
}

.today-tasks-section:empty {
    min-height: 5rem;
    background: linear-gradient(90deg, #ffffff 25%, #f4f6f8 50%, #ffffff 75%);
    background-size: 200% 100%;
    animation: today-tasks-loading 1.4s infinite;
}

@keyframes today-tasks-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.today-tasks-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.today-tasks-section__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: #283342;
    font-size: 1rem;
    font-weight: 700;
}

.today-tasks-section__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 50%;
}

.today-tasks-section--ongoing .today-tasks-section__icon {
    color: #146c43;
    background: #d1e7dd;
}

.today-tasks-section--finished .today-tasks-section__icon {
    color: #495057;
    background: #e9ecef;
}

.today-tasks-section__status {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.today-tasks-section__message {
    margin: 0;
    padding: .6rem .2rem;
    color: #6b7280;
    font-size: .85rem;
    text-align: center;
}

.today-task-list {
    display: grid;
    gap: .45rem;
}

.today-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: hidden;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-left: 4px solid #1976d2;
    border-radius: .6rem;
    text-decoration: none;
}

.today-task-card--ongoing {
    border-left-color: #198754;
    background: #f7fcf9;
}

.today-task-card--finished {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

a.today-task-card:hover,
a.today-task-card:focus-visible {
    color: inherit;
    background: #eef8f2;
}

a.today-task-card:focus-visible,
.today-task-action:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .35);
    outline-offset: 2px;
}

.today-task-card__content {
    min-width: 0;
    padding: .65rem .7rem;
}

.today-task-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.today-task-card__time {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #4b5563;
    font-size: .78rem;
    font-weight: 700;
}

.today-task-card__title {
    margin: .3rem 0 .2rem;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
}

.today-task-card__address,
.today-task-card__description {
    margin: 0;
    color: #4b5563;
    font-size: .82rem;
}

.today-task-card__address {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
}

.today-task-card__address i {
    color: #1976d2;
}

.today-task-card__description {
    margin-top: .2rem;
    color: #6b7280;
}

.today-task-card__aside,
.today-task-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem;
}

.today-task-card__aside {
    max-width: 9rem;
}

.today-task-card__open {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #1565c0;
    font-size: .8rem;
    font-weight: 700;
}

.today-task-action {
    display: inline-flex;
    min-width: 4.4rem;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    padding: .35rem .45rem;
    border: 1px solid currentColor;
    border-radius: .5rem;
    font-size: .7rem;
    font-weight: 700;
}

.today-task-action i {
    font-size: 1.1rem;
}

.today-task-action--start {
    color: #ffffff;
    background: #1976d2;
}

.today-task-action--finish,
.today-task-action--reset {
    color: #4b5563;
    background: #ffffff;
}

.today-task-action:disabled {
    color: #6b7280;
    background: #e5e7eb;
    border-color: #d1d5db;
    opacity: 1;
}

.today-tasks-access-denied {
    padding: 2.5rem 1rem;
    color: #6b7280;
    text-align: center;
}

.today-tasks-access-denied > i {
    color: #9ca3af;
    font-size: 2.5rem;
}

.today-tasks-access-denied h1 {
    margin: .7rem 0 .3rem;
    color: #374151;
    font-size: 1.35rem;
}

.today-tasks-access-denied p {
    margin: 0;
    font-size: .88rem;
}

@media (max-width: 575.98px) {
    .mytasks-main {
        padding-top: .45rem;
    }

    .mytasks-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mytasks-header h1 {
        font-size: 1.4rem;
    }

    .mytasks-actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .mytasks-filter__button {
        padding-right: .25rem;
        padding-left: .25rem;
        font-size: .75rem;
    }

    .today-tasks-main {
        padding-top: .25rem;
    }

    .today-tasks-header {
        align-items: stretch;
        flex-direction: column;
    }

    .today-tasks-header h1 {
        font-size: 1.4rem;
    }

    .today-tasks-section {
        padding: .6rem;
    }

    .today-task-card--pending,
    .today-task-card--finished {
        grid-template-columns: 1fr;
    }

    .today-task-card__actions {
        justify-content: flex-end;
        padding: 0 .6rem .6rem;
    }

    .today-task-action {
        min-width: 5.25rem;
        flex-direction: row;
        gap: .25rem;
    }
}

body:not(.signin-page):not(.gp-page):not(.report-position-page):not(.active-task-page) {
    height: 100%;
    padding-top: 4.5rem;
}

#alarmInfoButton {
    --bs-btn-padding-y: .375rem;
    --bs-btn-padding-x: .75rem;
    --bs-btn-font-size: 1rem;
}

#alarmInfoButton.alarm-status-error {
    color: #ffffff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}

#alarmInfoButton.alarm-status-error:hover,
#alarmInfoButton.alarm-status-error:focus-visible {
    color: #ffffff;
    background-color: #dc6502;
    border-color: #dc6502;
}

/* Larmhantering */
.alarm-ack-page {
    color: #283342;
    background: #f4f6fb;
}

.alarm-ack-page__content {
    display: grid;
    gap: 1rem;
    padding: 1rem 0 6.5rem;
}

.alarm-ack-page__header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-left: 4px solid #dc3545;
    border-radius: .8rem;
    box-shadow: 0 3px 12px rgba(40, 51, 66, .1);
}

.alarm-ack-page__header-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    color: #fff;
    background: #dc3545;
    border-radius: .7rem;
    font-size: 1.25rem;
    place-items: center;
}

.alarm-ack-page__header h1,
.alarm-ack-section__header h2,
.alarm-ack-notice h3,
.alarm-ack-state h3 {
    margin: 0;
    font-weight: 700;
}

.alarm-ack-page__header h1 {
    font-size: 1.35rem;
}

.alarm-ack-page__header p,
.alarm-ack-section__header p,
.alarm-ack-notice p,
.alarm-ack-state p {
    margin: .15rem 0 0;
}

.alarm-ack-page__header p,
.alarm-ack-section__header p {
    color: #637083;
    font-size: .86rem;
}

.alarm-ack-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e7ed;
    border-radius: .8rem;
    box-shadow: 0 3px 12px rgba(40, 51, 66, .08);
}

.alarm-ack-section__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    background: #fff;
    border-top: 3px solid #dc3545;
    border-bottom: 1px solid #e5e7eb;
}

.alarm-ack-section__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    color: #842029;
    background: #fff1f2;
    border-radius: .6rem;
    place-items: center;
}

.alarm-ack-section__header h2 {
    color: #283342;
    font-size: 1.05rem;
}

.alarm-ack-section__body {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    background: #f8fafc;
}

.alarm-ack-notice,
.alarm-ack-state,
.alarm-ack-empty {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem;
    border-radius: .65rem;
}

.alarm-ack-notice--danger,
.alarm-ack-state--danger {
    color: #842029;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #dc3545;
}

.alarm-ack-notice > i,
.alarm-ack-state > i {
    flex: 0 0 auto;
    margin-top: .1rem;
    font-size: 1.15rem;
}

.alarm-ack-notice__label {
    display: inline-block;
    margin-bottom: .25rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alarm-ack-notice h3,
.alarm-ack-state h3 {
    font-size: .98rem;
}

.alarm-ack-notice p,
.alarm-ack-state p {
    font-size: .86rem;
}

.alarm-ack-actions {
    display: grid;
}

.alarm-ack-actions .btn {
    min-height: 3rem;
    border-radius: .6rem;
    font-size: .95rem;
    font-weight: 700;
    text-transform: none;
}

.alarm-ack-state--warning {
    color: #664d03;
    background: #fff8db;
    border: 1px solid #ffe69c;
    border-left: 4px solid #ffc107;
}

.alarm-ack-state--success,
.alarm-ack-empty {
    color: #0f5132;
    background: #eaf7f0;
    border: 1px solid #badbcc;
    border-left: 4px solid #198754;
}

.alarm-ack-empty {
    align-items: center;
    font-size: .9rem;
    font-weight: 600;
}

.alarm-ack-table {
    overflow: hidden;
    border: 1px solid #dde3ea;
    border-radius: .65rem;
}

.alarm-ack-table thead th {
    padding: .7rem;
    color: #4b5563;
    background: #eef1f5;
    border: 0;
    font-size: .75rem;
    white-space: nowrap;
}

.alarm-ack-table tbody td {
    padding: .7rem;
    color: #283342;
    background: #fff;
    border-color: #e5e7eb;
    font-size: .82rem;
}

@media (max-width: 575.98px) {
    .alarm-ack-page__content {
        padding-top: .65rem;
    }

    .alarm-ack-page__header,
    .alarm-ack-section__header,
    .alarm-ack-section__body {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .alarm-ack-page__header-icon {
        width: 2.4rem;
        height: 2.4rem;
    }

    .alarm-ack-page__header h1 {
        font-size: 1.15rem;
    }
}

#korjournalikon_pagaende {
    color: green;
    font-size: 1.7rem;
}

#korjournalikon_ej_pagaende {
    color: red;
    font-size: 1.7rem;
}

#logoutTimerDiv {
    position: fixed;
    bottom: 0;
    width: auto;
    background-color: #ffffff;
    font-size: 0.9rem;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

#position-coords {
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 10%;
    width: 70%;
    padding: 5px 5px 5px 10px;
    color: #000000;
    background-color: #fff994;
    border: 1px solid #999;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 15px;
    text-align: center;
    text-shadow: 0 0 0;
}

body.active-task-page {
    height: 100dvh;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 4.5rem;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    background: #f3f6fa;
}

.active-task-main {
    flex: 0 0 auto;
    padding: .55rem .75rem .65rem;
    background: #ffffff;
    border-bottom: 1px solid #d8e0e9;
    box-shadow: 0 .15rem .5rem rgba(17, 24, 39, .06);
}

.active-task-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    margin-bottom: .6rem;
}

.active-task-header__icon {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #1976d2;
    border-radius: .65rem;
    font-size: 1.15rem;
}

.active-task-header__label {
    margin: 0 0 .05rem;
    color: #1976d2;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.active-task-header h1 {
    overflow: hidden;
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-task-header p:last-child {
    overflow: hidden;
    margin: .1rem 0 0;
    color: #5f6b7a;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-task-actions {
    display: flex;
    gap: .45rem;
}

.active-task-action {
    min-width: 0;
    min-height: 2.8rem;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .55rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.15;
}

.active-task-action--wide {
    flex-basis: 100%;
}

.active-task-action--icon {
    max-width: 3.1rem;
    flex: 0 0 3.1rem;
    font-size: 1.1rem;
}

.active-task-map {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #e7edf4;
}

.active-task-map #map_canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.active-task-map-status {
    position: absolute;
    z-index: 4;
    inset: 50% auto auto 50%;
    width: min(88%, 24rem);
    padding: 1rem;
    color: #334155;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #cbd5e1;
    border-radius: .75rem;
    box-shadow: 0 .25rem 1rem rgba(17, 24, 39, .14);
    text-align: center;
    transform: translate(-50%, -50%);
}

.active-task-map-status > i {
    color: #1976d2;
    font-size: 1.5rem;
}

.active-task-map-status p {
    margin: .35rem 0 .65rem;
    font-size: .86rem;
}

.active-task-position#position-coords {
    right: .6rem;
    bottom: .6rem;
    left: .6rem;
    width: auto;
    padding: .45rem .65rem;
    color: #283342;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    box-shadow: 0 .15rem .45rem rgba(17, 24, 39, .12);
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.25;
}

.active-task-page #logoutTimerDiv {
    display: none;
}

@media (max-width: 25rem) {
    .active-task-main {
        padding: .45rem .55rem .55rem;
    }

    .active-task-header {
        gap: .5rem;
        margin-bottom: .45rem;
    }

    .active-task-action {
        padding-inline: .4rem;
        font-size: .75rem;
    }
}

.report-position-map {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

body.report-position-page {
    height: 100dvh;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 4.5rem;
    padding-bottom: env(safe-area-inset-bottom);
}

.report-position-page #part1 {
    flex: 0 0 auto;
}

.report-position-header {
    padding: .65rem .75rem .75rem;
    color: #283342;
    background: #fff;
    border-bottom: 3px solid #1976d2;
    box-shadow: 0 .15rem .45rem rgba(17, 24, 39, .1);
}

.report-position-title {
    margin: 0;
    color: #1565c0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.report-position-title i {
    margin-right: .2rem;
}

.report-position-intro {
    margin: .2rem 0 .6rem;
    color: #6c757d;
    font-size: .8rem;
    line-height: 1.3;
}

.report-position-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.report-position-page #sendPosButton,
.report-position-page #updatePosButton {
    width: 100% !important;
    min-height: 3rem;
    padding: .45rem .6rem;
    border-radius: .5rem;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
}

.report-position-page #sendPosDiv,
.report-position-page #updateMapDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.report-position-page #sendPosDiv i,
.report-position-page #updateMapDiv i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.report-position-map #map_canvas {
    width: 100%;
    height: 100%;
}

.report-position-map #position-coords.report-position-info {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.4rem 0.75rem;
    color: #343a40;
    background-color: #fff;
    border-radius: 0.375rem;
    line-height: 1.25;
    transform: translateX(-50%);
}

.report-position-map .position-accuracy-warning {
    position: absolute;
    z-index: 6;
    top: max(3.5rem, env(safe-area-inset-top));
    left: 50%;
    width: max-content;
    max-width: min(calc(100% - 2rem), 20rem);
    max-height: calc(100% - 8rem);
    margin: 0;
    padding: .5rem .65rem;
    overflow-y: auto;
    font-size: .78rem;
    line-height: 1.25;
    transform: translateX(-50%);
}

.report-position-map .position-accuracy-warning p {
    margin: .15rem 0 .35rem !important;
}

.report-position-map .position-accuracy-warning .form-check {
    min-height: 0;
    margin: 0;
}

.report-position-map .position-accuracy-warning .form-check-label {
    line-height: 1.2;
}

.report-position-fullscreen {
    position: absolute;
    z-index: 7;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: #283342;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #999;
    border-radius: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
}

.report-position-fullscreen:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.report-position-map #position-coords.report-position-info:empty {
    display: none;
}

.position-accuracy-warning {
    margin: 0.5rem;
    padding: 0.75rem;
    color: #664d03;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 0.375rem;
}

.position-accuracy-warning p {
    margin-top: 0.25rem;
}

.tdnowrap {
    white-space: nowrap;
}

.startHidden {
    display: none;
}

.signin-page {
    min-height: 100vh;
    margin: 0;
    color: var(--tryggare-text);
    background: linear-gradient(160deg, #f5f7fa 0%, #e6ebf1 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.signin-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

@supports (min-height: 100dvh) {
    .signin-wrapper {
        min-height: 100dvh;
    }
}

.form-signin {
    width: 100%;
    max-width: 25rem;
    padding: 2.5rem 2.25rem 2rem;
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 0.75rem 2.5rem rgba(20, 30, 55, 0.1), 0 0.125rem 0.5rem rgba(20, 30, 55, 0.05);
}

.signin-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.signin-logo img {
    width: 100%;
    max-width: 15rem;
    height: auto;
}

.form-signin h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-align: center;
}

.signin-subtitle {
    margin: 0.35rem 0 1.5rem;
    color: var(--tryggare-muted);
    font-size: 0.925rem;
    text-align: center;
}

.signin-field {
    margin-bottom: 1rem;
}

.signin-field label {
    display: inline-block;
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.signin-field .form-control {
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--tryggare-border);
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.signin-field .form-control::placeholder {
    color: #8a95a3;
}

.signin-field .form-control:focus {
    border-color: var(--tryggare-focus);
    box-shadow: 0 0 0 0.1875rem rgba(59, 70, 87, 0.12);
    outline: 0;
}

.signin-submit {
    width: 100%;
    min-height: 3rem;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--tryggare-dark);
    border: 1px solid var(--tryggare-dark);
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.signin-submit:hover,
.signin-submit:focus {
    color: #fff;
    background: var(--tryggare-dark-hover);
    border-color: var(--tryggare-dark-hover);
}

.signin-submit:focus-visible,
.signin-reset a:focus-visible {
    outline: 3px solid rgba(59, 70, 87, 0.35);
    outline-offset: 3px;
}

.signin-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.signin-message {
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

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

.signin-message--error {
    color: var(--tryggare-error);
    background: var(--tryggare-error-background);
}

.signin-message--warning {
    color: var(--tryggare-warning);
    background: var(--tryggare-warning-background);
}

.signin-reset {
    margin-top: 1rem;
    text-align: center;
}

.signin-reset a {
    color: var(--tryggare-dark);
    font-size: 0.9rem;
    text-decoration: none;
}

.signin-reset a:hover {
    text-decoration: underline;
}

.signin-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    color: var(--tryggare-muted);
    border-top: 1px solid #eef1f5;
    font-size: 0.82rem;
    text-align: center;
}

.form-control.form-control-required {
    border: 1px solid #ff0000;
}

.activity-card-table {
    outline: 1px solid #000;
}

.activity-action-icon {
    font-size: 2.5rem;
}

.activity-action-icon--dark {
    color: #000;
}

.activity-action-icon--blocked {
    color: #ff0000;
}

.activity-action-icon--success {
    color: #008000;
}

.today-tasks-error {
    color: #b02a37;
    display: block;
}

#position-coords {
    white-space: pre-line;
}

.activity-header-cell,
.activity-duration-select {
    width: auto;
}

.position-report-message--dark {
    color: #000;
}

.position-report-message--light {
    color: #fff;
}

.mobile-index-page {
    min-height: 100vh;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    color: #111827;
    background: #f4f6fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mobile-authenticated-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

/* Körjournal */
.korjournal-page {
    min-height: 100vh;
    background: #f4f6fb;
}

.korjournal-main {
    width: min(100% - 2rem, 58rem);
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.korjournal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1976d2;
}

.korjournal-header__icon {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    place-items: center;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 0.85rem;
    font-size: 1.65rem;
}

.korjournal-title {
    margin: 0;
    color: #1565c0;
    font-size: 1.6rem;
    font-weight: 700;
}

.korjournal-subtitle {
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.korjournal-card,
.korjournal-empty {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 0.2rem 0.75rem rgba(17, 24, 39, 0.05);
}

.korjournal-trip-card {
    border-top: 4px solid #198754;
}

.korjournal-card__header,
.korjournal-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.korjournal-card__header h2,
.korjournal-section-heading h2 {
    margin: 0.3rem 0 0;
    color: #283342;
    font-size: 1.15rem;
    font-weight: 700;
}

.korjournal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #157347;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.korjournal-status__dot {
    width: 0.55rem;
    height: 0.55rem;
    background: #198754;
    border-radius: 50%;
    box-shadow: 0 0 0 0.2rem #d1e7dd;
}

.korjournal-registration {
    padding: 0.4rem 0.65rem;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.korjournal-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}

.korjournal-facts div {
    min-width: 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.korjournal-facts dt,
.korjournal-eyebrow {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.korjournal-facts dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
    color: #283342;
    font-size: 0.9rem;
    font-weight: 600;
}

.korjournal-section-heading {
    margin-bottom: 1rem;
}

.korjournal-section-heading > i {
    color: #1976d2;
    font-size: 1.4rem;
}

.korjournal-route-table,
.korjournal-expense-table {
    font-size: 0.9rem;
}

.korjournal-route-table thead th,
.korjournal-expense-table thead th {
    color: #6b7280;
    background: #f8fafc;
    border-bottom-color: #e5e7eb;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.korjournal-route-table th:first-child,
.korjournal-route-table td:first-child {
    width: 3rem;
    text-align: center;
}

.korjournal-route-table td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.korjournal-route-label,
.korjournal-route-table time span {
    display: block;
    margin-top: 0.1rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
}

.korjournal-route-marker__icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
}

.korjournal-route-marker__icon--start {
    color: #157347;
    background: #d1e7dd;
}

.korjournal-route-marker__icon--stop {
    color: #997404;
    background: #fff3cd;
    font-size: 0.55rem;
}

.korjournal-route-marker__icon--latest {
    color: #b02a37;
    background: #f8d7da;
}

.korjournal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.korjournal-actions .btn {
    min-height: 3.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.korjournal-empty {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
}

.korjournal-empty__icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    place-items: center;
    color: #1976d2;
    background: #e3f2fd;
    border-radius: 50%;
    font-size: 2rem;
}

.korjournal-empty h2 {
    color: #283342;
    font-size: 1.25rem;
    font-weight: 700;
}

.korjournal-empty p {
    color: #6b7280;
}

.korjournal-primary-action {
    min-width: 15rem;
}

.korjournal-empty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.korjournal-empty-row i {
    font-size: 1.25rem;
}

.korjournal-cost {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.2rem 0.45rem;
    color: #283342;
    background: #f1f3f5;
    border-radius: 0.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.korjournal-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    white-space: nowrap;
}

.korjournal-add-expense {
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .korjournal-main {
        width: min(100% - 1rem, 58rem);
        padding-top: 0.6rem;
    }

    .korjournal-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .korjournal-header__icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.35rem;
    }

    .korjournal-title {
        font-size: 1.35rem;
    }

    .korjournal-card,
    .korjournal-empty {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .korjournal-facts {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .korjournal-actions {
        grid-template-columns: 1fr;
    }

    .korjournal-registration {
        font-size: 0.75rem;
    }

    .korjournal-route-table {
        min-width: 28rem;
    }

    .korjournal-expense-table {
        min-width: 31rem;
    }

    .korjournal-primary-action {
        width: 100%;
        min-width: 0;
    }
}

.report-position-page.mobile-authenticated-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.new-task-page {
    background: #f3f6fa;
}

.task-page {
    color: #283342;
    background: #f3f6fa;
}

.task-main {
    display: grid;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: .6rem .75rem 1.25rem;
    gap: .75rem;
}

.task-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border-top: 3px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .08);
}

.task-header__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #1976d2;
    border-radius: .65rem;
    font-size: 1.35rem;
}

.task-header h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.35rem;
    font-weight: 700;
}

.task-header p {
    margin: .15rem 0 0;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.35;
}

.task-details-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.task-card__heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}

.task-card__heading > i {
    color: #1976d2;
    font-size: 1.15rem;
}

.task-card__heading h2,
.task-custom-fields h5 {
    margin: 0;
    color: #283342;
    font-size: 1rem;
    font-weight: 700;
}

.task-custom-fields h5 {
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}

.task-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    gap: .65rem;
}

.task-detail,
.task-resource {
    min-width: 0;
    padding: .7rem .75rem;
    background: #f7f9fc;
    border-radius: .55rem;
}

.task-detail--wide {
    grid-column: 1 / -1;
}

.task-detail dt,
.task-resource dt,
.task-custom-fields dt {
    margin-bottom: .18rem;
    color: #5d6979;
    font-size: .76rem;
    font-weight: 700;
}

.task-detail dd,
.task-resource dd,
.task-custom-fields dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: #202938;
    font-size: .92rem;
}

.task-custom-fields .table {
    margin: 0;
}

.task-custom-fields .table > tbody > tr > td {
    padding: .7rem .75rem;
    background: #f7f9fc;
    border-bottom: .4rem solid #fff;
}

.task-participant-list,
.task-resource-list {
    display: grid;
    margin: 0;
    gap: .5rem;
}

.task-participant {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    background: #f7f9fc;
    border-radius: .55rem;
}

.task-participant > i {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 50%;
}

.task-participant strong,
.task-participant span {
    display: block;
}

.task-participant__phone {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 50%;
    text-decoration: none;
}

.task-participant__phone:hover,
.task-participant__phone:focus-visible {
    color: #0d47a1;
}

.task-participant strong {
    font-size: .9rem;
}

.task-participant span,
.task-empty-message {
    color: #6b7280;
    font-size: .8rem;
}

.task-empty-message {
    margin: 0;
    padding: .75rem;
    background: #f7f9fc;
    border-radius: .55rem;
}

.task-edit-action {
    position: sticky;
    z-index: 5;
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    padding: .65rem;
    background: rgba(243, 246, 250, .96);
    border-radius: .75rem;
}

.task-edit-action .btn {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .55rem;
    font-weight: 700;
}

@media (max-width: 25rem) {
    .task-main {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .task-header,
    .task-details-card {
        padding: .8rem;
    }

    .task-details-grid {
        grid-template-columns: 1fr;
    }

    .task-detail--wide {
        grid-column: auto;
    }
}

.coordinator-page {
    background: #f3f6fa;
}

.coordinator-page__content {
    width: 100%;
    max-width: 56rem;
    padding-right: .75rem;
    padding-left: .75rem;
}

.coordinator-page__intro {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .65rem 0 .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border-top: 3px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .08);
}

.coordinator-page__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #1976d2;
    border-radius: .65rem;
    font-size: 1.35rem;
}

.coordinator-page__intro h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.35rem;
    font-weight: 700;
}

.coordinator-page__intro p {
    margin: .1rem 0 0;
    color: #6b7280;
    font-size: .82rem;
}

.coordinator-dashboard {
    display: grid;
    gap: .75rem;
    padding-bottom: 5.5rem;
}

.coordinator-section {
    overflow: hidden;
    padding: .65rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.coordinator-section--active {
    border-top-color: #198754;
}

.coordinator-section--finished {
    border-top-color: #6c757d;
}

.coordinator-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.coordinator-section__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: #283342;
    font-size: 1rem;
    font-weight: 700;
}

.coordinator-section__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: 50%;
}

.coordinator-section--active .coordinator-section__icon {
    color: #146c43;
    background: #d1e7dd;
}

.coordinator-section--finished .coordinator-section__icon {
    color: #495057;
    background: #e9ecef;
}

.coordinator-section__status {
    color: #6b7280;
    font-size: .72rem;
}

.coordinator-section__empty {
    margin: 0;
    padding: .8rem;
    color: #6b7280;
    background: #f7f9fc;
    border-radius: .55rem;
    text-align: center;
}

.coordinator-task-card {
    overflow: hidden;
    margin: 0 0 .65rem;
    border: 1px solid #dfe5ec;
    border-radius: .65rem;
    box-shadow: 0 1px 4px rgba(40, 51, 66, .07);
}

.coordinator-task-card:last-child {
    margin-bottom: 0;
}

.coordinator-task-card > tbody > tr > td {
    padding: .65rem;
    vertical-align: middle;
}

.coordinator-task-card h6 {
    margin-bottom: .2rem;
    line-height: 1.35;
}

.coordinator-task-card .activity-action-icon {
    display: inline-grid;
    min-width: 2.35rem;
    min-height: 2.35rem;
    place-items: center;
    border-radius: .45rem;
    font-size: 2.4rem;
}

.coordinator-task-card .activity-action-icon + .activity-action-icon {
    margin-left: .6rem !important;
}

.delete-task-warning-modal .modal-dialog {
    max-width: 29rem;
}

.delete-task-warning-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-top: .35rem solid #ffc107;
    border-radius: .8rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .2);
}

.delete-task-warning-modal__header {
    align-items: center;
    padding: .85rem 1.1rem;
    background: #fff;
}

.delete-task-warning-modal__heading {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.delete-task-warning-modal__icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    color: #664d03;
    background: #fff3cd;
    border-radius: 50%;
    place-items: center;
}

.delete-task-warning-modal__header .modal-title {
    color: #283342;
    font-size: 1.08rem;
    font-weight: 700;
}

.delete-task-warning-modal__header .btn-close {
    margin-left: auto;
}

.delete-task-warning-modal__body {
    padding: 1rem 1.1rem;
    background: #f8fafc;
}

.delete-task-warning-modal__body .alert {
    border-radius: .65rem;
}

.delete-task-warning-modal__body .alert p {
    margin-top: .25rem;
}

.delete-task-warning-modal__footer {
    gap: .5rem;
    padding: .85rem 1.1rem;
    background: #fff;
}

.coordinator-task-card .form-select,
.coordinator-task-card .btn {
    min-height: 2.5rem;
}

.coordinator-alarm-card {
    overflow: hidden;
    margin: 0 0 .75rem;
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 3px 10px rgba(40, 51, 66, .14);
}

.coordinator-alarm-card .card-header {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem .85rem;
    font-weight: 700;
}

.coordinator-alarm-card .card-body {
    padding: .85rem;
}

.coordinator-alarm-card__actions {
    padding: 0 .85rem .85rem;
}

.coordinator-alarm-card__actions .btn {
    width: 100%;
    min-height: 2.75rem;
    border-radius: .5rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .coordinator-page__content {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .coordinator-page__intro {
        margin-top: .5rem;
        padding: .7rem .75rem;
    }

    .coordinator-section {
        padding: .5rem;
    }

    .coordinator-task-card > tbody > tr {
        display: flex;
        width: 100%;
    }

    .coordinator-task-card > tbody > tr > td {
        width: auto !important;
        flex: 1 1 50%;
        padding: .5rem;
    }

    .coordinator-task-card .activity-action-icon {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0 !important;
    }

    .coordinator-task-card h6,
    .coordinator-task-card td {
        font-size: .86rem;
    }
}

/* Spontant ärende */
.unplanned-task-modal .modal-dialog {
    max-width: 30rem;
}

.unplanned-task-modal .modal-content {
    overflow: hidden;
    background: #f8fafc;
    border: 0;
    border-top: 3px solid #1976d2;
    border-radius: .85rem;
    box-shadow: 0 1rem 3rem rgba(40, 51, 66, .24);
}

.unplanned-task-modal__header {
    align-items: center;
    padding: .75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.unplanned-task-modal__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .7rem;
}

.unplanned-task-modal__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    color: #fff;
    background: #1976d2;
    border-radius: .55rem;
    font-size: 1.05rem;
    place-items: center;
}

.unplanned-task-modal__heading .modal-title {
    color: #283342;
    font-size: 1.08rem;
    font-weight: 700;
}

.unplanned-task-modal__header .btn-close {
    flex: 0 0 auto;
    margin-left: auto;
}

.unplanned-task-modal__body {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.unplanned-task-modal__intro {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
    color: #0d4777;
    background: #eaf4fd;
    border: 1px solid #bfdbf5;
    border-left: 4px solid #1976d2;
    border-radius: .65rem;
}

.unplanned-task-modal__intro > i {
    flex: 0 0 auto;
    margin-top: .05rem;
    font-size: 1.15rem;
}

.unplanned-task-modal__intro strong {
    display: block;
    margin-bottom: .15rem;
    color: #0b3d66;
    font-size: .9rem;
}

.unplanned-task-modal__intro p {
    margin: 0;
    color: #315f83;
    font-size: .82rem;
    line-height: 1.4;
}

.unplanned-task-modal__actions {
    display: grid;
    gap: .65rem;
}

.unplanned-task-modal__action {
    display: grid;
    min-height: 4.25rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .8rem .9rem;
    color: #283342;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: .7rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.unplanned-task-modal__action:hover {
    color: #1565c0;
    border-color: #90caf9;
    box-shadow: 0 5px 14px rgba(25, 118, 210, .14);
    transform: translateY(-1px);
}

.unplanned-task-modal__action:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .28);
    outline-offset: 2px;
}

.unplanned-task-modal__action-icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    color: #1565c0;
    background: #e3f2fd;
    border-radius: .65rem;
    font-size: 1.15rem;
    place-items: center;
}

.unplanned-task-modal__action-text {
    display: grid;
    gap: .1rem;
}

.unplanned-task-modal__action-text strong {
    font-size: .95rem;
}

.unplanned-task-modal__action-text small {
    color: #637083;
    font-size: .78rem;
}

.unplanned-task-modal__action-arrow {
    color: #1976d2;
    font-size: 1rem;
}

.unplanned-task-modal__footer {
    padding: .75rem 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* Skicka larm */
.alarm-send-modal .modal-dialog {
    max-width: 30rem;
}

.alarm-send-modal .modal-content {
    overflow: hidden;
    background: #f8fafc;
    border: 0;
    border-top: 3px solid #dc3545;
    border-radius: .85rem;
    box-shadow: 0 1rem 3rem rgba(40, 51, 66, .24);
}

.alarm-send-modal__header {
    align-items: center;
    padding: .75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.alarm-send-modal__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .7rem;
}

.alarm-send-modal__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    color: #fff;
    background: #dc3545;
    border-radius: .55rem;
    font-size: 1.05rem;
    place-items: center;
}

.alarm-send-modal__heading .modal-title {
    color: #283342;
    font-size: 1.08rem;
    font-weight: 700;
}

.alarm-send-modal__header .btn-close {
    flex: 0 0 auto;
    margin-left: auto;
}

.alarm-send-modal__body {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.alarm-send-modal__notice {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
    color: #842029;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #dc3545;
    border-radius: .65rem;
}

.alarm-send-modal__notice > i {
    flex: 0 0 auto;
    margin-top: .05rem;
    font-size: 1.15rem;
}

.alarm-send-modal__notice strong {
    display: block;
    margin-bottom: .15rem;
    color: #6f1620;
    font-size: .9rem;
}

.alarm-send-modal__notice p {
    margin: 0;
    color: #7f3740;
    font-size: .82rem;
    line-height: 1.4;
}

.alarm-send-modal__actions {
    display: grid;
    gap: .65rem;
    padding: .85rem;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: .7rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.alarm-send-modal__action {
    min-height: 3.25rem;
    border-radius: .6rem;
    box-shadow: 0 2px 5px rgba(40, 51, 66, .12);
    font-size: 1rem;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}

.alarm-send-modal__action:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(40, 51, 66, .18);
}

.alarm-send-modal__action:focus-visible,
.alarm-send-modal__close:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .35);
    outline-offset: 2px;
}

.alarm-send-modal__close {
    min-height: 2.65rem;
    margin-top: .15rem;
    border-radius: .55rem;
    font-weight: 600;
}

/* Skapa körjournal */
.driving-log-create-modal .modal-dialog {
    max-width: 40rem;
}

.driving-log-create-modal .modal-content {
    overflow: hidden;
    background: #f4f6fb;
    border: 0;
    border-top: 3px solid #1976d2;
    border-radius: .85rem;
    box-shadow: 0 1rem 3rem rgba(40, 51, 66, .22);
}

.driving-log-create-modal__header {
    align-items: center;
    padding: .75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.driving-log-create-modal__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
}

.driving-log-create-modal__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    color: #fff;
    background: #1976d2;
    border-radius: .55rem;
    font-size: 1.1rem;
    place-items: center;
}

.driving-log-create-modal__heading .modal-title {
    color: #1565c0;
    font-size: 1.2rem;
    font-weight: 700;
}

.driving-log-create-modal__header .btn-close {
    flex: 0 0 auto;
    margin-left: auto;
}

.driving-log-create-modal__body {
    padding: 1rem;
    background: #f4f6fb;
}

.driving-log-create-form {
    display: grid;
    gap: .85rem;
}

.driving-log-create-form__section {
    padding: 1rem;
    background: #fff;
    border: 1px solid #d8e1ec;
    border-left: 4px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.driving-log-create-form__section-heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .85rem;
    padding: .65rem .75rem;
    background: #eef6ff;
    border-radius: .55rem;
}

.driving-log-create-form__section-index {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    color: #fff;
    background: #1976d2;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    place-items: center;
}

.driving-log-create-form__section-heading h6 {
    margin: 0;
    color: #283342;
    font-size: .95rem;
    font-weight: 700;
}

.driving-log-create-form__section-heading p {
    margin: .1rem 0 0;
    color: #6b7280;
    font-size: .75rem;
    line-height: 1.3;
}

.driving-log-create-form .form-label,
.driving-log-create-form label {
    margin-bottom: .3rem;
    color: #374151;
    font-size: .82rem;
    font-weight: 600;
}

.driving-log-create-form .form-control,
.driving-log-create-form .form-select {
    min-height: 2.75rem;
    border-color: #cdd5df;
    border-radius: .5rem;
}

.driving-log-create-form .form-control:focus,
.driving-log-create-form .form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .15);
}

.driving-log-create-form .form-control:disabled {
    color: #52606f;
    background: #f3f4f6;
    opacity: 1;
}

.driving-log-create-form__meter {
    margin-bottom: 1rem;
    padding: .85rem;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: .65rem;
}

.driving-log-create-form__meter .form-control {
    background: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.driving-log-create-form__actions {
    display: grid;
}

.driving-log-create-form__actions .btn {
    min-height: 3rem;
    border-radius: .6rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(25, 118, 210, .18);
}

.new-task-main {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: .6rem .75rem 1.25rem;
}

.new-task-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border-top: 3px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .08);
}

.new-task-header__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #1976d2;
    border-radius: .65rem;
    font-size: 1.35rem;
}

.new-task-header h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.35rem;
    font-weight: 700;
}

.new-task-header p {
    margin: .15rem 0 0;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.35;
}

.new-task-form {
    display: grid;
    gap: .75rem;
}

.new-task-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.new-task-card__heading {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}

.new-task-card__heading > i {
    color: #1976d2;
    font-size: 1.15rem;
}

.new-task-card__heading h2 {
    margin: 0;
    color: #283342;
    font-size: 1rem;
    font-weight: 700;
}

.new-task-card__heading p {
    margin: .1rem 0 0;
    color: #6b7280;
    font-size: .76rem;
    line-height: 1.3;
}

.new-task-form .form-label,
.new-task-form label:not(.form-check-label) {
    margin-bottom: .25rem;
    color: #3b4657;
    font-size: .82rem;
    font-weight: 600;
}

.new-task-form .form-control,
.new-task-form .form-select {
    min-height: 2.75rem;
    border-color: #cdd5df;
    border-radius: .5rem;
    font-size: .9rem;
}

.new-task-form textarea.form-control,
.new-task-form select[multiple] {
    min-height: 6rem;
}

.new-task-form .form-control:focus,
.new-task-form .form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .15);
}

.new-task-form .form-control.form-control-required,
.new-task-form .form-select.form-control-required {
    border-color: #dc3545;
}

.new-task-form .form-control.form-control-required:focus,
.new-task-form .form-select.form-control-required:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15);
}

.new-task-form .mb-1,
.new-task-form .mb-3 {
    margin-bottom: .75rem !important;
}

.new-task-form #messageWarning {
    margin-bottom: .3rem;
    font-size: .78rem;
}

.new-task-submit {
    position: sticky;
    z-index: 5;
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    padding: .65rem;
    background: rgba(243, 246, 250, .96);
    border-radius: .75rem;
}

.new-task-submit .btn {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .55rem;
    font-weight: 700;
}

@media (max-width: 25rem) {
    .new-task-main {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .new-task-card {
        padding: .85rem;
    }

    .new-task-header {
        padding: .75rem .85rem;
    }
}

.edit-task-page {
    color: #283342;
    background: #f3f6fa;
}

.edit-task-main {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: .6rem .75rem 1.25rem;
}

.edit-task-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border-top: 3px solid #1976d2;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .08);
}

.edit-task-header__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #1976d2;
    border-radius: .65rem;
    font-size: 1.35rem;
}

.edit-task-header h1 {
    margin: 0;
    color: #1565c0;
    font-size: 1.35rem;
    font-weight: 700;
}

.edit-task-header p {
    margin: .15rem 0 0;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.35;
}

.edit-task-form {
    display: grid;
    gap: .75rem;
}

.edit-task-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(40, 51, 66, .06);
}

.edit-task-card__heading {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}

.edit-task-card__heading > i {
    color: #1976d2;
    font-size: 1.15rem;
}

.edit-task-card__heading h2 {
    margin: 0;
    color: #283342;
    font-size: 1rem;
    font-weight: 700;
}

.edit-task-card__heading p {
    margin: .1rem 0 0;
    color: #6b7280;
    font-size: .76rem;
    line-height: 1.3;
}

.edit-task-form .form-label,
.edit-task-form label:not(.form-check-label) {
    margin-bottom: .25rem;
    color: #3b4657;
    font-size: .82rem;
    font-weight: 600;
}

.edit-task-form .form-control,
.edit-task-form .form-select {
    min-height: 2.75rem;
    border-color: #cdd5df;
    border-radius: .5rem;
    font-size: .9rem;
}

.edit-task-form textarea.form-control,
.edit-task-form select[multiple] {
    min-height: 6rem;
}

.edit-task-form .form-control:focus,
.edit-task-form .form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .15);
}

.edit-task-form .form-control.form-control-required,
.edit-task-form .form-select.form-control-required {
    border-color: #dc3545;
}

.edit-task-form .form-control.form-control-required:focus,
.edit-task-form .form-select.form-control-required:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .15);
}

.edit-task-form .mb-1,
.edit-task-form .mb-3,
.edit-task-field {
    margin-bottom: .75rem !important;
}

.edit-task-field:last-child {
    margin-bottom: 0 !important;
}

.edit-task-form #messageWarning {
    margin-bottom: .3rem;
    font-size: .78rem;
}

.edit-task-submit {
    position: sticky;
    z-index: 5;
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    padding: .65rem;
    background: rgba(243, 246, 250, .96);
    border-radius: .75rem;
}

.edit-task-submit .btn {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: .55rem;
    font-weight: 700;
}

@media (max-width: 25rem) {
    .edit-task-main {
        padding-right: .5rem;
        padding-left: .5rem;
    }

    .edit-task-card {
        padding: .85rem;
    }

    .edit-task-header {
        padding: .75rem .85rem;
    }
}

.mobile-index-main {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.mobile-index-welcome {
    margin-bottom: 1.25rem;
}

.mobile-index-welcome h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.mobile-index-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mobile-index-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 7.5rem;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    color: #111827;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(17, 24, 39, 0.04);
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mobile-index-action:hover,
.mobile-index-action:focus-visible {
    color: #111827;
    border-color: #42a5f5;
    box-shadow: 0 0.4rem 1rem rgba(21, 101, 192, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

.mobile-index-action:focus-visible {
    outline: 3px solid rgba(25, 118, 210, 0.2);
    outline-offset: 2px;
}

.mobile-index-action__icon {
    color: #1976d2;
    font-size: 1.75rem;
    line-height: 1;
}

.mobile-index-action__content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mobile-index-action__content strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.mobile-index-action__content small {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
}

.mobile-index-action__arrow {
    align-self: center;
    color: #6b7280;
    font-size: 1rem;
}

.mobile-index-action--alarm {
    grid-column: 1 / -1;
    min-height: 4.5rem;
    color: #b42318;
    border-color: #ef4444;
}

.mobile-index-action--alarm:hover,
.mobile-index-action--alarm:focus-visible,
.mobile-index-action--alarm .mobile-index-action__icon {
    color: #b42318;
}

.mobile-index-panel {
    overflow: hidden;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(17, 24, 39, 0.06);
}

.mobile-index-panel[aria-labelledby="mobile-updates-title"] {
    background-color: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 0 .5rem .5rem 0;
}

.mobile-index-panel[aria-labelledby="mobile-updates-title"] > .card-body {
    padding: .8rem 1rem;
}

.mobile-index-message {
    white-space: pre-line;
}

.system-message {
    border-left: 4px solid;
    border-radius: 0 .5rem .5rem 0;
    padding: .8rem 1rem;
    overflow-wrap: anywhere;
}

.system-message--info {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}

.system-message--warning {
    border-color: #f9a825;
    background: #fff8e1;
    color: #614800;
}

.system-message--urgent {
    border-color: #c62828;
    background: #ffebee;
    color: #b71c1c;
}

.mobile-index-update {
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.mobile-index-update + .mobile-index-update {
    margin-top: 1rem;
}

.mobile-index-page #logoutTimerDiv {
    display: none;
}

.mobile-bottom-nav {
    position: fixed;
    z-index: 1030;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.75rem, 1fr));
    padding: 0.5rem max(0.5rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -0.25rem 1rem rgba(17, 24, 39, 0.08);
}

.mobile-bottom-nav__item {
    display: flex;
    min-width: 0;
    min-height: 3.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.3rem 0.15rem;
    color: #4b5563;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.mobile-bottom-nav__item i {
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus-visible,
.mobile-bottom-nav__item--active {
    color: #1565c0;
    background: #e3f2fd;
    text-decoration: none;
}

.mobile-bottom-nav__item--driving-log-active,
.mobile-bottom-nav__item--driving-log-active:hover,
.mobile-bottom-nav__item--driving-log-active:focus-visible {
    color: #fff;
    background: #dc3545;
}

.mobile-bottom-nav__item:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
}

.mobile-menu-admin {
    min-height: 100vh;
    color: #283342;
    background: #f4f6fb;
}

.mobile-menu-admin__main {
    max-width: 75rem;
    padding-top: 1.5rem;
}

.mobile-menu-admin__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-admin__header h1 {
    margin-bottom: 0.25rem;
    color: #1565c0;
    font-size: 1.8rem;
    font-weight: 700;
}

.mobile-menu-admin__header p {
    margin: 0;
    color: #6c757d;
}

.mobile-menu-admin__panel {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #d5dbe3;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(17, 24, 39, 0.05);
}

.mobile-menu-admin__panel h2 {
    margin-bottom: 1rem;
    color: #283342;
    font-size: 1.15rem;
    font-weight: 700;
}

.mobile-menu-surfaces legend {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-menu-surface-card {
    height: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #d5dbe3;
    border-radius: 0.5rem;
}

.mobile-menu-surface-card .form-check {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.mobile-menu-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mobile-menu-row--inactive {
    opacity: 0.6;
}

.mobile-menu-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mobile-navbar-system-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
}

.mobile-navbar-alarm-button {
    min-width: 0;
    margin-left: 0.75rem;
    white-space: nowrap;
}

#navigation > .container-fluid {
    flex-wrap: nowrap;
}

@media (max-width: 420px) {
    .mobile-navbar-alarm-button,
    #alarmInfoButton {
        padding: 0.3rem 0.65rem;
        font-size: 0.875rem;
    }

    .mobile-navbar-alarm-button {
        margin-left: 0.4rem;
    }
}

.mobile-navbar-logout {
    color: #212529;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
}

.mobile-menu-preview h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-menu-preview__surface {
    display: flex;
    min-height: 5rem;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #d5dbe3;
    border-radius: 0.5rem;
}

.mobile-menu-preview__surface--bottom {
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
}

.mobile-menu-preview__item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem;
    color: #283342;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 0.4rem;
}

.mobile-menu-preview__surface--bottom .mobile-menu-preview__item {
    min-width: 5rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.mobile-menu-density-warning {
    padding: 0.75rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
}

@media (max-width: 35rem) {
    .unplanned-task-modal .modal-dialog {
        margin: .5rem;
    }

    .unplanned-task-modal__header {
        padding: .7rem .85rem;
    }

    .unplanned-task-modal__body {
        gap: .65rem;
        padding: .65rem;
    }

    .unplanned-task-modal__intro,
    .unplanned-task-modal__action {
        padding: .75rem;
    }

    .alarm-send-modal .modal-dialog {
        margin: .5rem;
    }

    .alarm-send-modal__header {
        padding: .7rem .85rem;
    }

    .alarm-send-modal__body {
        gap: .65rem;
        padding: .65rem;
    }

    .alarm-send-modal__notice,
    .alarm-send-modal__actions {
        padding: .75rem;
    }

    .driving-log-create-modal .modal-dialog {
        margin: .5rem;
    }

    .driving-log-create-modal__header {
        padding: .85rem;
    }

    .driving-log-create-modal__icon {
        width: 2.15rem;
        height: 2.15rem;
    }

    .driving-log-create-modal__body {
        padding: .65rem;
    }

    .driving-log-create-form__section {
        padding: .85rem;
    }

    .driving-log-create-form .row > .col {
        width: 100%;
        flex: 0 0 100%;
    }

    .mobile-index-main {
        padding-top: 0.5rem;
    }

    .mobile-index-action {
        display: flex;
        min-height: 7.25rem;
        flex-direction: column;
        gap: 0.55rem;
    }

    .mobile-index-action__arrow {
        position: absolute;
        align-self: flex-end;
    }

    .mobile-index-action--alarm {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 4.5rem;
        align-items: center;
    }

    .mobile-menu-admin__header {
        flex-direction: column;
    }

    .mobile-menu-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 25rem) {
    .signin-wrapper {
        align-items: flex-start;
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .form-signin {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .signin-logo {
        margin-bottom: 1.25rem;
    }

    .signin-logo img {
        max-width: 12.5rem;
    }

}