/** Directory page **/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Open Sans", sans-serif;
}

button,
input,
select {
    font: inherit;
}

.naaamp-page-shell {
    width: 100%;
    margin: 0 auto;
    padding: 28px 15px;
    background-color: #F7F7F7;
    font-family: "Open Sans", sans-serif;
}

/*.naaamp-search-page {*/
/*    padding: 14px 16px 26px;*/
/*}*/

.naaamp-page-title {
    margin: 0 0 23px;
    font-size: 20px;
    font-weight: 600;
    color: #323232;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-variant: normal;
    line-height: 27px;
}

.naaamp-section-title {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 600;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    line-height: 24px;
}

.naaamp-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.naaamp-link {
    color: #20486D;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/** Tabs **/
.naaamp-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    margin-bottom: -1px;
}

.naaamp-tab {
    min-width: 152px;
    min-height: 43px;
    border: 1px solid #E4E7EC;
    border-radius: 16px 16px 0 0;
    background: #fff;
    color: #21486D;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
}

#naaamp-tab-contact {
    min-width: 140px;
    min-height: 43px;
}

.naaamp-tab.naaamp-is-active {
    background: #D7C59C;
    border-color: #D7C59C;
}

.naaamp-tab-panel[hidden] {
    display: none;
}

/** Search card and form **/
.naaamp-search-card {
    position: relative;
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid #E4E7EC;
    border-radius: 0 16px 16px 16px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(24, 39, 55, 0.04);
}

.naaamp-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 48px;
    margin-bottom: 16px;
}

.naaamp-check-field,
.naaamp-field {
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 19px;
}

.naaamp-check-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

#naaamp-search-form .naaamp-checkbox {
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #E4E7EC;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 2px #1018280D;
}

.naaamp-checkbox:checked {
    border-color: #20486D;
    background: #fff;
}

.naaamp-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #20486D;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.naaamp-field-grid {
    display: grid;
    gap: 16px;
}

#naaamp-company-panel .naaamp-field-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#naaamp-contact-panel .naaamp-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.naaamp-field {
    display: grid;
    gap: 8px;
}

#naaamp-search-form .naaamp-input,
#naaamp-search-form .naaamp-select {
    width: 100%;
    min-height: 48px;
    margin-bottom: 0;
    padding: 0 14px;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    background: #fff;
    color: #494949;
    box-shadow: 0 1px 2px #1018280D;
}

#naaamp-search-form .naaamp-select {
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.496' height='6.498' viewBox='0 0 11.496 6.498'%3E%3Cg transform='translate(-107.251 1.061)'%3E%3Cpath d='M108.312,8.656,113,13.344l4.687-4.687' transform='translate(0 -8.656)' fill='none' stroke='%23494949' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-position: calc(100% - 18px) center;
    background-size: 11.496px 6.498px;
    background-repeat: no-repeat;
}

#naaamp-search-form .naaamp-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 103px;
    min-height: 43px;
    margin: 24px auto 0;
    border: 0;
    border-radius: 8px;
    background: #20486D;
    color: #fff;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.naaamp-search-button:hover {
    opacity: 0.8;
}

/** Focus states **/
.naaamp-input:focus,
.naaamp-select:focus,
.naaamp-tab:focus-visible,
.naaamp-search-button:focus-visible,
.naaamp-page-button:focus-visible {
    outline: 3px solid color-mix(in srgb, #7aa7cf 55%, transparent);
    outline-offset: 2px;
}

.naaamp-page-size:focus,
.naaamp-page-size:focus-visible {
    outline: none;
    box-shadow: none;
}

/** Results card and table **/
.naaamp-results-card {
    position: relative;
    padding: 24px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 39, 55, 0.04);
}

.naaamp-results-placeholder {
    min-height: 400px;
}

.naaamp-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e6ec;
    border-radius: 14px 14px 0 0;
}

.naaamp-results-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
}

.content table.naaamp-results-table {
    margin: 0;
    border-bottom: none;
}

.naaamp-results-card .naaamp-table-heading,
.naaamp-results-card .naaamp-table-cell {
    padding: 12px 24px;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
}

.naaamp-results-card .naaamp-table-heading {
    border-bottom: 1px solid #E4E7EC;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
}

.naaamp-table-cell {
    border-bottom: 1px solid #E4E7EC;
    font-size: 14px;
    line-height: 18px;
    font-weight: normal;
}

.naaamp-table-body .naaamp-table-row:last-child .naaamp-table-cell {
    border-bottom: 0;
}

.naaamp-table-heading:nth-child(1),
.naaamp-table-cell:nth-child(1) {
    width: 17%;
}

.naaamp-table-heading:nth-child(2),
.naaamp-table-cell:nth-child(2) {
    width: 18%;
}

.naaamp-table-heading:nth-child(3),
.naaamp-table-cell:nth-child(3) {
    width: 16%;
}

.naaamp-table-heading:nth-child(4),
.naaamp-table-cell:nth-child(4) {
    width: 13%;
}

