/* ERS Styles Updated with White Text and #84906B Background */
.ers-table thead tr th {
    background: #84906B!important;
    color :#FFFFFF!important;
}
div.ers-table-wrap ers-table-full{
     background: #84906B!important;
}

.ers-wrap {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    --ers-accent: #0ea5e9;
}

.canvas-appt {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ers-view {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(2,6,23,.08);
    background: #f8fafc;
}

.ers-bg {
    display: block;
    width: 100%;
    height: auto;
}

.ers-canvas {
    position: absolute;
    top: 0;
    left: 0;
}



.ers-table-full {
    width: 100%;
}

.ers-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

.ers-table-full th, .ers-table-full td {
    padding: 12px 15px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(132, 144, 107, 0.4);
    font-size: 14px;
}

.ers-table-full th {
    font-weight: 600;
    background-color: #84906B;
}

.ers-row-status-dispo td {
    background-color: #84906B;
}

.ers-row-status-reserved td {
    background-color: #96a17d;
}

.ers-row-status-sold td {
    background-color: #a8b28f;
}

.ers-table-full tr:last-child td {
    border-bottom: none;
}

.ers-table-full th:last-child, .ers-table-full td:last-child {
    text-align: center;
}

.ers-layout {
    margin-top: 24px;
}

.ers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ers-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    overflow: hidden;
    flex: 1 1 calc(25% - 16px);
    min-width: 220px;
    position: relative;
}

.ers-card img {
    width: 100%;
    display: block;
}

.ers-card-body {
    padding: 12px;
}

.ers-card-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.ers-card-price {
    color: var(--ers-accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.ers-meta span {
    margin-right: 8px;
    font-size: 13px;
    color: #475569;
}

.ers-status-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--ers-accent);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.ers-status-reserved { background-color: #fbbf24; }
.ers-status-sold { background-color: #ef4444; }
.ers-status-dispo { background-color: #10b981; }

.ers-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ers-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.ers-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    padding: 16px;
    z-index: 10;
}

.ers-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.ers-modal img.ers-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

@media screen and (max-width:1024px) {
    .ers-card { flex: 1 1 calc(50% - 16px); }
}

@media screen and (max-width:600px) {
    .ers-card { flex: 1 1 100%; }
    .ers-table { min-width: 100%; }
}