.ahms-page {
    min-height: 100vh;
    background: #f3f3f3;
    padding: 58px 24px 90px;
}

.ahms-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

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

.ahms-title {
    margin: 0;
    color: #000;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
}

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

.ahms-btn {
    min-height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    border: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ahms-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.ahms-btn-import {
    background: linear-gradient(135deg, #d218c9, #c018d2);
}

.ahms-btn-delete {
    background: #d71111;
}

.ahms-filter-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 34px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.ahms-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
}

.ahms-filter-grid.has-reset {
    grid-template-columns:
        minmax(140px, 1fr)
        minmax(160px, 1fr)
        minmax(140px, 1fr)
        minmax(160px, 1fr)
        56px;
}

.ahms-filter-field {
    position: relative;
}

.ahms-filter-field select,
.ahms-filter-field input {
    width: 100%;
    height: 42px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 0 14px;
    outline: none;
}

.ahms-filter-field select:disabled {
    background: #f4f4f4;
    color: #aaa;
    cursor: not-allowed;
}

.ahms-filter-field select:focus,
.ahms-filter-field input:focus {
    border-color: #e52323;
    box-shadow: 0 0 0 3px rgba(229, 35, 35, 0.1);
}

.ahms-filter-reset {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #e52323;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(229, 35, 35, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ahms-filter-reset:hover {
    background: #cf1515;
    transform: scale(1.04);
    box-shadow: 0 7px 16px rgba(229, 35, 35, 0.35);
}

.ahms-autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.ahms-autocomplete-item {
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #222;
}

.ahms-autocomplete-item:hover {
    background: #f5f5f5;
}

.ahms-autocomplete-item.no-results {
    cursor: default;
    color: #888;
}

.ahms-list {
    display: grid;
    gap: 34px;
}

.ahms-card {
    min-height: 186px;
    background: #fff;
    border-radius: 10px;
    padding: 32px 38px 32px 20px;
    display: grid;
    grid-template-columns: 30px 170px 1fr 120px;
    gap: 28px;
    align-items: center;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18);
}

.ahms-check {
    display: flex;
    justify-content: center;
}

.ahms-check input {
    width: 24px;
    height: 24px;
    accent-color: #e52323;
    cursor: pointer;
}

.ahms-image {
    width: 170px;
    height: 210px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
    background: #eee;
}

.ahms-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ahms-info h2 {
    margin: 0 0 7px;
    color: #000;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ahms-info h2 a {
    color: inherit;
    text-decoration: none;
}

.ahms-location {
    margin: 0 0 22px;
    color: #111;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.ahms-key {
    margin: -12px 0 14px;
    font-size: 10px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
}

.ahms-price {
    margin: 0 0 25px;
    color: #000;
    font-size: 18px;
    letter-spacing: 1.5px;
}

.ahms-price strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.ahms-meta {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 70px;
    row-gap: 8px;
}

.ahms-meta span {
    font-size: 10px;
    color: #000;
    font-weight: 500;
}

.ahms-card-actions {
    display: grid;
    gap: 16px;
    justify-items: end;
}

.ahms-card-btn {
    min-width: 104px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ahms-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 13px rgba(0, 0, 0, 0.22);
}

.ahms-edit {
    background: #f5f5f5;
    color: #111 !important;
}

.ahms-remove {
    background: #ef1f1f;
    color: #fff !important;
}

.ahms-empty {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.14);
}

.ahms-pagination {
    margin-top: 30px;
}

.featured-icon {
    margin-left: 8px;
    color: #cfcfcf;
    cursor: pointer;
}

.featured-icon.featured-active {
    color: #ffc400;
}

/* Laptop pequeña / tablet horizontal */
@media (min-width: 769px) and (max-width: 1200px) {
    .ahms-page {
        padding: 48px 26px 80px;
    }

    .ahms-container {
        max-width: 100%;
    }

    .ahms-header {
        gap: 20px;
        margin-bottom: 44px;
    }

    .ahms-title {
        font-size: 48px;
        letter-spacing: 9px;
    }

    .ahms-actions {
        flex-shrink: 0;
    }

    .ahms-btn {
        min-height: 44px;
        padding: 0 24px;
        font-size: 14px;
        white-space: nowrap;
    }

    .ahms-filter-card {
        padding: 22px 24px;
        overflow: visible;
    }

    .ahms-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ahms-filter-grid.has-reset {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 64px;
    }

    .ahms-filter-field select,
    .ahms-filter-field input {
        height: 54px;
        font-size: 16px;
        padding: 0 18px;
    }

    /*.ahms-filter-field:nth-child(5) {
        grid-column: 1 / 3;
    }*/

    .ahms-filter-reset {
        width: 64px;
        height: 64px;
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        justify-self: center;
    }

    .ahms-card {
        grid-template-columns: 28px 170px minmax(0, 1fr);
        gap: 24px;
        padding: 30px 28px;
    }

    .ahms-card-actions {
        grid-column: 3;
        display: flex;
        justify-content: flex-start;
        gap: 14px;
        margin-top: 14px;
    }

    .ahms-info h2 {
        font-size: 22px;
        letter-spacing: 3px;
        word-break: break-word;
    }

    .ahms-location {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .ahms-price {
        font-size: 21px;
    }

    .ahms-meta {
        grid-template-columns: repeat(2, minmax(0, max-content));
        column-gap: 45px;
    }

    .ahms-image {
        width: 170px;
        height: 150px;
    }
}


@media (max-width: 768px) {
    .ahms-page {
        padding: 36px 16px 70px;
    }

    .ahms-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .ahms-actions {
        width: 100%;
    }

    .ahms-btn {
        flex: 1;
    }

    .ahms-filter-grid {
        grid-template-columns: 1fr;
    }

    .ahms-filter-reset {
        width: 100%;
        border-radius: 8px;
    }

    .ahms-card {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 16px;
    }

    .ahms-check {
        justify-content: flex-start;
    }

    .ahms-image {
        width: 100%;
        height: 220px;
    }

    .ahms-meta {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ahms-card-actions {
        grid-column: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}






/* FIX FINAL MOBILE FILTROS AHMS */
@media screen and (max-width: 768px) {
    .ahms-filter-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .ahms-filter-grid,
    .ahms-filter-grid.has-reset {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ahms-filter-field,
    .ahms-filter-grid.has-reset .ahms-filter-field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .ahms-filter-field select,
    .ahms-filter-field input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .ahms-filter-reset {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: start !important;
    }
}



.ahms-card-support {
    grid-template-columns: 170px minmax(0, 1fr) 130px;
    padding-left: 38px;
}

.ahms-contact {
    background: #d218c9;
    color: #fff !important;
}

.ahms-popup-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .ahms-card-support {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .ahms-card-support .ahms-card-actions {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .ahms-card-support {
        grid-template-columns: 1fr;
        padding-left: 22px;
    }

    .ahms-card-support .ahms-card-actions {
        grid-column: auto;
    }
}




/* Import View Desing */


.ah-import-info{
    list-style:none;
}

.ah-import-alert{
    display:flex;
    gap:16px;
    align-items:flex-start;
    padding:18px;
    border-radius:14px;
    background:#f7f7f7;
    border:1px solid #ececec;
    margin-bottom:20px;
}

.ah-import-alert i{
    font-size:24px;
    color:#d21889;
    margin-top:2px;
}

.ah-import-alert strong{
    display:block;
    font-size:16px;
    margin-bottom:6px;
    color:#111;
}

.ah-import-alert p{
    margin:0 0 10px;
    color:#666;
    line-height:1.6;
}

.ah-import-alert p:last-child{
    margin-bottom:0;
}