#naaamp-contact-table .naaamp-table-heading:nth-child(4),
#naaamp-contact-table .naaamp-table-cell:nth-child(4) {
    width: 24%;
}

.naaamp-table-heading:nth-child(5),
.naaamp-table-cell:nth-child(5) {
    width: 23%;
}

#naaamp-contact-table .naaamp-table-heading:nth-child(5),
#naaamp-contact-table .naaamp-table-cell:nth-child(5) {
    width: 13%;
}

.naaamp-stack-item {
    display: block;
}

.naaamp-stacked-links,
.naaamp-stacked-text {
    line-height: 1.25;
}

.naaamp-empty-state {
    padding: 36px;
    color: #5a5f65;
    text-align: center;
}

/** Results footer and pagination **/
.naaamp-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 23px 16px 16px 24px;
    border: 1px solid #E4E7EC;
    border-top: none;
    border-radius: 0 0 16px 16px;
    color: #1e4e78;
}

.naaamp-results-count {
    margin: 0;
    color: #20486D;
    font-size: 14px;
    font-weight: normal;
}

.naaamp-page-size,
.naaamp-pagination {
    border: 1px solid #d6dee8;
    border-radius: 8px;
    background: #fff;
    color: #20486D;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
}

.naaamp-page-shell .naaamp-tab-panel .naaamp-page-size-field {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    background: #fff;
    color: #20486D;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.naaamp-page-shell .naaamp-tab-panel .naaamp-page-size-label {
    padding: 0 10px 0 16px;
    color: #20486D;
}

.naaamp-page-shell .naaamp-tab-panel .naaamp-page-size {
    appearance: none;
    min-width: 64px;
    min-height: 40px;
    margin-bottom: 0;
    padding: 0 34px 0 12px;
    border: 0;
    background: #fff;
    color: #20486D;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.496' height='6.498' viewBox='0 0 11.496 6.498'%3E%3Cg transform='translate(-107.251 1.061)'%3E%3Cpath d='M108.312,8.656,113,13.344l4.687-4.687' transform='translate(0 -8.656)' fill='none' stroke='%23494949' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-position: calc(100% - 12px) center;
    background-size: 11.496px 6.498px;
    background-repeat: no-repeat;
}

.naaamp-pagination {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 1px 2px #1018280D;
}

.naaamp-page-button,
.naaamp-page-current {
    display: inline-grid;
    place-items: center;
    width: 41px;
    min-height: 39px;
}

.naaamp-page-button {
    border: 0;
    border-right: 1px solid #d6dee8;
    background: #fff;
    color: #23384f;
}

.naaamp-page-current {
    background: #20486D;
    color: white;
    border: 1px solid #20486D;
}

.naaamp-page-button:disabled {
    opacity: 0.75;
}

button.naaamp-page-next {
    border-right: none;
}

.naaamp-page-numbers {
    display: flex;
}

.naaamp-empty-row .naaamp-table-cell{
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

/** Responsive **/
@media (max-width: 1180px) {
    #naaamp-company-panel .naaamp-field-grid,
    #naaamp-contact-panel .naaamp-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .naaamp-page-shell {
        padding: 20px 12px;
    }

    /*.naaamp-search-page {*/
    /*    padding: 10px 8px 20px;*/
    /*}*/

    .naaamp-results-card {
        padding: 20px;
    }

    .naaamp-results-footer {
        flex-wrap: wrap;
    }

    .naaamp-results-count {
        flex: 1 1 100%;
        order: -1;
    }

    .naaamp-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .naaamp-results-table,
    .naaamp-table-head,
    .naaamp-table-body,
    .naaamp-table-row,
    .naaamp-table-cell {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .naaamp-table-head {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .naaamp-table-body {
        display: grid;
        gap: 14px;
    }

    .naaamp-table-body .naaamp-table-row {
        border: 1px solid #E4E7EC;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

    .naaamp-results-card .naaamp-table-cell {
        display: grid;
        grid-template-columns: minmax(112px, 32%) minmax(0, 1fr);
        gap: 14px;
        padding: 12px 16px;
        border-bottom: 1px solid #E4E7EC;
    }

    .naaamp-results-card .naaamp-table-cell::before {
        content: attr(data-naaamp-label);
        color: #494949;
        font-weight: 600;
    }

    .naaamp-table-body .naaamp-table-row:last-child .naaamp-table-cell,
    .naaamp-table-body .naaamp-table-cell:last-child {
        border-bottom: 0;
    }

    .naaamp-table-heading:nth-child(n),
    .naaamp-table-cell:nth-child(n),
    #naaamp-contact-table .naaamp-table-heading:nth-child(n),
    #naaamp-contact-table .naaamp-table-cell:nth-child(n) {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .naaamp-results-placeholder {
        min-height: 180px;
    }
    .naaamp-page-shell {
        padding: 16px 10px;
    }

    /*.naaamp-search-page {*/
    /*    padding: 8px 0 16px;*/
    /*}*/

    .naaamp-tabs {
        width: 100%;
    }

    .naaamp-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
    }

    .naaamp-search-card,
    .naaamp-results-card {
        padding: 16px;
    }

    .naaamp-check-row {
        gap: 14px;
    }

    .naaamp-check-field {
        width: 100%;
    }

    #naaamp-company-panel .naaamp-field-grid,
    #naaamp-contact-panel .naaamp-field-grid {
        grid-template-columns: 1fr;
    }

    #naaamp-search-form .naaamp-search-button {
        width: 100%;
    }

    .naaamp-results-footer {
        align-items: stretch;
        padding: 16px;
    }

    .naaamp-page-size-field,
    .naaamp-pagination {
        width: 100%;
    }

    .naaamp-page-shell .naaamp-tab-panel .naaamp-page-size-field {
        justify-content: space-between;
    }

    .naaamp-pagination {
        justify-content: space-between;
    }

    .naaamp-page-button,
    .naaamp-page-current {
        flex: 1 1 0;
    }

    .naaamp-results-card .naaamp-table-cell {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/** Loading states **/
.naaamp-search-card.naaamp-is-loading::after,
.naaamp-results-card.naaamp-is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 99999999999;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
}

