.flowkv-module {
    min-width: 0;
    padding-top: 18px;
}

.flowkv-header-card {
    position: static;
    top: auto;
    z-index: auto;
    isolation: auto;
    transform: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.flowkv-header-card::before {
    content: none;
    display: none;
}

.flowkv-filter-card {
    position: static;
    top: auto;
    z-index: auto;
    isolation: auto;
    transform: none;
}

.flowkv-filter-card::before {
    content: none;
    display: none;
}

.flowkv-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(360px, 620px)
        156px
        38px;
    align-items: center;
    gap: 10px;
    justify-content: start;
}

.flowkv-filter-search,
.flowkv-filter-favorites,
.flowkv-filter-refresh {
    min-width: 0;
}

.flowkv-filter-search {
    width: min(620px, 100%);
}

.flowkv-refresh-btn {
    display: inline-grid;
    place-items: center;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0;
    aspect-ratio: 1 / 1;
}

.flowkv-refresh-btn:hover,
.flowkv-refresh-btn:focus,
.flowkv-refresh-btn:focus-visible,
.flowkv-refresh-btn:active,
.flowkv-refresh-btn.is-loading {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

.flowkv-refresh-btn.is-loading i {
    animation: flowkv-spin .75s linear infinite;
}

@keyframes flowkv-spin {
    to {
        transform: rotate(360deg);
    }
}

.flowkv-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.flowkv-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 21px;
    background: #e7f0ff;
    color: #0d6efd;
}

.flowkv-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}

.flowkv-card .template-title,
.flowkv-card-title {
    font-weight: 600 !important;
}

.flowkv-card {
    min-width: 0;
    overflow: hidden;
}

.flowkv-card .template-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
}

.flowkv-card .template-icon {
    position: relative;
    overflow: visible;
}

.flowkv-icon-status-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .16);
}

.flowkv-icon-status-badge i {
    line-height: 1;
}

.flowkv-card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.flowkv-card .template-title {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.flowkv-header-card .card-info {
    font-size: 12px;
}

.flowkv-header-meta,
.flowkv-card-meta,
.flowkv-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.flowkv-quality-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.flowkv-quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.flowkv-quality-badge.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.flowkv-quality-badge.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.flowkv-quality-badge.is-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.flowkv-abbrev-detail-list {
    display: grid;
    gap: 6px;
}

.flowkv-abbrev-detail-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.flowkv-abbrev-detail-item strong {
    color: #1d4ed8;
    font-weight: 900;
}

.flowkv-framework-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 8px;
    padding: 5px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.flowkv-framework-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowkv-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.flowkv-pill-icon {
    width: 26px;
    min-width: 26px;
    padding: 0;
    line-height: 1;
}

.flowkv-favorite-switch {
    display: grid;
    gap: 4px;
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 3px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    align-items: stretch;
}

.flowkv-favorite-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flowkv-favorite-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.flowkv-favorite-option:hover {
    color: #0d6efd;
}

.flowkv-favorite-option.is-active {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .12);
}

.flowkv-card-badges {
    display: inline-flex;
    align-items: center;
    align-self: start;
    gap: 6px;
    flex: 0 0 auto;
    justify-self: end;
    margin-right: 6px;
    max-width: 30px;
}

.flowkv-favorite-btn {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.flowkv-favorite-btn:hover,
.flowkv-favorite-btn.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0d6efd;
    transform: none;
}

.flowkv-detail-favorite-btn.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0d6efd;
}

.flowkv-module .card-action-btn,
.flowkv-detail-actions .btn {
    transform: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}

.flowkv-module .card-action-btn:active,
.flowkv-module .card-action-btn:focus,
.flowkv-module .card-action-btn:focus-visible,
.flowkv-detail-actions .btn:active,
.flowkv-detail-actions .btn:focus,
.flowkv-detail-actions .btn:focus-visible {
    transform: none !important;
}

.flowkv-module .flowkv-pdf-btn,
.flowkv-module .flowkv-info-btn,
.flowkv-module .flowkv-pdf-btn:visited,
.flowkv-module .flowkv-info-btn:visited,
.flowkv-module .flowkv-pdf-btn:active,
.flowkv-module .flowkv-info-btn:active,
.flowkv-module .flowkv-pdf-btn:focus,
.flowkv-module .flowkv-info-btn:focus,
.flowkv-module .flowkv-pdf-btn:focus-visible,
.flowkv-module .flowkv-pdf-btn:hover,
.flowkv-module .flowkv-info-btn:hover,
.flowkv-module .flowkv-info-btn:focus-visible {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    box-shadow: none !important;
}

