@font-face {
    font-family: "Source Sans 3";
    src: url("/vendor/source-sans-3/SourceSans3%5Bwght%5D.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/vendor/source-sans-3/SourceSans3-Italic%5Bwght%5D.ttf") format("truetype");
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
}

body {
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-synthesis-weight: none;
    font-variation-settings: "wght" 400;
}

:root {
    --icore-red: #d7262f;
    --icore-red-dark: #a31724;
    --icore-red-soft: rgba(215, 38, 47, 0.1);
    --icore-ink: #231f27;
    --icore-steel: #5f5964;
    --icore-surface: #f3f4f7;
    --icore-surface-strong: #ebeef3;
    --icore-border: rgba(35, 31, 39, 0.08);
    --icore-shadow: 0 14px 34px rgba(30, 23, 33, 0.08);
}

.app-adminlte {
    --bs-primary: var(--icore-red);
    --bs-primary-rgb: 215, 38, 47;
}

.app-adminlte .app-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.app-adminlte .app-sidebar {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.app-adminlte .brand-link {
    background: transparent;
    color: var(--icore-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(35, 31, 39, 0.08);
}

.app-adminlte .brand-link:hover {
    color: var(--icore-ink);
}

.app-adminlte .brand-image {
    object-fit: contain;
    width: 100%;
    max-width: 190px;
    max-height: 46px;
    height: auto;
}

.app-adminlte .sidebar-menu .nav-link:hover {
    background-color: rgba(215, 38, 47, 0.10);
    color: #a31724;
}

.app-adminlte .sidebar-menu .nav-link:hover .nav-icon {
    color: #d7262f;
}

.app-adminlte .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active,
.app-adminlte .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active:not(:hover),
.app-adminlte .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active:focus {
    --lte-sidebar-menu-active-bg: transparent;
    background-color: transparent !important;
    color: inherit;
}

.app-adminlte .sidebar-wrapper .sidebar-menu > .nav-item > .nav-link.active .nav-icon {
    color: #d7262f !important;
}

.app-content-header h3,
.app-adminlte h1,
.app-adminlte h2,
.app-adminlte h3,
.app-adminlte h4,
.app-adminlte h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.app-adminlte .nav-link,
.app-adminlte .form-control,
.app-adminlte .form-select,
.app-adminlte .input-group-text,
.app-adminlte .btn,
.app-adminlte .table,
.app-adminlte .card,
.app-adminlte p,
.app-adminlte span,
.app-adminlte label,
.app-adminlte li {
    font-variation-settings: "wght" 400;
}

.app-content-header {
    padding-bottom: .25rem;
}

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

.page-head-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}

.card.card-surface,
.card.content-card,
.card.form-card {
    border: 1px solid var(--icore-border);
    box-shadow: var(--icore-shadow);
    border-radius: 1rem;
    overflow: hidden;
}

.card-surface > .card-body,
.content-card > .card-body,
.form-card > .card-body {
    padding: 1.5rem;
}

.form-section-divider {
    border-top: 1px solid var(--icore-border);
    margin-top: .5rem;
    padding-top: 1.5rem;
}

.chart-box {
    min-height: 320px;
    position: relative;
}

.chart-box-compact {
    min-height: 300px;
}

.chart-box-tall {
    min-height: 420px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.admin-hero {
    background: linear-gradient(135deg, #232028 0%, #524752 60%, #d7262f 100%);
    color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.admin-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
}

.admin-hero .small-box-footer {
    background: transparent;
    color: rgba(255,255,255,0.85);
}

.metric-tile {
    border: 1px solid var(--icore-border);
    box-shadow: 0 10px 28px rgba(27, 22, 29, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.metric-tile .inner h3 {
    font-size: 2rem;
    margin-bottom: .35rem;
}

.metric-tile .inner,
.metric-tile .small-box-footer {
    position: relative;
    z-index: 2;
}

.metric-tile .small-box-icon {
    position: absolute;
    right: .65rem;
    top: .35rem;
    z-index: 1;
    opacity: .5;
    pointer-events: none;
}

.metric-tile .small-box-icon i {
    font-size: 5.5rem;
    line-height: 1;
}

.metric-tile .small-box-icon svg {
    width: 7.4rem;
    height: 7.4rem;
    display: block;
}

.metric-tile .small-box-icon svg rect,
.metric-tile .small-box-icon svg path,
.metric-tile .small-box-icon svg circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-tile.text-bg-light .small-box-icon svg rect,
.metric-tile.text-bg-light .small-box-icon svg path,
.metric-tile.text-bg-light .small-box-icon svg circle {
    stroke: rgba(35, 31, 39, 0.24);
}

.metric-tile.text-bg-warning .small-box-icon svg rect,
.metric-tile.text-bg-warning .small-box-icon svg path,
.metric-tile.text-bg-warning .small-box-icon svg circle,
.metric-tile.text-bg-danger .small-box-icon svg rect,
.metric-tile.text-bg-danger .small-box-icon svg path,
.metric-tile.text-bg-danger .small-box-icon svg circle,
.metric-tile.text-bg-primary .small-box-icon svg rect,
.metric-tile.text-bg-primary .small-box-icon svg path,
.metric-tile.text-bg-primary .small-box-icon svg circle {
    stroke: rgba(255, 255, 255, 0.3);
}

.metric-tile-contracts .small-box-icon {
    right: .55rem;
    top: .25rem;
    opacity: .5;
}

.metric-tile-contracts .small-box-icon svg {
    width: 7rem;
    height: 7rem;
}

.metric-tile-desktop .small-box-icon {
    right: .6rem;
    top: .35rem;
    opacity: .5;
}

.metric-tile-desktop .small-box-icon svg {
    width: 6.9rem;
    height: 6.9rem;
}

.metric-tile-server .small-box-icon {
    right: .65rem;
    top: .3rem;
    opacity: .5;
}

.metric-tile-server .small-box-icon svg {
    width: 6.9rem;
    height: 6.9rem;
}

.metric-tile-invoice .small-box-icon {
    right: .55rem;
    top: .25rem;
    opacity: .5;
}

.metric-tile-invoice .small-box-icon svg {
    width: 7rem;
    height: 7rem;
}

.section-title {
    font-weight: 600;
    letter-spacing: -.02em;
}

.section-copy {
    color: #6c757d;
}

.muted-copy {
    color: #6c757d;
}

.btn {
    border-radius: .8rem;
    font-weight: 500;
    box-shadow: none;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--icore-red);
    --bs-btn-border-color: var(--icore-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--icore-red-dark);
    --bs-btn-hover-border-color: var(--icore-red-dark);
    --bs-btn-focus-shadow-rgb: 215, 38, 47;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8e1520;
    --bs-btn-active-border-color: #8e1520;
    padding-inline: 1rem;
}

.btn-soft {
    --bs-btn-color: var(--icore-ink);
    --bs-btn-bg: var(--icore-surface-strong);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--icore-red-dark);
    --bs-btn-hover-bg: rgba(215, 38, 47, 0.12);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 215, 38, 47;
    --bs-btn-active-color: var(--icore-red-dark);
    --bs-btn-active-bg: rgba(215, 38, 47, 0.16);
    --bs-btn-active-border-color: transparent;
    padding-inline: 1rem;
}

.btn-outline-danger {
    --bs-btn-color: #b41e2a;
    --bs-btn-border-color: rgba(180, 30, 42, 0.24);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b41e2a;
    --bs-btn-hover-border-color: #b41e2a;
    --bs-btn-active-bg: #951824;
    --bs-btn-active-border-color: #951824;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: .8rem;
    border-color: rgba(35, 31, 39, 0.12);
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(215, 38, 47, 0.5);
    box-shadow: 0 0 0 .25rem rgba(215, 38, 47, 0.14) !important;
}

.form-label {
    font-weight: 500;
    color: var(--icore-ink);
}

.intervention-date-input {
    max-width: 14rem;
}

.duration-stepper {
    display: flex;
    align-items: stretch;
    gap: .6rem;
}

.duration-stepper-btn {
    min-width: 3rem;
    padding-inline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
}

.duration-input {
    max-width: 8.5rem;
    text-align: center;
    font-weight: 700;
}

.duration-input::-webkit-outer-spin-button,
.duration-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.annex-toolbar {
    margin-bottom: 1.5rem;
}

.print-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.annex-sheet {
    background: #fff;
    border: 1px solid rgba(35, 31, 39, 0.08);
    box-shadow: 0 18px 40px rgba(28, 24, 31, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
}

.annex-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(215, 38, 47, 0.12);
}

.annex-brand img {
    width: 210px;
    max-width: 100%;
    height: 88px;
    object-fit: contain;
    object-position: left center;
    display: block;
    transform: translateY(-8px);
}

.annex-meta {
    text-align: right;
}

.annex-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--icore-ink);
}

.annex-code {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--icore-red-dark);
    margin-top: .35rem;
}