.naaamp-search-card.naaamp-is-loading {
    pointer-events: none;
}

#naaamp-search-form .naaamp-search-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.naaamp-results-card.naaamp-is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid #E4E7EC;
    border-top-color: #20486D;
    border-radius: 50%;
    animation: naaamp-loader-spin 0.8s linear infinite;
}

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


/*Single Company View and Contact View*/
.single-contact .wf-container-main,
.single-contact-add .wf-container-main{
    width: 100%;
}

.single-contact #main:not(.sidebar-none) .wf-container-main,
.single-contact-add #main:not(.sidebar-none) .wf-container-main {
    display: flex;
}

.company-template-default.single-company #main,
.single-contact #main,
.single-contact-add #main {
    padding: 0 !important;
}
.company-template-default.single-company .wf-wrap,
.single-contact .wf-wrap,
.single-contact-add .wf-wrap {
    width: 100% !important;
    padding: 0 !important;
}

.naaamp-detail-page {
    width: 100%;
}

.naaamp-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.naaamp-detail-title {
    margin: 0;
    color: #323232;
    font-size: 20px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
}

.naaamp-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.naaamp-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.naaamp-detail-button-light {
    border: 1px solid #20486D;
    color: #21486D;
    background: #EDF0F4;
}

.naaamp-detail-button-dark {
    border: 1px solid #20486D;
    color: #fff;
    background: #20486D;
}

.naaamp-detail-button-primary {
    border: 1px solid #4982BF;
    color: #fff;
    background: #4982BF;
}

.naaamp-detail-button-danger {
    border: 1px solid #C0392B;
    color: #fff;
    background: #C0392B;
}

.naaamp-detail-button-primary:hover,
.naaamp-detail-button-dark:hover {
    color: #fff;
    opacity: 0.9;
}

.naaamp-detail-button-danger:hover {
    color: #fff;
    background: #a93226;
}

.naaamp-detail-button-light:hover {
    background: #d3d3d3;
}

.naaamp-detail-card-wrapper {
    border: 1px solid #E4E7EC;
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 16px;
}

.naaamp-detail-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 11px 25px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #FFFFFF;
}

.naaamp-detail-row {
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    gap: 0;
    padding: 0 0 28px;
}

.naaamp-detail-label {
    color: #494949;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
}

.naaamp-detail-value {
    color: #20486D;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
    font-family: "Open Sans", sans-serif;
}

.naaamp-detail-value .naaamp-link {
    color: #17446f;
    font-weight: 600;
    text-decoration: underline;
}

.naaamp-detail-value .naaamp-link:hover {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .naaamp-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .naaamp-detail-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .naaamp-detail-card {
        padding: 20px;
    }

    .naaamp-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-bottom: 22px;
    }

    .naaamp-detail-actions {
        width: 100%;
    }

    .naaamp-detail-button {
        width: 100%;
    }
}

/* Edit Forms */
.acf-url.-valid i,
.acf-icon.-globe:before {
    display: none;
}

.naaamp-edit-card {
    position: relative;
    padding: 24px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
}

.naaamp-edit-form .acf-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
    border: 0;
    background: transparent;
}

