/*
 ASEMANEEHA PHASE 455
 React Tag Management Card Layout
*/

.asem455-tags-heading {
    direction: rtl;
    text-align: right;
    margin: 8px 0 18px;
    padding: 22px 26px;
    border: 1px solid #e1ebe8;
    border-radius: 16px;
    background: linear-gradient(115deg, #ffffff, #f2f8f6);
}

.asem455-tags-heading h1 {
    margin: 0 0 7px;
    color: #173d40;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 800;
}

.asem455-tags-heading p {
    margin: 0;
    color: #708481;
    font-size: 13px;
    line-height: 1.8;
}

.asem455-tags-section {
    direction: rtl;
    margin-top: 20px !important;
    padding-bottom: 30px !important;
}

.asem455-tags-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: start;
}

.asem455-tags-grid > [data-state] {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e9e6 !important;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 55, 56, .045);
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.asem455-tags-grid > [data-state]:hover {
    border-color: #bfd6d0 !important;
    box-shadow: 0 8px 24px rgba(15, 55, 56, .075);
}

.asem455-tags-grid > [data-state="open"] {
    border-color: #a6cac0 !important;
    box-shadow: 0 8px 24px rgba(15, 55, 56, .09);
}

.asem455-tags-grid > [data-state] > h3 {
    display: block;
    margin: 0;
    width: 100%;
}

.asem455-tags-grid > [data-state] > h3 > button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    min-height: 74px;
    padding: 17px 20px !important;
    margin: 0 !important;
    gap: 14px;
    text-align: right;
    text-decoration: none !important;
    background: #fff;
    color: #193c3f;
    border: 0;
    cursor: pointer;
}

.asem455-tags-grid > [data-state="open"] > h3 > button {
    background: #f1f8f5;
}

.asem455-tags-grid > [data-state] > h3 > button:hover {
    background: #f4f9f7;
}

.asem455-tags-grid > [data-state] > h3 > button > svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    color: #276d66;
}

.asem455-tags-grid > [data-state] > h3 > button .mt-10 {
    margin-top: 0 !important;
}

.asem455-tags-grid > [data-state] > h3 > button .text-xl {
    font-size: 15px !important;
    line-height: 1.8 !important;
    font-weight: 700 !important;
    text-align: right;
}

.asem455-tags-grid [role="region"] {
    min-width: 0;
    padding: 0 17px;
    background: #fff;
}

.asem455-tags-grid [role="region"] > div {
    padding: 15px 0 18px !important;
}

.asem455-tags-grid [role="region"] .flex.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    align-items: center;
    gap: 9px !important;
    direction: rtl;
}

.asem455-tags-grid [role="region"] .flex.flex-wrap > p {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 !important;
    border-radius: 9px !important;
    padding: 8px 11px !important;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.asem455-tags-grid button:focus-visible {
    outline: 2px solid #247d73 !important;
    outline-offset: 2px;
}

@media (min-width: 1500px) {
    .asem455-tags-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .asem455-tags-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .asem455-tags-heading {
        padding: 17px;
    }

    .asem455-tags-heading h1 {
        font-size: 19px;
    }

    .asem455-tags-grid > [data-state] > h3 > button {
        min-height: 65px;
        padding: 14px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asem455-tags-grid > [data-state] {
        transition: none;
    }
}