body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}


.error {
    color: red;
    font-size: small;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}


/* Navbar */
.top-navbar {
    height: 60px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* Layout */
.layout-wrapper {
    display: flex;
    margin-top: 60px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: calc(100vh - 60px);
    background: #1f2937;
    color: white;
    position: fixed;
    top: 60px;
    left: 0;
    padding: 20px 15px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: #374151;
    color: white;
}

/* Main content */
.main-content {
    margin-left: 260px;
    padding: 25px;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        left: -260px;
        z-index: 1200;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1150;
}

.overlay.show {
    display: block;
}


.form-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: linear-gradient(135deg, #0d6efd, #0056d6) !important;
    border: none;
    padding: 18px 25px;
}

.card-header h4 {
    font-size: 22px;
    font-weight: 700;
}

.card-body {
    padding: 35px !important;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.page-title i {
    color: #0d6efd;
    margin-right: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f7;
    margin-bottom: 22px;
    margin-top: 10px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #fafcff;
    font-size: 14px;
}

textarea.form-control {
    min-height: 90px;
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    background: #fff;
}

.branch-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    background: #f8fbff;
    position: relative;
    margin-bottom: 18px;
}

.remove-branch {
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 8px;
}

#addBranch {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
}

.btn-success {
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 5px 14px rgba(25, 135, 84, 0.25);
}

.btn-primary {
    box-shadow: 0 5px 14px rgba(13, 110, 253, 0.18);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.form-control,
.form-select,
textarea,
input,
select {
    border-radius: 8px !important;
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 5px 12px;
    border-radius: 8px !important;
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px;
}

.select2-container {
    width: 100% !important;
}


th svg {
    width: 14px !important;
    height: 14px !important;
}

th button {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

table {
    width: 100% !important;
}

th svg {
    width: 14px !important;
    height: 14px !important;
}

th button {
    display: flex !important;
    align-items: center;
    gap: 6px;
    border: none !important;
    background: transparent !important;
}

.table-responsive {
    overflow-x: auto;
}