.naaamp-edit-form .acf-fields > .acf-field {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.naaamp-edit-form .acf-label {
    margin: 0 0 7px;
}

.naaamp-edit-form .acf-label label {
    margin: 0;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: normal !important;
}

.naaamp-edit-form .acf-label .acf-required {
    color: #4d4d4d;
}

.naaamp-edit-form .acf-label > .description {
    display: none;
}

.naaamp-edit-form .acf-input input[type="text"],
.naaamp-edit-form .acf-input input[type="email"],
.naaamp-edit-form .acf-input input[type="url"],
.naaamp-edit-form .acf-input input[type="number"],
.naaamp-edit-form .acf-input input[type="password"],
.naaamp-edit-form .acf-input textarea,
.naaamp-edit-form .acf-input select {
    width: 100%;
    min-height: 44px;
    padding: 13px 16px 12px;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px #1018280D;
    color: #494949;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 0 !important;
    line-height: 19px;
}

.naaamp-edit-form .acf-input textarea {
    min-height: 128px;
    padding-top: 18px;
    padding-bottom: 18px;
    resize: vertical;
}

.naaamp-edit-form .acf-input input[readonly],
.naaamp-edit-form .acf-input input:disabled,
.naaamp-edit-form .acf-input textarea[readonly],
.naaamp-edit-form .acf-input textarea:disabled,
.naaamp-edit-form .acf-input select:disabled,
.naaamp-edit-form .acf-input .acf-readonly {
    border: 1px solid #E4E7EC;
    background: #EDF0F4;
    color: #21486D;
    opacity: 1;
    font-weight: normal;
}

.naaamp-edit-form .acf-field[data-width] {
    width: auto !important;
}

.naaamp-edit-form .acf-field[data-width="25"] {
    grid-column: span 1;
}

.naaamp-edit-form .acf-field[data-width="33"],
.naaamp-edit-form .acf-field[data-width="50"] {
    grid-column: span 2;
}

.naaamp-edit-form .acf-field[data-width="66"],
.naaamp-edit-form .acf-field[data-width="75"],
.naaamp-edit-form .acf-field[data-width="100"] {
    grid-column: span 4;
}

.naaamp-edit-form .acf-field-message,
.naaamp-edit-form .acf-field-repeater,
.naaamp-edit-form .acf-field-gallery,
.naaamp-edit-form .acf-field-wysiwyg,
.naaamp-edit-form .acf-field-google-map,
.naaamp-edit-form .acf-field-relationship {
    grid-column: span 4;
}

.naaamp-edit-form .acf-checkbox-list,
.naaamp-edit-form .acf-radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 18px 20px;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20, 45, 70, 0.08);
}

.naaamp-edit-form .acf-checkbox-list label,
.naaamp-edit-form .acf-radio-list label {
    color: #17446f;
    font-size: 17px;
    font-weight: 600;
}

.naaamp-edit-form .acf-form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.naaamp-edit-form .acf-notice {
    box-sizing: border-box;
    grid-column: 1 / -1;
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.naaamp-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
}

.naaamp-edit-cancel-button,
.naaamp-edit-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 85px;
    min-height: 43px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.naaamp-edit-cancel-button {
    color: #fff;
    background: #C0392B;
}

.naaamp-edit-save-button {
    color: #fff;
    background: #4982BF;
}

.naaamp-edit-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

/* Success and error messages */
.naaamp-form-message {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.naaamp-form-message-success {
    border: 1px solid #b8dfc2;
    background: #edf8f0;
    color: #217a3d;
}

.naaamp-form-message-error {
    border: 1px solid #efc4c7;
    background: #fff1f2;
    color: #b4232b;
}

/* Hidden-profile notice on the contact's own Edit screen */
.naaamp-form-message-info {
    border: 1px solid #bcd4ef;
    background: #eff5fc;
    color: #1f5b9e;
}

.naaamp-assistance-message {
    width: 100%;
    margin: 24px auto 0;
    padding: 0 16px;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
}

.naaamp-assistance-message p {
    margin: 0;
}

/* Edit loading state */
.naaamp-edit-card.naaamp-is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 999999999;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
}

.naaamp-edit-card.naaamp-is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid #E4E7EC;
    border-top-color: #20486D;
    border-radius: 50%;
    animation: naaamp-loader-spin 0.8s linear infinite;
}

.naaamp-edit-card.naaamp-is-loading {
    pointer-events: none;
}

.naaamp-edit-form .acf-spinner,
.naaamp-edit-form .spinner,
.naaamp-edit-form .acf-form-submit .acf-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.naaamp-edit-form .naaamp-edit-save-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.naaamp-edit-form .naaamp-edit-cancel-button.naaamp-is-disabled {
    pointer-events: none;
    opacity: 0.75;
}

