.issue-detail-prose .issue-inline-image {
    display: inline-block;
    max-width: min(100%, 250px);
    max-height: 141px;
    width: auto;
    height: auto;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.475rem;
    cursor: zoom-in;
    vertical-align: top;
}

.issue-editor-wrap {
    position: relative;
}

.issue-editor-wrap:not(.issue-editor-wrap--wysiwyg) .issue-editor-textarea {
    padding-right: 2.75rem;
    resize: vertical;
}

#backoffice_quick_create_modal .issue-editor-wrap:not(.issue-editor-wrap--wysiwyg) .issue-editor-textarea {
    min-height: 16rem;
}

#backoffice_quick_create_modal .issue-editor-wrap--wysiwyg .issue-editor-image-btn {
    bottom: 1.75rem;
}

.issue-editor-wrap .issue-editor-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.issue-editor-wrap.issue-editor-wrap--wysiwyg .issue-editor-image-btn {
    top: auto;
    bottom: 0.5rem;
    z-index: 4;
}

.issue-editor-wrap--wysiwyg .tox-tinymce .tox-edit-area {
    padding-right: 2.75rem;
    padding-bottom: 2.25rem;
}

.issue-editor-upload-progress .issue-editor-upload-progress__track {
    height: 6px;
}

.issue-editor-upload-progress .js-issue-editor-upload-progress-bar {
    transition: width 0.15s ease-out;
}

.issue-editor-upload-progress.is-error .js-issue-editor-upload-progress-label {
    color: var(--bs-danger) !important;
}

.issue-detail-prose h2,
.issue-detail-prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.issue-detail-prose h2:first-child,
.issue-detail-prose h3:first-child {
    margin-top: 0;
}

#issueAdminStatusModal.issue-richtext-modal-open .tox-tinymce-aux,
#backoffice_quick_create_modal.issue-richtext-modal-open .tox-tinymce-aux,
#issueReplyEditModal.issue-richtext-modal-open .tox-tinymce-aux {
    z-index: 1065;
}

.issue-image-zoom-modal__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    margin: 0 auto;
}

.session-timeout-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(9, 16, 28, 0.65);
    backdrop-filter: blur(2px);
}
.session-timeout-overlay__card {
    width: min(100%, 520px);
}
.session-timeout-locked .app-root {
    pointer-events: none;
    user-select: none;
}
.symbol.symbol-circle, .symbol.symbol-circle .symbol-label, .symbol.symbol-circle>img {
    border-radius: 50%;
    border: 1px solid #fff;
}

/* Vertical menu: custom icon image (e.g. saas icon) */
.menu-item-icon-img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}

/* App header user flyout: logo size aligned with ki-outline menu icons */
#kt_header_user_menu_toggle .header-user-flyout-icon-img {
    height: 1.125rem;
}
.menu-item-badge-first {
    position: absolute !important;
    right:-40px !important;
    top:-20px !important;
}
.menu-item-badge-second {
    position: absolute !important;
    right:-40px !important;
    top:0 !important;
}


/* Vertical menu: badge on menu items */
#kt_app_sidebar_wrapper .btn .badge.position-absolute.top-0.start-100 {
    width: 18px;
    height: 18px;
}

