@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --main-text: #14573a;
    --main-bg: #1b8354;
    --second-text: #222a26;
    --paragraoh-text: #313842;
    --container-width: 1100px;
    --bg-box: #f2fcf8;
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}

#table-body {
    background-color: #fff !important;
    background: url(../img/patternBackground.png) top center no-repeat;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    padding-top: 1rem;
}

#table-body .container {
    width: 100%;
    max-width: var(--container-width);
    background: url('../img/main_border.png') top center no-repeat;
    margin: 4rem auto;
    padding: 2rem 2rem;
    position: relative;
}

#table-body .container h2.main-title {
    display: block;
    width: fit-content;
    background-color: #1b8354;
    position: absolute;
    top: -25px;
    right: 0;
    left: 0;
    margin: 0 auto;
    filter: drop-shadow(4px 0px 12px #1b835463);
    color: #fff;
    padding: 0.7rem 1rem;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 8px;
    padding: 1rem 3rem;
    text-align: center;
}

#table-body .conatiner-flex {
    display: flex;
    padding: 5rem 2rem 0rem;
    column-gap: 2rem;
    max-width: var(--container-width);
    flex-direction: column;
    row-gap: 3rem;
}

/* --- UNI-ACCORDION STYLES --- */

.uni-acc-item {
    border: 1px solid rgba(0, 0, 0, .125);
    background-color: #fff;
}

.uni-acc-item:first-of-type {
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.uni-acc-item:not(:first-of-type) {
    border-top: 0;
}

.uni-acc-item:last-of-type {
    border-bottom-right-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.uni-acc-header {
    margin-bottom: 0;
}

.uni-acc-btn {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #212529;
    text-align: right;
    /* RTL */
    background-color: #E8F0EC;
    /* Custom override merged */
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
    font-weight: bold;
    /* Custom override */
    color: #074808;
    /* Custom override */
    margin-bottom: 0.25rem;
    /* Custom override */
}

.uni-acc-btn:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    /* box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); */
    /* Custom override says unset */
    box-shadow: unset;
}

.uni-acc-btn::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: auto;
    /* RTL */
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    fill: #fff;
    background-size: 1.25rem;
    transition: transform .2s ease-in-out;
}

.uni-acc-btn:not(.collapsed) {
    background-color: #066058;
    /* Custom override */
    color: #fff;
    /* Custom override */
    box-shadow: 0 4px 16px 0 rgba(0, 92, 32, 0.34);
    /* Custom override */
}

.uni-acc-btn:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.uni-acc-body {
    padding: 1rem 1.25rem;
}

/* Custom Overrides Ported */

.uni-acc-section-name {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 3.5rem;
    font-size: 0.8rem;
    color: #305d49;
}

.uni-acc-sub-btn {
    padding: 1rem;
    font-size: 0.9rem;
}

.uni-acc-btn:not(.collapsed) .uni-acc-section-name {
    color: #fff;
}

.uni-acc-sub-btn:not(.collapsed) {
    background: #49a767;
    box-shadow: unset;
    color: #fff;
}

.uni-acc-btn i {
    margin-left: 0.5rem;
}

/* Structural resets from custom-style.css */
.uni-acc-item:not(:first-child) {
    border-top: 0;
}

.uni-acc-item,
.uni-acc {
    background-color: transparent;
}

/* Selector for specific ID replaced with uni-acc-root */
#uni-acc-root .uni-acc-item:has(.uni-acc-sub-btn) {
    background-color: #f3faf7;
}

/* --- END ACCORDION --- */

.table {
    font-size: 0.85rem;
}

.table thead tr th,
.table tbody tr td {
    text-align: center;
}

span.un-available {
    display: block;
    width: 60px;
    text-align: center;
    background-color: #f3c1c1;
    border: 1px solid #cc7676;
    font-size: 0.7rem;
    filter: drop-shadow(2px 2px 4px #cc767637);
    border-radius: 100px;
    padding: 0.2rem 0.1rem;
    color: #6d0a0a;
}

span.available {
    display: block;
    width: 60px;
    text-align: center;
    background-color: #d2fad3;
    border: 1px solid #92d693;
    font-size: 0.7rem;
    filter: drop-shadow(2px 2px 4px #4e84503f);
    border-radius: 100px;
    padding: 0.2rem 0.1rem;
    color: #074808;
}

table tr td a {
    color: #074808;
    position: relative;
    display: block;
}

table tr td a:hover::before {
    opacity: 1;
}

.info-box {
    border: 1px solid #0e4d3141;
    color: var(--main-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    filter: drop-shadow(2px 2px 4px #0e4d3131);
    background-color: #14573a11;
    font-weight: bold;
    font-size: 1rem;
}

.customLink {
    background-color: #d6f5e7;
    border: 1px solid #14573a49;
    color: #0e4d31;
    filter: drop-shadow(2px 2px 8px #1a302632);
    width: fit-content;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    margin: 0 auto;
}

.customLink:hover {
    background-color: #f6fffb;
}