Spaces:
Sleeping

QLHT6 / static /style.css
doluong6's picture
Update static/style.css
a432f32 verified
Raw History Blame Contribute Delete
17.6 kB
/* 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;
}
tr input[readonly] {
font-weight: bold;
border: none;
background: transparent;
}
#taipyc {
display: none;
padding: 40px;
background: #f7f9fb;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
font-family: "Segoe UI", sans-serif;
}
#taipyc h2 {
font-size: 24px;
color: #2b6cb0;
margin-bottom: 20px;
}
#formUploadPYC {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
#filePYC {
padding: 10px;
border: 2px dashed #2b6cb0;
border-radius: 8px;
background-color: #fff;
font-size: 14px;
}
#formUploadPYC button {
padding: 10px 20px;
background-color: #2b6cb0;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
#formUploadPYC button:hover {
background-color: #1a4f91;
}
#uploadStatus {
margin-top: 15px;
font-weight: bold;
color: #2b6cb0;
}
#tableBangGia6 {
table-layout: fixed;
width: 100% !important;
border-collapse: collapse;
}
#tableBangGia6 th,
#tableBangGia6 td {
white-space: normal;
word-wrap: break-word;
padding: 8px;
border: 1px solid #ccc;
vertical-align: middle;
font-size: 13px;
text-align: center;
}
#tableBangGia6 td:nth-child(1),
#tableBangGia6 th:nth-child(1),
#tableBangGia6 td:nth-child(2),
#tableBangGia6 th:nth-child(2),
#tableBangGia6 td:nth-child(3),
#tableBangGia6 th:nth-child(3),{
text-align: left;
}
#tableBangGia2 {
table-layout: fixed;
width: 100% !important;
border-collapse: collapse;
}
#tableBangGia2 th,
#tableBangGia2 td {
white-space: normal;
word-wrap: break-word;
padding: 8px;
border: 1px solid #ccc;
vertical-align: middle;
font-size: 13px;
text-align: center;
}
#tableBangGia2 th:nth-child(1),
#tableBangGia2 td:nth-child(1) {
text-align: left;
}
.section-title {
font-size: 20px;
font-weight: 600;
color: #2b6cb0;
margin-bottom: 20px;
}
#tableBangGia4 {
table-layout: fixed;
width: 100% !important;
border-collapse: collapse;
}
#tableBangGia4 th,
#tableBangGia4 td {
white-space: normal;
word-wrap: break-word;
padding: 8px;
border: 1px solid #ccc;
vertical-align: middle;
font-size: 13px;
text-align: center;
}
#tableBangGia4 th:nth-child(1),
#tableBangGia4 td:nth-child(1) {
text-align: left;
}
.section-title {
font-size: 20px;
font-weight: 600;
color: #2b6cb0;
margin-bottom: 20px;
}
#tableBangGia3 {
table-layout: fixed;
width: 100% !important;
border-collapse: collapse;
}
#tableBangGia3 th,
#tableBangGia3 td {
white-space: normal;
word-wrap: break-word;
padding: 8px;
border: 1px solid #ccc;
vertical-align: middle;
font-size: 13px;
text-align: center;
}
#tableBangGia3 th:nth-child(1),
#tableBangGia3 td:nth-child(1) {
text-align: left;
}
.section-title {
font-size: 20px;
font-weight: 600;
color: #2b6cb0;
margin-bottom: 20px;
}
#taikemtheo {
max-width: 600px;
margin: 40px auto;
background: #fff;
padding: 30px 40px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
font-family: 'Segoe UI', sans-serif;
border: 1px solid #e0e0e0;
}
#taikemtheo h2 {
text-align: center;
color: #2b6cb0;
font-size: 22px;
margin-bottom: 25px;
font-weight: 700;
}
.form-container .form-group {
margin-bottom: 20px;
}
.form-container label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #333;
}
.form-container select,
.form-container input[type="file"] {
width: 100%;
padding: 10px 12px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 14px;
background-color: #f9f9f9;
transition: border-color 0.3s ease;
}
.form-container select:focus,
.form-container input[type="file"]:focus {
border-color: #2b6cb0;
outline: none;
}
.btn-tai {
width: 100%;
background-color: #2b6cb0;
color: white;
padding: 12px;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.btn-tai:hover {
background-color: #1e4f91;
}
#banggia5 {
margin: 30px auto;
max-width: 95%;
background: #fff;
padding: 20px;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
font-family: 'Segoe UI', sans-serif;
}
#bangBangGia5 {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
#bangBangGia5 th,
#bangBangGia5 td {
border: 1px solid #ccc;
padding: 8px 10px;
text-align: left;
white-space: nowrap;
}
#bangBangGia5 th {
background-color: #2b6cb0;
color: white;
}
#bangBangGia5 tr:nth-child(even) {
background-color: #f9f9f9;
}
#bangBangGia5 tr:hover {
background-color: #eef2f8;
}
/* ===== Mobile first: tối ưu < 768px ===== */
@media (max-width: 768px) {
/* Topbar cố định */
.topbar {
position: sticky; top: 0; z-index: 1001;
display: flex; align-items: center; gap: 12px;
padding: 10px 14px; background: #2b6cb0; color: #fff;
}
.topbar #btnMenu { font-size: 20px; line-height: 1; padding: 6px 10px; background: #1e4e86; color: #fff; border: 0; border-radius: 6px; }
.topbar-title { font-weight: 600; }
/* Biến sidebar thành off-canvas */
.container { flex-direction: column; height: auto; overflow: visible; } /* hiện tại bạn mới đổi direction thôi :contentReference[oaicite:3]{index=3} */
.sidebar {
position: fixed; inset: 0 auto 0 0; width: 80vw; max-width: 320px; height: 100dvh;
transform: translateX(-100%); transition: transform .25s ease;
box-shadow: 2px 0 16px rgba(0,0,0,.2);
}
.sidebar.open { transform: translateX(0); }
/* khi mở menu, chặn cuộn nền */
body.menu-open { overflow: hidden; }
/* Nội dung chính lùi xuống dưới topbar */
.main { padding: 16px; margin-top: 8px; }
/* Menu con: tăng khoảng chạm */
.sidebar .submenu a { padding: 10px 12px; font-size: 15px; }
/* Card số liệu: 1 cột */
.stats { gap: 12px; }
.stat-box { padding: 14px; min-width: 0; }
.stat-value { font-size: 22px; }
/* Bảng: cho phép cuộn ngang, tránh vỡ layout */
.dataTables_wrapper { overflow-x: auto; }
table.dataTable { width: 800px; /* chiều rộng tối thiểu để không vỡ cell */ }
/* Iframe/PDF/canvas linh hoạt chiều cao nhỏ hơn trên mobile */
#pdfViewer iframe, #qtViewer iframe, canvas { height: 60vh !important; }
}
/* Một số tinh chỉnh chung cho bảng nhiều cột (#bangHSKH) vốn đang set width cứng */
@media (max-width: 768px) {
#bangHSKH { table-layout: auto !important; font-size: 13px; } /* bạn đã có rule tương tự nhưng nhắc lại để đảm bảo ưu tiên. :contentReference[oaicite:4]{index=4} */
}
/* ===== Chatbot styles ===== */
.chat-title{margin:0 0 10px 0;font-size:18px;color:#2b6cb0;font-weight:600;}
.chat-window{
border:1px solid #e2e8f0;border-radius:10px;padding:12px;background:#fff;
height:420px;overflow-y:auto;
}
.chat-input-bar{display:flex;gap:8px;margin-top:10px;}
.chat-input{
flex:1;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;outline:none;
}
.chat-input:focus{border-color:#2b6cb0;box-shadow:0 0 0 3px rgba(43,108,176,.15);}
.chat-send{
padding:10px 16px;border:none;border-radius:8px;background:#2b6cb0;color:#fff;
font-weight:600;cursor:pointer;
}
.chat-send:disabled{opacity:.6;cursor:not-allowed;}
.chat-bubble{
max-width:80%;padding:8px 12px;margin:6px 0;border-radius:12px;
white-space:pre-wrap;word-break:break-word;line-height:1.4;font-size:14px;
}
.chat-bubble.user{background:#e9f2ff;margin-left:auto;}
.chat-bubble.bot{background:#f5f5f5;margin-right:auto;}
.chat-meta{font-size:12px;color:#475569;margin-top:4px;white-space:pre-wrap;}
@media (max-width:640px){.chat-window{height:60vh}}
.chat-window{
border:1px solid #ddd; border-radius:12px; padding:12px;
height:420px; overflow:auto; background:#fff;
}
/* ===== PYC Incremental ===== */
#pycinc {
padding: 15px 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
#pycinc h2 {
font-size: 20px;
margin-bottom: 12px;
color: #2b6cb0;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 4px;
}
#pycinc .controls label {
font-weight: 500;
color: #333;
}
#pycinc select,
#pycinc button {
padding: 6px 10px;
font-size: 14px;
border-radius: 6px;
border: 1px solid #ccc;
}
#pycinc button {
background-color: #2b6cb0;
color: #fff;
border: none;
cursor: pointer;
transition: background 0.2s ease-in-out;
}
#pycinc button:hover {
background-color: #225ea8;
}
#pycinc #incStatus {
font-size: 13px;
font-style: italic;
}
#pycinc .chart-container {
margin-top: 12px;
padding: 10px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
min-height: 80px;
line-height: 1.5;
}
#pycinc details {
margin-top: 12px;
}
#pycinc details summary {
cursor: pointer;
font-weight: 500;
color: #2b6cb0;
}
#pycinc details div {
background: #f8fafc;
padding: 8px;
border-radius: 6px;
border: 1px solid #e2e8f0;
font-size: 13px;
max-height: 250px;
overflow-y: auto;
}
#pycinc ul {
margin: 0;
padding-left: 20px;
}
#pycinc li {
padding: 2px 0;
}