@media (max-width: 1200px) {
    .naaamp-edit-form .acf-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .naaamp-edit-form .acf-field[data-width],
    .naaamp-edit-form .acf-field-message,
    .naaamp-edit-form .acf-field-repeater,
    .naaamp-edit-form .acf-field-gallery,
    .naaamp-edit-form .acf-field-wysiwyg,
    .naaamp-edit-form .acf-field-google-map,
    .naaamp-edit-form .acf-field-relationship {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .naaamp-edit-card {
        padding: 20px;
    }

    .naaamp-edit-form .acf-fields {
        grid-template-columns: 1fr;
    }

    .naaamp-edit-form .acf-field[data-width],
    .naaamp-edit-form .acf-field-message,
    .naaamp-edit-form .acf-field-repeater,
    .naaamp-edit-form .acf-field-gallery,
    .naaamp-edit-form .acf-field-wysiwyg,
    .naaamp-edit-form .acf-field-google-map,
    .naaamp-edit-form .acf-field-relationship {
        grid-column: span 1;
    }

    .naaamp-edit-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .naaamp-edit-cancel-button,
    .naaamp-edit-save-button {
        width: 100%;
    }
}

/* ACF validation */
/* Top/global validation notice */
.naaamp-edit-form > .acf-notice.-error,
.naaamp-edit-form .acf-fields > .acf-notice.-error,
.naaamp-edit-form .acf-notice.-error:not(.acf-error-message) {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    margin: 0 0 20px !important;
    padding: 16px 48px 16px 18px !important;
    border: 1px solid #F3B8BE !important;
    border-radius: 10px !important;
    background: #FFF1F2 !important;
    box-shadow: none !important;
    color: #B4232B !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.naaamp-edit-form > .acf-notice.-error p,
.naaamp-edit-form .acf-fields > .acf-notice.-error p,
.naaamp-edit-form .acf-notice.-error:not(.acf-error-message) p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep field controls stable */
.naaamp-edit-form .acf-field .acf-input {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    width: 100%;
}

/* Controls always first */
.naaamp-edit-form .acf-field .acf-input > .acf-input-wrap,
.naaamp-edit-form .acf-field .acf-input > .acf-url,
.naaamp-edit-form .acf-field .acf-input > .select2,
.naaamp-edit-form .acf-field .acf-input > .select2-container,
.naaamp-edit-form .acf-field .acf-input > input,
.naaamp-edit-form .acf-field .acf-input > textarea,
.naaamp-edit-form .acf-field .acf-input > select,
.naaamp-edit-form .acf-field .acf-input > .acf-checkbox-list,
.naaamp-edit-form .acf-field .acf-input > .acf-radio-list {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    min-width: 0;
}

/* Inline error always below the field */
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #D92D20 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Error field border */
.naaamp-edit-form .acf-field.acf-error input[type="text"],
.naaamp-edit-form .acf-field.acf-error input[type="email"],
.naaamp-edit-form .acf-field.acf-error input[type="url"],
.naaamp-edit-form .acf-field.acf-error input[type="number"],
.naaamp-edit-form .acf-field.acf-error input[type="password"],
.naaamp-edit-form .acf-field.acf-error textarea,
.naaamp-edit-form .acf-field.acf-error select,
.naaamp-edit-form .acf-field.acf-error .select2-container .select2-selection {
    border-color: #F04438 !important;
    background-color: #fff !important;
}

/* ACF sometimes injects notice before input wrapper; this prevents it from taking field height/layout */
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + .acf-input-wrap,
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + .acf-url,
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + .select2-container,
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + input,
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + textarea,
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message + select {
    grid-row: 1;
}

/* Dismiss button only for global notice */
.naaamp-edit-form > .acf-notice.-error .acf-notice-dismiss,
.naaamp-edit-form .acf-fields > .acf-notice.-error .acf-notice-dismiss {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #D92D20;
}

/* No dismiss button on inline errors */
.naaamp-edit-form .acf-field .acf-input > .acf-notice.-error.acf-error-message .acf-notice-dismiss {
    display: none !important;
}

/** Edit company positions **/
.naaamp-company-positions-page .naaamp-detail-header {
    margin-bottom: 21px;
}

.naaamp-company-positions-page .naaamp-detail-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: #323232;
}

.naaamp-company-positions-page .naaamp-detail-button-dark {
    min-height: 43px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #20486D;
    border-color: #20486D;
    color: #fff;
    box-shadow: 0 1px 2px #1018280D;
}

.naaamp-company-positions-card {
    padding: 36px 35px 31px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
}

.naaamp-company-positions-table-wrap {
    overflow-x: auto;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
}

.naaamp-company-positions-table {
    width: 100%;
    min-width: 1320px;
    margin: 0 !important;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

.content table.naaamp-company-positions-table {
    margin: 0 !important;
}

.naaamp-company-positions-table th,
.naaamp-company-positions-table td {
    height: 43px;
    padding: 12px 24px;
    border: 0;
    border-bottom: 1px solid #E4E7EC;
    background: #fff;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
    font-weight: normal;
}

.naaamp-company-positions-table th {
    font-weight: 600;
    white-space: nowrap;
}

.naaamp-company-positions-table td {
    font-weight: 400;
}

.naaamp-company-positions-table tbody tr:last-child td {
    border-bottom: 0;
}

.naaamp-company-positions-table th:first-child,
.naaamp-company-positions-table td:first-child {
    padding-left: 23px;
}

.naaamp-company-positions-table th:nth-child(1),
.naaamp-company-positions-table td:nth-child(1) {
    width: 173px;
}

.naaamp-company-positions-table th:nth-child(2),
.naaamp-company-positions-table td:nth-child(2) {
    width: 193px;
}

.naaamp-company-positions-table th:nth-child(3),
.naaamp-company-positions-table td:nth-child(3) {
    width: 110px;
}

.naaamp-company-positions-table th:nth-child(4),
.naaamp-company-positions-table td:nth-child(4) {
    width: 127px;
}

.naaamp-company-positions-table th:nth-child(5),
.naaamp-company-positions-table td:nth-child(5) {
    width: 91px;
}

.naaamp-company-positions-table th:nth-child(6),
.naaamp-company-positions-table td:nth-child(6) {
    width: 98px;
}

.naaamp-company-positions-table th:nth-child(7),
.naaamp-company-positions-table td:nth-child(7) {
    width: 173px;
}

.naaamp-company-positions-table th:nth-child(n+3),
.naaamp-company-positions-table td:nth-child(n+3) {
    text-align: center;
}

.naaamp-company-positions-table .naaamp-link {
    color: #20486D;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: normal;
}

.naaamp-position-radio,
.naaamp-position-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
}

.naaamp-position-radio input,
.naaamp-position-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.naaamp-position-radio span {
    position: relative;
    display: block;
    width: 19px;
    height: 19px;
    border: 1px solid #E4E7ED;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px #0000000D;
}

.naaamp-position-radio input:checked + span {
    border-color: #E4E7ED;
    background: #21486D;
    box-shadow: 0 1px 3px #0000000D;
}

.naaamp-position-radio input:checked + span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.naaamp-position-checkbox span {
    position: relative;
    display: block;
    width: 19px;
    height: 19px;
    border: 1px solid #E4E7EC;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 2px #1018280D;
}

.naaamp-position-checkbox input:disabled + span {
    background: #EDF0F4;
    cursor: not-allowed;
}

.naaamp-position-checkbox input:checked + span::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.767' height='12.29' viewBox='0 0 13.767 12.29'%3E%3Cpath d='M4.5,11.083,9.167,15.75l7-10.5' transform='translate(-3.439 -4.21)' fill='none' stroke='%2320486d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 0;
    transform: none;
}

