.login-bg {
    background: url('/static/bg_login.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-header {
    margin-top: 30px;
}
.header-img {
    width: 600px;
}
.login-form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 0 10px #aaa;
    text-align: center;
}
.login-form input {
    width: 250px;
    margin: 10px 0;
    padding: 8px;
}
.login-form button {
    width: 100%;
    padding: 10px;
    background: #0072ce;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}
.login-links {
    margin-top: 10px;
}
.main-layout {
    display: flex;
    min-height: 90vh;
}
.sidebar {
    width: 220px;
    background: #1976d2;
    color: #fff;
    transition: width 0.2s;
    min-height: 100vh;
    overflow: hidden;
}
.sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
}
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 10px;
}
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    margin-right: 16px;
}
.sidebar-logo {
    height: 40px;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-list li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #1565c0;
    transition: background 0.2s;
}
.menu-list li:hover {
    background: #1565c0;
}
.main-content {
    flex: 1;
    background: #f5f6fa;
    padding: 0;
}
.main-header {
    background: #1976d2;
    color: #fff;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    position: relative;
}
.header-logo {
    height: 36px;
    margin-right: 16px;
}
.main-title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}
.user-info {
    font-size: 16px;
}
.main-layout {
    display: flex;
    min-height: 90vh;
}
.menu-list li:hover {
    background: #1565c0;
}
.tree-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-parent {
    border-bottom: 1px solid #1565c0;
}
.menu-cha {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.menu-cha .arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}
.menu-cha .arrow.down {
    transform: rotate(90deg);
}
.menu-children {
    display: none;
    background: #1565c0;
}
.menu-children.open {
    display: block;
}
.menu-con {
    padding: 10px 40px;
    cursor: pointer;
    font-weight: normal;
    background: #1565c0;
    color: #fff;
    border-bottom: 1px solid #1976d2;
}
.menu-con:hover {
    background: #1976d2;
}
.sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}
* Bổ sung cho form đăng nhập đẹp hơn */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/static/bg_login.jpg') no-repeat center center;
    background-size: cover;
}

