html.fi,
html.fi body {
    font-family: "Sarabun", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
}

html.fi {
    --bpmc-primary: #1448a9;
    --bpmc-secondary: #00266e;
    --bpmc-text: #192a3d;
    --bpmc-background: #ffffff;
    --bpmc-border: rgba(25, 42, 61, 0.14);
    --bpmc-muted: #536477;
    --bpmc-soft: rgba(20, 72, 169, 0.08);
    --admin-sidebar-menu-indent-adjust: 7px;
    --admin-sidebar-menu-inline-padding: calc(8px - var(--admin-sidebar-menu-indent-adjust));
    --admin-sidebar-group-gap-adjust: 20px;
    --admin-sidebar-group-gap: calc(28px - var(--admin-sidebar-group-gap-adjust));
}

html.fi:not(.dark) body {
    background: var(--bpmc-background);
    color: var(--bpmc-text);
}

html.fi :where(h1, h2, h3, h4, h5, h6, .heading-text) {
    font-size: 18px;
    font-weight: 700;
}

html.fi .fi-btn.fi-color-primary .fi-btn-icon,
html.fi .fi-btn.fi-color-primary .fi-icon,
html.fi .fi-btn.fi-color-primary svg {
    color: #ffffff !important;
}

html.fi .fi-btn.bpmc-action-group-button,
html.fi .fi-btn.bpmc-action-group-button .fi-icon,
html.fi .fi-btn.bpmc-action-group-button svg {
    color: #ffffff !important;
}

html.fi .fi-btn.bpmc-action-group-button svg,
html.fi .fi-btn.bpmc-action-group-button svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

html.fi .bpmc-sidebar-close-button {
    display: none;
}

html.fi .fi-sidebar-header .fi-logo {
    font-size: 1.1875rem !important;
    line-height: 1.1875rem !important;
}

html.fi .bpmc-connect-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