.annex-subtitle {
    margin-top: .4rem;
    color: var(--icore-steel);
    font-weight: 600;
}

.annex-summary,
.annex-type-totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.annex-summary-card,
.annex-type-card {
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(35, 31, 39, 0.08);
    background: linear-gradient(180deg, #fff, #f7f8fb);
}

.annex-summary-label,
.annex-type-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--icore-steel);
    font-weight: 700;
    margin-bottom: .45rem;
}

.annex-summary-value,
.annex-type-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--icore-ink);
}

.annex-table-shell {
    margin-top: 1.75rem;
    border: 1px solid rgba(35, 31, 39, 0.08);
    border-radius: 1rem;
    overflow: hidden;
}

.annex-section-title {
    padding: .85rem .95rem;
    background: linear-gradient(180deg, rgba(215, 38, 47, 0.08), rgba(215, 38, 47, 0.03));
    color: var(--icore-red-dark);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    border-bottom: 1px solid rgba(35, 31, 39, 0.08);
}

.annex-table {
    width: 100%;
    border-collapse: collapse;
}

.annex-table thead th {
    background: linear-gradient(180deg, #f8f9fb 0%, #eff1f5 100%);
    color: var(--icore-steel);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    padding: .95rem .9rem;
    text-align: left;
}

.annex-table td {
    padding: .95rem .9rem;
    border-top: 1px solid rgba(35, 31, 39, 0.06);
    vertical-align: top;
}

.annex-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(35, 31, 39, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--icore-steel);
    font-size: .92rem;
}

