.hfc-smart-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    position: relative;
}

.hfc-smart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin: 0;
    font-family: inherit;
}

.hfc-smart-table th,
.hfc-smart-table td {
    border-style: solid;
    border-width: 1px;
    border-color: #e5e7eb;
    vertical-align: top;
    min-width: 90px;
    line-height: 1.35;
    font-family: inherit;
}

.hfc-smart-table th {
    font-weight: 700;
}

.hfc-smart-table-is-editing .hfc-smart-table th,
.hfc-smart-table-is-editing .hfc-smart-table td {
    outline: 0;
    cursor: text;
    position: relative;
}

.hfc-smart-table-is-editing .hfc-smart-table th:focus,
.hfc-smart-table-is-editing .hfc-smart-table td:focus,
.hfc-smart-table-is-editing .hfc-smart-table .hfc-smart-table-cell-active {
    box-shadow: inset 0 0 0 2px rgba(255, 221, 60, 0.95);
}

.hfc-smart-table-is-editing .hfc-smart-table .hfc-smart-table-cell-selected {
    outline: 3px solid rgba(255, 221, 60, 0.8) !important;
    outline-offset: -3px;
}

.hfc-smart-table-editor-note {
    display: none;
}

.elementor-editor-active .hfc-smart-table-editor-note,
.elementor-editor-preview .hfc-smart-table-editor-note {
    display: inline-block;
    margin-bottom: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(7, 0, 100, .08);
    color: #070064;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.hfc-smart-table-pencil {
    display: none;
    position: fixed;
    z-index: 9999998;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ffdd3c;
    color: #070064;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    padding: 0;
}

.hfc-smart-table-pencil:hover,
.hfc-smart-table-pencil:focus {
    background: #ffe76b;
    color: #070064;
    outline: none;
}

.hfc-smart-table-menu {
    display: none;
    position: fixed;
    z-index: 9999999;
    width: 260px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
    border: 1px solid rgba(0, 0, 0, .08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hfc-smart-table-menu-title {
    padding: 6px 9px 8px;
    color: #070064;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hfc-smart-table-menu button,
.hfc-smart-table-menu label {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.hfc-smart-table-menu button:hover,
.hfc-smart-table-menu label:hover {
    background: #f3f4f6;
}

.hfc-smart-table-menu button.danger {
    color: #b91c1c;
}

.hfc-smart-table-menu button.muted {
    color: #6b7280;
}

.hfc-smart-table-menu hr {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.hfc-smart-table-menu input[type="color"] {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 767px) {
    .hfc-smart-table-responsive-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hfc-smart-table-responsive-scroll .hfc-smart-table {
        min-width: 620px;
    }

    .hfc-smart-table-responsive-stack .hfc-smart-table,
    .hfc-smart-table-responsive-stack .hfc-smart-table tbody,
    .hfc-smart-table-responsive-stack .hfc-smart-table tr,
    .hfc-smart-table-responsive-stack .hfc-smart-table th,
    .hfc-smart-table-responsive-stack .hfc-smart-table td {
        display: block;
        width: 100%;
    }
}

.hfc-smart-table-dirty .hfc-smart-table-editor-note {
    background: rgba(255, 221, 60, .22);
    color: #070064;
}

.hfc-smart-table-menu {
    width: 330px;
    max-height: min(420px, calc(100vh - 20px));
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hfc-smart-table-menu-title {
    position: sticky;
    top: -10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -10px -10px 8px;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.hfc-smart-table-menu-title span {
    color: #070064;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hfc-smart-table-menu .hfc-smart-table-save {
    width: auto;
    min-height: 28px;
    padding: 6px 10px;
    background: #070064;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hfc-smart-table-menu .hfc-smart-table-save:hover {
    background: #1400b0;
    color: #ffffff;
}

.hfc-smart-table-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.hfc-smart-table-menu .hfc-smart-table-quick button {
    justify-content: center;
    min-height: 34px;
    background: #f3f4f6;
    font-weight: 700;
    text-align: center;
}

.hfc-smart-table-menu .hfc-smart-table-quick button:hover {
    background: #e5e7eb;
}

.hfc-smart-table-menu details {
    border-top: 1px solid #e5e7eb;
    padding: 4px 0;
}

.hfc-smart-table-menu summary {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #070064;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.hfc-smart-table-menu summary::-webkit-details-marker {
    display: none;
}

.hfc-smart-table-menu summary:after {
    content: '+';
    margin-left: auto;
    font-weight: 900;
}

.hfc-smart-table-menu details[open] summary:after {
    content: '–';
}

.hfc-smart-table-menu summary:hover {
    background: #f3f4f6;
}

.hfc-smart-table-menu details button,
.hfc-smart-table-menu details label {
    min-height: 31px;
    padding: 6px 9px 6px 18px;
    font-size: 12.5px;
}

.hfc-smart-table-menu hr {
    display: none;
}
