/* Original styles */
#portType, #portTypeBadge {
    display: none !important;
}

.leaflet-control-fullscreen {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-fullscreen:hover {
    background-color: #f4f4f4;
}

.leaflet-container:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
}

.olt-container-a4 {
    width: 250mm;
    min-height: 280mm;
    margin: 0 auto;
    padding: 15px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Modified slot container styles */
.slot-container {
    display: flex;
    width: auto;
    flex-direction: column;
    gap: 10px;
}

.slot-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    height: auto;
}

.slot-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
}

.port-columns {
    display: flex;
    gap: 10px;
    width: auto;
    height: calc(100% - 30px);
}

.port-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.port-item {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    width: 180px;
    box-sizing: border-box;
    margin-bottom: 3px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.port-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.port-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.port-used .port-circle {
    background-color: #1eebeb;
    color: white;
}

.port-unused .port-circle {
    background-color: #5e6e62;
    color: white;
}

.port-RFS .port-circle {
    background-color: #28a745;
    color: white;
}

.port-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.port-label {
    font-weight: 500;
    margin-right: 8px;
    font-size: 0.85rem;
}

.fdt-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
    text-align: center;
}

.fdt-badge.RFS {
    background-color: #28a745;
}

.fdt-badge.Construction {
    background-color: #ffc107;
    color: #212529;
}

.fdt-badge.Design {
    background-color: #2b66cd;
}

.fdt-badge.Unused {
    background-color: #6c757d;
}

.select2-container--disabled .select2-selection {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.select2-results__option--loading {
    color: #6c757d;
    font-style: italic;
}

#summaryContainer .card {
    height: 100%;
    transition: transform 0.2s;
}

#summaryContainer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#summaryContainer .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#summaryContainer .card-text {
    font-weight: bold;
    margin-bottom: 0;
}

.port-status-badge {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    color: white;
    font-size: 0.65rem;
}

.card-header.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.port-status-badge.RFS {
    background-color: #28a745;
}

.port-status-badge.Construction {
    background-color: #ffc107;
    color: #212529;
}

.port-status-badge.Planning {
    background-color: #6f42c1;
}

.port-status-badge.Design {
    background-color: #2b66cd;
}

.port-status-badge.Unused {
    background-color: #6c757d;
}

.port-status-badge.Used {
    background-color: #dc3545;
}

.port-rect {
    width: 16px;
    height: 10px;
    display: inline-block;
    border-radius: 2px;
    background-color: #e9ecef;
}

.port-rect.port-used {
    background-color: #dc3545;
}

.port-rect.port-unused {
    background-color: #787d7a;
}

.port-rect.RFS {
    background-color: #28a745;
}

.port-rect.Construction {
    background-color: #ffc107;
}

.port-rect.Planning {
    background-color: #6f42c1;
}

.port-rect.Design {
    background-color: #2b66cd;
}

.card[style*="width: 450px"] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header.py-2 {
    padding: 0.5rem 1rem;
}

.card-body {
    padding: 1rem;
}

.border.rounded {
    border: 1px solid #dee2e6;
    border-radius: 6px !important;
    background-color: #f8f9fa;
}

.card[style*="width: 450px"] h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.2rem 0;
}

.card[style*="width: 450px"] small {
    font-size: 0.7rem;
    line-height: 1.3;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.g-2 {
    gap: 0.5rem !important;
}

.RFS { background-color: #28a745; }
.Construction { background-color: #ffc107; }
.Design { background-color: #2b66cd; }
.Planning { background-color: #6f42c1; }
.Unused { background-color: #6c757d; }

.select2-container {
    width: 100% !important;
}

.select2-selection {
    border: 1px solid #ced4da !important;
    height: 38px !important;
    padding: 6px 12px !important;
}

.select2-selection__arrow {
    height: 36px !important;
}

.select2-selection, .select2-dropdown {
    border-radius: 4px !important;
}

@media (min-width: 768px) {
    .col-md-5 {
        max-width: 450px;
    }
}

/* Additional styles for horizontal scrolling if needed */
.port-columns-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.port-columns-container::-webkit-scrollbar {
    display: none;
}

.badge-merk {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    background-color: #17a2b8;
    margin-left: 0.5rem;
}

.d-flex.flex-column.ms-3 {
    width: auto;
    flex: 1;
    min-width: 180px;
}

#oltMap {
    height: 200px;
}