@media (max-width: 991.98px) {
    .annex-header,
    .annex-footer {
        flex-direction: column;
    }

    .annex-meta {
        text-align: left;
    }

    .annex-summary,
    .annex-type-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    .print-mode .app-header,
    .print-mode .app-sidebar,
    .print-mode .app-content-header,
    .print-mode .no-print,
    .print-mode .breadcrumb {
        display: none !important;
    }

    .print-mode .app-main,
    .print-mode .app-content,
    .print-mode .container-fluid,
    .print-mode .app-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .print-mode .annex-sheet {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        break-before: auto;
        page-break-before: auto;
    }

    .print-mode body {
        background: #fff !important;
    }

    .print-mode .print-shell {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .print-mode .annex-header,
    .print-mode .annex-summary,
    .print-mode .annex-type-totals,
    .print-mode .annex-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-mode .annex-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .print-mode .annex-type-totals {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .print-mode .annex-table-shell,
    .print-mode .annex-table,
    .print-mode .annex-table tbody {
        break-inside: auto;
        page-break-inside: auto;
    }

    .print-mode .annex-table thead {
        display: table-header-group;
    }

    .print-mode .annex-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-mode .annex-table-shell {
        margin-top: 1rem;
    }

}

.table-shell {
    border: 1px solid var(--icore-border);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.table-shell .table {
    margin-bottom: 0;
}

.table-shell .table thead th {
    background: linear-gradient(180deg, #f8f9fb 0%, #eff1f5 100%);
    color: var(--icore-steel);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-shell .table > :not(caption) > * > * {
    padding: 1rem .9rem;
    border-color: rgba(35, 31, 39, 0.06);
}

.table-shell .table tbody tr:hover {
    background: rgba(215, 38, 47, 0.025);
}

.contracts-table-shell {
    overflow-x: auto;
    overflow-y: visible;
}

.contracts-table-shell .table {
    min-width: 1500px;
}

.logs-table-shell {
    overflow-x: auto;
}

.logs-table-shell .table {
    min-width: 1450px;
}

.contracts-table-shell .table th:last-child,
.contracts-table-shell .table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -14px 0 24px rgba(255, 255, 255, 0.92);
}

.contracts-table-shell .table thead th:last-child {
    z-index: 3;
    background: linear-gradient(180deg, #f8f9fb 0%, #eff1f5 100%);
}

.month-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.month-toolbar-form {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.month-picker-wrap {
    min-width: 240px;
}

.month-picker-wrap .input-group-text {
    background: #fff;
    color: var(--icore-red-dark);
}

.month-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    padding: .7rem 1rem;
    border-radius: .9rem;
    background: linear-gradient(135deg, rgba(215, 38, 47, 0.08), rgba(215, 38, 47, 0.16));
    color: var(--icore-red-dark);
    font-weight: 700;
    white-space: nowrap;
}

.month-status i {
    font-size: 1rem;
}

.quick-months {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

.month-icon-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-left: 0;
    padding-right: 0;
}

.month-current-btn,
.month-add-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.month-add-btn {
    margin-left: auto;
}

.dashboard-action-card {
    color: var(--icore-ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-action-card:hover {
    color: var(--icore-ink);
    border-color: rgba(215, 38, 47, 0.22);
    box-shadow: 0 18px 40px rgba(215, 38, 47, 0.12);
    transform: translateY(-1px);
}

.dashboard-action-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--icore-red), var(--icore-red-dark));
    box-shadow: 0 12px 28px rgba(215, 38, 47, 0.2);
}

.dashboard-action-title,
.dashboard-action-copy {
    display: block;
}

.dashboard-action-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.dashboard-action-copy {
    color: #68758a;
    margin-top: .15rem;
}

.pill-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .8rem;
    font-weight: 500;
    color: #0c6f6f;
    background: rgba(18, 191, 191, 0.14);
    border: 1px solid rgba(18, 191, 191, 0.18);
}

.pill-note-alert {
    color: #9f1c1c;
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.18);
}

.employee-usage-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.employee-usage-card {
    border: 1px solid var(--icore-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 28px rgba(27, 22, 29, 0.06);
    padding: 1.1rem 1.1rem 1rem;
}

.employee-usage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.employee-usage-head h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.employee-usage-contract {
    color: #68758a;
    margin-top: .2rem;
    font-size: .95rem;
}

.employee-usage-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .32rem .72rem;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.usage-status-good {
    color: #116149;
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.18);
}

.usage-status-warn {
    color: #9a6700;
    background: rgba(255, 193, 7, 0.16);
    border-color: rgba(255, 193, 7, 0.22);
}

.usage-status-alert {
    color: #9f1c1c;
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.18);
}

.usage-status-neutral {
    color: #516074;
    background: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.18);
}