.flowkv-detail-actions .btn-outline-primary,
.flowkv-detail-actions .btn-outline-primary:active,
.flowkv-detail-actions .btn-outline-primary:focus,
.flowkv-detail-actions .btn-outline-primary:focus-visible {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.flowkv-detail-actions .btn-outline-secondary,
.flowkv-detail-actions .btn-outline-secondary:active,
.flowkv-detail-actions .btn-outline-secondary:focus,
.flowkv-detail-actions .btn-outline-secondary:focus-visible {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #334155 !important;
}

.flowkv-status-manual {
    background: #eef2ff;
    color: #4338ca;
}

.flowkv-status-parsed {
    background: #dcfce7;
    color: #15803d;
}

.flowkv-status-needs_review {
    background: #fff7ed;
    color: #c2410c;
}

.flowkv-status-inactive {
    background: #f1f5f9;
    color: #475569;
}

.flowkv-status-error {
    background: #fee2e2;
    color: #b91c1c;
}

.flowkv-card-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.flowkv-special-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.flowkv-special-notice a {
    color: #0d6efd;
    font-weight: 900;
    text-decoration: none;
}

.flowkv-special-notice a:hover,
.flowkv-special-notice a:focus-visible {
    text-decoration: underline;
}

.flowkv-modal-dialog {
    max-width: min(1180px, calc(100vw - 32px));
}

.flowkv-detail-modal {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #f6f8fb;
}

.flowkv-detail-modal-header {
    min-height: 58px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

@media (max-width: 920px) {
    .flowkv-filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 176px);
    }

    .flowkv-filter-search,
    .flowkv-filter-favorites {
        grid-column: 1 / -1;
        width: 100%;
    }

    .flowkv-filter-refresh {
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .flowkv-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .flowkv-filter-search,
    .flowkv-filter-favorites,
    .flowkv-filter-refresh {
        grid-column: 1 / -1;
    }

    .flowkv-refresh-btn {
        width: 38px !important;
    }
}

.flowkv-transfer-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(15, 23, 42, .24);
}

.flowkv-transfer-modal.flowkv-transfer-modal-top {
    z-index: 1075;
}

.modal-backdrop.flowkv-transfer-backdrop-top {
    z-index: 1070;
}

.flowkv-transfer-content .modal-header {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.flowkv-transfer-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.flowkv-transfer-summary,
.flowkv-transfer-conflicts {
    display: grid;
    gap: 8px;
}

.flowkv-transfer-summary-row,
.flowkv-transfer-conflict {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.flowkv-transfer-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.flowkv-transfer-summary-row span,
.flowkv-transfer-conflict span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.flowkv-transfer-summary-row strong {
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}

.flowkv-transfer-note {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid #c7dbf7;
    border-radius: 8px;
    background: #eef6ff;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.flowkv-transfer-conflicts {
    margin-top: 12px;
}

.flowkv-transfer-conflict {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.45;
}

.flowkv-transfer-conflict-label {
    margin-bottom: 4px;
    color: #9a3412;
    font-weight: 800;
}

#flowKvDetailsBody {
    padding: 0;
    background: #f6f8fb;
}

.flowkv-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.flowkv-detail-kicker {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.flowkv-detail-name {
    margin: 4px 0 10px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: 0;
}

.flowkv-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flowkv-detail-meta span {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 750;
}

.flowkv-detail-actions {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
    align-content: start;
}

.flowkv-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 16px;
    padding: 16px;
}

.flowkv-detail-main,
.flowkv-detail-side {
    min-width: 0;
}

.flowkv-detail-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.flowkv-section-head,
.flowkv-side-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.flowkv-section-head {
    padding: 13px 14px;
    margin-bottom: 10px;
}

.flowkv-side-panel {
    padding: 12px;
}

.flowkv-section-title {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
}

.flowkv-collapse-panel {
    padding: 0;
    overflow: hidden;
}

.flowkv-collapse-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
}

.flowkv-collapse-head::-webkit-details-marker {
    display: none;
}

.flowkv-collapse-head .flowkv-section-title {
    margin-bottom: 0;
}

.flowkv-collapse-panel[open] .flowkv-salary-toggle {
    transform: rotate(90deg);
}