/* Contract verify page: mobile-friendly layout (no inline styles) */
.contract-verify-card {
    max-width: 600px;
}
.contract-verify-card.contract-verify-card--success {
    max-width: 900px;
}
.contract-verify-page {
    padding: 1rem;
}
@media (min-width: 768px) {
    .contract-verify-page {
        padding: 2rem;
    }
}
@media (min-width: 992px) {
    .contract-verify-page {
        padding: 3rem 5rem;
    }
}
.contract-verify-card .contract-verify-card__inner,
.contract-verify-card.contract-verify-card__inner {
    padding: 1.25rem;
}
@media (min-width: 992px) {
    .contract-verify-card .contract-verify-card__inner,
    .contract-verify-card.contract-verify-card__inner {
        padding: 2rem 2.5rem;
    }
}
.contract-verify-card .signature-seal {
    opacity: 0.6;
    margin-bottom: 5px;
}
.contract-verify-card .font-monospace.overflow-x-auto {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Instances index: row layout instead of boxes */
.instance-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.instance-row {
    text-decoration: none;
    color: inherit;
}
.instance-row:hover {
    color: inherit;
}
.instance-row__col1 {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    margin-right: 1rem;
}
.instance-row__main {
    min-width: 0;
    flex: 1;
}
.instance-row__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.instance-row__meta {
    min-width: 0;
}
.instance-row__users {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.instance-row__action {
    margin-left: auto;
}
@media (min-width: 992px) {
    .instance-row__inner {
        display: grid;
        grid-template-columns: 320px auto auto minmax(5.5rem, 1fr) auto;
        align-items: center;
        flex-wrap: nowrap;
    }
    .instance-row__col1 {
        width: auto;
        min-width: 0;
        margin-right: 0;
    }
    .instance-row__action {
        margin-left: 0;
        justify-self: end;
    }
}
@media (max-width: 991.98px) {
    .instance-row__col1 {
        width: 100%;
        min-width: 0;
        margin-right: 0;
    }
    .instance-row__meta {
        width: 100%;
        flex-grow: 0;
    }
    .instance-row__logo {
        order: -1;
    }
}

/* Generic trigger for a Bootstrap collapse: rotating chevron plus swapping label */
.collapse-toggle .ki-down {
    transition: transform 0.15s ease;
}
.collapse-toggle:not(.collapsed) .ki-down {
    transform: rotate(-180deg);
}
.collapse-toggle.collapsed .collapse-toggle__hide,
.collapse-toggle:not(.collapsed) .collapse-toggle__show {
    display: none;
}

/* Generic KPI strip: equally sized cells in one card, used on list and detail pages */
.stat-strip {
    min-width: 0;
}
.stat-strip__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.stat-strip__cell {
    min-width: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bs-gray-200, #f1f1f4);
}
.stat-strip__cell:last-child {
    border-bottom: none;
}
.stat-strip__value {
    /* Scales down so long euro amounts stay on one line in narrow cells */
    font-size: clamp(1.15rem, 2.2vw + 0.55rem, 1.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
@media (min-width: 576px) {
    .stat-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat-strip__cell {
        border-bottom: 1px solid var(--bs-gray-200, #f1f1f4);
    }
    .stat-strip__cell:nth-child(odd) {
        border-right: 1px solid var(--bs-gray-200, #f1f1f4);
    }
    .stat-strip__cell:nth-last-child(-n + 2) {
        border-bottom: none;
    }
}
@media (min-width: 1200px) {
    .stat-strip__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat-strip__cell {
        border-bottom: none;
        border-right: 1px solid var(--bs-gray-200, #f1f1f4);
    }
    .stat-strip__cell:last-child {
        border-right: none;
    }
}
.stat-strip__icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-strip__icon--primary {
    background-color: #f1faff;
    color: #009ef7;
}
.stat-strip__icon--warning {
    background-color: #fff8dd;
    color: #ffc700;
}
.stat-strip__icon--info {
    background-color: #eef6ff;
    color: #7239ea;
}
.stat-strip__icon--success {
    background-color: #e8fff3;
    color: #50cd89;
}
.stat-strip__icon--danger {
    background-color: #fff5f8;
    color: #f1416c;
}
.stat-strip__icon--secondary {
    background-color: var(--bs-gray-100, #f9f9f9);
    color: var(--bs-gray-600, #7e8299);
}

/* Budgets index: flex/grid children need min-width: 0 to stay inside their card */
.page-budgets-index {
    min-width: 0;
}
.page-budgets-show {
    min-width: 0;
}

.page-budgets-index__scopes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-budgets-index__scope-body {
    padding-top: 1.5rem;
}

.page-budgets-index__scope-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.page-budgets-index__scope,
.page-budgets-index__section {
    min-width: 0;
}

.page-budgets-index__scope-sections > .page-budgets-index__section + .page-budgets-index__section {
    padding-top: 1.5rem;
    margin-top: 0.25rem;
    border-top: 1px dashed var(--bs-gray-200, #eff2f5);
}

/*
 * Fixed layout: the figure columns get just as much room as their amounts need, the budget
 * title column keeps all remaining width. Below the min-width the wrapper scrolls.
 */
.page-budgets-index__table {
    table-layout: fixed;
    min-width: 38rem;
}
.page-budgets-index__table .page-budgets-index__col-money {
    width: 7.5rem;
}
.page-budgets-index__table .page-budgets-index__col-person {
    width: 10rem;
}
.page-budgets-index__table .page-budgets-index__col-actions {
    width: 5.5rem;
}

.page-budgets-index__table tr.page-budgets-index__group-row {
    border-bottom-width: 0;
}
.page-budgets-index__table .page-budgets-index__group-row > td {
    border-bottom-width: 0;
}

/* Option members are indented and share a left rail with their group header */
.page-budgets-index__table .page-budgets-index__row--nested > td:first-child {
    padding-left: 1.75rem;
    box-shadow: inset 3px 0 0 0 var(--bs-primary, #009ef7);
}

/* Collapsed ticket details must not add height or a divider line */
.page-budgets-index__table tr.page-budgets-index__detail-row {
    border-bottom-width: 0;
}

/* Stacked user initials (symbol-group): soft ring from label color; photo avatars (no label) keep default white ring */
.symbol-group.symbol-hover .symbol.symbol-circle:has(> .symbol-label) {
    border-color: transparent !important;
}
.symbol-group.symbol-hover .symbol.symbol-circle:has(> .symbol-label) > .symbol-label {
    border: 1px solid color-mix(in srgb, currentColor 30%, white);
}

/* Header + reused calendar picker: instance preview chip sizing (shared scope class) */
.assigned-instances-chip-scope .header-assigned-instances-symbol-group.symbol-group.symbol-hover .symbol {
    margin-left: -0.5rem;
}
.assigned-instances-chip-scope .header-assigned-instances-symbol-group.symbol-group.symbol-hover .symbol:first-child {
    margin-left: 0;
}

.assigned-instances-chip-scope .header-assigned-instances-menu-trigger {
    cursor: pointer;
}

.assigned-instances-chip-scope .header-assigned-instance-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    max-width: 35px;
    max-height: 35px;
    padding: 0;
    line-height: 0;
}
@media (min-width: 992px) {
    .assigned-instances-chip-scope .header-assigned-instance-symbol {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}
.assigned-instances-chip-scope .header-assigned-instance-symbol-img {
    display: block;
    flex-shrink: 0;
}
.assigned-instances-chip-scope .header-assigned-instance-symbol--more {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    color: var(--bs-gray-600, #7e8299);
}

/* BackOffice chip group: manual overlap identical to symbol-group, but supports per-chip flyout wrappers */
.backoffice-nav {
    margin-top: -1.25rem;
}
.backoffice-chip-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}
.backoffice-chip-wrapper {
    position: relative;
    z-index: 0;
    margin-left: -10px;
    transition: z-index 0s 0.2s;
}
.backoffice-chip-wrapper:first-child {
    margin-left: 0;
}
.backoffice-chip-wrapper:hover {
    z-index: 2;
    transition: z-index 0s;
}
/* Pure CSS flyout — no Metronic JS, so chip <a> clicks are never intercepted */
.backoffice-chip-flyout {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 110;
    width: 300px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    border: 1px solid #e4e6ef;
    border-radius: 0.625rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.backoffice-chip-wrapper:hover .backoffice-chip-flyout {
    display: block;
}

.backoffice-priority-icon-badge i {
    font-size: 0.75rem;
}

/* Generic symbol logo chip — used in backoffice picker and anywhere new */
.symbol-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    max-width: 35px;
    max-height: 35px;
    padding: 0;
    line-height: 0;
}
@media (min-width: 992px) {
    .symbol-logo-chip {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}
.symbol-logo-chip-img {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: auto;
    max-width: 2rem;
    max-height: 2rem;
    object-fit: contain;
}
/* Dimmed chip (inactive instance / archived project) */
.symbol-logo-chip--dimmed {
    opacity: 0.45;
}
/* Active chip (currently selected quick-filter) */
.symbol-logo-chip--active {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.2);
}

/* Brand logos in any thumbnail / chip: box stays sized, image scales inside */
.symbol.bg-light,
.symbol:has(> .header-assigned-flyout-symbol-img),
.symbol:has(> .timing-source-logo) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.symbol.symbol-30px.bg-light,
.symbol.symbol-30px:has(> .timing-source-logo) {
    width: 30px;
    height: 30px;
}
.symbol.symbol-40px.bg-light {
    width: 40px;
    height: 40px;
}
.symbol.symbol-45px.bg-light,
.symbol.symbol-45px:has(> .header-assigned-flyout-symbol-img) {
    width: 45px;
    height: 45px;
}
.symbol.symbol-50px.bg-light {
    width: 50px;
    height: 50px;
}
.symbol.bg-light > img,
.symbol > img.header-assigned-instance-symbol-img,
.symbol > img.header-assigned-flyout-symbol-img,
.symbol > img.symbol-logo-chip-img,
.symbol > img.timing-source-logo,
.logo-thumb > img,
img.logo-thumb {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.25rem;
    box-sizing: border-box;
}

/* Header flyout: notification-style header strip (cover bg) */
#kt_header_assigned_instances .header-assigned-instances-flyout > .d-flex.bgi-no-repeat.rounded-top {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

/* Header flyout: list with room for more assigned items */
#kt_header_assigned_instances .header-assigned-flyout-tab-content .mh-375px {
    max-height: 560px;
}

#kt_header_assigned_instances .header-assigned-flyout-symbol-img {
    display: block;
}

.timing-source-logo {
    display: block;
}

.issue-timing-create-form .issue-timing-input-date,
.issue-timing-modal-form .issue-timing-input-date {
    width: 10.5rem;
    max-width: 100%;
}

.issue-timing-create-form .issue-timing-input-time,
.issue-timing-modal-form .issue-timing-input-time {
    width: 6rem;
    max-width: 100%;
}


.issue-timing-table-wrap {
    padding-bottom: 0.5rem;
}

.issue-timing-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.issue-timing-row:hover > td {
    background-color: rgba(var(--bs-primary-rgb), 0.045);
}

.issue-timing-row__badges {
    width: 1%;
    white-space: nowrap;
}

.issue-timing-row__main {
    min-width: 12rem;
}

.issue-timing-row__meta {
    min-width: 9rem;
    max-width: 16rem;
}

.issue-timing-row__actions {
    width: 1%;
}

.issue-timing-row__title {
    line-height: 1.35;
    word-break: break-word;
}

.issue-timing-row__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-gray-500, #99a1b7);
    margin-bottom: 0.2rem;
}

.issue-timing-period-range {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.issue-timing-period-range__sep {
    display: block;
    font-size: 0.85em;
    line-height: 1.2;
}

.issue-timing-period-range__part {
    display: block;
    line-height: 1.35;
}

.issue-timing-list-card {
    border-radius: 0.95rem;
    overflow: hidden;
}

.issue-timing-list-card .card-header {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, rgba(var(--bs-primary-rgb), 0.01) 100%);
    border-bottom: 1px solid var(--bs-gray-200, #f1f1f4);
}

.issue-timing-list-card .issue-timing-table-wrap {
    padding-bottom: 0.5rem;
}

.issue-calendar-timing-shell {
    position: relative;
    height: 9.25rem;
    overflow: visible;
}

.issue-calendar-timing {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.issue-calendar-timing__title-trigger {
    display: block;
    padding: 0;
    margin-bottom: 0.25rem;
    border: 0;
    background: transparent;
    font: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
}

.issue-calendar-timing__title-trigger:hover,
.issue-calendar-timing__title-trigger:focus-visible {
    color: var(--bs-primary);
}

.issue-calendar-timing__title-trigger:focus {
    outline: 0;
}

.calendar-day-add-timing-btn.btn.btn-icon {
    width: 1.625rem;
    height: 1.625rem;
    min-width: 1.625rem;
    padding: 0;
}

.issue-calendar-timing-spacer {
    height: 9.25rem;
    visibility: hidden;
    pointer-events: none;
}

.issue-calendar-timing--continues-from-previous::before,
.issue-calendar-timing--continues-to-next::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    width: 1rem;
    border-top: 2px dashed var(--bs-primary);
}

.issue-calendar-timing--continues-from-previous::before {
    right: 100%;
}

.issue-calendar-timing--continues-to-next::after {
    left: 100%;
}

.issue-calendar-timing__range .ki-outline {
    vertical-align: -0.075em;
}

#issue-frappe-gantt {
    min-width: 900px;
}

#issue-frappe-gantt .gantt-container {
    border-radius: 0.75rem;
}

#issue-frappe-gantt .bar-label {
    display: none;
}

.project-management-resource-panel {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bs-body-bg);
    box-shadow: 0 -0.35rem 1rem rgba(0, 0, 0, 0.06);
}

.project-management-scope-flyout-menu {
    min-width: min(100vw - 2rem, 340px);
    max-width: min(100vw - 2rem, 420px);
}

.project-management-scope-flyout-logo {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.3rem;
    background-color: var(--bs-body-bg);
}

.project-management-scope-flyout-scroll {
    max-height: min(50vh, 360px);
    overflow-y: auto;
}

.project-management-resource-panel__empty {
    padding: 1rem 1.25rem;
}

.project-management-resource-panel__shell {
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
}

.project-management-resource-panel__table {
    --project-management-resource-days: 1;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.project-management-resource-panel__person-header,
.project-management-resource-panel__timeline-header {
    min-height: 42px;
    border-bottom: 1px solid var(--bs-gray-200);
    background: var(--bs-gray-100);
    font-size: 0.78rem;
    font-weight: 600;
}

.project-management-resource-panel__person-header {
    position: sticky;
    top: 0;
    z-index: 7;
    width: 280px;
    max-width: 280px;
    padding: 0 1rem;
    vertical-align: middle;
    border-right: 1px solid var(--bs-gray-200);
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.08);
}

.project-management-resource-panel__timeline-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

.project-management-resource-panel__timeline-stack-cell {
    padding: 0;
    vertical-align: top;
    border-bottom: 1px solid var(--bs-gray-100);
}

.project-management-resource-panel__timeline-stack-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.project-management-resource-panel__timeline-inner {
    min-width: max(100%, calc(var(--project-management-resource-days) * 38px));
}

.project-management-resource-panel__timeline-header,
.project-management-resource-panel__timeline-row {
    display: grid;
    grid-template-columns: repeat(var(--project-management-resource-days), minmax(38px, 1fr));
}

.project-management-resource-panel__day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    border-right: 1px solid var(--bs-gray-200);
    color: var(--bs-gray-700);
}

.project-management-resource-panel__person,
.project-management-resource-panel__timeline-row {
    min-height: 42px;
    border-bottom: 1px solid var(--bs-gray-100);
}

.project-management-resource-panel__person {
    width: 280px;
    max-width: 280px;
    padding: 0.45rem 1rem;
    vertical-align: middle;
    border-right: 1px solid var(--bs-gray-200);
    background: var(--bs-body-bg);
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.08);
}

.project-management-resource-panel__timeline-row {
    position: relative;
    z-index: 0;
    align-items: center;
    background-image: linear-gradient(to right, var(--bs-gray-200) 1px, transparent 1px);
    background-size: calc(100% / var(--project-management-resource-days)) 100%;
}

.project-management-resource-panel__bar {
    position: relative;
    z-index: 0;
    min-width: 0;
    height: 24px;
    margin: 0 2px;
    padding: 0 0.5rem;
    overflow: hidden;
    border: 1px solid var(--bs-primary);
    border-radius: 0.35rem;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 0.72rem;
    line-height: 22px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-management-resource-panel__bar.status-done {
    border-color: var(--bs-success);
    background: var(--bs-success);
}

.project-management-resource-panel__bar.status-confirmed {
    border-color: var(--bs-info);
    background: var(--bs-info);
}

.project-management-resource-panel__bar.status-cancelled {
    border-color: var(--bs-danger);
    background: var(--bs-danger);
}

#project-management-gantt-container .gantt_layout_root.gantt_container,
.issue-readonly-gantt .gantt_layout_root.gantt_container {
    border: none !important;
}

.issue-readonly-gantt {
    width: 100%;
}

.issue-readonly-gantt .gantt_grid_head_cell {
    font-size: 12px;
    font-weight: 600;
}

.issue-readonly-gantt .gantt_grid_head_cell,
.issue-readonly-gantt .gantt_grid_data .gantt_cell {
    padding-left: 4px;
    padding-right: 4px;
}

.issue-readonly-gantt .gantt_grid_head_cell:first-child,
.issue-readonly-gantt .gantt_grid_data .gantt_row .gantt_cell:first-child {
    text-align: left;
}

.issue-readonly-gantt .gantt_tree_content {
    text-align: left;
    padding-left: 0;
    justify-content: flex-start;
}

.issue-readonly-gantt .gantt_tree_icon.gantt_blank {
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.issue-readonly-gantt .gantt_grid_data .gantt_cell,
.issue-readonly-gantt .gantt_grid_data .gantt_tree_content,
.issue-readonly-gantt .gantt_scale_line,
.issue-readonly-gantt .gantt_scale_cell,
.issue-readonly-gantt .gantt_task_content {
    font-size: 11px;
}

.issue-readonly-gantt .gantt_grid_data .gantt_row.issue-grid-row .gantt_cell {
    font-weight: 600;
}

.gantt_tooltip,
.gantt_tooltip * {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.issue-readonly-gantt .gantt_task_line.status-requested {
    border-color: var(--bs-warning);
    background: var(--bs-warning);
}

.issue-readonly-gantt .gantt_task_line.status-disposition {
    border-color: var(--bs-info);
    background: var(--bs-info);
}

.issue-readonly-gantt .gantt_task_line.status-booked {
    border-color: var(--bs-success);
    background: var(--bs-success);
}

.issue-readonly-gantt .gantt_task_line.status-waiting {
    border-color: var(--bs-warning);
    background: var(--bs-warning);
}

.issue-readonly-gantt .gantt_task_line.status-postponed {
    border-color: var(--bs-secondary);
    background: var(--bs-secondary);
}

.issue-readonly-gantt .gantt_task_line.status-done {
    border-color: var(--bs-success);
    background: var(--bs-success);
}

.issue-readonly-gantt .gantt_task_line.status-confirmed {
    border-color: var(--bs-info);
    background: var(--bs-info);
}

.issue-readonly-gantt .gantt_task_line.status-cancelled {
    border-color: var(--bs-danger);
    background: var(--bs-danger);
}

.issue-readonly-gantt .gantt_task_line.status-planned {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.issue-readonly-gantt .gantt_task_line.gantt-timing-no-period {
    border-style: dashed;
    opacity: 0.75;
}

.issue-readonly-gantt .gantt_row.issue-readonly-gantt-task--clickable .gantt_tree_content,
.issue-readonly-gantt .gantt_row.issue-readonly-gantt-task--clickable .gantt_cell,
.issue-readonly-gantt .gantt_task_line.issue-readonly-gantt-task--clickable {
    cursor: pointer;
}

.issue-frappe-gantt-shell {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.issue-frappe-gantt-labels {
    width: 360px;
    flex: 0 0 360px;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem 0 0 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg);
}

.issue-frappe-gantt-labels__header {
    height: 59px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--bs-gray-200);
}

.issue-frappe-gantt-label-row {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--bs-gray-100);
}

.issue-frappe-gantt-chart {
    flex: 1 1 auto;
    min-width: 0;
}

.issue-tabulator-scroll {
    width: 100%;
    overflow-x: auto;
}

.issue-tabulator-table {
    min-width: 1570px;
}

.issue-tabulator-table .tabulator {
    border: none;
    font-size: 11px;
}

.issue-tabulator-table .tabulator-header {
    border-bottom: 1px solid var(--bs-gray-200, #e4e6ef);
    background: var(--bs-gray-100, #f9f9f9);
}

.issue-tabulator-table .tabulator .tabulator-header .tabulator-col {
    background: var(--bs-gray-100, #f9f9f9);
    border-right: 1px solid var(--bs-gray-200, #e4e6ef);
}

.issue-tabulator-table .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 0.2rem 0.45rem !important;
}

.issue-tabulator-table .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title,
.issue-tabulator-table .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder .tabulator-col-title {
    height: auto !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.issue-tabulator-header-title {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    vertical-align: top !important;
    white-space: nowrap !important;
}

.issue-tabulator-table .tabulator-row,
.issue-tabulator-table .tabulator-row.tabulator-row-even,
.issue-tabulator-table .tabulator-row.tabulator-row-odd {
    min-height: 29px;
    background: #fff;
    border-bottom: 1px solid var(--bs-gray-100, #f9f9f9);
}

.issue-tabulator-table .tabulator-row .tabulator-cell {
    min-height: 29px;
    padding: 0 0.6rem;
    border-right: 1px solid var(--bs-gray-100, #f9f9f9);
    font-size: 11px;
    line-height: 29px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-tabulator-table .tabulator-data-tree-control {
    vertical-align: middle;
}

.issue-tabulator-table .tabulator-row:hover {
    background: var(--bs-gray-100, #f9f9f9);
}

.issue-tabulator-table .issue-tabulator-row--board {
    background: #fbfcfd;
    font-weight: 700;
}

.issue-tabulator-table .issue-tabulator-row--timing {
    color: var(--bs-gray-600, #7e8299);
}

.issue-tabulator-table .issue-tabulator-row--timing .issue-tabulator-summary__title {
    font-weight: 400;
}

.issue-tabulator-summary__title {
    display: inline-block;
    overflow: hidden;
    font-weight: 600;
    line-height: 29px;
    text-overflow: ellipsis;
    vertical-align: top;
    white-space: nowrap;
}

.issue-tabulator-progress {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 29px;
}

.issue-tabulator-progress__bar {
    width: 100%;
    height: 0.4rem;
    appearance: none;
}

.issue-tabulator-progress__bar::-webkit-progress-bar {
    background: var(--bs-gray-200, #e4e6ef);
    border-radius: 999px;
}

.issue-tabulator-progress__bar::-webkit-progress-value {
    background: var(--bs-success, #50cd89);
    border-radius: 999px;
}

.issue-tabulator-progress__bar::-moz-progress-bar {
    background: var(--bs-success, #50cd89);
    border-radius: 999px;
}

.issue-tabulator-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    line-height: 1.1;
}

/* Create issue type step: show extended content only when this radio option is selected */
[data-kt-buttons="true"] .type-option-extended {
    display: none;
}
[data-kt-buttons="true"] .type-option-example {
    display: none;
}
[data-kt-buttons="true"] .type-option-desc {
    display: block;
    margin-top: 1rem;
}
[data-kt-buttons="true"] label:has(input[name="attributes[type]"]:checked) .type-option-extended {
    display: block;
}
[data-kt-buttons="true"] label:has(input[name="attributes[type]"]:checked) .type-option-example {
    display: block;
}

/* Create issue type cards: match universal scope picker border/hover behavior */
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card {
    border: 1px solid var(--bs-card-border-color, #e4e6ef);
    border-radius: 0.625rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card:not([disabled]):hover {
    border-color: color-mix(in srgb, currentColor 70%, white);
}
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card.active,
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card:has(input[name="attributes[type]"]:checked) {
    border-color: color-mix(in srgb, currentColor 70%, white);
    background-color: color-mix(in srgb, currentColor 12%, white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card[disabled],
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card.create-issue-option-disabled,
#create_issue_form .create-issue-option-disabled {
    pointer-events: none;
    cursor: not-allowed;
}
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card[disabled].active,
#create_issue_form [data-kt-buttons="true"] .create-issue-type-card.create-issue-option-disabled.active {
    border-color: var(--bs-card-border-color, #e4e6ef);
    background-color: transparent;
    box-shadow: none;
}
#create_issue_form .create-issue-option-disabled-radio {
    pointer-events: none;
    opacity: 0.5;
}

/* Create issue: tab bar — room to breathe (no single squeezed row) */
.create-issue-tabs {
    flex-wrap: wrap;
    row-gap: 0.65rem;
    column-gap: 0.65rem;
    padding-bottom: 0.35rem;
}
.create-issue-tabs .nav-item {
    flex: 1 1 auto;
    min-width: 12rem;
    max-width: 100%;
}
.create-issue-tabs .nav-link {
    justify-content: flex-start;
    padding: 1.05rem 1.65rem;
    min-height: 3.35rem;
    white-space: normal;
    line-height: 1.45;
    column-gap: 0.35rem;
}
.create-issue-tabs .nav-link > .ki-outline {
    margin-right: 0.15rem;
}
.create-issue-tabs .nav-link .badge {
    margin-left: 0.35rem;
}
.create-issue-tabs .nav-link .js-tab-check {
    margin-left: 0.25rem;
    transition: opacity 0.2s ease;
}
.create-issue-tabs .create-issue-tab-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    padding: 0 0.15rem;
}
@media (min-width: 1200px) {
    .create-issue-tabs {
        column-gap: 0.85rem;
    }
    .create-issue-tabs .nav-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .create-issue-tabs .nav-link {
        justify-content: center;
        text-align: center;
        padding: 1.1rem 1.75rem;
    }
    .create-issue-tabs .create-issue-tab-label {
        flex: 0 1 auto;
    }
}

/* Create issue: extra air below the tab bar before pane content */
#create_issue_form .create-issue-tabs {
    margin-bottom: 3rem;
}
#create_issue_form .create-issue-tab-content {
    padding-top: 1.25rem;
}

/* Create issue / universal scope picker: card row selection */
.create-issue-instance-card,
.universal-scope-picker-card {
    border-style: solid;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-check:checked + .create-issue-instance-card,
.btn-check:checked + .universal-scope-picker-card {
    border: 1px solid var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}
.btn-check:not(:checked) + .create-issue-instance-card:hover,
.btn-check:not(:checked) + .universal-scope-picker-card:hover {
    border: 1px solid var(--bs-primary);
}

.mw-800px {
    max-width: 800px !important;
}

.mw-350px {
    max-width: 350px !important;
}

.my-email-body-html {
    max-height: 70vh;
}
.w-200px {
    width: 200px !important;
}

/* Issues index: admin-only clickable row */
.dt_issues_table tbody tr[data-href] {
    cursor: pointer;
}

/* Issue detail (show) page: keep long content inside card borders */
.issue-detail-card {
    overflow: hidden;
}
.issue-detail-card .card-body {
    min-width: 0;
}
.issue-detail-card .d-flex.flex-wrap.align-items-center.gap-2 {
    min-width: 0;
}
.issue-detail-card .fs-2.fw-bold.text-gray-500,
.issue-detail-card .fs-2.fw-bold.text-gray-800 {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}
/* Long primary copy on issue show (description, comment bodies) */
.issue-detail-card .issue-detail-prose {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}
.issue-detail-card .tab-content > .tab-pane {
    min-width: 0;
}
/* Issue admin modal: scrollable release-note checklists */
.issue-release-notes-picker {
    max-height: min(50vh, 320px);
    overflow-y: auto;
}

/* Inline edit (pencil): quiet icon buttons; use with btn btn-icon btn-sm */
.btn.btn-icon.btn-icon-subtle-edit {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0.55;
}
.btn.btn-icon.btn-icon-subtle-edit .ki-outline,
.btn.btn-icon.btn-icon-subtle-edit .ki-duotone {
    color: var(--bs-gray-500, #a1a5b7);
}
.btn.btn-icon.btn-icon-subtle-edit:hover,
.btn.btn-icon.btn-icon-subtle-edit:focus-visible {
    opacity: 1;
}
.btn.btn-icon.btn-icon-subtle-edit:hover .ki-outline,
.btn.btn-icon.btn-icon-subtle-edit:hover .ki-duotone,
.btn.btn-icon.btn-icon-subtle-edit:focus-visible .ki-outline,
.btn.btn-icon.btn-icon-subtle-edit:focus-visible .ki-duotone {
    color: var(--bs-primary);
}
.btn.btn-icon.btn-icon-subtle-edit:focus-visible {
    outline: 2px solid var(--bs-primary, #009ef7);
    outline-offset: 2px;
}

/* Inline destructive (e.g. delete comment): same footprint as subtle-edit, danger tint */
.btn.btn-icon.btn-icon-subtle-danger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 0.85;
}
.btn.btn-icon.btn-icon-subtle-danger .ki-outline,
.btn.btn-icon.btn-icon-subtle-danger .ki-duotone {
    color: var(--bs-danger, #f1416c);
}
.btn.btn-icon.btn-icon-subtle-danger:hover,
.btn.btn-icon.btn-icon-subtle-danger:focus-visible {
    opacity: 1;
}
.btn.btn-icon.btn-icon-subtle-danger:hover .ki-outline,
.btn.btn-icon.btn-icon-subtle-danger:hover .ki-duotone,
.btn.btn-icon.btn-icon-subtle-danger:focus-visible .ki-outline,
.btn.btn-icon.btn-icon-subtle-danger:focus-visible .ki-duotone {
    color: var(--bs-danger-text-emphasis, #d32f2f);
}
.btn.btn-icon.btn-icon-subtle-danger:focus-visible {
    outline: 2px solid var(--bs-danger, #f1416c);
    outline-offset: 2px;
}
.issue-detail-card .issue-meta-table {
    table-layout: fixed;
    width: 100%;
}
.issue-detail-card .issue-meta-table td {
    word-break: break-word;
    overflow-wrap: break-word;
}
/* Links in value column: themes often bump <a>.text-primary (size/weight); match plain cell text */
.issue-detail-card .issue-meta-table td a.text-primary,
.issue-detail-card .issue-meta-table td a.text-hover-primary {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}
.issue-detail-card .col-lg-4 .table {
    table-layout: fixed;
    width: 100%;
}
.issue-detail-card .col-lg-4 .table td {
    word-break: break-word;
    overflow-wrap: break-word;
}
.issue-detail-card .col-lg-4 .table td pre {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}
.issue-detail-card .col-lg-8 .table td pre {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Admin release notes authoring: commit picker embedded in note column */
.admin-commits-in-note-panel {
    min-width: 0;
}

/* Admin release notes: per-note tab panes (nested card sits inside outer bordered card) */
.admin-release-notes-page .tab-pane {
    min-width: 0;
}
.admin-release-notes-page .tab-pane .release-note-row.card {
    border: 0;
    box-shadow: none;
}

/* Ensure only the active note tab receives events (avoids invisible panes swallowing clicks on type radios) */
.admin-release-notes-page #release-notes-tabbed-panes > .tab-pane:not(.active) {
    display: none !important;
    pointer-events: none !important;
}
.admin-release-notes-page #release-notes-tabbed-panes > .tab-pane.active {
    position: relative;
    z-index: 1;
}
.admin-release-notes-page .release-note-type-radios label.btn {
    position: relative;
    z-index: 2;
}

/* Issue budget widget (sidebar on issue show) — header matches Details card; outer border only for state */
.issue-budget-widget--overrun {
    border-color: var(--kt-danger);
}
.issue-budget-widget--unapproved {
    border-color: var(--kt-warning);
}

/* Issue efforts tab: sum overview (minutes, package, euro, costs) */
.issue-efforts-overview {
    border-color: var(--bs-gray-300, #e4e6ef);
    box-shadow: 0 0.125rem 0.25rem rgba(76, 87, 125, 0.05);
}
.issue-efforts-overview .card-body {
    background: linear-gradient(180deg, var(--bs-gray-100, #f9f9f9) 0%, #fff 38%);
}
.issue-efforts-overview__title {
    letter-spacing: 0.04em;
}
.issue-efforts-overview__total {
    background-color: var(--bs-gray-100, #f5f8fa);
}

.issue-efforts-section .issue-effort-row {
    min-width: 0;
}
.issue-efforts-section .issue-effort-row__headline {
    flex: 1 1 auto;
    min-width: 0;
}
.issue-efforts-section .issue-effort-row__details [class*="col-"] {
    min-width: 0;
}
.issue-efforts-section .issue-effort-row__date-ditto {
    font-style: italic;
    color: var(--bs-gray-600, #7e8299);
}
.issue-efforts-section .issue-effort-row__description-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.issue-efforts-form .card-header {
    min-height: auto;
}

/* Issue effort create/edit modal */
.issue-effort-modal .modal-dialog {
    max-width: 720px;
}

/* Issue detail: activity list — expand/collapse toggle labels */
/* Admin: Ticket-Verwaltung hub (/admin/issues/management) */
.issue-management-hub .issue-management-hub__card {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.issue-management-hub .issue-management-hub__card:hover {
    box-shadow: var(--bs-box-shadow-sm);
}
.issue-management-hub .issue-management-hub__card h2 {
    color: var(--bs-gray-800);
}

.sixman-nav-card {
    overflow: hidden;
}
.sixman-nav .nav-line-tabs .nav-item .nav-link {
    margin: 0;
}
.sixman-nav-card .sixman-nav-actions .btn {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.825rem;
    --bs-btn-color: var(--bs-primary);
    --bs-btn-bg: var(--bs-primary-light, #e8f3ff);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary-light, #e8f3ff);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary-light, #e8f3ff);
    --bs-btn-active-border-color: var(--bs-primary);
    padding: 0.25rem 0.5rem;
    font-size: 0.825rem;
    color: var(--bs-primary);
    background-color: var(--bs-primary-light, #e8f3ff);
    border-color: var(--bs-primary);
}
.sixman-nav-card .sixman-nav-actions .btn:hover,
.sixman-nav-card .sixman-nav-actions .btn:focus,
.sixman-nav-card .sixman-nav-actions .btn:active {
    color: var(--bs-primary);
    background-color: var(--bs-primary-light, #e8f3ff);
    border-color: var(--bs-primary);
}
.sixman-nav-card .sixman-nav-actions .btn i {
    font-size: 1rem;
    color: var(--bs-primary);
}
.sixman-content > h1,
.sixman-content > p,
.sixman-content > .alert,
.sixman-content > .d-flex:has(> div > h1) {
    margin-left: var(--bs-card-spacer-x, 2.25rem);
    margin-right: var(--bs-card-spacer-x, 2.25rem);
}

/* Admin: data tables — browser-sized columns (no rigid min-widths); compact ID/date/actions */
.table-admin-data {
    width: 100%;
    table-layout: auto;
}

.table-admin-data th,
.table-admin-data td {
    vertical-align: top;
}

.table-admin-data .col-admin-id,
.table-admin-data .col-admin-logo,
.table-admin-data .col-admin-date,
.table-admin-data .col-admin-center,
.table-admin-data .col-admin-actions {
    width: 1%;
    white-space: nowrap;
}

.table-admin-data .col-admin-actions {
    text-align: end;
}

.table-admin-data .col-admin-center {
    text-align: center;
}

.table-admin-data .col-admin-break {
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-admin-group-header,
tr.table-admin-group-header > td {
    background-color: var(--bs-gray-100, #f5f8fa);
    vertical-align: middle;
}

.table-matrix-wrap {
    overflow: auto;
}

.table-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bs-body-bg, #fff);
    box-shadow: inset 0 -1px 0 var(--bs-gray-300, #e4e6ef);
}

.table-matrix .table-matrix__label {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--bs-body-bg, #fff);
}

.table-matrix thead .table-matrix__label {
    z-index: 3;
}

.table-matrix tbody tr.table-admin-group-header > td {
    position: sticky;
    left: 0;
    z-index: 1;
}

.table-matrix .table-matrix__grant {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.accordion-flush .accordion-button,
.accordion-flush .accordion-button:not(.collapsed) {
    background-color: var(--bs-gray-100, #f5f8fa);
    box-shadow: none;
}

/* Billing board overview: dashed dividers between Offen / Bezahlt / Gesamt */
.table-admin-data.billing-board-overview tr.billing-board-overview__metric-inner,
.table-admin-data.billing-board-overview tr.billing-board-overview__metric-inner > td {
    border-bottom-style: dashed !important;
}

.table-admin-data.billing-effort-table {
    table-layout: fixed;
    width: 100%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-select {
    width: 3%;
    padding-left: 0.5rem;
    padding-right: 0;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-date {
    width: 11%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-amount {
    width: 9%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-quantity {
    width: 8%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-description {
    width: 32%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-user {
    width: 14%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-rate {
    width: 8%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-tariff {
    width: 10%;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-actions {
    width: 5%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    white-space: nowrap;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-description,
.table-admin-data.billing-effort-table .billing-effort-table__col-user,
.table-admin-data.billing-effort-table .billing-effort-table__col-tariff {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}
.table-admin-data.billing-effort-table .billing-effort-table__col-actions .btn {
    width: 2rem;
    height: 2rem;
}

.billing-effort-issue-group .card-header {
    border-bottom: 1px solid var(--bs-gray-200, #eff2f5);
}

.billing-effort-issue-budget {
    min-width: 260px;
    max-width: 360px;
}

.billing-effort-issue-budget__label {
    width: 80px;
    text-align: left;
}

.billing-effort-issue-budget__pct {
    width: 52px;
}

.admin-monitoring-json {
    max-height: 16rem;
}

.email-preview-summary {
    cursor: pointer;
}

.email-preview-frame {
    display: block;
    width: 100%;
    min-width: 280px;
    height: 32rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.475rem;
    background-color: var(--bs-gray-200);
}

/* Admin forms: long checkbox lists */
.admin-checkbox-scroll {
    max-height: 28rem;
    overflow-y: auto;
}

/* Admin: Mandant + Benutzer in einem Accordion-Block */
.customer-members-assign__panel:last-child {
    border-bottom: 0 !important;
}
.customer-members-assign__indent {
    pointer-events: none;
    visibility: hidden;
}
.customer-members-assign__user {
    min-height: 1.75rem;
    margin: 0;
    padding: 0.15rem 0;
}
.customer-members-assign__user .form-check-input {
    margin-top: 0.2rem;
}
.customer-members-assign__user-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    line-height: 1.25;
}
.customer-members-assign__user-text {
    flex: 1 1 auto;
    min-width: 0;
}
.customer-members-assign__user-text .fs-8 {
    margin-left: 0.35rem;
}
.customer-members-assign__role {
    flex: 0 0 8.5rem;
    width: 8.5rem;
    min-height: 1.75rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.8rem;
}
.customer-members-assign__chevron {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
[data-customer-members-panel]:has(.collapse.show) .customer-members-assign__chevron {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}

/* Issue detail: async Git section (GitLab-compatible API) */
.issue-gitrepo-section .issue-gitrepo-commit-list__item {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.issue-gitrepo-section code.issue-gitrepo-commit-list__sha {
    color: var(--bs-gray-700, #5e6278);
}
.issue-gitrepo-section .issue-gitrepo-commit-list__lines,
.git-commit-line-stats {
    font-variant-numeric: tabular-nums;
}

/* Textarea: height follows content (see resources/js/app.js initAutoGrowTextareas) */
.textarea-auto-grow {
    overflow-y: hidden;
    resize: none;
}

.modal-dialog-scrollable {
    max-height: calc(100dvh - 2rem);
}

.modal-dialog-viewport.modal-dialog-scrollable {
    height: calc(100dvh - 2rem);
}

.modal-dialog-viewport.modal-dialog-scrollable .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.modal-dialog-viewport.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.modal-dialog-viewport.modal-dialog-scrollable .modal-header,
.modal-dialog-viewport.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
}

.modal-dialog-viewport.modal-dialog-scrollable .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Soft alert blocks: visible warning outline on light warning background */
.warning-border {
    border: 1px solid var(--bs-warning, #ffc700) !important;
}

/* Platform logos: release overview tabs + per-platform sidebar */
.releases-overview-tab-logo,
.releases-overview-platform-logo,
.platform-sidebar-logo {
    object-fit: contain;
}

/* Releases overview: planned row — drop global white ring on symbol circles (see .symbol.symbol-circle above) */
.overview-release-row--planned .symbol.symbol-circle,
.overview-release-row--planned .symbol.symbol-circle .symbol-label {
    border: none !important;
}

/* Public release detail: timeline icon column matches type row (50px symbol + me-5 gap to text) */
.release-notes-by-type .timeline {
    --bs-timeline-icon-size: 50px;
}

.release-notes-by-type .timeline .timeline-icon {
    margin-right: 3rem !important;
}

.page-budgets-create__issue-picker-wrap .page-budgets-create__issue-links-scroll {
    max-height: 420px;
    overflow-y: auto;
}

.issue-pick-row {
    line-height: 1.3;
}
.issue-pick-row__input {
    float: none !important;
    margin-top: 0.15rem !important;
}
.issue-pick-row__label {
    line-height: 1.3;
}

/* Budget detail: hero grid — logo column spans title + meta/details rows; details band beside logo */
.page-budgets-show__hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.page-budgets-show__hero-headline {
    max-width: 100%;
}
.page-budgets-show__hero-logo {
    flex-shrink: 0;
}
@media (min-width: 576px) {
    .page-budgets-show__hero-grid {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 3rem;
        row-gap: 0.5rem;
        align-items: start;
    }
    .page-budgets-show__hero-logo {
        grid-row: 1 / -1;
        justify-self: center;
        align-self: center;
    }
    .page-budgets-show__hero-headline {
        grid-column: 2;
        grid-row: 1;
    }
    .page-budgets-show__hero-below-title {
        grid-column: 2;
        grid-row: 2;
    }
}
.page-budgets-show__hero-details {
    gap: 0.75rem;
}
.page-budgets-show__hero-tile {
    flex: 1 1 9rem;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}
.page-budgets-show__hero-desc {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
}
.page-budgets-show__hero-desc-body {
    min-height: 0;
}
/* Budget detail: ticket list compact mode (1 row per ticket, effort inline) */
.page-budgets-show__tickets-card .page-budgets-show__tickets-table > thead > tr {
    border-bottom: 1px dashed var(--bs-gray-300, #e4e6ef);
}
.page-budgets-show__tickets-card .page-budgets-show__tickets-table > thead > tr > th {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.page-budgets-show__tickets-card .page-budgets-show__tickets-table > tbody > tr > td {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--bs-gray-300, #e4e6ef);
    vertical-align: top;
}
.page-budgets-show__tickets-card .page-budgets-show__tickets-table > tbody > tr:last-child > td {
    border-bottom: none;
}
.page-budgets-show__ticket-main {
    min-width: 0;
}
.page-budgets-show__ticket-effort-inline {
    line-height: 1.35;
}
.page-budgets-show__ticket-effort-chip + .page-budgets-show__ticket-effort-chip::before {
    content: " | ";
    color: var(--bs-gray-400, #b5b5c3);
}

/* Admin users index: nested roles table inside main table cell */
/* Theme: .table.table-row-bordered tr { border-bottom: … } applies to EVERY tr under the outer table, including nested rows — reset only inside our inner table */
.table:not(.table-bordered).table-row-bordered .admin-user-roles-table tr {
    border-bottom: 0 !important;
    border-bottom-width: 0 !important;
    border-bottom-style: none !important;
    border-bottom-color: transparent !important;
}
.admin-user-roles-table {
    --admin-user-roles-pad-x: 0.5rem;
    --bs-table-border-color: transparent;
    font-size: 0.8125rem;
    margin-bottom: 0;
    border-style: none;
    table-layout: fixed;
    width: 100%;
}
/* No row dividers on cells (Bootstrap .table) */
.admin-user-roles-table > :not(caption) > * > * {
    border-bottom-width: 0;
    border-bottom: 0;
    box-shadow: none;
}
.admin-user-roles-table tbody tr,
.admin-user-roles-table thead tr {
    border-bottom: 0;
}
.admin-user-roles-table > thead > tr > th:nth-child(1),
.admin-user-roles-table > tbody > tr > td:nth-child(1) {
    width: 7rem;
    white-space: nowrap;
}
.admin-user-roles-table > thead > tr > th:nth-child(2),
.admin-user-roles-table > tbody > tr > td:nth-child(2) {
    width: auto;
}
.admin-user-roles-table > thead > tr > th:nth-child(3),
.admin-user-roles-table > tbody > tr > td:nth-child(3) {
    width: 14rem;
    white-space: nowrap;
}
.admin-user-roles-table > thead > tr > th {
    font-weight: 500;
    color: var(--bs-gray-500, #a1a5b7);
    padding: 0 var(--admin-user-roles-pad-x) 0.35rem var(--admin-user-roles-pad-x);
    border-bottom: 0;
    white-space: nowrap;
}
.admin-user-roles-table > tbody > tr > td {
    padding: 0 var(--admin-user-roles-pad-x) 0.2rem var(--admin-user-roles-pad-x); /* pt-0 */
    vertical-align: middle;
    border-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.admin-user-roles-table .badge {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-line-tabs .nav-item .nav-link {
    margin: 0 0.5rem;
}

/* Issue show: badges in tab labels sit closer to each other */
#issueShowTabs .nav-link .badge + .badge {
    margin-left: 0 !important;
}

/* Issues index: slightly tighter spacing between status tabs */
.issues-index-status-tabs {
    row-gap: 0.25rem;
}
.issues-index-status-tabs .nav-link {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.issues-index-status-tabs .nav-link .badge {
    margin-left: 0.25rem;
}

/* Ticket lists: badge / label stacked above primary cell content (project layout) */
.issue-list-row-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.backoffice-issues-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}
.backoffice-issues-table .issue-list-table-th-nr {
    width: 9rem;
}
.backoffice-issues-table .issue-list-table-th-title,
.backoffice-issues-table .issue-list-table-td-title {
    min-width: 0;
    overflow: hidden;
}
.backoffice-issues-table .issue-list-table-td-title .text-gray-800 {
    min-width: 0;
    overflow-wrap: anywhere;
}
#backoffice-priority-accordion,
#backoffice-priority-accordion .accordion-body {
    max-width: 100%;
    overflow-x: hidden;
}
.backoffice-issues-table .issue-list-table-th-meta,
.backoffice-issues-table .issue-list-table-td-meta {
    width: 10rem;
}
.backoffice-issues-table .issue-list-table-th-date,
.backoffice-issues-table .issue-list-table-td-date {
    width: 8.75rem;
    min-width: 8.75rem;
    max-width: 8.75rem;
}
.backoffice-issues-table .issue-list-table-th-date {
    text-transform: none;
    overflow: visible;
}

.issue-list-table-th-nr {
    width: 8.5rem;
}
.issue-list-table-th-title,
.issue-list-table-td-title {
    min-width: 20rem;
}
.issue-list-table-th-meta,
.issue-list-table-th-date,
.issue-list-table-td-meta,
.issue-list-table-td-date {
    width: 1%;
    white-space: nowrap;
}
.issue-list-table-th-date {
    min-width: 8.75rem;
    text-transform: none;
}
.issue-list-table-td-title .issue-description-flyout-trigger,
.issue-list-table-td-title > span:not(.badge) {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.issue-list-comment-count {
    vertical-align: middle;
}
.issue-list-comment-count i {
    color: inherit;
}
@media (max-width: 991.98px) {
    .issue-list-table-th-nr {
        width: 7.25rem;
    }
    .issue-list-table-th-title,
    .issue-list-table-td-title {
        min-width: 16rem;
    }
}

/* Ticket lists: stack number + internes-Ticket badge tightly (only used when is_internal) */
.issue-list-row-number-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    line-height: 1.2;
}
.issue-list-row-number-stack .badge {
    line-height: 1;
    padding: 0.15rem 0.4rem;
}

/* Internes Ticket (is_internal): muted row for users without access (listings) */
.issue-list-row--internal-muted {
    --bs-table-accent-bg: var(--bs-gray-100, #f5f8fa);
    background-color: var(--bs-gray-100, #f5f8fa);
    color: var(--bs-gray-600, #7e8299);
}
.issue-list-row--internal-muted .badge {
    opacity: 0.95;
}

/* Interner Kommentar (issue_replies.is_internal): nur für Admins sichtbar */
.issue-reply--internal {
    background-color: var(--bs-gray-100, #f5f8fa);
}

.issue-reply--internal-hint {
    background-color: var(--bs-gray-100, #f5f8fa);
}

/* Aufgaben: Inline-Edit-Textarea ohne sichtbaren Rahmen, aber mit Innenabstand,
   damit der Text nicht zu nah an der Checkbox klebt. Die Meta-Zeile ("Erstellt: ...")
   bekommt denselben linken Abstand, damit beide bündig fluchten. */
.issue-tasks-section textarea.form-control-flush {
    padding-left: 1rem;
    padding-right: 1rem;
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}

.issue-tasks-section textarea.form-control-flush + .text-muted {
    padding-left: 1rem;
}

/* Aufgaben: Erledigt-Checkbox mit weißem Rahmen, damit sie auf dem
   farbigen Hintergrund (hellblau/rot/grün) gut sichtbar ist. */
.issue-tasks-section .form-check-input {
    border: 1px solid #fff !important;
    background-color: #fff;
}

.issue-tasks-section .form-check-input:checked {
    background-color: var(--bs-success, #50cd89);
    border-color: var(--bs-success, #50cd89) !important;
}

.issue-tasks-section .issue-task-actions {
    flex-wrap: nowrap;
    min-width: 0;
    padding-left: calc(1.75rem + 0.5rem + 1rem);
}

.issue-tasks-section .issue-task-compose-row {
    flex-wrap: nowrap;
}

.issue-reply-actions {
    gap: 0;
}
.issue-reply-actions .btn.btn-icon.btn-sm {
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    padding: 0;
}

/* Project detail: tickets block is the primary focus (same visual language as budgets hero) */
.page-projects-show #project-tickets {
    scroll-margin-top: 5rem;
}
.page-projects-show .page-projects-show__tickets-card {
    border-top: 3px solid var(--bs-primary, #009ef7);
}
.page-projects-show .page-projects-show__tickets-card .card-header {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bs-primary, #009ef7) 6%, transparent) 0%,
        transparent 100%
    );
}

/* Sidebar: admin debug tiles — same footprint as menu buttons; long values clip */
.app-sidebar-debug-tile .app-sidebar-debug-tile__value {
    max-width: 100%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Profile: compact security / login audit list */
.profile-login-audit__item {
    background-color: var(--bs-body-bg, #fff);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}
.profile-login-audit__item:hover {
    background-color: var(--bs-gray-100, #f9f9f9);
}
.profile-login-audit__meta {
    font-size: 0.75rem;
    line-height: 1.35;
}
.profile-login-audit__ua {
    font-size: 0.75rem;
    line-height: 1.35;
    word-break: break-word;
}
.profile-login-audit__ip {
    font-variant-numeric: tabular-nums;
}

/* Page toolbar + card headers: primary actions stay top-right (same idea as issue detail toolbar) */
#kt_app_toolbar .app-toolbar > .d-flex {
    width: 100%;
}
.card .card-header:has(> .card-toolbar) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1rem;
    row-gap: 0.5rem;
}
.card .card-header:has(> .card-toolbar) > .card-toolbar {
    margin-inline-start: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

/* Issue table: async description flyout for ticket title links */
.issue-description-flyout {
    position: fixed;
    z-index: 107;
}
.issue-description-flyout__header {
    background-color: var(--bs-app-header-base-bg-color, var(--bs-body-bg));
    border-bottom: 1px solid var(--bs-app-header-base-border-color, var(--bs-gray-200));
}
.issue-description-flyout__body {
    overflow: hidden;
}
.issue-description-flyout__stats-table {
    table-layout: fixed;
}
.issue-description-flyout__stats-table td:first-child {
    width: 44%;
    white-space: nowrap;
}
.issue-description-flyout__stats-table td:last-child {
    width: 56%;
}
.issue-description-flyout__description {
    white-space: normal;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.issue-description-flyout__stat-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.issue-description-flyout__stats-table td.text-truncate {
    display: table-cell;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* BackOffice scope picker: shared filter flyout for calendar, Gantt and controlling */
.backoffice-scope-flyout-menu {
    min-width: min(100vw - 2rem, 340px);
    max-width: min(100vw - 2rem, 420px);
}
.backoffice-scope-flyout-logo {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.3rem;
    background-color: var(--bs-body-bg);
}
.backoffice-scope-flyout-scroll {
    max-height: min(50vh, 360px);
    overflow-y: auto;
}

/* Timing forms: modal sections and Flatpickr time presets */
.timing-form-modal-dialog {
    max-width: min(96vw, 1120px);
}

.timing-form-modal-dialog.modal-dialog-scrollable {
    max-height: calc(100dvh - 1.5rem);
}

.timing-form-fields--layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.timing-form-fields__row.timing-form-fields--two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    align-items: start;
}

.timing-form-fields__row + .timing-form-fields__row {
    padding-top: 1.75rem;
    border-top: 1px dashed var(--bs-gray-300, #e4e6ef);
}

@media (max-width: 991.98px) {
    .timing-form-fields__row.timing-form-fields--two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.timing-form-fields__row > .timing-form-fields__col > .form-modal-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.timing-form-period-datetime-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
}

.timing-form-period-datetime-row--with-action {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.timing-form-period-datetime-row > .form-control,
.timing-form-period-datetime-row > .input-group {
    width: 100%;
    min-width: 0;
}

.timing-form-period-datetime-row > .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.timing-form-period-datetime-row .issue-timing-input-date,
.timing-form-period-datetime-row .issue-timing-input-time {
    width: 100%;
    max-width: none;
}

.timing-form-period-datetime-row > .input-group {
    flex-wrap: nowrap;
}

.timing-form-period-all-day-btn {
    align-self: stretch;
    height: 100%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.timing-form-period-datetime-action-spacer {
    visibility: hidden;
    pointer-events: none;
}

.flatpickr-calendar {
    z-index: 1065;
}

.my-flatpickr-date-today-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0.5rem 0;
    border-bottom: 1px solid var(--bs-gray-200, #f1f1f4);
}

.my-flatpickr-date-range-panel .flatpickr-day.inRange {
    background: var(--bs-primary-light, #e8f3ff);
    border-color: var(--bs-primary-light, #e8f3ff);
    box-shadow: -5px 0 0 var(--bs-primary-light, #e8f3ff), 5px 0 0 var(--bs-primary-light, #e8f3ff);
    color: var(--bs-primary, #009ef7);
    border-radius: 0;
}

.my-flatpickr-date-range-panel .flatpickr-day.startRange,
.my-flatpickr-date-range-panel .flatpickr-day.endRange {
    background: var(--bs-primary, #009ef7);
    border-color: var(--bs-primary, #009ef7);
    color: var(--bs-white, #fff);
    font-weight: 600;
}

.my-flatpickr-date-range-panel .flatpickr-day.startRange {
    border-radius: 0.475rem 0 0 0.475rem;
}

.my-flatpickr-date-range-panel .flatpickr-day.endRange {
    border-radius: 0 0.475rem 0.475rem 0;
}

.my-flatpickr-date-range-panel .flatpickr-day.startRange.endRange {
    border-radius: 0.475rem;
}

.form-modal-section + .form-modal-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px dashed var(--bs-gray-300, #e4e6ef);
}
.my-flatpickr-time--panel {
    width: 18rem;
}
.my-flatpickr-time-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.5rem;
    border-top: 1px solid var(--bs-gray-200, #f1f1f4);
}
.my-flatpickr-time-preset-btn.btn {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.72rem;
}
.input-group [data-my-flatpickr-time-trigger].input-group-text {
    border: 0;
    box-shadow: none;
}

/* BackOffice Calendar 2 */
.issue-fullcalendar-card > .card-body {
    padding: 0.75rem;
}
.issue-fullcalendar {
    --issue-fc-today-bg: #fff8dd;
}
#issue-fullcalendar .fc {
    --fc-border-color: #e0e0e0 !important;
    --fc-today-bg-color: #fff8dd !important;
}
.issue-fullcalendar .fc {
    --fc-border-color: #e0e0e0;
    --fc-today-bg-color: #fff8dd;
    --fc-highlight-color: rgba(246, 192, 0, 0.2);
    --fc-event-bg-color: rgba(var(--bs-primary-rgb), 0.1);
    --fc-event-border-color: var(--bs-primary);
}
#issue-fullcalendar .fc .fc-day-today,
#issue-fullcalendar .fc .issue-fc-day-today,
#issue-fullcalendar .fc td.fc-day-today,
#issue-fullcalendar .fc th.fc-day-today,
#issue-fullcalendar .fc .fc-timegrid-col.fc-day-today,
#issue-fullcalendar .fc .fc-daygrid-day.fc-day-today,
#issue-fullcalendar .fc .fc-timegrid-col.fc-day-today .fc-timegrid-col-bg,
#issue-fullcalendar .fc .issue-fc-day-today .fc-timegrid-col-bg,
#issue-fullcalendar .fc .fc-col-header-cell.fc-day-today {
    background-color: #fff8dd !important;
}
#issue-fullcalendar .fc .fc-scrollgrid,
#issue-fullcalendar .fc-theme-bootstrap5 .fc-scrollgrid {
    border-collapse: collapse;
    border: none !important;
}
#issue-fullcalendar .fc .fc-scrollgrid-section-body td,
#issue-fullcalendar .fc .fc-scrollgrid-section-body th,
#issue-fullcalendar .fc-theme-bootstrap5 .fc-scrollgrid-section-body td,
#issue-fullcalendar .fc-theme-bootstrap5 .fc-scrollgrid-section-body th {
    border: 1px solid #e0e0e0 !important;
}
#issue-fullcalendar .fc .fc-scrollgrid-section-header,
#issue-fullcalendar .fc .fc-scrollgrid-section-header *,
#issue-fullcalendar .fc table.fc-col-header,
#issue-fullcalendar .fc table.fc-col-header td,
#issue-fullcalendar .fc table.fc-col-header th,
#issue-fullcalendar .fc table.fc-col-header .fc-col-header-cell {
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}
#issue-fullcalendar .fc td.fc-timegrid-axis,
#issue-fullcalendar .fc td.fc-timegrid-axis .fc-timegrid-axis-cushion,
#issue-fullcalendar .fc td.fc-timegrid-axis .fc-scrollgrid-sync-inner {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
}
#issue-fullcalendar .fc .fc-timegrid-slot {
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
}
#issue-fullcalendar .fc .fc-timegrid-divider {
    padding: 0 !important;
}
#issue-fullcalendar .fc .fc-timegrid-divider td {
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: none !important;
    background-color: #e0e0e0 !important;
}
#issue-fullcalendar .fc .fc-timegrid-divider td.fc-theme-bootstrap5-shaded {
    background-color: #e0e0e0 !important;
}
#issue-fullcalendar .fc-list,
#issue-fullcalendar .fc-list-view,
#issue-fullcalendar .fc-theme-bootstrap5 .fc-list,
#issue-fullcalendar .fc-list-table,
#issue-fullcalendar .fc-list-table td,
#issue-fullcalendar .fc-list-table th,
#issue-fullcalendar .fc-list-day th,
#issue-fullcalendar .fc-list-day td,
#issue-fullcalendar .fc-list-event td,
#issue-fullcalendar .fc-list-event th {
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}
#issue-fullcalendar .fc-list-table tbody > tr:first-child th {
    border-top: none !important;
}
#issue-fullcalendar .fc-dayGridMonth-view .fc-scrollgrid-sync-table tbody tr {
    min-height: 7.5rem;
}
#issue-fullcalendar .fc-dayGridMonth-view .fc-daygrid-day,
#issue-fullcalendar .fc-dayGridMonth-view .fc-daygrid-day-frame {
    min-height: 7.5rem;
}
#issue-fullcalendar .fc-dayGridMonth-view .fc-daygrid-body-natural .fc-daygrid-day-events,
#issue-fullcalendar .fc-dayGridMonth-view .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 5.5rem;
}
.issue-fullcalendar .fc-event {
    cursor: pointer;
    border: none !important;
    border-radius: 0.45rem;
    padding: 0.05rem 0.2rem;
}
@media (max-width: 767.98px) {
    #issue-fullcalendar-title { font-size: 1rem; }
}

/* Maintenance page */
.maintenance-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 158, 247, 0.22), transparent 28rem),
        radial-gradient(circle at 85% 80%, rgba(80, 205, 137, 0.20), transparent 26rem),
        linear-gradient(135deg, #e9f8ff 0%, #f7fbff 50%, #eef8f6 100%);
    color: #1f2937;
    overflow: hidden;
}

.maintenance-page__shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.maintenance-page__card {
    position: relative;
    width: min(100%, 38rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: clamp(2.5rem, 8vw, 4rem) clamp(2rem, 6vw, 3.5rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 2rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    box-shadow: 0 2rem 5rem rgba(15, 23, 42, 0.12), 0 0.5rem 1.5rem rgba(0, 158, 247, 0.06);
    backdrop-filter: blur(1.5rem);
}

.maintenance-page__logo {
    width: min(13rem, 70%);
    height: auto;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.maintenance-page__icon {
    position: relative;
    z-index: 2;
    width: 7rem;
    height: 7rem;
    margin-bottom: 1.75rem;
    animation: maint-icon-float 5s ease-in-out infinite alternate;
}

.maintenance-page__icon svg {
    width: 100%;
    height: 100%;
}

@keyframes maint-icon-float {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-0.6rem); }
}

.maintenance-page__badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(0, 158, 247, 0.1);
    color: #0077b6;
    box-shadow: inset 0 0 0 1px rgba(0, 158, 247, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintenance-page__badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #009ef7;
    animation: maint-pulse 1.8s ease-in-out infinite;
}

@keyframes maint-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.maintenance-page__title {
    position: relative;
    z-index: 2;
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.maintenance-page__text {
    position: relative;
    z-index: 2;
    margin: 0 0 2rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.maintenance-page__dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.maintenance-page__dots span {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #009ef7, #50cd89);
    opacity: 0.5;
    animation: maint-dot 1.4s ease-in-out infinite;
}

.maintenance-page__dots span:nth-child(2) { animation-delay: 0.2s; }
.maintenance-page__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes maint-dot {
    0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
    40%           { transform: scale(1.5); opacity: 1; }
}

.maintenance-page__glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.maintenance-page__glow--one {
    width: 18rem;
    height: 18rem;
    right: -8rem;
    top: -8rem;
    background: radial-gradient(circle, rgba(0, 158, 247, 0.18), transparent 70%);
    animation: glow-drift-one 10s ease-in-out infinite alternate;
}

.maintenance-page__glow--two {
    width: 16rem;
    height: 16rem;
    left: -7rem;
    bottom: -7rem;
    background: radial-gradient(circle, rgba(80, 205, 137, 0.18), transparent 70%);
    animation: glow-drift-two 14s ease-in-out infinite alternate;
}

@keyframes glow-drift-one {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(1.5rem, 1.5rem); }
}

@keyframes glow-drift-two {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-1.5rem, -1.5rem); }
}

/* ── Maintenance login notice (inside login card) ──────────────────────── */
.maintenance-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.75rem;
    padding: 1rem 1.15rem;
    border-radius: 0.95rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
    color: #3f4254;
}

.maintenance-login-notice__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 199, 0, 0.14);
    color: #b58100;
}

.maintenance-login-notice__icon span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.maintenance-login-notice__content {
    min-width: 0;
}

.maintenance-login-notice__eyebrow {
    margin-bottom: 0.15rem;
    color: #a1a5b7;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintenance-login-notice__title {
    color: #181c32;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.maintenance-login-notice__sub {
    margin-top: 0.25rem;
    color: #7e8299;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Maintenance admin flash bar ───────────────────────────────────────── */
.maintenance-admin-flash {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(90deg, #fef3c7, #fefce8);
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.maintenance-admin-flash__container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.55rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #92400e;
}

.maintenance-admin-flash__text {
    flex: 1;
}

.maintenance-admin-flash__container .btn-warning {
    flex-shrink: 0;
    white-space: nowrap;
}


/* ── App-Config tree admin ─────────────────────────────────────────────── */
.app-config-tree {
    min-height: 480px;
}

.app-config-tree-layout {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.app-config-instance-scope-panel {
    flex: 0 0 auto;
}

.app-config-instance-scope {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.125rem 0.125rem 0.125rem 0;
}

.app-config-instance-scope .nav-item {
    min-width: 0;
}

#app_config_instance_scope .nav-link {
    border: none;
    background: transparent;
    position: relative;
    width: 40px;
    height: 40px;
    text-align: center;
}

#app_config_instance_scope .app-config-instance-scope__badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    font-size: 0.65rem;
    line-height: 1.1rem;
}

#app_config_instance_scope .symbol-logo-chip {
    transition: border-color 0.15s ease;
}

#app_config_instance_scope .nav-link:not(.active) .symbol-logo-chip {
    border-color: var(--bs-gray-400) !important;
}

#app_config_instance_scope .nav-link:not(.active):hover .symbol-logo-chip {
    border-color: var(--bs-primary) !important;
}

@media (max-width: 575.98px) {
    .app-config-tree-layout {
        gap: 0.5rem;
    }

    #app_config_instance_scope .nav-link {
        width: 35px;
        height: 35px;
    }

}

.app-config-editor-card {
    overflow: hidden;
}

.app-config-editor {
    min-height: 480px;
}

.app-config-editor__placeholder {
    min-height: 480px;
    text-align: center;
    padding: 2rem;
}

.app-config-editor__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    background-color: var(--bs-primary-light, #f1faff);
    background-image:
        linear-gradient(
            135deg,
            rgba(241, 250, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.9) 100%
        ),
        url("../myweswim/flyout_bg3.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    border-bottom: 1px solid var(--bs-gray-200, #f1f1f4);
}

.app-config-editor__toolbar {
    width: 100%;
}

.app-config-editor__title {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    min-width: 0;
}

.app-config-editor__scope-logo {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.app-config-editor__heading {
    word-break: break-word;
}

.app-config-editor__path-row {
    width: 100%;
}

.app-config-editor__path {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 0.35rem 0.6rem;
    color: var(--bs-gray-700, #4b5675);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--bs-gray-200, #f1f1f4);
    border-radius: 0.475rem;
    white-space: normal;
    word-break: break-word;
}

.app-config-editor__path-copy {
    margin-top: 0.1rem;
}

.app-config-editor__description {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    color: var(--bs-gray-700, #4b5675);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--bs-gray-200, #f1f1f4);
    border-radius: 0.75rem;
}

.app-config-editor__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
}

.app-config-editor__section {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--bs-gray-200, #f1f1f4);
    border-radius: 0.85rem;
}

.app-config-editor__section--muted {
    background: var(--bs-gray-100, #f9f9f9);
}

.app-config-editor__input {
    max-width: 520px;
}

@media (max-width: 991.98px) {
    .app-config-editor__toolbar .d-flex {
        justify-content: flex-start !important;
    }
}

.process-designer-node-picker {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    border: 1px dashed var(--bs-gray-300);
    border-radius: 0.85rem;
    background: var(--bs-gray-100);
    cursor: grab;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.process-designer-node-picker .symbol {
    width: 28px;
    height: 28px;
}

.process-designer-node-picker .symbol-label {
    width: 28px;
    height: 28px;
}

.process-designer-node-picker .symbol.me-3 {
    margin-right: 1rem !important;
}

.process-designer-node-picker:hover {
    border-color: var(--bs-primary);
    background: var(--bs-primary-light);
}

.process-designer-canvas {
    position: relative;
    height: 620px;
    overflow: auto;
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    background-color: var(--bs-gray-100);
    background-image:
        linear-gradient(var(--bs-gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--bs-gray-200) 1px, transparent 1px);
    background-size: 32px 32px;
    cursor: grab;
}

.process-designer-canvas.is-panning {
    cursor: grabbing;
}

.process-designer-canvas.is-drop-target {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-light);
}

.process-designer-viewport {
    position: relative;
    width: 4000px;
    height: 2000px;
    zoom: var(--process-designer-zoom, 1);
}

.process-designer-settings-body {
    max-height: 620px;
    overflow-y: auto;
}

.process-designer-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.process-designer-lines path {
    fill: none;
    stroke: var(--bs-primary);
    stroke-width: 3;
    stroke-linecap: round;
    cursor: pointer;
    pointer-events: stroke;
}

.process-designer-lines path.is-selected {
    stroke: var(--bs-danger);
    stroke-width: 5;
}

.process-designer-lines .process-designer-lines__preview {
    stroke: var(--bs-success);
    stroke-dasharray: 8 6;
}

.process-designer-node {
    position: absolute;
    width: 190px;
    min-height: 92px;
    padding: 0.85rem;
    border: 1px solid var(--bs-gray-300);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.08);
    cursor: grab;
    opacity: 0.78;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.process-designer-node > .d-flex.align-items-center.mb-3 {
    margin-bottom: 0.5rem !important;
}

.process-designer-node.is-selected {
    border-color: var(--bs-primary);
    box-shadow: 0 0.35rem 1.4rem rgba(0, 158, 247, 0.18);
}

.process-designer-node.is-dragging {
    cursor: grabbing;
    z-index: 5;
    opacity: 0.78;
}

.process-designer-node.is-connecting {
    border-color: var(--bs-success);
    box-shadow: 0 0.35rem 1.4rem rgba(80, 205, 137, 0.22);
}

.process-designer-connector {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px var(--bs-primary);
    transform: translateY(-50%);
    cursor: crosshair;
}

.process-designer-connector:hover {
    background: var(--bs-success);
    box-shadow: 0 0 0 1px var(--bs-success);
}

.process-designer-canvas.is-connecting-mode .process-designer-connector--input {
    background: var(--bs-success);
    box-shadow: 0 0 0 1px var(--bs-success), 0 0 0 5px rgba(80, 205, 137, 0.16);
}

.process-designer-connector--input {
    left: -8px;
}

.process-designer-connector--output {
    right: -8px;
}

.process-designer-node--start {
    top: 55px;
    left: 60px;
}

.process-designer-node--middle {
    top: 55px;
    left: 360px;
}

.process-designer-node--top {
    top: 20px;
    right: 60px;
}

.process-designer-node--bottom {
    top: 205px;
    right: 60px;
}

@media (max-width: 1199.98px) {
    .process-designer-canvas {
        height: 760px;
    }

    .process-designer-settings-body {
        max-height: none;
    }
}

@media print {
    .billing-print-toolbar,
    .d-print-none {
        display: none !important;
    }
}

.billing-print-preview__content {
    max-width: 1200px;
    margin: 0 auto;
}

:root,
[data-bs-theme=light] {
    --si-text: #292929;
    --si-green: #76a835;
    --si-green-hover: #5f8a2a;
    --si-mark-green: #8dc63f;
    --si-orange: #f8971d;
    --si-magenta: #ed0676;
    --si-blue: #007fb4;
    --si-teal: #00914a;
    --si-bg: #F8F8F4;
    --si-page: #F3F6F9;
    --si-card: #ffffff;
    --si-border: #e4e4dc;
    --si-radius: 10px;
    --bs-primary: #76a835;
    --bs-primary-rgb: 118, 168, 53;
    --bs-primary-active: #5f8a2a;
    --bs-primary-light: rgba(118, 168, 53, 0.12);
    --bs-link-color: #007fb4;
    --bs-link-hover-color: #005f87;
    --bs-body-color: #292929;
    --bs-body-bg: #F8F8F4;
    --bs-body-font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

body,
body.app-default,
.brand-guest {
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    color: var(--si-text);
    background-color: var(--si-bg);
}

h1, h2, h3, h4, h5, h6,
.page-heading,
.card-title {
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    color: var(--si-text);
}

.btn-primary {
    --bs-btn-bg: var(--si-green);
    --bs-btn-border-color: var(--si-green);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: var(--si-green-hover);
    --bs-btn-hover-border-color: var(--si-green-hover);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--si-green-hover);
    --bs-btn-active-border-color: var(--si-green-hover);
    --bs-btn-active-color: #ffffff;
    background-color: var(--si-green);
    border-color: var(--si-green);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover:not(.btn-active),
.btn.btn-primary:focus:not(.btn-active),
.btn.btn-primary:active:not(.btn-active) {
    background-color: var(--si-green-hover);
    border-color: var(--si-green-hover);
    color: #ffffff;
}

.btn-light-primary,
.btn-outline.btn-light-primary,
.btn.btn-light-primary {
    --bs-btn-color: var(--si-green);
    --bs-btn-bg: rgba(118, 168, 53, 0.12);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--si-green);
    --bs-btn-hover-border-color: var(--si-green);
    color: var(--si-green);
    background-color: rgba(118, 168, 53, 0.12);
    border-color: transparent;
}

.btn-light-primary:hover,
.btn.btn-light-primary:hover {
    color: #ffffff;
    background-color: var(--si-green);
}

.text-primary {
    color: var(--si-green);
}

.bg-light-primary,
.symbol-label.bg-light-primary {
    background-color: rgba(118, 168, 53, 0.12);
}

.link-primary,
a.link-primary {
    color: var(--si-blue);
}

.link-primary:hover,
a.link-primary:hover {
    color: #005f87;
}

.form-check-input:checked {
    background-color: var(--si-green);
    border-color: var(--si-green);
}

.form-control:focus,
.form-control-solid:focus {
    border-color: var(--si-green);
    box-shadow: 0 0 0 0.2rem rgba(118, 168, 53, 0.18);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--si-blue);
    outline-offset: 2px;
}

.card,
.brand-card {
    background-color: var(--si-card);
    border: 1px solid var(--si-border);
    border-radius: var(--si-radius);
    box-shadow: none;
}

.brand-logo-link {
    display: inline-flex;
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo__img {
    display: block;
    width: auto;
    height: 100%;
}

.brand-logo--auth {
    height: 56px;
    margin-bottom: 5rem;
    padding: 4px;
}

.brand-logo--aside {
    height: 36px;
}

.portal-aside-secondary .brand-logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.75rem;
    text-decoration: none;
}

.brand-logo-claim {
    margin-top: -0.2rem;
    width: 100%;
    padding-left: 3.4rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--si-text);
}

.brand-logo--mark {
    width: 36px;
    height: 36px;
}

.brand-logo--mark .brand-logo__img {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transition: transform 0.7s ease-in-out;
}

.portal-aside-logo:hover .brand-logo__img,
.brand-logo--mark:hover .brand-logo__img {
    transform: rotate(1turn);
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo--mark .brand-logo__img {
        transition: none;
    }

    .brand-logo--mark:hover .brand-logo__img {
        transform: none;
    }
}

.brand-guest {
    background-color: var(--si-bg);
}

.brand-auth {
    align-items: center;
    justify-content: flex-start;
    padding-top: 9rem;
}

.brand-stripe-slot {
    min-height: 36px;
    height: 6vh;
    max-height: 64px;
}

.brand-stripe {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}

.brand-stripe svg {
    display: block;
    width: 100%;
    height: 100%;
}

.portal-body,
.portal-page {
    background-color: var(--si-page);
}

.portal-page {
    min-height: 100vh;
}

.portal-aside {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 105;
    display: flex;
    width: 340px;
    overflow: visible;
    background-color: var(--si-card);
    border-right: 1px solid var(--si-border);
    box-shadow: none;
}

.portal-aside-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 80px;
    width: 80px;
    padding: 1.5rem 0;
    background-color: var(--si-card);
    border-right: 1px solid var(--si-border);
}

.portal-aside-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 2rem;
    padding: 4px;
}

.portal-aside-logo .brand-logo--mark {
    width: 36px;
    height: 36px;
}

.portal-aside-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem;
    width: 100%;
}

.portal-aside-nav .nav {
    align-items: center;
    width: 100%;
}

.portal-aside-nav .nav-link {
    width: 44px;
    height: 44px;
}

.portal-aside-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.portal-aside-footer .portal-log-work-btn {
    width: 44px;
    height: 44px;
}

.portal-aside-secondary {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 2rem 0.75rem 1.5rem;
    overflow-y: auto;
}

.portal-aside-secondary .tab-content,
.portal-aside-secondary .tab-pane {
    width: 100%;
    min-width: 0;
}

.portal-aside-secondary .tab-pane:not(.active) {
    display: none;
}

.portal-nav-section {
    padding: 0.85rem 1.25rem 0.35rem;
    color: var(--si-text);
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 600;
}

.portal-nav-section:first-child {
    padding-top: 0;
}

.portal-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--si-radius);
    text-decoration: none;
}

.portal-nav-item .symbol {
    position: relative;
    overflow: visible;
}

.portal-nav-tone-green {
    --si-nav-tone: var(--si-green);
    --si-nav-tone-rgb: 118, 168, 53;
    --si-nav-tone-hover: var(--si-green-hover);
    --si-nav-tone-hover-rgb: 95, 138, 42;
}

.portal-nav-tone-orange {
    --si-nav-tone: var(--si-orange);
    --si-nav-tone-rgb: 248, 151, 29;
    --si-nav-tone-hover: color-mix(in srgb, var(--si-orange) 78%, var(--si-text));
    --si-nav-tone-hover-rgb: 242, 105, 33;
}

.portal-nav-tone-magenta {
    --si-nav-tone: var(--si-magenta);
    --si-nav-tone-rgb: 237, 6, 118;
    --si-nav-tone-hover: color-mix(in srgb, var(--si-magenta) 78%, var(--si-text));
    --si-nav-tone-hover-rgb: 183, 0, 91;
}

.portal-nav-tone-blue {
    --si-nav-tone: var(--si-blue);
    --si-nav-tone-rgb: 0, 127, 180;
    --si-nav-tone-hover: #005f87;
    --si-nav-tone-hover-rgb: 0, 95, 135;
}

.portal-body {
    --bs-link-color: var(--si-nav-tone, var(--si-green));
    --bs-link-color-rgb: var(--si-nav-tone-rgb, 118, 168, 53);
    --bs-link-hover-color: var(--si-nav-tone-hover, var(--si-green-hover));
    --bs-link-hover-color-rgb: var(--si-nav-tone-hover-rgb, 95, 138, 42);
    --bs-text-primary: var(--si-nav-tone, var(--si-green));
}

.portal-body .link-primary,
.portal-body a.link-primary,
.portal-body .breadcrumb-item a {
    color: var(--si-nav-tone, var(--si-green));
}

.portal-body .link-primary:hover,
.portal-body a.link-primary:hover,
.portal-body .breadcrumb-item a:hover,
.portal-body .text-hover-primary:hover,
.portal-body .text-hover-primary:hover i {
    color: var(--si-nav-tone-hover, var(--si-green-hover)) !important;
}

.portal-body .nav-line-tabs .nav-item .nav-link.active,
.portal-body .nav-line-tabs .nav-item .nav-link:hover:not(.disabled),
.portal-body .text-active-primary.active,
.portal-body .text-active-primary.active i {
    color: var(--si-nav-tone, var(--si-green)) !important;
    border-bottom-color: var(--si-nav-tone, var(--si-green));
}

.portal-nav-item .symbol-label,
.portal-tone-symbol .symbol-label {
    background-color: color-mix(in srgb, var(--si-nav-tone) 14%, #fff);
}

.portal-nav-item .symbol-label i,
.portal-tone-symbol .symbol-label i {
    color: var(--si-nav-tone);
}

.portal-nav-item .symbol .badge {
    min-width: 0;
    height: auto;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
    color: var(--si-nav-tone);
    background-color: color-mix(in srgb, var(--si-nav-tone) 16%, #fff);
}

.portal-aside-nav-btn.active,
.portal-aside-nav-btn.btn-active-light.active {
    background-color: transparent !important;
}

.portal-aside-nav-btn.active i,
.portal-aside-nav-btn:hover i {
    color: var(--si-nav-tone);
}

.portal-aside-nav-overview.btn,
.portal-aside-nav-overview.btn.active,
.portal-aside-nav-overview.btn:hover,
.portal-aside-nav-overview i,
.portal-aside-nav-overview.active i,
.portal-aside-nav-overview:hover i {
    color: var(--si-green) !important;
}

.portal-aside-nav-overview-item {
    margin-bottom: 1.5rem !important;
}

.portal-nav-item:hover,
.portal-nav-item.active {
    background-color: var(--si-page);
}

.portal-aside-toggle {
    margin-bottom: 1.35rem;
    z-index: 2;
}

.portal-aside-toggle > .rotate-180 {
    display: inline-flex;
}

.portal-wrapper {
    margin-left: 340px;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .portal-aside,
    .portal-wrapper {
        transition: width 0.3s ease, margin-left 0.3s ease;
    }

    [data-kt-aside-minimize="on"] .portal-aside {
        width: 80px;
    }

    [data-kt-aside-minimize="on"] .portal-aside-secondary {
        display: none;
        width: 0;
        padding: 0;
        overflow: hidden;
        flex: 0 0 0;
        min-width: 0;
        pointer-events: none;
    }

    [data-kt-aside-minimize="on"] .portal-wrapper {
        margin-left: 80px;
    }
}

.portal-header {
    padding: 1.5rem 0 0.75rem;
    background-color: var(--si-card);
    border-bottom: 1px solid var(--si-border);
}

.portal-content {
    padding: 1.5rem 0 2.5rem;
    background-color: transparent;
}

.portal-footer {
    margin-top: auto;
    background-color: transparent;
    border-top: 0;
}

.portal-footer-invent {
    color: var(--si-green);
}

.portal-footer .menu-link .portal-footer-invent {
    color: var(--si-green);
}

.portal-footer-tagline {
    margin-left: 0.3rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--si-text);
}

.widget-mixed-progress {
    overflow: hidden;
    border: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--si-card);
}

.widget-mixed-progress .card-body {
    flex: 1 1 auto;
    min-height: 0;
}

.widget-mixed-progress .js-mixed-progress-chart {
    min-height: 150px;
}

.widget-mixed-progress-bg {
    background: radial-gradient(circle at 12% 18%, #00b0f0 0%, #1270b7 48%, #213c56 100%) !important;
}

.widget-mixed-progress-stats {
    flex: 0 0 auto;
    z-index: 1;
    background-color: var(--si-card);
}

.business-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--si-card);
    border: 1px solid var(--si-border);
    border-radius: var(--si-radius);
    overflow: hidden;
}

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

.business-logo--sm {
    width: 32px;
    height: 32px;
    padding: 3px;
}

.business-logo--md {
    width: 56px;
    height: 56px;
    padding: 6px;
}

.business-logo--lg {
    width: 88px;
    height: 88px;
    padding: 8px;
}

.portal-stat-tile {
    transition: background-color 0.15s ease;
}

.portal-stat-tile:hover {
    background-color: var(--si-page, #f8f8f4);
}

.portal-progress .progress-bar {
    background-color: var(--si-green);
}

.w-10 { width: 10% !important; }
.w-20 { width: 20% !important; }
.w-30 { width: 30% !important; }
.w-40 { width: 40% !important; }
.w-80 { width: 80% !important; }
.w-100 { width: 100% !important; }

.w-60 {
    width: 60% !important;
}

.w-70 {
    width: 70% !important;
}

.w-90 {
    width: 90% !important;
}

.portal-log-work-btn,
.portal-log-work-btn:hover,
.portal-log-work-btn:focus,
.portal-log-work-btn:active {
    background-color: transparent !important;
}

.portal-log-work-btn i,
.portal-log-work-btn:hover i,
.portal-log-work-btn:focus i,
.portal-log-work-btn:active i {
    color: var(--si-blue) !important;
}

.widget-chart-card-canvas {
    height: 280px;
}

@media (max-width: 991.98px) {
    .portal-wrapper {
        margin-left: 0;
    }
}