.usage-meter + .usage-meter {
    margin-top: .95rem;
}

.usage-meter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
    font-size: .92rem;
}

.usage-meter-label span {
    color: #4e5c71;
}

.usage-meter-note {
    color: #7a879c;
    font-size: .78rem;
    font-weight: 500;
    margin-left: .35rem;
}

.usage-meter-label strong {
    font-weight: 600;
    color: #233046;
}

.usage-progress {
    height: .75rem;
    background: #ebeff5;
    border-radius: 999px;
    overflow: hidden;
}

.usage-progress .progress-bar {
    border-radius: 999px;
}

.usage-progress-overflow .progress-bar {
    border-radius: 0;
}

.usage-progress-overflow .progress-bar:first-child {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.usage-progress-overflow .progress-bar:last-child {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.usage-progress-onsite {
    background: linear-gradient(90deg, rgba(255, 141, 67, 0.88) 0%, rgba(255, 141, 67, 1) 100%);
}

.usage-progress-remote {
    background: linear-gradient(90deg, rgba(18, 191, 191, 0.85) 0%, rgba(18, 191, 191, 1) 100%);
}

.usage-progress-server {
    background: linear-gradient(90deg, rgba(24, 99, 180, 0.82) 0%, rgba(24, 99, 180, 1) 100%);
}

.usage-progress-extra {
    background: linear-gradient(90deg, rgba(215, 38, 47, 0.76) 0%, rgba(215, 38, 47, 1) 100%);
}

.usage-progress-over {
    background: linear-gradient(90deg, rgba(215, 38, 47, 0.86) 0%, rgba(178, 28, 36, 1) 100%);
}

.pill-contract-standard {
    color: #0c6f6f;
    background: rgba(18, 191, 191, 0.14);
    border-color: rgba(18, 191, 191, 0.2);
}

.pill-contract-project {
    color: #1863b4;
    background: rgba(24, 99, 180, 0.12);
    border-color: rgba(24, 99, 180, 0.18);
}

.pill-contract-extra {
    color: #a45f00;
    background: rgba(255, 171, 44, 0.16);
    border-color: rgba(255, 171, 44, 0.22);
}

.pill-service-onsite {
    color: #b54a0f;
    background: rgba(255, 141, 67, 0.16);
    border-color: rgba(255, 141, 67, 0.22);
}

.pill-service-remote {
    color: #0c6f6f;
    background: rgba(18, 191, 191, 0.14);
    border-color: rgba(18, 191, 191, 0.2);
}

.pill-service-office {
    color: #6c4aa8;
    background: rgba(127, 86, 217, 0.14);
    border-color: rgba(127, 86, 217, 0.2);
}

.pill-service-server {
    color: #1863b4;
    background: rgba(24, 99, 180, 0.12);
    border-color: rgba(24, 99, 180, 0.18);
}

.invoice-icon,
.invoice-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: .35rem;
    border-radius: 999px;
    color: #926200;
    background: rgba(255, 193, 7, 0.22);
    font-size: .72rem;
}

.invoice-icon svg,
.invoice-type-icon svg {
    width: .82rem;
    height: .82rem;
    display: block;
}

.invoice-icon svg path:first-child,
.invoice-type-icon svg path:first-child {
    fill: #f3b400;
    stroke: #a96d00;
    stroke-width: 1;
}

.invoice-icon svg path:nth-child(2),
.invoice-type-icon svg path:nth-child(2) {
    stroke: #5c3a00;
    stroke-width: 2;
    stroke-linecap: round;
}

.invoice-icon svg circle,
.invoice-type-icon svg circle {
    fill: #5c3a00;
}

.invoice-needed-row {
    background: rgba(215, 38, 47, 0.035);
}

.balance-negative {
    color: var(--icore-red-dark) !important;
    font-weight: 600;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #242128 0%, #5c515b 55%, #d7262f 100%);
}

.auth-wrap {
    width: min(1080px, 100%);
    padding: 1.5rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.5rem;
}

.auth-brand,
.auth-card {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
}

.auth-brand {
    background: linear-gradient(155deg, rgba(39,35,43,.96), rgba(101,89,100,.92), rgba(215,38,47,.86));
    color: #fff;
    padding: 2rem;
}

.auth-logo {
    width: 240px;
    max-width: 100%;
    height: 92px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.1rem;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.auth-card .card-body {
    padding: 2rem;
}

.eyebrow,
.eyebrow-dark {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .14em;
    font-weight: 700;
}

.eyebrow {
    color: rgba(255,255,255,0.75);
}

.eyebrow-dark {
    color: #a31724;
}

.snapshot-box {
    margin-top: .75rem;
    padding: .9rem;
    border-radius: .75rem;
    background: #1e1b22;
    color: #f8f9fa;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
}

.history-stack {
    display: grid;
    gap: .85rem;
}

.history-item {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.contract-group-picker {
    display: grid;
    gap: .65rem;
    max-height: 340px;
    overflow: auto;
    padding: .25rem;
}

.contract-group-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    border: 1px solid var(--icore-border);
    border-radius: .8rem;
    padding: .75rem;
    background: #fff;
    cursor: pointer;
}

.contract-group-option small {
    display: block;
    color: #68758a;
    margin-top: .1rem;
}

.duplicate-confirm-modal {
    border: 1px solid rgba(35, 31, 39, 0.08);
    border-radius: 1.2rem;
    box-shadow: 0 24px 60px rgba(23, 18, 27, 0.22);
}

.duplicate-confirm-modal .modal-header,
.duplicate-confirm-modal .modal-footer {
    padding-inline: 1.5rem;
}

.duplicate-confirm-modal .modal-body {
    padding: 1rem 1.5rem 1.25rem;
    color: var(--icore-ink);
    font-size: 1.02rem;
}

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

    .page-head,
    .month-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .month-toolbar-form {
        width: 100%;
    }

    .month-picker-wrap,
    .month-toolbar-form .btn {
        width: 100%;
    }

    .month-status {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .month-add-btn {
        margin-left: 0;
        width: 100%;
    }

    .table-wrap {
        overflow: visible;
    }

    .table-shell {
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .contracts-table-shell .table {
        min-width: 0;
    }

    .logs-table-shell .table {
        min-width: 0;
    }

    .contracts-table-shell .table th:last-child,
    .contracts-table-shell .table td:last-child {
        position: static;
        box-shadow: none;
        background: transparent;
    }

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

    .table-shell .table thead {
        display: none;
    }

    .table-shell .table tbody {
        display: grid;
        gap: 1rem;
    }

    .table-shell .table tbody tr {
        background: #fff;
        border: 1px solid var(--icore-border);
        border-radius: 1rem;
        box-shadow: 0 10px 26px rgba(27, 22, 29, 0.06);
        overflow: hidden;
    }

    .table-shell .table > :not(caption) > * > * {
        padding: .8rem 1rem;
        border: 0;
        border-bottom: 1px solid rgba(35, 31, 39, 0.06);
    }

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

    .table-shell .table td[data-label] {
        display: grid;
        grid-template-columns: minmax(110px, 38%) 1fr;
        gap: .75rem;
        align-items: start;
        text-align: left !important;
    }

    .table-shell .table td[data-label]::before {
        content: attr(data-label);
        font-size: .76rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-weight: 800;
        color: var(--icore-steel);
        line-height: 1.4;
    }

    .table-shell .table td[data-label] > * {
        min-width: 0;
    }

    .table-shell .table td[data-label] .d-inline-flex {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .table-shell .table td[data-label].text-end {
        text-align: left !important;
    }
}