.naaamp-company-positions-actions {
    margin-top: 36px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .naaamp-company-positions-card {
        padding: 20px;
    }

    .naaamp-company-positions-actions {
        margin-top: 24px;
    }
}

/** New select with search **/
.naaamp-edit-form {
    --naaamp-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.496' height='6.498' viewBox='0 0 11.496 6.498'%3E%3Cg transform='translate(-107.251 1.061)'%3E%3Cpath d='M108.312,8.656,113,13.344l4.687-4.687' transform='translate(0 -8.656)' fill='none' stroke='%23494949' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.naaamp-edit-form .acf-input select,
.naaamp-edit-form .naaamp-contact-core-fields select {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 44px;
    padding: 13px 46px 12px 16px !important;
    background-color: #fff !important;
    background-image: var(--naaamp-select-arrow) !important;
    background-position: calc(100% - 18px) center !important;
    background-size: 11.496px 6.498px !important;
    background-repeat: no-repeat !important;
}

.naaamp-edit-form .acf-input select:disabled,
.naaamp-edit-form .naaamp-contact-core-fields select:disabled {
    background-color: #EDF0F4 !important;
    background-image: var(--naaamp-select-arrow) !important;
}

.naaamp-edit-form .select2-container {
    width: 100% !important;
    min-height: 44px;
}

.naaamp-edit-form .select2-container .select2-selection {
    min-height: 44px !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px #1018280D !important;
}

.naaamp-edit-form .select2-container .select2-selection__rendered {
    min-height: 44px;
    padding: 12px 46px 11px 16px !important;
    color: #494949 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.naaamp-edit-form .select2-container .select2-selection__arrow {
    top: 0 !important;
    right: 0 !important;
    width: 46px !important;
    height: 44px !important;
}

.naaamp-edit-form .select2-container .select2-selection__arrow b {
    display: none !important;
}

.naaamp-edit-form .select2-container .select2-selection__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 11.496px;
    height: 6.498px;
    background-image: var(--naaamp-select-arrow);
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}

.naaamp-edit-form .select2-container--open .select2-selection {
    border-color: #98A2B3 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.naaamp-edit-form .select2-container--open .select2-selection__arrow::after {
    transform: translateY(-50%) rotate(180deg);
}

.naaamp-edit-form .select2-container--disabled .select2-selection,
.naaamp-edit-form .acf-field-not-editable-locked .select2-container .select2-selection {
    background: #EDF0F4 !important;
    border-color: #E4E7EC !important;
}

.naaamp-edit-form .select2-container--disabled .select2-selection__rendered,
.naaamp-edit-form .acf-field-not-editable-locked .select2-container .select2-selection__rendered {
    color: #21486D !important;
    font-weight: normal !important;
}

.select2-container--open .select2-dropdown {
    border: 1px solid #98A2B3 !important;
    border-radius: 0 0 8px 8px !important;
    background: #fff !important;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12) !important;
    overflow: hidden;
}

.select2-container--open .select2-search--dropdown {
    padding: 8px 14px;
}

.select2-container--open .select2-search--dropdown .select2-search__field {
    min-height: 34px;
    padding: 7px 10px !important;
    border: 1px solid #98A2B3 !important;
    border-radius: 4px !important;
    color: #494949;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.select2-container--open .select2-results__options {
    max-height: 260px;
    padding: 8px 0;
}

.select2-container--open .select2-results__option {
    padding: 9px 16px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.select2-container--open .select2-results__option--highlighted[aria-selected],
.select2-container--open .select2-results__option[aria-selected="true"] {
    background: #1f1f1f !important;
    color: #fff !important;
}

.naaamp-json-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    background: #fff;
}

