body { background-color: #f4f7f6; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.top-navbar { background-color: #000; border-bottom: 1px solid #333; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; height: 65px; flex-shrink: 0; }
.brand-section { display: flex; align-items: center; gap: 30px; }
.brand-name { font-weight: bold; color: #fff; font-size: 1.3rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link-item { color: #bbb; text-decoration: none; padding: 8px 18px; font-size: 0.9rem; border-radius: 6px; transition: 0.2s; border: 1px solid transparent; background-color: transparent; cursor: pointer; }
.nav-link-item:hover { color: #fff; background-color: #333; }
.nav-link-item.active { color: #fff; background-color: #0056b3; border-color: #0056b3; font-weight: bold; }
.content-area { flex-grow: 1; overflow-y: auto; padding: 25px 25px 80px 25px; width: 100%; }
.section-view { display: none; }
.section-view.active { display: block; }
.table-hover tbody tr { cursor: pointer; }
.table-hover tbody tr.selected-row { background-color: rgba(0, 86, 179, 0.15) !important; outline: 2px solid #0056b3; }
.table td { font-weight: 700 !important; letter-spacing: 0.5px; }
.form-label-custom { font-size: 0.75rem; font-weight: bold; color: #666; margin-bottom: 2px; display: block; }
/* Google Autocomplete fix for Modals */
.pac-container { z-index: 10000 !important; }
#dispatchMap { width: 100%; height: 350px; border-radius: 8px; border: 1px solid #ddd; margin-top: 15px; }
.animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Management Grid & Cards */
.management-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}
@media (max-width: 1400px) {
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
}

.mgmt-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.mgmt-card button {
    margin-top: auto;
}
.mgmt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.15);
    border-color: #0056b3;
}
.mgmt-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.mgmt-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mgmt-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}
.mgmt-card-shortcut {
    font-size: 0.7rem;
    font-weight: 700;
    background: #eef4ff;
    color: #0056b3;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #cce0ff;
}
