/* Kendo 2025 rendering: keep the application's controls and dense grids consistent. */
:root {
    --kendo-color-primary: #3f51b5;
    --kendo-color-primary-hover: #35449a;
    --kendo-color-primary-active: #2b387f;
    --kendo-color-on-primary: #fff;
    --kendo-color-primary-subtle: #eef1fb;
    --kendo-color-primary-subtle-hover: #e1e6f7;
    --kendo-color-primary-subtle-active: #d3dbf2;
    --kendo-color-primary-on-subtle: #2b387f;
    --kendo-color-primary-on-surface: #3f51b5;
    --kendo-color-primary-emphasis: #aab5e2;
}

/* Handwritten templates predate the separate k-font-icon class. SVGs stay SVGs. */
:where(.k-icon[class*="k-i-"]:not(.k-svg-icon)) {
    font-family: WebComponentsIcons;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.k-grid .k-grid-header .k-table-th {
    padding: 8px 12px;
    vertical-align: middle;
}
.k-grid-header .k-cell-inner {
    margin: 0;
    align-items: center;
    min-width: 0;
}
.k-grid-header .k-cell-inner > .k-link {
    padding: 0;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    gap: 4px;
}
.k-grid-header .k-column-title {
    white-space: normal;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.35;
    font-weight: 600;
}
.k-grid-header .k-grid-header-menu {
    margin: 0 0 0 4px;
    padding: 4px;
    flex-shrink: 0;
}
.k-grid .k-grid-content td {
    padding: 8px 12px;
}
.k-grid .k-command-cell {
    white-space: nowrap;
}
.k-command-cell .k-button {
    min-width: 36px;
    min-height: 36px;
    margin: 2px;
}
.k-command-cell .k-grid-remove {
    border: 1px solid #dc2626;
    color: #dc2626;
    background: #fecaca;
    border-radius: 6px;
}
.k-button {
    gap: 6px;
}
.k-button:focus-visible {
    outline: 2px solid var(--kendo-color-primary);
    outline-offset: 2px;
}

/* k-input is now a wrapper. Padding belongs on k-input-inner instead. */
.k-input:not(input):not(textarea), .k-picker {
    padding: 0;
    min-height: 44px;
    height: auto;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
}
.k-input .k-input-inner, .k-picker .k-input-inner {
    padding: 10px 16px;
    min-width: 0;
    height: auto;
    border-radius: inherit;
}
.k-input .k-input-button, .k-picker .k-input-button {
    min-width: 40px;
    align-self: stretch;
    border-radius: 0 20px 20px 0;
}
.k-input-inner::placeholder {
    color: #697386;
    opacity: 1;
}
.k-searchbox > .k-input-icon {
    position: static;
    align-self: center;
    margin-inline-start: 12px;
    flex-shrink: 0;
}
.k-searchbox > .k-input-inner {
    padding-inline-start: 8px;
}
.k-pager-sizes .k-dropdownlist {
    width: 96px;
    min-width: 96px;
}
.k-pager-sizes .k-dropdownlist .k-input-inner {
    padding: 8px 10px;
}
.k-list-item {
    padding: 8px 16px;
    min-height: 36px;
}
.k-list-filter .k-searchbox {
    border-radius: 6px;
}
.k-grid-toolbar {
    padding-top: 8px;
    padding-bottom: 8px;
}
/* The reseller layout also uses these buttons, without figma-shell.css. */
.fp-orange-button.k-button {
    background: #fa5935;
    border-color: #fa5935;
    color: #fff;
    border-radius: 20px;
    min-height: 32px;
    padding: 5px 16px;
    display: inline-flex;
    align-items: center;
}
.fp-orange-button.k-button:hover, .fp-orange-button.k-button:active {
    background: #e24f31;
    border-color: #e24f31;
    color: #fff;
}
.k-checkbox {
    appearance: auto;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    accent-color: var(--kendo-color-primary);
    flex-shrink: 0;
}
.k-edit-label {
    color: #596273;
}
.k-editor {
    background: #fff;
}
.k-editor .k-editor-toolbar {
    background: #f3f5f7;
    padding: 8px;
}
.k-editor iframe {
    min-height: 320px;
}
.k-window {
    max-width: calc(100vw - 32px);
    max-height: 90vh;
}
.k-window-content {
    min-height: 0;
    overflow: auto;
}
.k-window-titlebar, .k-dialog-titlebar {
    background: #f3f5f7;
    color: #202a37;
}
.k-window .k-edit-form-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.k-window .k-edit-form-container :is(form, .grid) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.k-window .k-edit-form-container .grid > * {
    min-width: 0;
}
.k-window .k-edit-form-container :is(.k-input, .k-picker, input.k-textbox, textarea) {
    min-width: 0;
    max-width: 100%;
}
.k-popup-edit-form .k-edit-buttons .k-button {
    padding: 10px 20px;
    border-radius: 20px;
}
.news-text-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
@media (max-width: 760px) {
    body.fp-fo2-expense .k-child-animation-container:has(> #fpExpenseRangePicker_dateview),
    body.fp-fo2-expense #fpExpenseRangePicker_dateview {
        width: 100% !important;
        max-width: calc(100vw - 16px);
        box-sizing: border-box;
    }
    body.fp-fo2-expense #fpExpenseRangePicker_dateview .k-calendar,
    body.fp-fo2-expense #fpExpenseRangePicker_dateview .k-calendar-view {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.fp-fo2-expense #fpExpenseRangePicker_dateview .k-calendar-view table {
        display: table !important;
        flex: 0 1 calc((100% - 16px) / 2) !important;
        min-width: 0 !important;
        width: calc((100% - 16px) / 2) !important;
        table-layout: fixed !important;
    }
    body.fp-fo2-expense #fpExpenseRangePicker_dateview :is(th, td) {
        min-width: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }
    body.fp-fo2-expense #fpExpenseRangePicker_dateview td .k-link {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    .k-window .k-edit-form-container .grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
    .k-window .k-edit-form-container :is(.k-edit-label, .k-edit-field) {
        float: none;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }
    html:not(:has(link[href*="/css/figma-shell.css"])) .k-window {
        position: fixed;
        top: 8px !important;
        left: 8px !important;
        transform: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .k-window > .k-window-content { min-height: 0; }
    html:not(:has(link[href*="/css/figma-shell.css"])) .k-window > .k-window-content {
        flex: 1 1 auto;
        height: auto !important;
        max-height: calc(100dvh - 96px) !important;
        overflow: auto !important;
        box-sizing: border-box;
    }
    .k-window > :is(.k-window-titlebar, .k-window-actions) { flex-shrink: 0; }
    .k-grid-toolbar { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .k-grid-toolbar .k-picker { max-width: 100%; }
}

/* Invoice fields use full-width labels instead of Kendo's horizontal editor layout. */
#check_modal #get-check-form > div {
    padding: 24px;
}