.naaamp-json-table {
    width: max-content;
    min-width: 720px;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.naaamp-json-table tbody tr:last-child td {
    padding-bottom: 30px;
}

.naaamp-json-table th,
.naaamp-json-table td {
    min-width: 150px;
    padding: 10px 12px;
    border: 0;
    border-right: 1px solid #E4E7EC;
    border-bottom: 1px solid #E4E7EC;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.naaamp-json-table th {
    background: #F7F7F7;
    font-weight: 600;
}

.naaamp-json-table td {
    color: #20486D;
    font-weight: 600;
}

.naaamp-json-table th:last-child,
.naaamp-json-table td:last-child {
    border-right: 0;
}

.naaamp-json-table tbody tr:last-child td {
    border-bottom: 0;
}

/** Delete contact **/
.naaamp-modal[hidden] {
    display: none;
}

.naaamp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.naaamp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.naaamp-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 24px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.18);
}

.naaamp-modal__title {
    margin: 0 0 10px;
    color: #323232;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.naaamp-modal__text {
    margin: 0;
    color: #494949;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.naaamp-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.naaamp-modal.naaamp-is-loading .naaamp-modal__dialog {
    pointer-events: none;
}

.naaamp-modal.naaamp-is-loading .naaamp-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
}

.naaamp-modal.naaamp-is-loading .naaamp-modal__dialog::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 4px solid #E4E7EC;
    border-top-color: #20486D;
    border-radius: 50%;
    animation: naaamp-loader-spin 0.8s linear infinite;
}

.naaamp-contact-delete-message {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .naaamp-modal__actions {
        flex-direction: column-reverse;
    }

    .naaamp-modal__actions .naaamp-edit-cancel-button,
    .naaamp-modal__actions .naaamp-edit-save-button {
        width: 100%;
    }
}

.naaamp-edit-cancel-button:hover,
.naaamp-edit-cancel-button:focus {
    color: #fff;
    background: #a93226;
}

.naaamp-edit-save-button:hover,
.naaamp-edit-save-button:focus {
    color: #fff;
    background: #3f78b5;
}

.naaamp-detail-title-wrapper {
    display: flex;
    align-items: center;
}

.naaamp-detail-status {
    color: #20486D;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    background: #CBEDBC;
    border-radius: 20px;
    padding: 1px 10px;
    margin-top: 12px;
    margin-left: 25px;
    font-size: 14px;
}

.naaamp-detail-status-inactive {
    background: #E3B0B0;
}

/** History blocks on the contact view page **/
.naaamp-detail-history-row {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.naaamp-detail-history-item {
    min-width: 0;
}

.naaamp-detail-history-item .naaamp-detail-value {
    width: 100%;
}

.naaamp-detail-history-item .naaamp-json-table-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
}

.naaamp-detail-history-item .naaamp-json-table {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.naaamp-detail-history-item .naaamp-json-table thead th {
    text-transform: uppercase;
    padding: 16px 16px 12px 16px;
    border: 0;
    border-bottom: 1px solid #E4E7EC;
    background: #F7F7F7;
    color: #21486D;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.25;
    text-align: left;
    letter-spacing: 0;
    font-family: "Open Sans", sans-serif;
}

.naaamp-detail-history-item .naaamp-json-table tbody td {
    padding: 16px 16px 12px 15px;
    border: 0;
    background: #fff;
    color: #323232;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    font-family: "Open Sans", sans-serif;
}

.naaamp-detail-history-item .naaamp-json-table tbody td:first-child {
    color: #21486D;
    font-weight: bold;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
}

.naaamp-detail-history-item .naaamp-json-table tbody td:last-child {
    white-space: nowrap;
}

.naaamp-history-collapse {
    display: none;
    height: 0;
    overflow: hidden;
}

.naaamp-history-collapse.naaamp-collapse-show {
    display: block;
    height: auto;
}

.naaamp-history-collapse.naaamp-collapsing {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.naaamp-json-table-extra tbody tr:first-child td {
    padding-top: 14px;
}

.naaamp-history-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -18px auto 0;
    border: 0;
    border-radius: 50%;
    background: #21486D;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.15);
    transition: background-color 0.2s ease;
}

.naaamp-history-toggle:hover,
.naaamp-history-toggle:focus {
    background: #173b5e;
    color: #fff;
}

.naaamp-history-toggle::before {
    content: "";
    width: 14.24px;
    height: 7.669px;
    margin: 0;
    border: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14.24' height='7.669' viewBox='0 0 14.24 7.669'%3E%3Cpath d='M8.232,4.66a.548.548,0,0,1,.775,0l6.572,6.572a.548.548,0,0,1-.775.775L8.619,5.822,2.435,12.007a.548.548,0,1,1-.775-.775Z' transform='translate(-1.499 -4.499)' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(180deg);
    transition: transform 0.24s ease;
}

.naaamp-history-toggle.naaamp-is-open::before {
    margin: 0;
    transform: rotate(0deg);
}

.naaamp-detail-history-item.naaamp-has-accordion .naaamp-history-toggle {
    display: flex;
}

@media (max-width: 1100px) {
    .naaamp-detail-history-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .naaamp-detail-history-item .naaamp-json-table thead th,
    .naaamp-detail-history-item .naaamp-json-table tbody td {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.single-company .naaamp-json-table td,
.single-company .naaamp-json-table-wrap {
    border: none;
}

.single-company .naaamp-json-table-wrap {
    overflow-x: visible;
}

.single-company .naaamp-json-table {
    min-width: 0;
    width: 100%;
}

.single-company .naaamp-json-table td {
    padding: 0 0 5px 0;
    white-space: normal;
}

.single-company .naaamp-json-table tbody tr:last-child td {
    padding: 0;
}

/** Tooltip **/
.naaamp-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
    overflow: visible;
}

.naaamp-tooltip__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #20486D;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.naaamp-tooltip__content {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    z-index: 9999;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    background: #fff;
    color: #494949;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.naaamp-tooltip__content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 0;
    height: 0;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    border-left: 7px solid transparent;
    background: transparent;
    transform: translateX(-50%);
}

.naaamp-tooltip:hover .naaamp-tooltip__content,
.naaamp-tooltip:focus-within .naaamp-tooltip__content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.naaamp-edit-form .naaamp-tooltip {
    margin-bottom: 3px;
}

.naaamp-edit-form .naaamp-tooltip__content {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 4px);
}