.login-form {
    background: rgba(255,255,255,0.97);
    padding: 36px 32px 28px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    min-width: 340px;
    max-width: 95vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form h2 {
    color: #1976d2;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 260px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #bdbdbd;
    border-radius: 7px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
    background: #f7fafd;
}

.login-form input:focus {
    border: 1.5px solid #1976d2;
    background: #fff;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.login-form button:hover {
    background: #1565c0;
}

.login-links {
    margin-top: 8px;
    font-size: 14px;
    color: #1976d2;
    text-align: center;
}

.login-links a {
    color: #1976d2;
    text-decoration: none;
    margin: 0 4px;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-error {
    margin-top: 12px;
    color: #d32f2f;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 500px) {
    .login-form {
        min-width: 90vw;
        padding: 18px 6vw;
    }
    .login-form input[type="text"],
    .login-form input[type="password"] {
        width: 100%;
    }
}

.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #005bea 0%, #3ec6e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(255,255,255,0.98);
    padding: 38px 32px 28px 32px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    min-width: 350px;
    max-width: 95vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-title {
    color: #005bea;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    background: #f7fafd;
    border-radius: 7px;
    border: 1px solid #bdbdbd;
    padding: 0 10px;
}

.input-icon {
    color: #1976d2;
    font-size: 18px;
    margin-right: 8px;
}

.input-group input {
    border: none;
    background: transparent;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    width: 100%;
}

.input-group input:focus {
    background: #fff;
}

.checkbox-group {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #1976d2;
}

.auth-card button {
    width: 100%;
    padding: 12px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.auth-card button:hover {
    background: #1976d2;
}

.auth-links {
    margin-top: 8px;
    font-size: 14px;
    color: #1976d2;
    text-align: center;
}

.auth-links a {
    color: #1976d2;
    text-decoration: none;
    margin: 0 4px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-error {
    margin-top: 12px;
    color: #d32f2f;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 500px) {
    .auth-card {
        min-width: 90vw;
        padding: 18px 6vw;
    }
}
.powerbi-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.powerbi-container iframe {
    border: none;
    border-radius: 12px;
    width: 98%;
    height: 90vh;
    min-height: 600px;
    background: #fff;
}
.report-container {
    background: #fff;
    border-radius: 10px;
    padding: 24px 32px;
    margin: 30px auto;
    max-width: 1100px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
}
.search-form {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}
.search-form input[type="text"] {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #bdbdbd;
    min-width: 220px;
}
.btn {
    padding: 6px 16px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
}
.btn-search { background: #1976d2; color: #fff; }
.btn-add { background: #43a047; color: #fff; float: right; }
.btn-edit { background: #ffa726; color: #fff; }
.btn-delete { background: #e53935; color: #fff; }
.btn-detail { background: #1976d2; color: #fff; }
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.report-table th, .report-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
}
.report-table th {
    background: #1976d2;
    color: #fff;
}
.report-table tr:nth-child(even) {
    background: #f5f6fa;
}
.status-active {
    background: #43a047;
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 13px;
}
.status-inactive {
    background: #e53935;
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 13px;
}
.report-container {
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 24px 32px;
    margin: 32px auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.10);
}

.report-title {
    color: #1976d2;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 18px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.search-form label {
    font-weight: 500;
}
.search-form input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    min-width: 220px;
    font-size: 15px;
}
.btn, .btn-action {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.btn-search {
    background: #1976d2;
    color: #fff;
}
.btn-search:hover {
    background: #1251a3;
}
.btn-add {
    background: #43a047;
    color: #fff;
    margin-left: auto;
}
.btn-add:hover {
    background: #2e7031;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 15px;
}
.report-table th, .report-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}
.report-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}
.report-table tr:nth-child(even) {
    background: #f5f6fa;
}
.status-active {
    background: #43a047;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.status-inactive {
    background: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.btn-action {
    margin: 0 2px;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-edit {
    background: #ffa726;
}
.btn-edit:hover {
    background: #fb8c00;
}
.btn-delete {
    background: #e53935;
}
.btn-delete:hover {
    background: #b71c1c;
}
.btn-detail {
    background: #1976d2;
}
.btn-detail:hover {
    background: #1251a3;
}
@media (max-width: 700px) {
    .report-container {
        padding: 12px 2vw;
    }
    .search-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .btn-add {
        margin-left: 0;
        margin-top: 8px;
    }
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 32px 24px 32px;
    min-width: 350px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.10);
}
.report-form-container, .report-detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 32px 32px 24px 32px;
    margin: 32px auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.10);
}
.report-form-container h3, .report-detail-container h3 {
    color: #1976d2;
    margin-bottom: 18px;
}
.report-form-container form label, .report-detail-container form label {
    display: block;
    margin-top: 12px;
    font-weight: 500;
}
.report-form-container form input, .report-form-container form select, .report-form-container form textarea,
.report-detail-container form input, .report-detail-container form select, .report-detail-container form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    margin-top: 4px;
    font-size: 15px;
}
.btn-save, .btn-add {
    background: #1976d2;
    color: #fff;
    margin-top: 18px;
}
.btn-back {
    background: #ffa726;
    color: #fff;
    margin-bottom: 18px;
    display: inline-block;
}
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 15px;
}
.param-table th, .param-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
}
.param-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}
.param-table tr:nth-child(even) {
    background: #f5f6fa;
}
.status-active {
    background: #43a047;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.status-inactive {
    background: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.badge-order {
    background: #ffa726;
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
}
.main-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.10);
    max-width: 1100px;
    margin: 40px auto;
    padding: 32px 32px 24px 32px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    min-width: 220px;
    font-size: 15px;
}
.btn, .btn-action {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.btn-search {
    background: #1976d2;
    color: #fff;
}
.btn-search:hover {
    background: #1251a3;
}
.btn-add {
    background: #43a047;
    color: #fff;
    margin-left: auto;
}
.btn-add:hover {
    background: #2e7031;
}
.btn-back {
    background: #ffa726;
    color: #fff;
    padding: 8px 22px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-back:hover {
    background: #fb8c00;
}
.btn-accept {
    background: #1976d2;
    color: #fff;
    padding: 10px 32px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-accept:hover {
    background: #1251a3;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 15px;
}
.report-table th, .report-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}
.report-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}
.report-table tr:nth-child(even) {
    background: #f5f6fa;
}
.status-active {
    background: #43a047;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.status-inactive {
    background: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}
.btn-action {
    margin: 0 2px;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-edit {
    background: #ffa726;
}
.btn-edit:hover {
    background: #fb8c00;
}
.btn-delete {
    background: #e53935;
}
.btn-delete:hover {
    background: #b71c1c;
}
.btn-detail {
    background: #1976d2;
}
.btn-detail:hover {
    background: #1251a3;
}
.add-report-form, .param-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.form-row, .param-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.form-row label, .param-form-row label {
    width: 180px;
    font-weight: 500;
    color: #333;
    margin-right: 12px;
    text-align: right;
}
.form-row input, .form-row select, .form-row textarea,
.param-form-row input, .param-form-row select, .param-form-row textarea {
    flex: 1;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #bdbdbd;
    font-size: 16px;
    background: #f7fafd;
    transition: border 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.param-form-row input:focus, .param-form-row select:focus, .param-form-row textarea:focus {
    border: 1.5px solid #1976d2;
    background: #fff;
}
#content-area {
    padding: 30px;
}

.menu-cha, .menu-con {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-right: 10px;
}

.sidebar {
    width: 230px; /* hoặc 280px nếu cần */
    background: #1976d2;
    color: #fff;
    transition: width 0.2s;
    min-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-cha {
    padding-left: 12px;
    font-weight: bold;
}
.menu-con {
    padding-left: 0px;
    font-weight: normal;
}