File size: 8,503 Bytes
f6c1928 3da7fd7 b9d51af f6c1928 3da7fd7 b9d51af 3da7fd7 b9d51af f6c1928 b9d51af f6c1928 3da7fd7 5ca2d41 3da7fd7 40ad35c 5ca2d41 598fc34 87da4b1 5ca2d41 598fc34 87da4b1 5ca2d41 87da4b1 5ca2d41 87da4b1 5ca2d41 bd1cb2a 87da4b1 3da7fd7 a12eb30 3da7fd7 87da4b1 3da7fd7 2b42de9 3da7fd7 2585020 3da7fd7 2585020 3da7fd7 fbfa06f 3da7fd7 dbc27da 3da7fd7 7368f1e 3da7fd7 7368f1e 3da7fd7 ec1bd48 3da7fd7 9a185aa f533618 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 | /* 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;
}
|