#check_modal #get-check-form .grid-cols-2 {
    gap: 24px;
}

#update_Manager_Modal .k-edit-label,
#update_Manager_Modal .k-edit-field,
#check_modal #get-check-form .k-edit-label,
#check_modal #get-check-form .k-edit-field {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

#update_Manager_Modal .k-edit-label,
#check_modal #get-check-form .k-edit-label {
    margin-bottom: 8px;
}

#update_Manager_Modal .k-edit-field > .k-dropdownlist,
#check_modal #get-check-form .k-edit-field > .k-input,
#check_modal #get-check-form .k-edit-field > .k-textbox,
#check_modal #get-check-form .k-edit-field > .k-dropdownlist {
    width: 100%;
}

#check_modal .submit-check-get {
    margin-top: 24px;
}

@media (max-width: 600px) {
    #check_modal #get-check-form .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}
#update_Manager_Modal #form-edit-manager {
    display: grid;
    gap: 24px;
    padding: 24px;
}

#update_Manager_Modal #form-edit-manager > div:first-child > .k-edit-label:first-child {
    display: none;
}

#update_Manager_Modal #form-edit-manager > div:last-child {
    padding: 0;
}
.document-template-editor .user-edit-form {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 16px 24px;
    padding: 24px;
}

.document-template-editor .k-edit-label,
.document-template-editor .k-edit-field {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.document-template-editor .k-edit-label:has(#validLabel:empty) {
    display: none;
}

.document-template-editor .k-edit-label:has(#validLabel),
.document-template-editor .button-block {
    grid-column: 1 / -1;
}

.document-template-editor .button-block .k-edit-field {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .document-template-editor .user-edit-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }
}
.fp-card-history-legacy .fp-card-history-mobile-shell {
    display: none;
}

.fp-card-history-legacy .fp-card-history-legacy-meta {
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

.fp-card-history-legacy .fp-card-history-grid.k-grid {
    height: auto !important;
}

.fp-card-history-legacy .fp-card-history-grid .k-grid-content {
    height: auto !important;
    max-height: min(400px, calc(100vh - 230px));
}

.fp-card-history-legacy .k-window-content {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}
.fp-grouped-legacy {
    height: auto !important;
}

.fp-grouped-legacy .grid-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.fp-grouped-legacy .grid-page-header .k-picker {
    width: min(400px, 100%) !important;
}

.fp-grouped-legacy .grouped-transaction,
.fp-grouped-legacy .k-grid {
    height: auto !important;
}

.fp-grouped-legacy .k-grid-content {
    height: auto !important;
    max-height: calc(100vh - 260px);
}
/* Limit forms in the legacy shell use the table layout at every viewport size. */
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__mobile-label,
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__mobile-wrap {
    display: none;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__select {
    margin-bottom: 16px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__table {
    width: 100%;
    table-layout: fixed;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__table th,
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__table td {
    padding: 8px 10px;
    vertical-align: middle;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__cell--title {
    width: 28%;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__cell--toggle {
    text-align: center;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal .k-edit-field {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal .settings-table-cell {
    width: 100%;
    min-width: 0;
    height: 36px;
    border-radius: 8px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window-content:has(.fp-limit-modal) {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__actions {
    padding: 16px 0 0;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__table th:first-child {
    width: 28%;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__table th:nth-child(2) {
    width: 10%;
    text-align: center;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__tech-warning {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e6d6a4;
    border-radius: 8px;
    background: #fff9e9;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__tech-warning-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__tech-warning-toggle {
    color: #304361;
    text-decoration: underline;
    cursor: pointer;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__tech-warning-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 8px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-limit-modal__tech-warning[data-warning-collapsed="true"] .fp-limit-modal__tech-warning-list {
    display: none;
}

/* Legacy audit: clear floated editor fields before toolbars, actions and history. */
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form:has(.news-editor-toolbar) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form:has(.news-editor-toolbar) > .k-edit-label,
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form:has(.news-editor-toolbar) > .k-edit-field {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form:has(.news-editor-toolbar) > .k-edit-label:first-child {
    display: none;
}
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form:has(.news-editor-toolbar) .k-editor {
    width: 100%;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .min-balance-toolbar-item.k-button,
html:not(:has(link[href*="/css/figma-shell.css"])) .min-balance-toolbar-item.k-button .k-icon {
    color: #fff !important;
}
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form .news-editor-toolbar,
html:not(:has(link[href*="/css/figma-shell.css"])) #newsEditorDocumentModal .py-8,
html:not(:has(link[href*="/css/figma-shell.css"])) #newsEditorLinkModal .py-8 {
    clear: both;
}
html:not(:has(link[href*="/css/figma-shell.css"])) #user-edit-form .news-editor-toolbar {
    padding-top: 8px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-receivable-comments form::after {
    content: "";
    display: block;
    clear: both;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-receivable-comments form + h1 {
    clear: both;
    margin-top: 24px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-receivable-comments .k-edit-field .k-dropdownlist {
    max-width: 100%;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-edit-row .k-command-cell .k-grid-update,
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-edit-row .k-command-cell .k-grid-cancel {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 4px 0;
    white-space: normal;
}

/* Keep every upload column readable; narrow screens scroll the table as a whole. */
.discount-upload-grid .k-grid-header table,
.discount-upload-grid .k-grid-content table {
    min-width: 1619px;
}
.discount-upload-grid .k-grid-header .k-header,
.discount-upload-grid .k-grid-content td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.5;
}
.discount-upload-grid .k-grid-header .k-header > .k-link {
    white-space: normal;
}
.discount-upload-grid .k-grid-content td:nth-last-child(-n+3) {
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
}
.discount-upload-grid .k-grid-header .k-column-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
/* Contract forms use their window title and explicit rows rather than Kendo floats. */
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract > .modal-title {
    display: none;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract > .pt-8 {
    padding: 8px 24px 0;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .grid-cols-2 {
    gap: 20px 24px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .k-edit-label,
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .k-edit-field {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .k-edit-label {
    margin-bottom: 6px;
    line-height: 20px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .k-edit-label label {
    display: inline;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract > .py-8 {
    clear: both;
    padding: 16px 24px 20px;
    margin: 0;
    border-top: 1px solid #e5e7eb;
}
@media (max-width: 700px) {
    html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .grid-cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    html:not(:has(link[href*="/css/figma-shell.css"])) .direct-selling-form-window #form-edit-contract .col-span-2 {
        grid-column: 1;
    }
}
/* Scoped legacy tariffs and issued cards. */
html:not(.figma-layout) .tariff-toolbar {display:flex;flex-direction:column;gap:12px;padding:16px 24px;height:auto!important;min-height:0}
html:not(.figma-layout) .tariff-toolbar .apply-actions-grid {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0!important}
html:not(.figma-layout) .tariff-toolbar .k-edit-label {float:none;width:auto;padding:0;margin:0 0 8px;text-align:left}
html:not(.figma-layout) .tariff-toolbar .k-edit-label label {font-size:15px!important}
html:not(.figma-layout) .tariff-toolbar .client-tariff-actions>div:first-child {flex-basis:100%}
html:not(.figma-layout) .tariff-toolbar #tariffSupplier {max-width:320px}
html:not(.figma-layout) .issued-cards-toolbar .after-select {display:flex;gap:8px;align-items:center;padding:16px 24px}
html:not(.figma-layout) .issued-cards-toolbar .k-edit-label {float:none;width:auto;padding:0;margin:0 16px 0 0}
html:not(.figma-layout) :is(.tariff-form-window,.issued-cards-window) :is(.k-edit-label,.k-edit-field) {float:none;width:100%;margin:0;padding:0;text-align:left}
html:not(.figma-layout) :is(.tariff-form-window,.issued-cards-window) .k-edit-label {margin-bottom:6px}
html:not(.figma-layout) :is(.tariff-form-window,.issued-cards-window) .k-edit-label label {display:inline;line-height:20px}
html:not(.figma-layout) .tariff-form-window h2.modal-title {display:none}
html:not(.figma-layout) .tariff-form-window .pt-8 {padding:24px}
html:not(.figma-layout) .tariff-form-window .grid-cols-2 {gap:20px 24px}
html:not(.figma-layout) .tariff-form-window .py-8 {clear:both;padding:20px 24px;border-top:1px solid #e5e7eb;margin-top:20px}
html:not(.figma-layout) .tariff-form-window .k-edit-form-container {width:100%!important}
html:not(.figma-layout) .tariff-form-window .transfer-templates-modal {padding:24px;display:flex;flex-direction:column;gap:20px}
html:not(.figma-layout) .tariff-form-window .transfer-templates-confirm {display:flex;align-items:center;gap:8px}
html:not(.figma-layout) .tariff-form-window #template-direct-contracts-grid {height:auto!important}
html:not(.figma-layout) .tariff-form-window #template-direct-contracts-grid .k-grid-content {height:min(320px,40vh)!important}
html:not(.figma-layout) .issued-cards-window #settings-issued-manager-cards-modal {padding:24px}
html:not(.figma-layout) .issued-cards-window .card-info {display:block;padding:12px 16px;background:#f3f4f6;border-radius:8px;margin-bottom:20px}
html:not(.figma-layout) .issued-cards-window #form-settings-card+.k-edit-field {margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb;text-align:right}
@media(max-width:700px){html:not(.figma-layout) .tariff-form-window .grid-cols-2 {grid-template-columns:1fr}html:not(.figma-layout) .tariff-form-window .col-span-2 {grid-column:span 1}}

html:not(.figma-layout) .tariff-toolbar {flex:none!important;overflow:visible}
html:not(.figma-layout) .tariff-toolbar .apply-actions-grid {height:auto!important;min-height:0!important;flex:none;align-items:flex-end}
html:not(.figma-layout) .tariff-toolbar .k-button {width:auto!important;display:inline-flex!important;flex:none}
html:not(.figma-layout) .issued-cards-toolbar .after-select {height:auto!important;min-height:0!important}

/* Old admin card editor: full-width fields, compact check row and separate footer. */
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-form-container {
    width: 100%;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .fp-vinkcards-edit-form {
    padding: 24px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window :is(.k-edit-label, .k-edit-field) {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-label {
    margin-bottom: 8px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-label label {
    display: inline;
    font-size: 13px;
    line-height: 20px;
    color: #374151;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-field {
    margin-bottom: 20px;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    margin: 0;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vinkcard-edit-window .k-edit-buttons .k-button {
    margin: 0;
}

html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-modal { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-title { display: none; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-lead { margin: 0 0 8px; line-height: 22px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-link { color: #245cc4; text-decoration: underline; text-underline-offset: 3px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-dropzone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 24px;
    margin-top: 20px;
    border: 1px dashed #aab8ca;
    border-radius: 8px;
    background: #f8fafc;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-dropzone.is-dragover { border-color: #3f51b5; background: #edf1ff; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-input { display: none; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-file-name { min-width: 0; overflow-wrap: anywhere; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce1e8; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-modal button { min-height: 40px; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 6px; background: white; color: #1f2937; font-weight: 600; cursor: pointer; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-modal .fp-import-submit { background: #3f51b5; border-color: #3f51b5; color: white; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-modal .fp-import-submit:disabled { background: #e5e7eb; border-color: #d1d5db; color: #4b5563; cursor: default; }
html:not(:has(link[href*="/css/figma-shell.css"])) .fp-import-modal button:focus-visible { outline: 2px solid #3f51b5; outline-offset: 3px; }

/* Kendo 2025 search icons are siblings of the input, not part of its wrapper. */
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-toolbar .k-grid-search {
    display: inline-flex;
    align-items: center;
    width: min(384px, 100%);
    max-width: 100%;
    gap: 8px;
    padding: 0 14px;
    box-sizing: border-box;
}
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-search .k-input-icon { position: static; flex: 0 0 20px; width: 20px; margin: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-search .k-input-inner { width: 0; min-width: 0; flex: 1 1 auto; padding: 0; height: 42px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-grid-toolbar .k-toolbar-item:has(> .k-grid-search) { width: 384px; max-width: calc(100vw - 64px); }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-auth-window #auth_modal { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-auth-window #auth_modal > .pt-8 { padding: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-auth-window .grid-cols-1 { gap: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-auth-window .k-edit-field { float: none; width: 100%; margin: 0; padding: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-auth-window .submit-reauth { width: auto; justify-self: end; padding: 10px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) .k-edit-form-container { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-edit-window .k-edit-form-container { width: 100% !important; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) .user-edit-form { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; padding: 0; margin: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) .k-edit-label label { display: inline; font-size: 13px; line-height: 20px; color: #374151; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-edit-window .k-edit-field { margin-bottom: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-user-edit-window .user-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-user-field { min-width: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-user-edit-window .user-edit-form > :is(.k-edit-field, .gas-station-section) { grid-column: 1 / -1; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-user-edit-window .text-muted { margin-top: 8px; line-height: 20px; color: #5e697b; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-edit-window .k-editor { width: 100%; min-width: 0; height: 260px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-edit-window .k-editor-toolbar { flex-wrap: wrap; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-company-edit-window #uploadFilesBtn { clear: both; margin-top: 12px; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window) .k-checkbox-wrapper { display: inline-flex; align-items: center; width: auto; padding: 0; border: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-user-edit-window, .legacy-company-edit-window, .legacy-vinkcard-edit-window) > .k-window-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px; margin: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-users-grid :is(th, td) { white-space: normal; overflow-wrap: anywhere; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-users-grid .k-grid-content td { padding: 12px 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-users-grid { height: calc(100vh - 96px); min-height: 320px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-users-grid .k-grid-content { flex: 1; min-height: 0; height: auto !important; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-users-grid :is(.k-grid-header table, .k-grid-content table) { min-width: 1560px; }
@media (max-width: 700px) {
    html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-user-edit-window .user-edit-form { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 761px) {
    html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) { position: fixed; top: 24px !important; left: 50% !important; transform: translateX(-50%) !important; width: min(720px, calc(100vw - 32px)) !important; max-height: calc(100vh - 48px); }
}
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-window-content { max-height: calc(100vh - 160px); overflow-y: auto; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-edit-form-container { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .user-edit-form { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; padding: 0; margin: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-edit-label label { display: inline; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-edit-field { margin-bottom: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) .k-multiselect { max-height: 260px; overflow-y: auto; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#TypeToVinkTypeList) > .k-window-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 16px 24px; }

html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .k-edit-form-container { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window #edit_form { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; margin: 0; padding: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .k-edit-label label { display: inline; font-size: 13px; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .k-edit-field { margin-bottom: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .edit_form_map { position: static; inset: auto; float: none; width: 100%; margin: 24px 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window .map_cover { position: relative; width: 100%; height: 320px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window #myModalMap { width: 100%; height: 320px !important; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-gasstation-edit-window > .k-window-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px; }

html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window .k-edit-form-container { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window form > .pt-8 { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window .grid { gap: 20px 24px; margin-bottom: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; padding: 0; margin: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window .k-edit-label label { display: inline; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window textarea { width: 100%; max-width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-payment-edit-window > .k-window-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-modal { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-modal .modal-description { margin: 0; padding: 16px; background: #fff0f0; color: #842b2b; border-radius: 8px; font-size: 13px; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .delete-summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 12px 0 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .delete-summary-list > div { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
html:not(:has(link[href*="/css/figma-shell.css"])) .delete-summary-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-modal label { display: block; margin-bottom: 8px; font-weight: 600; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-input { width: 100%; max-width: 320px; padding: 10px 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-modal .py-8 { padding: 20px 0 0; margin-top: 20px; gap: 12px; align-items: start; border-top: 1px solid #e5e7eb; }
html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-confirm { white-space: normal; line-height: 20px; margin: 0; max-width: 100%; }
@media (max-width: 700px) {
    html:not(:has(link[href*="/css/figma-shell.css"])) :is(.legacy-payment-edit-window .grid-cols-2, .delete-summary-list) { grid-template-columns: minmax(0, 1fr); }
    html:not(:has(link[href*="/css/figma-shell.css"])) #delete-forever-modal .py-8 { flex-direction: column; }
}

/* Legacy VINK and sales tariff forms. */
html:not(:has(link[href*="/css/figma-shell.css"])) .vink-discount-menu__dropdown { left: 0; right: auto; min-width: 260px; max-width: calc(100vw - 48px); }
html:not(:has(link[href*="/css/figma-shell.css"])) .vink-discount-toolbar__schedule:not([style*="none"]) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .vink-discount-toolbar__schedule .k-textbox { display: flex; width: 180px; margin: 0; padding: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) #datePickerForAccess { width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 22px; background: #fff; }
html:not(:has(link[href*="/css/figma-shell.css"])) #nextDateForPlan { flex-basis: 100%; margin: 4px 0 0; line-height: 20px; overflow-wrap: anywhere; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window .modal-title { display: none; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window .pt-8 { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; padding: 0; margin: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window .k-edit-label label { display: inline; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vink-recalculate-window .py-8 { padding: 16px 24px; border-top: 1px solid #e5e7eb; justify-content: flex-end; }
@media (min-width: 761px) {
    html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) { position: fixed; top: 24px !important; left: 50% !important; transform: translateX(-50%) !important; width: min(800px, calc(100vw - 32px)) !important; max-height: calc(100vh - 48px); }
}
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) .k-window-content { max-height: calc(100vh - 104px); overflow-y: auto; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) .pt-8 { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) .grid { gap: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) br { display: none; }
.k-window:has(#brandDropDownList) .grid > div { min-width: 0; }
.k-window:has(#brandDropDownList) :is(.k-input, .k-picker, .fuelType) { max-width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) :is(.k-input, .k-picker, .fuelType) { width: 100% !important; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) h1 { margin: 0; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) .grid > div:nth-child(3) { margin-top: 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) #tableZone { padding: 0 24px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) #tableZone .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .k-window:has(#brandDropDownList) .py-8 { padding: 16px 24px; border-top: 1px solid #e5e7eb; justify-content: flex-end; }
html:not(:has(link[href*="/css/figma-shell.css"])) #acceptDiscountButton { white-space: normal; line-height: 20px; max-width: 100%; margin: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .k-edit-form-container { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .user-edit-form { padding: 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window :is(.k-edit-label, .k-edit-field) { float: none; width: 100%; padding: 0; margin: 0; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .k-edit-label { margin-bottom: 8px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .k-edit-label label { display: inline; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .k-edit-field { margin-bottom: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .k-edit-field:has(input[type="checkbox"]) { display: flex; align-items: start; gap: 12px; flex-wrap: wrap; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .vendor-card-hint { display: block; margin-top: 8px; font-size: 13px; line-height: 20px; color: #64748b; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .button-block { clear: both; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .button-block .k-edit-label { display: none; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .button-block .k-edit-field { display: inline-block; width: auto; margin: 0 8px 12px 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .button-block .connect-info { width: 100%; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window .button-block .k-button { padding: 10px 16px; border-radius: 20px; margin: 0; }
html:not(:has(link[href*="/css/figma-shell.css"])) .legacy-vendor-contract-window > .k-window-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .custom-toolbar:has(#tariffSupplier) { padding: 20px 24px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .custom-toolbar:has(#tariffSupplier) .apply-actions-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .custom-toolbar:has(#tariffSupplier) .k-edit-label { float: none; width: auto; padding: 0; margin: 0 0 12px; text-align: left; }
html:not(:has(link[href*="/css/figma-shell.css"])) .custom-toolbar:has(#tariffSupplier) .k-edit-label label { font-size: 14px !important; line-height: 20px; }
html:not(:has(link[href*="/css/figma-shell.css"])) #tariffSupplier { display: block; width: 320px; max-width: 100%; height: 44px; padding: 8px 16px; }
html:not(:has(link[href*="/css/figma-shell.css"])) .custom-toolbar:has(#tariffSupplier) .client-tariff-actions > div:first-child { flex-basis: 100%; }