.naaamp-edit-form .naaamp-tooltip__content::after {
    top: 100%;
    bottom: auto;
    border-top: 7px solid #fff;
    border-right: 7px solid transparent;
    border-bottom: 0;
    border-left: 7px solid transparent;
    transform: translateX(-50%);
}

.naaamp-edit-form .naaamp-tooltip:hover .naaamp-tooltip__content,
.naaamp-edit-form .naaamp-tooltip:focus-within .naaamp-tooltip__content {
    transform: translate(-50%, 0);
}

/* Last/right column: keep tooltip inside the table area */
.naaamp-company-positions-table th:last-child .naaamp-tooltip__content {
    left: auto;
    right: -10px;
    transform: translateY(-4px);
}

.naaamp-company-positions-table th:last-child .naaamp-tooltip__content::after {
    left: auto;
    right: 14px;
    transform: none;
}

.naaamp-company-positions-table th:last-child .naaamp-tooltip:hover .naaamp-tooltip__content,
.naaamp-company-positions-table th:last-child .naaamp-tooltip:focus-within .naaamp-tooltip__content {
    transform: translateY(0);
}

.naaamp-company-positions-page .naaamp-company-positions-table th {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip__content {
    top: calc(100% + 10px);
    bottom: auto;
    transform: translateY(-4px);
}

.naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip__content::after {
    top: auto;
    bottom: 100%;
    border-top: 0;
    border-bottom: 7px solid #fff;
    transform: none;
}

.naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip:hover .naaamp-tooltip__content,
.naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip:focus-within .naaamp-tooltip__content {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .naaamp-tooltip__content {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .naaamp-tooltip__content,
    .naaamp-company-positions-table th:last-child .naaamp-tooltip__content {
        left: auto;
        right: -8px;
        top: calc(100% + 8px);
        width: 260px;
        max-width: calc(100vw - 32px);
        transform: translateY(-4px);
    }

    .naaamp-tooltip__content::after,
    .naaamp-company-positions-table th:last-child .naaamp-tooltip__content::after {
        left: auto;
        right: 12px;
        transform: none;
    }

    .naaamp-tooltip:hover .naaamp-tooltip__content,
    .naaamp-tooltip:focus-within .naaamp-tooltip__content,
    .naaamp-company-positions-table th:last-child .naaamp-tooltip:hover .naaamp-tooltip__content,
    .naaamp-company-positions-table th:last-child .naaamp-tooltip:focus-within .naaamp-tooltip__content {
        transform: translateY(0);
    }

    .naaamp-edit-form .naaamp-tooltip__content {
        top: auto;
        bottom: calc(100% + 8px);
        transform: translateY(4px);
    }

    .naaamp-edit-form .naaamp-tooltip__content::after {
        top: 100%;
        bottom: auto;
        border-top: 7px solid #fff;
        border-bottom: 0;
        transform: none;
    }

    .naaamp-edit-form .naaamp-tooltip:hover .naaamp-tooltip__content,
    .naaamp-edit-form .naaamp-tooltip:focus-within .naaamp-tooltip__content {
        transform: translateY(0);
    }

    .naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip__content {
        top: calc(100% + 8px);
        bottom: auto;
        transform: translateY(-4px);
    }

    .naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip__content::after {
        top: auto;
        bottom: 100%;
        border-top: 0;
        border-bottom: 7px solid #fff;
        transform: none;
    }

    .naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip:hover .naaamp-tooltip__content,
    .naaamp-company-positions-page .naaamp-company-positions-table th:last-child .naaamp-tooltip:focus-within .naaamp-tooltip__content {
        transform: translateY(0);
    }
}
