/* Area Picker Component Styles */
.area-picker-container {
    position: relative;
    width: 100%;
}

.area-picker-button {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.area-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    height: auto;
    max-width: 100vw;
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    padding-right: 15px;
    padding-bottom: 15px;
    overflow-y: auto;
}

.area-depth-wrapper {
    display: flex;
    flex-direction: row;
}

.area-depth {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    position: relative;
    margin-top: 30px;
}

.area-depth-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 1px;
    background-color: #000;
}

.area-depth-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000;
}

.area-depth-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
}

.area-depth label {
    transform: rotate(-90deg) translateZ(0px);
    background-color: #ffffff;
    padding-right: 5px;
    padding-left: 5px;
    z-index: 1;
    text-wrap: nowrap;
}

.area-width-wrapper {
    display: flex;
    flex-direction: column;
}

.area-width {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    position: relative;
}

.area-width-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 1px;
    width: 100%;
    background-color: #000;
}

.area-width-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #000;
}

.area-width-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #000;
}

.area-width label {
    background-color: #ffffff;
    padding-right: 5px;
    padding-left: 5px;
    z-index: 1;
    text-wrap: nowrap;
}

.area-table {
    min-width: 400px;
    user-select: none;
    margin-bottom: 0;
}

.area-table th {
    width: 30px;
    height: 30px;
    font-size: 12px !important;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
    padding: 0.5rem;
    font-weight: 400;
    color: #212529;
}

.area-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.area-table td {
    width: 30px;
    height: 30px;
    font-size: 12px !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0.5rem;
}

.area-table td.available {
    background-color: #ffffff;
}

.area-table td.available:hover {
    background-color: #0d6efd;
    color: white;
}

.area-table td.unavailable {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.area-table td.selected {
    background-color: #0d6efd;
    color: white;
}