:root {
    color-scheme: light;
    --project-surface: #f4f7fb;
}

body {
    background: var(--project-surface);
    min-height: 100vh;
}

.app-shell {
    max-width: 1180px;
}

.min-width-0 {
    min-width: 0;
}

.navbar-spacer {
    display: inline-block;
    width: 2.25rem;
}

.project-context-navbar {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #dfe6f1;
    box-shadow: 0 4px 18px rgba(30, 45, 70, 0.07);
    min-height: 4.5rem;
}

.project-context-navbar > .project-context-navbar-inner {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-bottom: 0.6rem;
    padding-top: 0.6rem;
}

.project-context-back {
    background: #f2f5fa;
    box-shadow: none;
    color: #334155;
}

.project-context-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.project-context-pharmacy,
.project-context-meta {
    display: block;
}

.project-context-pharmacy {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.project-context-meta {
    color: #6b7280;
    font-size: 0.78rem;
    margin-top: 0.12rem;
}

.project-context-actions {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.project-context-actions .project-nav-next {
    box-shadow: none;
    color: #334155;
    margin: 0;
    white-space: nowrap;
}

.project-card {
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.project-card:focus-visible,
.project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.project-list-toolbar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
}

.project-filter-select {
    min-width: 14rem;
}

.project-list-table thead th {
    background: #f8fafc;
    border-bottom-width: 1px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .85rem 1.25rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-list-table tbody td {
    border-color: #edf0f4;
    padding: 1rem 1.25rem;
}

.project-list-table tbody tr {
    transition: background-color 140ms ease;
}

.project-list-table tbody tr:hover {
    background: #f8fbff;
}

.project-list-link {
    color: #1266f1;
    text-decoration: none;
}

.project-list-link:hover {
    text-decoration: underline;
}

.project-list-pagination {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: .9rem 1.25rem;
}

@media (max-width: 767.98px) {
    .project-list-toolbar {
        justify-content: stretch;
    }

    .project-list-toolbar form,
    .project-filter-select {
        width: 100%;
    }

    .project-list-table thead {
        display: none;
    }

    .project-list-table,
    .project-list-table tbody,
    .project-list-table tr,
    .project-list-table td {
        display: block;
        width: 100%;
    }

    .project-list-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 3.25rem 1rem 1.25rem;
        position: relative;
    }

    .project-list-table tbody tr:last-child {
        border-bottom: 0;
    }

    .project-list-table tbody td {
        border: 0;
        padding: .2rem 0;
    }

    .project-list-table tbody td:nth-child(3),
    .project-list-table tbody td:nth-child(4) {
        display: inline-block;
        margin-right: 1rem;
        width: auto;
    }

    .project-list-table tbody td:last-child {
        position: absolute;
        right: .75rem;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }

    .project-list-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }
}

.upload-field {
    background: #f8faff;
    border: 2px dashed #b6c7e6;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.upload-field:focus-within,
.upload-field:hover {
    background: #eef4ff;
    border-color: #1266f1;
}

.save-status {
    align-items: center;
    background: #f3f6fa;
    border: 1px solid #e3e9f2;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.38rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 6.5rem;
    padding: 0.25rem 0.65rem;
}

.save-status[data-state="saving"] {
    color: #1266f1 !important;
}

.save-status[data-state="error"] {
    color: #dc4c64 !important;
}

.device-card {
    overflow: hidden;
}

.device-card.contract-order-purchase { border-left: 5px solid #2e9d63 !important; }
.device-card.contract-order-rental { border-left: 5px solid #2f80c9 !important; }
.device-card.contract-order-mixed { border-left: 5px solid #d39b20 !important; }

.password-dialog {
    width: min(94vw, 640px);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, .24);
}

.password-dialog::backdrop {
    background: rgba(15, 23, 42, .5);
}

.device-card-summary {
    cursor: pointer;
    list-style: none;
}

.device-card-summary::-webkit-details-marker {
    display: none;
}

.device-card-summary:hover {
    background: #f8faff !important;
}

.device-mini-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.device-card-chevron {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    transition: transform 160ms ease;
    width: 2rem;
}

.device-card[open] .device-card-chevron {
    transform: rotate(180deg);
}

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

.device-fields-grid > .device-component-row,
.device-fields-grid > .col-12,
.device-field-wide {
    grid-column: 1 / -1;
}

.device-component-row {
    align-items: end;
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem;
}

.empty-field-target {
    border-color: #1266f1 !important;
    box-shadow: 0 0 0 0.2rem rgba(18, 102, 241, 0.16);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.task-completed {
    opacity: 0.58;
}

.task-completed td:nth-child(3) {
    text-decoration: line-through;
}

.task-overdue {
    background: rgba(220, 53, 69, 0.05);
}

.project-workspace-tabs {
    position: sticky;
    top: 4.25rem;
    z-index: 1010;
}

.project-section-navigation > .btn {
    flex: 1 1 auto;
    font-size: .875rem;
    min-width: 0;
    padding-left: .65rem;
    padding-right: .65rem;
    white-space: nowrap;
}

.mobile-project-menus {
    display: none;
}

.mobile-nav-menu > summary {
    list-style: none;
}

.mobile-nav-menu > summary::-webkit-details-marker {
    display: none;
}

.project-contract-navigation {
    background: #f7f9fc;
    border: 1px solid #e1e6ef;
    border-radius: .65rem;
    padding: .55rem .7rem;
}

@media (max-width: 575.98px) {
    .project-workspace-tabs {
        border-radius: 0.75rem;
        margin-bottom: 1rem !important;
        overflow: visible;
        padding: 0.35rem !important;
        top: 4.15rem;
    }

    .project-section-navigation {
        display: none !important;
    }

    .mobile-project-menus {
        display: grid;
        gap: 0.35rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: relative;
    }

    .mobile-project-menus > .mobile-nav-menu:only-child {
        grid-column: 1 / -1;
    }

    .mobile-nav-menu > summary.btn {
        align-items: center;
        display: flex;
        font-size: 0.75rem;
        justify-content: center;
        min-height: 2.7rem;
        padding: 0.55rem 0.65rem;
        width: 100%;
    }

    .mobile-nav-menu[open] > summary.btn-light {
        background: #e7efff;
        color: #0b57d0;
    }

    .mobile-nav-panel {
        background: #fff;
        border: 1px solid #dce5f3;
        border-radius: 0.85rem;
        left: 0;
        max-height: calc(100vh - 8.5rem);
        overflow-y: auto;
        padding: 0.8rem;
        position: absolute;
        right: 0;
        top: calc(100% + 0.45rem);
        z-index: 1030;
    }

    .mobile-nav-title {
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin: 0 0 0.5rem;
        text-transform: uppercase;
    }

    .mobile-nav-links,
    .mobile-position-links {
        display: grid;
        gap: 0.4rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-nav-links .btn,
    .mobile-position-links .btn {
        align-items: center;
        display: flex;
        font-size: 0.75rem;
        justify-content: flex-start;
        min-height: 2.7rem;
        padding: 0.55rem 0.65rem;
        text-align: left;
    }

    .mobile-nav-links .btn i,
    .mobile-position-links .btn i {
        margin-right: 0.5rem;
        text-align: center;
        width: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .project-section-navigation {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.javascript-enabled [data-project-workspace-panel="tasks"]:not(.is-active) {
    display: none;
}

.task-date-input {
    min-width: 9.5rem;
}

.calendar-month .card-body {
    overflow-x: auto;
}

.calendar-grid {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    min-width: 900px;
}

.calendar-weekdays {
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    background: #f8faff;
    border: 1px solid #e1e8f5;
    border-radius: 0.6rem;
    min-height: 110px;
    padding: 0.45rem;
}

.calendar-day-empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day-number {
    color: #6c757d;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.calendar-day.is-today {
    border: 2px solid #1266f1;
    box-shadow: inset 0 0 0 1px rgba(18, 102, 241, .08);
}

.calendar-day.is-today .calendar-day-number {
    color: #1266f1;
}

.calendar-event {
    background: #e7f0ff;
    border-left: 3px solid #1266f1;
    border-radius: 0.35rem;
    color: #16345f;
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    padding: 0.35rem;
}

.calendar-event span,
.calendar-event small {
    display: block;
}

.calendar-event.is-milestone {
    background: #1266f1;
    color: #fff;
}

.calendar-event.is-completed {
    opacity: 0.48;
    text-decoration: line-through;
}

.calendar-event.type-new-customer {
    background: #fde8eb;
    border-left-color: #d32f45;
    color: #7d1525;
}

.calendar-event.type-new-customer.is-milestone {
    background: #d32f45;
    color: #fff;
}

.calendar-event.type-ixos-migration {
    background: #fff3cd;
    border-left-color: #e0a800;
    color: #664d03;
}

.calendar-event.type-ixos-migration.is-milestone {
    background: #f0c419;
    color: #382d00;
}

.calendar-legend {
    color: #5f6b7a;
    font-size: .88rem;
}

.calendar-legend-color {
    background: #e7f0ff;
    border: 1px solid #1266f1;
    border-radius: .25rem;
    display: inline-block;
    height: .85rem;
    margin-right: .4rem;
    vertical-align: -.05rem;
    width: 1.25rem;
}

.calendar-legend-color.type-new-customer {
    background: #fde8eb;
    border-color: #d32f45;
}

.calendar-legend-color.type-ixos-migration {
    background: #fff3cd;
    border-color: #e0a800;
}

.device-overview-grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
}

.device-description-panel,
.device-image-quick {
    background: #f8faff;
    border: 1px solid #e1e8f5;
    border-radius: 0.65rem;
    padding: 1rem;
}

.device-image-quick {
    position: relative;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.device-image-quick.is-drag-over {
    background: #eaf2ff;
    border-color: #1266f1;
    box-shadow: inset 0 0 0 2px rgba(18, 102, 241, .16);
}

.device-image-quick.is-drag-over::after {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 2px dashed #1266f1;
    border-radius: .65rem;
    color: #1266f1;
    content: "Bild hier ablegen";
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    inset: .6rem;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    z-index: 5;
}

.device-description-panel textarea {
    min-height: 240px;
}

.device-image-quick .device-image-preview,
.device-image-quick .device-image-placeholder {
    height: 240px;
    width: 100%;
}

.hidden-fields-panel {
    align-items: center;
    background: #f8faff;
    border: 1px dashed #b8c7df;
    border-radius: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
}

.device-standalone-field {
    padding-right: 2.75rem;
    position: relative;
}

.device-field-remove {
    align-self: flex-start;
    flex: 0 0 auto;
    margin-left: auto;
}

.device-standalone-field > .device-field-remove {
    position: absolute;
    right: 0;
    top: 1.45rem;
}

.component-primary {
    flex: 2 1 220px;
}

.component-extra {
    flex: 1.2 1 170px;
}

.component-flags {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    min-height: 38px;
}

.component-flag {
    margin: 0;
}

.component-status {
    border: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.component-status legend {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.asset-status-button {
    border: 2px solid #fff;
    height: 38px;
    opacity: 0.42;
    padding: 0;
    position: relative;
    transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    width: 38px;
}

.asset-status-green { background: #39a96b; }
.asset-status-yellow { background: #f2c94c; }
.asset-status-red { background: #c85245; }

.btn-check:checked + .asset-status-green { background: #39a96b !important; }
.btn-check:checked + .asset-status-yellow { background: #f2c94c !important; }
.btn-check:checked + .asset-status-red { background: #c85245 !important; }

.btn-check:checked + .asset-status-button {
    border-color: #fff;
    box-shadow: 0 0 0 3px #172b4d, 0 4px 8px rgba(23, 43, 77, 0.28);
    opacity: 1;
    transform: translateY(-2px);
    z-index: 2;
}

.btn-check:checked + .asset-status-button::after {
    align-items: center;
    color: #fff;
    content: "\2713";
    display: flex;
    font-size: 1.15rem;
    font-weight: 900;
    inset: 0;
    justify-content: center;
    line-height: 1;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.btn-check:checked + .asset-status-yellow::after {
    color: #172b4d;
    text-shadow: none;
}

.btn-check:focus-visible + .asset-status-button {
    outline: 3px solid #1266f1;
    outline-offset: 3px;
}

.asset-status-button:hover {
    opacity: 0.82;
}

.device-image-preview,
.device-image-placeholder {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #d9e4f5;
    border-radius: 0.75rem;
    display: flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    width: 200px;
}

.device-image-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.device-image-placeholder {
    color: #8ca3c7;
    font-size: 2.5rem;
}

.device-field-group {
    background: #f8faff;
    border: 1px solid #e1e8f5;
    border-radius: 0.65rem;
}

.device-field-group summary {
    cursor: pointer;
    list-style-position: inside;
}

.device-field-group[open] summary {
    color: #1266f1;
}

.network-card {
    border-left: 4px solid #1266f1 !important;
}

.network-url {
    color: #1266f1;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 600;
    text-decoration: none;
}

.qr-dialog,
.device-position-dialog {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    max-width: min(92vw, 390px);
    padding: 0;
    width: 100%;
}

.qr-dialog::backdrop,
.device-position-dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
}

.app-dialog {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    max-height: 90vh;
    max-width: min(94vw, 920px);
    overflow: auto;
    padding: 0;
    width: 100%;
}

.app-dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
}

.contract-comparison-dialog {
    max-width: min(96vw, 1180px);
}

.contract-comparison-evidence summary {
    cursor: pointer;
}

.device-tabs {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.device-tabs .btn {
    flex: 0 0 auto;
}

.peripheral-contract-toggle {
    display: none;
    list-style: none;
}

.mobile-section-toggle {
    display: none;
    list-style: none;
}

.peripheral-contract-toggle::-webkit-details-marker,
.mobile-section-toggle::-webkit-details-marker {
    display: none;
}

.peripheral-contract-chevron,
.mobile-section-chevron {
    transition: transform 160ms ease;
}

.peripheral-contract-details[open] .peripheral-contract-chevron,
.mobile-collapsible-section[open] .mobile-section-chevron {
    transform: rotate(180deg);
}

.device-add-controls .input-group {
    min-width: min(100%, 25rem);
}

.device-add-controls .form-select {
    min-width: 12rem;
}

.qr-code {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 240px;
    min-width: 240px;
    width: 240px;
}

.qr-code img,
.qr-code canvas {
    display: block;
    height: 240px !important;
    width: 240px !important;
}

@media (max-width: 575.98px) {
    .project-context-navbar-inner {
        gap: 0.5rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .project-context-actions {
        gap: 0.3rem;
    }

    .project-context-actions .project-nav-next {
        height: 2.25rem;
        min-width: 2.25rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .project-context-pharmacy {
        font-size: 0.9rem;
    }

    .project-context-meta {
        font-size: 0.7rem;
    }

    .device-tabs {
        display: none !important;
    }

    #technical-stages,
    #technical-additional-info,
    #technical-peripherals,
    #technical-images,
    #technical-devices {
        scroll-margin-top: 8.5rem;
    }

    .peripheral-contract-toggle {
        cursor: pointer;
        display: block;
    }

    .mobile-section-toggle {
        cursor: pointer;
        display: block;
    }

    .peripheral-contract-details .card-body,
    .mobile-collapsible-section .card-body {
        border-top: 1px solid #e1e6ef;
    }

    .peripheral-contract-heading {
        display: none;
    }

    .save-status {
        min-height: 2.25rem;
        min-width: 2.25rem;
        padding: 0.35rem;
    }

    .save-status span {
        display: none;
    }

    .device-image-preview,
    .device-image-placeholder {
        height: 190px;
        width: 100%;
    }

    .device-card-summary .project-icon {
        height: 2.5rem;
        width: 2.5rem;
    }

    .device-card-actions .btn-floating {
        height: 2.25rem;
        min-width: 2.25rem;
        width: 2.25rem;
    }

    .device-card-chevron {
        display: none;
    }

    .device-fields-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-component-row {
        align-items: stretch;
    }

    .device-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .device-description-panel textarea {
        min-height: 170px;
    }

    .component-primary,
    .component-extra {
        flex-basis: 100%;
    }
}

.technical-stage-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 58rem);
}

.technical-stage {
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #dfe5ee;
    border-radius: .8rem;
    color: #687386;
    display: flex;
    gap: .7rem;
    min-width: 0;
    padding: .75rem;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

a.technical-stage:hover {
    background: #eef3f9;
    border-color: #9daabc;
    color: #3c4d62;
}

.technical-stage.is-unavailable {
    opacity: .58;
}

.technical-stage.is-current {
    background: #e7f0ff;
    border-color: #1266f1;
    color: #0b4fca;
}

.technical-stage-number {
    align-items: center;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 2rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
}

.network-printer-label {
    background: #fff;
    border: 2px solid #111;
    border-radius: .35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 35mm;
    padding: 4mm 6mm;
}

.network-printer-label strong {
    color: #000;
    font-size: 1.35rem;
    line-height: 1.15;
}

.network-printer-label-caption {
    color: #555;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .technical-stage-grid { grid-template-columns: 1fr; }
}

@media print {
    body.printing-printer-labels .project-context-navbar,
    body.printing-printer-labels .project-workspace-tabs,
    body.printing-printer-labels main > :not(.printer-label-section),
    body.printing-printer-labels .printer-label-toolbar,
    body.printing-printer-labels .printer-label-editor,
    body.printing-printer-labels footer {
        display: none !important;
    }

    body.printing-printer-labels main,
    body.printing-printer-labels .printer-label-section,
    body.printing-printer-labels .printer-label-section .card-body {
        box-shadow: none !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.printing-printer-labels .printer-label-grid > div {
        break-inside: avoid;
        flex: 0 0 70mm;
        margin: 0 4mm 4mm 0;
        max-width: 70mm;
        padding: 0;
    }

    body.printing-contract-changes .project-context-navbar,
    body.printing-contract-changes .project-workspace-tabs,
    body.printing-contract-changes main > :not([data-contract-changes-page]),
    body.printing-contract-changes .contract-change-actions,
    body.printing-contract-changes footer {
        display: none !important;
    }

    body.printing-contract-changes [data-contract-changes-page],
    body.printing-contract-changes [data-contract-changes-page] > .card-body {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.printing-contract-changes .contract-change-entry {
        break-inside: avoid;
        box-shadow: none !important;
    }

    body.printing-contract-changes .contract-change-automatic,
    body.printing-contract-changes .contract-change-sales-note,
    body.printing-contract-changes .contract-change-license-note {
        break-inside: avoid;
        display: block !important;
    }

    body.printing-contract-changes .contract-change-summary-note { white-space: pre-wrap; }
}

.project-icon {
    align-items: center;
    background: #e3f2fd;
    border-radius: 1rem;
    color: #0d6efd;
    display: inline-flex;
    font-size: 1.5rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.contract-interest-card {
    border-top: 3px solid #0d6efd !important;
}

.contract-interest-card.application-consulting {
    border-top-color: #14a44d !important;
}

.contract-interest-icon {
    align-items: center;
    background: #e8f1ff;
    border-radius: 0.75rem;
    color: #0d6efd;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.contract-interest-card.application-consulting .contract-interest-icon {
    background: #e8f6ed;
    color: #14783b;
}

.contract-interest-items {
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .contract-interest-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contract-interest-item {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #edf0f3;
    border-radius: 0.6rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
}

.contract-interest-item > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contract-interest-item > strong {
    color: #425466;
    flex: 0 0 auto;
}

.status-dot {
    background: #14a44d;
    border-radius: 50%;
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.template-card > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    list-style: none;
}

.template-card > summary::-webkit-details-marker,
.add-template-field > summary::-webkit-details-marker {
    display: none;
}

.template-card > summary::after {
    color: #6c757d;
    content: "\f078";
    font-family: "Font Awesome 7 Pro", "Font Awesome 7 Free";
    font-weight: 900;
    margin-left: auto;
    transition: transform 160ms ease;
}

.template-card[open] > summary::after {
    transform: rotate(180deg);
}

.template-editor-field {
    background: #f8faff;
    border: 1px solid #e1e8f5;
    border-radius: 0.75rem;
    padding: 1rem;
}

.add-template-field > summary {
    display: inline-block;
    list-style: none;
}

.add-template-field > div {
    background: #f8faff;
    border: 1px dashed #b6c7e6;
    border-radius: 0.75rem;
}

.template-editor-actions {
    background: rgba(244, 247, 251, 0.96);
    border-top: 1px solid #dfe6f1;
    bottom: 0;
    position: sticky;
    z-index: 10;
}

@media (max-width: 575.98px) {
    .template-editor-actions .btn {
        flex: 1 1 auto;
    }
}