.flowkv-collapse-value {
    margin-left: auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.flowkv-collapse-body {
    padding: 0 12px 10px;
    border-top: 1px solid #eef2f7;
}

.flowkv-info-row {
    display: grid;
    grid-template-columns: minmax(94px, .75fr) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #eef2f7;
}

.flowkv-info-row > * {
    min-width: 0;
}

.flowkv-info-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowkv-info-row:first-of-type {
    border-top: 0;
}

.flowkv-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.flowkv-warning-list {
    display: grid;
    gap: 8px;
}

.flowkv-warning-item {
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    padding: 10px 12px;
    font-size: 13px;
}

.flowkv-diagnostic-list {
    display: grid;
    gap: 9px;
}

.flowkv-diagnostic-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fbfdff;
}

.flowkv-diagnostic-item > i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    color: #64748b;
    font-size: 16px;
}

.flowkv-diagnostic-ok > i {
    color: #16a34a;
}

.flowkv-diagnostic-warn > i {
    color: #d97706;
}

.flowkv-diagnostic-error > i {
    color: #dc2626;
}

.flowkv-diagnostic-detail,
.flowkv-diagnostic-source {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.flowkv-diagnostic-source {
    max-height: 4.2em;
    overflow: hidden;
}

.flowkv-calculator {
    display: grid;
    grid-template-columns: minmax(120px, auto) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    margin-bottom: 10px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fbff;
}

.flowkv-calculator-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.flowkv-calculator-copy span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.flowkv-calculator-copy strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.flowkv-calculator-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 7px 4px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
}

.flowkv-hours-input {
    width: 68px;
    min-height: 30px;
    padding: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    text-align: right;
    font-size: 15px;
    font-weight: 900;
    box-shadow: none !important;
}

.flowkv-hours-input:focus {
    box-shadow: none !important;
    outline: none;
}

.flowkv-salary-groups {
    display: grid;
    gap: 10px;
}

.flowkv-salary-group {
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.flowkv-salary-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    list-style: none;
    min-height: 44px;
}

.flowkv-salary-group-head::-webkit-details-marker {
    display: none;
}

.flowkv-salary-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #64748b;
    transition: transform .15s ease;
}