html.fi .bpmc-mail-settings-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 1023.98px) {
    html.fi .fi-main-ctn {
        min-width: 0 !important;
        width: 100% !important;
    }

    html.fi .fi-main {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html.fi .fi-sidebar-header {
        justify-content: flex-start !important;
    }

    html.fi .bpmc-sidebar-close-button {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 999px;
        cursor: pointer;
        display: flex !important;
        flex: 0 0 32px;
        height: 32px;
        justify-content: center;
        margin-inline-start: auto;
        padding: 0;
        width: 32px;
    }

    html.fi .bpmc-sidebar-close-button img {
        display: block;
        height: 27.2px;
        width: 27.2px;
    }
}

@media (max-width: 1023.98px) {
    html.fi {
        --admin-mobile-header-menu-button-size: 52px;
        --admin-mobile-header-menu-icon-size: 31.2px;
        --admin-mobile-header-search-width: 70%;
    }

    html.fi .fi-topbar-end {
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    html.fi .fi-topbar-end .fi-global-search-ctn {
        flex: 0 1 var(--admin-mobile-header-search-width) !important;
        max-width: var(--admin-mobile-header-search-width) !important;
        min-width: 0 !important;
        width: var(--admin-mobile-header-search-width) !important;
    }

    html.fi .fi-topbar-end .fi-global-search,
    html.fi .fi-topbar-end .fi-global-search-field,
    html.fi .fi-topbar-end .fi-input-wrp {
        min-width: 0 !important;
        width: 100% !important;
    }

    html.fi .fi-topbar-open-sidebar-btn,
    html.fi .fi-topbar-close-sidebar-btn,
    html.fi .fi-layout-sidebar-toggle-btn {
        flex: 0 0 var(--admin-mobile-header-menu-button-size) !important;
        height: var(--admin-mobile-header-menu-button-size) !important;
        margin: 0 !important;
        min-height: var(--admin-mobile-header-menu-button-size) !important;
        min-width: var(--admin-mobile-header-menu-button-size) !important;
        width: var(--admin-mobile-header-menu-button-size) !important;
    }

    html.fi .fi-topbar-open-sidebar-btn .fi-icon,
    html.fi .fi-topbar-close-sidebar-btn .fi-icon,
    html.fi .fi-layout-sidebar-toggle-btn .fi-icon,
    html.fi .fi-topbar-open-sidebar-btn svg,
    html.fi .fi-topbar-close-sidebar-btn svg,
    html.fi .fi-layout-sidebar-toggle-btn svg {
        height: var(--admin-mobile-header-menu-icon-size) !important;
        min-height: var(--admin-mobile-header-menu-icon-size) !important;
        min-width: var(--admin-mobile-header-menu-icon-size) !important;
        width: var(--admin-mobile-header-menu-icon-size) !important;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    html.fi .fi-topbar-open-sidebar-btn {
        transform: translateX(-1px) !important;
    }
}

@media (max-width: 639.98px) {
    html.fi .fi-topbar-open-sidebar-btn {
        transform: translateX(-11px) !important;
    }
}

@media (min-width: 1024px) {
    html.fi {
        --admin-sidebar-content-gap: 15px;
        --sidebar-width: 15rem !important;
    }

    html.fi .fi-body-has-navigation:not(.fi-body-has-top-navigation) .fi-sidebar {
        background: #ffffff !important;
        box-shadow:
            1px 0 0 var(--bpmc-border),
            12px 0 28px -22px rgba(0, 38, 110, 0.36) !important;
        margin-inline-end: var(--admin-sidebar-content-gap) !important;
    }

    html.fi.dark .fi-body-has-navigation:not(.fi-body-has-top-navigation) .fi-sidebar {
        background: rgb(17, 24, 39) !important;
        box-shadow:
            1px 0 0 rgba(255, 255, 255, 0.08),
            12px 0 28px -22px rgba(0, 0, 0, 0.65) !important;
    }

    html.fi .fi-body-has-navigation:not(.fi-body-has-top-navigation) .fi-main-ctn {
        min-width: 0 !important;
        width: calc(100% - var(--collapsed-sidebar-width) - var(--admin-sidebar-content-gap)) !important;
    }

    html.fi .fi-body-has-navigation:not(.fi-body-has-top-navigation) .fi-main-ctn.fi-main-ctn-sidebar-open {
        width: calc(100% - var(--sidebar-width) - var(--admin-sidebar-content-gap)) !important;
    }

    html.fi .fi-body-has-navigation:not(.fi-body-has-top-navigation) .fi-main {
        margin-inline-start: 0 !important;
        margin-inline-end: auto !important;
        padding-inline-start: 0 !important;
        padding-inline-end: 15px !important;
    }

    html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-nav {
        padding-inline-end: 0 !important;
    }

html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-nav-groups {
    margin-inline-end: 0 !important;
    row-gap: var(--admin-sidebar-group-gap) !important;
}

    html.fi .fi-main,
    html.fi .fi-ta,
    html.fi .fi-ta-ctn,
    html.fi .fi-ta-main {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-group-btn {
    gap: 5px !important;
    justify-content: flex-start !important;
    padding-inline-start: var(--admin-sidebar-menu-inline-padding) !important;
    padding-inline-end: var(--admin-sidebar-menu-inline-padding) !important;
}

html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-group-label {
    flex: 0 0 var(--admin-sidebar-group-label-width, auto) !important;
    font-weight: 700 !important;
}

html.fi:not(.dark) .fi-sidebar.fi-sidebar-open .fi-sidebar-group-label {
    color: #192a3d !important;
}

html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-group-collapse-btn {
    flex: 0 0 auto !important;
    margin-inline-start: 0 !important;
}

html.fi .fi-sidebar.fi-sidebar-open .fi-sidebar-item-btn {
    gap: 5px !important;
    justify-content: flex-start !important;
    padding-inline-start: var(--admin-sidebar-menu-inline-padding) !important;
    padding-inline-end: var(--admin-sidebar-menu-inline-padding) !important;
}

html.fi .fi-ta-header-cell-status,
html.fi .project-status-cell,
html.fi .quotation-status-cell,
html.fi .invoice-status-cell,
html.fi .receipt-status-cell {
    width: 1% !important;
    max-width: max-content !important;
    white-space: nowrap !important;
}

html.fi .project-status-cell .fi-ta-col,
html.fi .quotation-status-cell .fi-ta-col,
html.fi .invoice-status-cell .fi-ta-col,
html.fi .receipt-status-cell .fi-ta-col {
    display: inline-flex !important;
    width: max-content !important;
    min-width: 0 !important;
}

html.fi .project-status-select.fi-ta-select,
html.fi .quotation-status-select.fi-ta-select,
html.fi .invoice-status-select.fi-ta-select,
html.fi .receipt-status-select.fi-ta-select {
    display: inline-block !important;
    width: max-content !important;
    min-width: 0 !important;
}

html.fi .project-status-select .fi-input-wrp,
html.fi .quotation-status-select .fi-input-wrp,
html.fi .invoice-status-select .fi-input-wrp,
html.fi .receipt-status-select .fi-input-wrp {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

html.fi .project-status-select .fi-input-wrp > .project-status-select-input,
html.fi .quotation-status-select .fi-input-wrp > .quotation-status-select-input,
html.fi .invoice-status-select .fi-input-wrp > .invoice-status-select-input,
html.fi .receipt-status-select .fi-input-wrp > .receipt-status-select-input {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    field-sizing: content;
}

html.fi .bpmc-document-compact-section {
    --bpmc-document-column-gap: 5px;
    --bpmc-document-row-gap: 8px;
}

html.fi .bpmc-document-compact-section .fi-section-content.fi-sc-has-gap,
html.fi .bpmc-document-compact-section .fi-sc-has-gap,
html.fi .bpmc-document-compact-section .fi-in-repeatable,
html.fi .bpmc-document-compact-section .fi-in-repeatable-item {
    column-gap: var(--bpmc-document-column-gap) !important;
    row-gap: var(--bpmc-document-row-gap) !important;
}

html.fi .bpmc-document-compact-section .fi-in-entry {
    row-gap: 2px !important;
}

html.fi .bpmc-document-compact-section .fi-in-entry-label-ctn,
html.fi .bpmc-document-compact-section .fi-in-entry-content-ctn,
html.fi .bpmc-document-compact-section .fi-in-text-affixed,
html.fi .bpmc-document-compact-section .fi-in-text-affix {
    column-gap: var(--bpmc-document-column-gap) !important;
}

html.fi .bpmc-document-compact-section .fi-in-entry-label {
    font-size: 13px !important;
    line-height: 1.25 !important;
}

html.fi .bpmc-document-compact-section .fi-in-text,
html.fi .bpmc-document-compact-section .fi-in-placeholder {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

html.fi .fi-fo-repeater-item,
html.fi .fi-fo-repeater-item-content {
    max-width: 100% !important;
    min-width: 0 !important;
}

html.fi .fi-fo-repeater-item-header {
    min-height: 48px !important;
}

html.fi .fi-fo-repeater-item-actions .fi-btn,
html.fi .fi-ac .fi-btn {
    min-height: 42px !important;
}

html.fi .fi-input,
html.fi .fi-select-input,
html.fi .fi-textarea {
    font-size: 16px !important;
}

html.fi .bpmc-product-pile-item-select .fi-dropdown-panel {
    max-width: min(720px, calc(100vw - 32px)) !important;
    min-width: min(720px, calc(100vw - 32px)) !important;
}

html.fi .bpmc-product-pile-item-select .fi-select-input-option {
    align-items: flex-start !important;
    overflow: visible !important;
    white-space: normal !important;
}

html.fi .bpmc-product-pile-item-select .fi-select-input-option > span {
    display: block !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
}

html.fi .fi-ta-ctn {
    overflow-x: auto !important;
}

@media (max-width: 640px) {
    html.fi .fi-main {
        padding-inline: 10px !important;
    }

    html.fi .fi-section-content {
        padding-inline: 12px !important;
    }

    html.fi .fi-fo-repeater-item {
        border-radius: 8px !important;
    }

    html.fi .fi-fo-repeater-add-action-ctn .fi-btn,
    html.fi .fi-form-actions .fi-btn,
    html.fi .fi-ac .fi-btn {
        min-height: 46px !important;
        width: 100%;
    }

    html.fi .fi-form-actions {
        background: color-mix(in srgb, var(--bpmc-background) 94%, transparent);
        border-top: 1px solid var(--bpmc-border);
        bottom: 0;
        margin-inline: -10px;
        padding: 10px;
        position: sticky;
        z-index: 20;
    }

    html.fi .fi-ta-table {
        min-width: 680px;
    }
}

html.fi .bpmc-language-panel {
    max-width: 42rem;
}

html.fi .bpmc-language-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

html.fi .bpmc-language-pill {
    border-radius: 999px !important;
    font-weight: 600 !important;
    min-height: 42px !important;
    min-width: 88px !important;
    padding-inline: 20px !important;
}

html.fi .bpmc-language-pill.is-selected {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    box-shadow:
        0 0 0 2px rgba(22, 163, 74, 0.2),
        0 8px 18px -16px rgba(22, 101, 52, 0.6) !important;
    color: #166534 !important;
    font-weight: 700 !important;
}

html.fi.dark .bpmc-language-pill.is-selected {
    background: rgba(22, 163, 74, 0.16) !important;
    border-color: #22c55e !important;
    color: #dcfce7 !important;
}

html.fi .employee-phone-trigger {
    font-weight: 700 !important;
    text-decoration: none !important;
}

html.fi .employee-phone-modal {
    border-radius: 28px !important;
    overflow: hidden !important;
}

html.fi .employee-phone-modal .fi-modal-content {
    padding: 0 !important;
}

html.fi .employee-phone-actions {
    background:
        radial-gradient(circle at 50% 8%, rgba(20, 72, 169, 0.12), transparent 24%),
        radial-gradient(circle at 82% 92%, rgba(0, 38, 110, 0.1), transparent 28%),
        #ffffff;
    display: grid;
    gap: 26px;
    padding: 26px 34px 32px;
}

html.fi.dark .employee-phone-actions {
    background:
        radial-gradient(circle at 50% 8%, rgba(20, 72, 169, 0.24), transparent 24%),
        radial-gradient(circle at 82% 92%, rgba(0, 38, 110, 0.18), transparent 28%),
        rgb(17, 24, 39);
}

html.fi .employee-phone-actions__hero-icon {
    align-items: center;
    background: var(--bpmc-soft);
    border-radius: 999px;
    color: var(--bpmc-primary);
    display: flex;
    height: 88px;
    justify-content: center;
    justify-self: center;
    width: 88px;
}

html.fi .employee-phone-actions__hero-icon svg {
    height: 46px;
    width: 46px;
}

html.fi .employee-phone-actions__header {
    display: grid;
    gap: 8px;
    text-align: center;
}

html.fi .employee-phone-actions__header h2 {
    color: var(--bpmc-text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}

html.fi.dark .employee-phone-actions__header h2 {
    color: #f9fafb;
}

html.fi .employee-phone-actions__header p {
    color: var(--bpmc-muted);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

html.fi.dark .employee-phone-actions__header p {
    color: #cbd5e1;
}

html.fi .employee-phone-actions__profile {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--bpmc-border);
    border-radius: 24px;
    box-shadow:
        0 18px 42px -32px rgba(0, 38, 110, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px;
}

html.fi.dark .employee-phone-actions__profile {
    background: rgba(31, 41, 55, 0.92);
    border-color: rgba(148, 163, 184, 0.25);
}

html.fi .employee-phone-actions__avatar {
    align-items: center;
    background: var(--bpmc-soft);
    border-radius: 999px;
    color: var(--bpmc-primary);
    display: flex;
    flex: 0 0 76px;
    font-size: 28px;
    font-weight: 800;
    height: 76px;
    justify-content: center;
    width: 76px;
}

html.fi .employee-phone-actions__identity {
    min-width: 0;
}

html.fi .employee-phone-actions__name {
    color: var(--bpmc-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

html.fi.dark .employee-phone-actions__name {
    color: #f9fafb;
}

html.fi .employee-phone-actions__number {
    color: var(--bpmc-text);
    font-size: 20px;
    font-weight: 600;
    margin-top: 6px;
}

html.fi.dark .employee-phone-actions__number {
    color: #f9fafb;
}

html.fi .employee-phone-actions__quick-copy {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bpmc-border);
    border-radius: 999px;
    box-shadow: 0 14px 26px -22px rgba(0, 38, 110, 0.48);
    color: var(--bpmc-secondary);
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

html.fi.dark .employee-phone-actions__quick-copy {
    background: rgb(17, 24, 39);
    border-color: rgba(148, 163, 184, 0.28);
    color: #e5e7eb;
}

html.fi .employee-phone-actions__quick-copy svg {
    height: 26px;
    width: 26px;
}

html.fi .employee-phone-actions__list {
    display: grid;
    gap: 16px;
}

html.fi .employee-phone-actions__item {
    align-items: center;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 16px 34px -28px rgba(0, 38, 110, 0.6);
    color: var(--bpmc-text);
    cursor: pointer;
    display: grid;
    font-family: inherit;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 84px;
    padding: 18px 22px;
    text-align: start;
    text-decoration: none;
    transition:
        box-shadow 150ms ease,
        transform 150ms ease;
    width: 100%;
}

html.fi .employee-phone-actions__item:hover {
    box-shadow: 0 16px 34px -22px rgba(0, 38, 110, 0.7);
    transform: translateY(-1px);
}

html.fi.dark .employee-phone-actions__item {
    color: #f9fafb;
}

html.fi .employee-phone-actions__item--call {
    background: linear-gradient(135deg, #22c55e, #059669);
    color: #ffffff;
}

html.fi .employee-phone-actions__item--copy {
    background: #ffffff;
    color: var(--bpmc-text);
}

html.fi.dark .employee-phone-actions__item--copy {
    background: rgb(31, 41, 55);
    color: #f9fafb;
}

html.fi .employee-phone-actions__item--share {
    background: var(--bpmc-soft);
    color: var(--bpmc-primary);
}

html.fi.dark .employee-phone-actions__item--share {
    background: rgba(29, 78, 216, 0.18);
    color: #93c5fd;
}

html.fi .employee-phone-actions__icon {
    align-items: center;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

html.fi .employee-phone-actions__icon svg {
    height: 34px;
    width: 24px;
}

html.fi .employee-phone-actions__icon svg,
html.fi .employee-phone-actions__chevron svg {
    width: 34px;
}

html.fi .employee-phone-actions__label {
    font-size: 20px;
    font-weight: 800;
}

html.fi .employee-phone-actions__chevron {
    align-items: center;
    display: flex;
    opacity: 0.9;
}

html.fi .employee-phone-actions__chevron svg {
    height: 26px;
}

html.fi .employee-phone-actions__privacy {
    align-items: center;
    color: var(--bpmc-muted);
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.4;
    text-align: center;
}

html.fi.dark .employee-phone-actions__privacy {
    color: #cbd5e1;
}

html.fi .employee-phone-actions__privacy svg {
    flex: 0 0 auto;
    height: 24px;
    width: 24px;
}

@media (max-width: 520px) {
    html.fi .employee-phone-actions {
        gap: 20px;
        padding: 22px 18px 26px;
    }

    html.fi .employee-phone-actions__hero-icon {
        height: 72px;
        width: 72px;
    }

    html.fi .employee-phone-actions__hero-icon svg {
        height: 38px;
        width: 38px;
    }

    html.fi .employee-phone-actions__header h2 {
        font-size: 22px;
    }

    html.fi .employee-phone-actions__header p {
        font-size: 16px;
    }

    html.fi .employee-phone-actions__avatar {
        flex-basis: 58px;
        font-size: 22px;
        height: 58px;
        width: 58px;
    }

    html.fi .employee-phone-actions__profile {
        gap: 12px;
        padding: 14px;
    }

    html.fi .employee-phone-actions__name,
    html.fi .employee-phone-actions__number,
    html.fi .employee-phone-actions__label {
        font-size: 17px;
    }

    html.fi .employee-phone-actions__quick-copy {
        height: 44px;
        width: 44px;
    }

    html.fi .employee-phone-actions__item {
        min-height: 70px;
        padding: 14px 16px;
    }

    html.fi .employee-phone-actions__icon,
    html.fi .employee-phone-actions__chevron {
        height: 32px;
        width: 32px;
    }

    html.fi .employee-phone-actions__icon svg,
    html.fi .employee-phone-actions__chevron svg {
        height: 28px;
        width: 28px;
    }
}
