
#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;
}

/* Custom CSS for vertical slots and horizontal ports */
.slot-container {
    display: flex;
    flex-direction: row;   /* Slot sejajar horizontal */
    flex-wrap: wrap;    /* Tidak boleh turun ke bawah */
    gap: 15px;           /* Jarak antar slot */
    padding: 10px;
    overflow-x: auto;    /* Scroll horizontal jika tidak muat */
    width: 100%;
}
.slot-row {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.slot-header {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.port-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1px;
    padding: 5px;
    background-color: #f1f1f1;
    border-radius: 4px;
}

.port-row {
    display: flex;
    gap: 1px;
}

.port-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.port-item:hover {
    background-color:rgb(48, 85, 121);
}

.port-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin-bottom: 3px;
    font-size: 12px;
}

.port-used .port-circle {
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.port-unused .port-circle {
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Tambahkan class baru untuk fdt-badge dengan circle */
.fdt-badge.with-circle {
    position: relative;
    padding-left: 30px; /* Ruang untuk circle */
    min-height: 30px;
    display: inline-flex;
    align-items: center;
}

.fdt-badge.with-circle .port-circle {
    position: absolute;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 5px;
    font-weight: bold;
    color: #000;
}

.fdt-badge {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 70px;
    max-width: 70px;
    min-height: 30px;
    max-height: 30px;
}

.fdt-badge.RFS {
    background-color: #198754;
}

.fdt-badge.Construction {
    background-color: #fd7e14;
}

.fdt-badge.Design {
    background-color: #0dcaf0;
}

.fdt-badge.Unused {
    background-color: #6c757d;
}

/* Rest of the existing CSS */
.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;
}

/* Card Layout Styles */
.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;
}

/* Summary Box Styles */
.border.rounded {
    border: 1px solid #dee2e6;
    border-radius: 6px !important;
    background-color: #f8f9fa;
}

/* Text Styles */
.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;
}

/* Spacing */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

.g-2 {
    gap: 0.5rem !important;
}

.port-rect {
    display: inline-block;
    border-radius: 2px;
}

.RFS { background-color: #28a745; }
.Construction { background-color: #ffc107; }
.Design { background-color: #2b66cd; }
.Planning { background-color: #6f42c1; }
.Unused { background-color: #6c757d; }

/* Select2 Styles */
.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;
    }
}

/* Badge Styles */
.badge-merk {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    background-color: #17a2b8;
    margin-left: 0.5rem;
}

/* Slot Header */
.slot-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
}

/* Responsive Adjustments */
@media print {
    .olt-container-a4 {
        box-shadow: none;
        padding: 0;
    }
}