.flowkv-salary-group-title {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowkv-salary-group[open] .flowkv-salary-toggle {
    transform: rotate(90deg);
}

.flowkv-salary-count {
    margin-left: auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.flowkv-salary-group:not([open]) .flowkv-salary-group-head {
    border-bottom: 0;
}

.flowkv-salary-table-wrap {
    overflow-x: auto;
    background: #ffffff;
}

.flowkv-salary-table {
    width: 100%;
    min-width: 660px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.flowkv-salary-table th,
.flowkv-salary-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.flowkv-salary-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.flowkv-salary-subgroup-row td {
    padding: 0;
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
    background: #eff6ff;
}

.flowkv-salary-subgroup-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    text-align: left;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.flowkv-salary-subgroup-toggle i {
    font-size: 12px;
    transition: transform .14s ease;
}

.flowkv-salary-subgroup-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.flowkv-salary-subgroup-toggle small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.flowkv-salary-subgroup-item.is-collapsed {
    display: none;
}

.flowkv-salary-table tr:last-child td {
    border-bottom: 0;
}

.flowkv-salary-main {
    display: inline-block;
    min-width: 0;
    color: #111827;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
}

.flowkv-salary-label {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.flowkv-step-info {
    display: inline-grid;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #2563eb;
    background: transparent;
    cursor: help;
}

.flowkv-step-info i {
    font-size: 12px;
    line-height: 1;
}

.flowkv-calculated-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 82px;
    min-height: 28px;
    padding: 3px 0;
    color: #0f766e;
    font-weight: 900;
    white-space: nowrap;
}

.flowkv-fulltime-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.flowkv-fulltime-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
}

.flowkv-muted {
    color: #64748b;
}

.flowkv-salary-empty {
    padding: 10px;
}

.flowkv-salary-chip {
    border-radius: 8px;
    min-height: 28px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.flowkv-salary-chip:hover {
    transform: none;
}

.flowkv-salary-chip.is-readonly,
.flowkv-salary-chip:disabled {
    border-color: #d7e2ef !important;
    background: #f8fafc !important;
    color: #64748b !important;
    opacity: 1;
    cursor: default;
    box-shadow: none !important;
}

.flowkv-source-list {
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.flowkv-source-item {
    display: grid;
    gap: 2px;
    padding: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.flowkv-source-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
    transform: none;
}

body.darkmode .flowkv-title,
body.darkmode .flowkv-card .template-title,
body.darkmode .flowkv-detail-name,
body.darkmode .flowkv-section-title,
body.darkmode .flowkv-salary-group-title {
    color: #f8fafc;
}

body.darkmode .flowkv-detail-modal,
body.darkmode #flowKvDetailsBody {
    background: #0f172a;
}

body.darkmode .flowkv-detail-modal-header,
body.darkmode .flowkv-detail-hero,
body.darkmode .flowkv-section-head,
body.darkmode .flowkv-side-panel,
body.darkmode .flowkv-salary-group,
body.darkmode .flowkv-salary-table-wrap {
    background: #172036;
    border-color: #334155;
}

body.darkmode .flowkv-detail-kicker,
body.darkmode .flowkv-detail-meta span,
body.darkmode .flowkv-info-row .card-info,
body.darkmode .flowkv-muted {
    color: #94a3b8;
}

body.darkmode .flowkv-detail-meta span {
    background: #111827;
    border-color: #334155;
}

body.darkmode .flowkv-header-icon {
    background: #243045;
    color: #93c5fd;
}

body.darkmode .flowkv-pill {
    background: #243045;
    color: #d1d5db;
}

body.darkmode .flowkv-favorite-switch {
    border-color: #334155;
    background: #111827;
}

body.darkmode .flowkv-favorite-option {
    color: #cbd5e1;
}

body.darkmode .flowkv-favorite-option.is-active {
    background: #243045;
    color: #93c5fd;
}

body.darkmode .flowkv-favorite-btn {
    border-color: #334155;
    background: #111827;
    color: #94a3b8;
}

body.darkmode .flowkv-favorite-btn:hover,
body.darkmode .flowkv-favorite-btn.is-active,
body.darkmode .flowkv-detail-favorite-btn.is-active {
    border-color: #1d4ed8;
    background: #172554;
    color: #93c5fd;
}

body.darkmode .flowkv-card-summary,
body.darkmode .flowkv-salary-subline {
    color: #cbd5e1;
}

body.darkmode .flowkv-special-notice {
    border-color: rgba(251, 191, 36, .4);
    background: rgba(120, 53, 15, .28);
    color: #fde68a;
}

body.darkmode .flowkv-salary-main {
    color: #f8fafc;
}

body.darkmode .flowkv-calculator {
    border-color: #334155;
    background: #111827;
}

body.darkmode .flowkv-calculator-label {
    color: #f8fafc;
}

body.darkmode .flowkv-step-info {
    border-color: #334155;
    background: #111827;
    color: #93c5fd;
}

body.darkmode .flowkv-calculated-value {
    color: #5eead4;
}

body.darkmode .flowkv-fulltime-badge {
    border-color: rgba(74, 222, 128, .35);
    background: rgba(22, 101, 52, .26);
    color: #bbf7d0;
}

body.darkmode .flowkv-warning-item {
    background: #422006;
    border-color: #713f12;
    color: #fed7aa;
}

body.darkmode .flowkv-diagnostic-item {
    background: #172036;
    border-color: #334155;
}

body.darkmode .flowkv-diagnostic-detail,
body.darkmode .flowkv-diagnostic-source {
    color: #94a3b8;
}

body.darkmode .flowkv-salary-group-head {
    background: #172036;
    border-color: #334155;
}

body.darkmode .flowkv-salary-table th {
    background: #111827;
    color: #cbd5e1;
}

@media (max-width: 980px) {
    .flowkv-detail-hero {
        flex-direction: column;
    }

    .flowkv-detail-actions {
        width: 100%;
    }

    .flowkv-detail-actions .btn {
        width: 100%;
    }

    .flowkv-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .flowkv-modal-dialog {
        max-width: calc(100vw - 12px);
        margin: 6px;
    }

    .flowkv-detail-hero,
    .flowkv-detail-layout {
        padding: 12px;
    }

    .flowkv-detail-name {
        font-size: 19px;
    }
}

body.darkmode .flowkv-salary-table td,
body.darkmode .flowkv-salary-table th {
    border-color: #334155;
}

@media (max-width: 720px) {
    .flowkv-header-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .flowkv-salary-table {
        min-width: 680px;
    }

    .flowkv-calculator {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .flowkv-salary-chip {
        width: auto;
    }
}
