/* Giao diện tổng thể */ body { margin: 0; font-family: 'Segoe UI', 'Roboto', sans-serif; background-color: #eef1f7; } /* Hộp đăng nhập */ .login-box { max-width: 400px; margin: 100px auto; padding: 40px; background: #ffffff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); } /* Layout dashboard */ .container { display: flex; height: 100vh; overflow: hidden; } /* Sidebar */ .sidebar { width: 240px; background: linear-gradient(to bottom, #2b6cb0, #2c5282); color: white; padding: 20px; overflow-y: auto; } .sidebar h2 { font-size: 20px; margin-bottom: 30px; font-weight: 600; } .sidebar .menu-item { cursor: pointer; padding: 10px; border-radius: 6px; transition: background 0.3s ease; } .sidebar .menu-item:hover, .sidebar .menu-item.active { background-color: rgba(255, 255, 255, 0.1); } .sidebar .submenu a { display: block; color: #e0e0e0; font-size: 14px; margin: 6px 0 6px 10px; text-decoration: none; padding: 6px 10px; border-radius: 4px; transition: background 0.2s; } .sidebar .submenu a:hover { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; } .arrow { float: right; font-size: 12px; } /* Phần nội dung chính */ .main { flex: 1; padding: 30px; background-color: #f9fafc; overflow-y: auto; } /* Khối số liệu */ .stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; } .stat-box { background: white; padding: 20px; border-radius: 10px; flex: 1; min-width: 200px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); text-align: center; } .stat-title { font-weight: 600; color: #666; margin-bottom: 8px; } .stat-value { font-size: 28px; font-weight: bold; color: #2b6cb0; } /* Bảng */ table.dataTable { width: 100% !important; border-collapse: collapse; } table.dataTable th, table.dataTable td { padding: 10px; text-align: left; } table.dataTable thead { background-color: #2b6cb0; color: white; } table.dataTable tbody tr:nth-child(even) { background-color: #f2f2f2; } table.dataTable tbody tr:hover { background-color: #e0ebff; } /* Biểu đồ, iframe */ .chart-container, #pdfViewer, #qtViewer { background: white; border-radius: 12px; padding: 20px; margin-top: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } /* Hồ sơ năng lực */ .hso-nang-luc { background-color: #ffffff; padding: 20px; border-radius: 10px; font-family: "Segoe UI", sans-serif; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .hso-nang-luc h2 { color: #2b6cb0; font-size: 24px; margin-bottom: 10px; } .hso-nang-luc h3 { color: #1a202c; margin-top: 20px; } .hso-nang-luc ul { padding-left: 20px; } .hso-nang-luc table.display { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; } .hso-nang-luc table.display th, .hso-nang-luc table.display td { border: 1px solid #ddd; padding: 10px; text-align: center; } .hso-nang-luc table.display th { background-color: #2b6cb0; color: white; font-weight: 600; } /* Responsive */ @media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; height: auto; } .main { padding: 20px; } } #bangDanhMucThietBi { border-collapse: collapse; width: 100%; font-family: 'Segoe UI', sans-serif; font-size: 14px; background-color: #fff; margin-top: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); } #bangDanhMucThietBi th, #bangDanhMucThietBi td { border: 1px solid #ddd; padding: 8px; text-align: center; } #bangDanhMucThietBi thead { background-color: #1e3a8a; color: white; font-weight: bold; } #bangDanhMucThietBi tbody tr:nth-child(even) { background-color: #f9f9f9; } #bangDanhMucThietBi tbody tr:hover { background-color: #e6f7ff; transition: background-color 0.2s ease-in-out; } #bangHoaChat input.input-cell { width: 100%; border: 1px solid #ccc; padding: 4px 6px; font-size: 13px; text-align: center; box-sizing: border-box; } #bangHoaChat th, #bangHoaChat td { border: 1px solid #ddd; padding: 6px; } #bangHoaChat { border-collapse: collapse; } /* === Input chỉnh sửa === */ .input-cell, .input-area { border: none; background: transparent; width: 100%; font-size: 14px; padding: 4px 6px; resize: none; white-space: normal !important; word-break: break-word; overflow-wrap: break-word; min-height: 48px; line-height: 1.4; box-sizing: border-box; } .input-cell:focus, .input-area:focus { background: #fff8dc; outline: 1px solid #2b6cb0; } /* === DataTables tổng thể === */ table.dataTable { font-size: 14px; border-collapse: collapse; width: 100%; } table.dataTable th, table.dataTable td { padding: 8px 12px; text-align: left; border: 1px solid #ccc; } table.dataTable thead th { background-color: #2b6cb0; color: white; font-weight: bold; text-align: center; vertical-align: middle; } table.dataTable thead tr:nth-child(2) th { background-color: #4682b4; color: white; } table.dataTable tbody tr:nth-child(even) { background-color: #f9f9f9; } table.dataTable tbody tr:hover { background-color: #f1f7ff; } /* === Checkbox tô màu theo trạng thái === */ .checkbox-full, .checkbox-cell { width: 18px; height: 18px; accent-color: #2b6cb0; } td:has(.checkbox-cell:checked), td:has(.checkbox-full:checked) { background-color: #c6f6d5 !important; /* Xanh nhạt */ } td:has(.checkbox-cell:not(:checked)), td:has(.checkbox-full:not(:checked)) { background-color: #fed7d7 !important; /* Đỏ nhạt */ } tr.full-row { background-color: #d2f8d2 !important; } tr.not-full-row { background-color: #fde2e2 !important; } /* === Cập nhật độ rộng từng cột của bảng #bangHSKH === */ #bangHSKH { table-layout: fixed !important; width: 100%; border-collapse: collapse; font-size: 14px; } #bangHSKH th, #bangHSKH td { padding: 16px 8px; vertical-align: middle; text-align: center; word-wrap: break-word; word-break: break-word; white-space: normal; } /* STT */ #bangHSKH th:nth-child(1), #bangHSKH td:nth-child(1) { width: 30px; max-width: 40px; } /* Số PYC */ #bangHSKH th:nth-child(2), #bangHSKH td:nth-child(2) { width: 130px; } /* Tên khách hàng */ #bangHSKH th:nth-child(3), #bangHSKH td:nth-child(3) { width: 300px; } /* Tên cơ sở sử dụng */ #bangHSKH th:nth-child(4), #bangHSKH td:nth-child(4) { width: 300px; } /* Người tiếp nhận */ #bangHSKH th:nth-child(5), #bangHSKH td:nth-child(5) { width: 150px; } /* Phòng Y/C */ #bangHSKH th:nth-child(6), #bangHSKH td:nth-child(6) { width: 100px; } /* Số hóa đơn */ #bangHSKH th:nth-child(7), #bangHSKH td:nth-child(7) { width: 160px; } /* Số tiền */ #bangHSKH th:nth-child(8), #bangHSKH td:nth-child(8) { width: 100px; } /* Full, PYC, BB, GCN */ #bangHSKH th:nth-child(9), #bangHSKH td:nth-child(9), #bangHSKH th:nth-child(10), #bangHSKH td:nth-child(10), #bangHSKH th:nth-child(11), #bangHSKH td:nth-child(11), #bangHSKH th:nth-child(12), #bangHSKH td:nth-child(12) { width: 30px; max-width: 30px; } /* Ghi chú */ #bangHSKH th:nth-child(13), #bangHSKH td:nth-child(13) { width: 180px; } /* Tiêu đề bảng riêng biệt nếu dùng */ .tieu-de-bang { text-align: center; font-size: 18px; color: #2b6cb0; font-weight: bold; margin-bottom: 8px; width: fit-content; margin-left: auto; margin-right: auto; } /* Tiêu đề ghép cột nếu dùng colspan */ #bangHSKH thead th[colspan] { padding: 16px; font-size: 20px; text-align: center; background-color: #2b6cb0; color: white; border: 1px solid #ddd; } .textarea-cell { width: 100%; resize: vertical; height: auto; min-height: 50px; font-size: 14px; padding: 6px 8px; border: none; border-bottom: 1px solid #ccc; background: transparent; line-height: 1.4; box-sizing: border-box; overflow: hidden; white-space: pre-wrap; word-wrap: break-word; } .textarea-cell:focus { outline: none; background-color: #f0f8ff; } .input-area { width: 100%; min-height: 60px; padding: 6px 8px; font-size: 14px; border: none; border-bottom: 1px solid #ccc; background: transparent; resize: vertical; box-sizing: border-box; line-height: 1.5; white-space: pre-wrap; overflow: auto; word-wrap: break-word; } .input-area:focus { outline: none; background-color: #fff9e6; } #bangHSKH { table-layout: auto !important; }