*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f6fb;color:#122033}.wrap{max-width:1440px;margin:auto;padding:18px}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.brand h1{margin:0;font-size:28px}.brand p{margin:4px 0;color:#667085}.card{background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(16,24,40,.08);margin-bottom:16px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:700;cursor:pointer;background:#2563eb;color:white}.btn.red{background:#dc2626}.btn.gray{background:#e5e7eb;color:#111827}.btn.green{background:#16a34a}.btn.orange{background:#f97316}.badge.orange{background:#ffedd5;color:#c2410c}.mini{padding:7px 8px;font-size:13px;border-radius:8px;margin:2px 0}.input,select,textarea{width:100%;border:1px solid #d7dce5;border-radius:12px;padding:11px 12px;font-size:15px;background:white}label{font-weight:700;font-size:14px;margin-bottom:6px;display:block}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tablebox{overflow:auto;max-height:520px}.table{width:100%;border-collapse:collapse;min-width:900px}.table th{background:#eaf0ff;text-align:left;padding:12px;font-size:14px}.table td{padding:10px 12px;border-bottom:1px solid #edf0f5;font-size:14px}.badge{display:inline-block;border-radius:999px;padding:5px 10px;font-weight:700;font-size:12px}.pending{background:#fff7ed;color:#c2410c}.approved{background:#dcfce7;color:#15803d}.rejected{background:#fee2e2;color:#b91c1c}.muted{color:#667085}.hidden{display:none!important}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{background:#fff;border:1px solid #d7dce5;color:#111827}.tab.active{background:#2563eb;color:white;border-color:#2563eb}.msg{font-weight:700;margin-top:10px}.err{color:#dc2626}.ok{color:#15803d}.stat{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px}.stat b{font-size:24px}textarea{min-height:70px}@media(max-width:850px){.grid,.grid3,.formgrid{grid-template-columns:1fr}.wrap{padding:10px}.brand h1{font-size:22px}.top{align-items:flex-start}.table{min-width:760px}.card{padding:14px}}

.btn.tiny{padding:4px 8px;font-size:12px;border-radius:8px;margin-top:4px}


/* Điều chỉnh bảng kế hoạch làm hàng */
.btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.25)}
#tab-plans .table th:nth-child(12),#tab-plans .table td:nth-child(12){min-width:92px;width:92px}
#tab-plans .table th:nth-child(17),#tab-plans .table td:nth-child(17){min-width:92px;width:92px}
#tab-plans .table td:nth-child(12) .input{min-width:78px}
#tab-plans .table td:nth-child(17) textarea{min-width:78px;min-height:58px}
#tab-plans .table th:nth-child(15),#tab-plans .table td:nth-child(15){min-width:70px}

.past-row{opacity:.45;background:#f3f4f6!important}.past-row input,.past-row textarea,.past-row select{background:#eef0f3;color:#6b7280}.table td:last-child .btn:disabled{opacity:.55;filter:grayscale(.35)}
#tab-requests .table th:nth-child(6),#tab-requests .table td:nth-child(6){min-width:110px}


/* Bổ sung nhiều kích thước/số lượng và ô sửa đủ rộng */
.size-block{grid-column:1 / -1;border:1px dashed #d7dce5;border-radius:14px;padding:12px;background:#f8fafc}
.size-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:8px}
.size-actions{display:flex;align-items:end;min-height:42px}
.edit-wide{min-width:180px;min-height:42px;margin-top:4px;white-space:normal}
.partial-edit-row textarea.edit-wide{min-height:58px}
.edit-field{font-size:12px;font-weight:700;color:#334155;display:flex;align-items:center;gap:5px;margin-bottom:3px}
#tab-requests .partial-edit-row td{vertical-align:top;min-width:140px}
#tab-requests .partial-edit-row td:nth-child(4){min-width:210px}
#tab-requests .partial-edit-row td:nth-child(5){min-width:230px}
#tab-requests .partial-edit-row td:nth-child(12){min-width:220px}
@media(max-width:850px){.size-row{grid-template-columns:1fr}.size-actions{min-height:auto}.edit-wide{min-width:150px}}


/* Chọn phiên bản máy tính / điện thoại */
.version-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.hidden{display:none!important}
body.mobile-view{background:#f6f8fc}body.mobile-view .wrap{max-width:560px;padding:10px}body.mobile-view .top{align-items:flex-start}body.mobile-view .brand h1{font-size:22px}body.mobile-view .brand p{font-size:13px}body.mobile-view .grid,body.mobile-view .grid3,body.mobile-view .formgrid{grid-template-columns:1fr!important}body.mobile-view .tabs{display:flex;overflow-x:auto;gap:8px;padding-bottom:6px}body.mobile-view .tabs .btn{white-space:nowrap;padding:10px 12px;font-size:13px}body.mobile-view .card{border-radius:14px;padding:12px;margin-bottom:12px}body.mobile-view .row{gap:8px}body.mobile-view .btn{padding:10px 12px;border-radius:10px}body.mobile-view .input,body.mobile-view select,body.mobile-view textarea{font-size:16px;border-radius:10px}body.mobile-view .tablebox{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}body.mobile-view .table{min-width:980px;font-size:13px}body.mobile-view .table th,body.mobile-view .table td{padding:8px 7px;vertical-align:top}body.mobile-view #tab-requests .table{min-width:1320px}body.mobile-view #tab-plans .table{min-width:1250px}body.mobile-view #tab-customers .table,body.mobile-view #tab-users .table{min-width:760px}body.mobile-view .stat{padding:10px}body.mobile-view #requestFilter{max-width:none!important}body.mobile-view .version-choice{grid-template-columns:1fr}.desktop-view .tablebox{overflow-x:auto}
@media(max-width:700px){.wrap{padding:10px}.top{align-items:flex-start}.grid,.grid3,.formgrid{grid-template-columns:1fr!important}.version-choice{grid-template-columns:1fr}.tablebox{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:980px}.brand h1{font-size:22px}.card{padding:12px}.tabs{overflow-x:auto;display:flex;padding-bottom:6px}.tabs .btn{white-space:nowrap}}

/* Sườn dịch vụ rút hàng / kiểm hóa */
.service-shell{border-left:4px solid #2563eb}.service-tabs{display:flex;gap:10px;flex-wrap:wrap}.service-tab.active{background:#2563eb!important;color:#fff!important}.service-panel h2{margin-top:0}#rutTargetBox.hidden{display:none!important}#tab-rut .table,#tab-kiemhoa .table{min-width:1180px}body.mobile-view #tab-rut .table,body.mobile-view #tab-kiemhoa .table{min-width:1180px}body.mobile-view .service-tabs{display:grid;grid-template-columns:1fr;gap:8px}

/* Menu con cho Đăng ký rút hàng và DATA mới */
.tab-menu{position:relative;display:inline-block}.tab-submenu{display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:210px;background:#fff;border:1px solid #d7dce5;border-radius:12px;box-shadow:0 12px 28px rgba(16,24,40,.16);padding:6px;z-index:50}.tab-menu:hover .tab-submenu,.tab-menu.open .tab-submenu{display:block}.tab-submenu button{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:9px;padding:10px 12px;font-weight:700;cursor:pointer;color:#111827}.tab-submenu button:hover,.tab-submenu button.active{background:#eaf0ff;color:#1d4ed8}.service-tabs{margin:10px 0 4px}.service-tabs .service-tab.active{background:#2563eb!important;color:#fff!important}.tab-submenu button.active{background:#2563eb;color:#fff}#tab-data .grid .table{min-width:900px}body.mobile-view .tab-menu{display:inline-block}body.mobile-view .tab-submenu{position:static;margin-top:6px;box-shadow:none}
.perm-box{border:1px solid #dbe3ef;border-radius:12px;padding:12px;background:#f8fafc}.perm-box label{display:inline-flex;align-items:center;gap:6px;margin:8px 14px 2px 0;font-weight:700}.perm-box input{width:16px;height:16px}
.dim-row{opacity:.45;background:#f3f4f6}
.alloc-transfer-row{background:#fff7ed!important;box-shadow:inset 4px 0 0 #f59e0b}
.alloc-transfer-row .alloc-transfer-hint{display:inline-block;margin-top:4px;color:#b45309;font-size:12px;font-weight:700;line-height:1.35}
.process-panel.hidden{display:none!important}
.alloc-check{width:18px;height:18px}
.danger-row{background:#fee2e2!important;color:#7f1d1d}.danger-row td{border-color:#fecaca}.mini-table{margin-top:10px;max-height:220px;overflow:auto}.btn.tiny{padding:6px 8px;font-size:12px}
.handled-row{opacity:.78;background:#f8fafc}
.handled-row .btn:disabled{opacity:.55;cursor:not-allowed}
.admin-notification-target-highlight{
  outline:3px solid #f59e0b;
  outline-offset:-3px;
  background:#fff7d6!important;
  box-shadow:inset 0 0 0 1px #fbbf24,0 0 0 3px rgba(245,158,11,.18);
}

/* Ghi chú cảnh báo của từng lần import trong Dữ liệu quản lý. */
#tab-importmanage .import-note-cell{
  min-width:260px;
  max-width:380px;
  white-space:normal;
  line-height:1.4;
}
#tab-importmanage .import-note-warning{
  color:#b45309;
  font-weight:700;
}

.report-chart-grid canvas{max-width:100%;height:auto}.report-chart-grid.wide-bar{grid-template-columns:minmax(280px,.8fr) minmax(620px,1.4fr)}@media(max-width:1000px){.report-chart-grid.wide-bar{grid-template-columns:1fr}}


/* CUSTOMER_UI_ONLY_PATCH
   Chỉ chỉnh giao diện web khách. Không thay đổi logic dữ liệu đăng ký, import container,
   tàu/chuyến, dữ liệu trả về từ web admin. */
.customer-hero-banner{
  width:100%;
  height:220px;
  overflow:hidden;
  border-radius:0 0 18px 18px;
  margin:0 0 14px 0;
  background:#eaf3ff;
}
.customer-hero-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.customer-login-logo{
  text-align:center;
  margin:12px auto;
}
.customer-login-logo img{
  width:110px;
  max-width:38vw;
  border-radius:10px;
  background:#fff;
}
.customer-welcome-title{
  font-size:22px;
  font-weight:800;
  color:#0f172a;
  text-align:center;
  margin:10px auto 18px auto;
  padding:0 14px;
}

/* Ẩn khung thông tin khách nếu còn tồn tại, chỉ ẩn UI */
.customer-info,
#customerInfo,
#customer-info,
.info-customer,
.customer-profile,
#customerProfile{
  display:none!important;
}

/* Khung trạng thái nhỏ, nằm ngang */
.status-card,
.status-panel,
.customer-status,
#customerStatus,
#statusPanel{
  max-width:520px!important;
  padding:10px 12px!important;
}
.status-card .stats,
.status-panel .stats,
.customer-status .stats,
#customerStatus .stats,
#statusPanel .stats,
.status-cards,
.status-grid{
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
.status-card .stat,
.status-panel .stat,
.customer-status .stat,
#customerStatus .stat,
#statusPanel .stat,
.status-item,
.stat-card{
  min-width:80px!important;
  max-width:110px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
}
.status-card .stat strong,
.status-panel .stat strong,
.customer-status .stat strong,
#customerStatus .stat strong,
.status-item strong,
.stat-card strong{
  font-size:18px!important;
  line-height:1!important;
}

/* Chọn dịch vụ nhỏ gọn */
.service-tabs,
.service-switch,
#serviceTabs,
#serviceSelectWrap{
  max-width:380px!important;
}
.service-tabs button,
.service-switch button,
#serviceTabs button{
  padding:7px 12px!important;
  min-width:95px!important;
  font-size:13px!important;
}

/* Input khoảng 25 ký tự, không kéo quá rộng */
.customer-app input[type="text"],
.customer-app input[type="datetime-local"],
.customer-app input[type="number"],
.customer-app select,
.customer-app .form-control,
body.customer input[type="text"],
body.customer input[type="datetime-local"],
body.customer input[type="number"],
body.customer select{
  max-width:260px!important;
}
textarea{
  max-width:100%!important;
}

/* Bảng chi tiết gọn hơn */
.customer-app table th,
.customer-app table td,
body.customer table th,
body.customer table td{
  padding:5px 7px!important;
  font-size:12px!important;
  white-space:normal!important;
}
.customer-app table,
body.customer table{
  table-layout:auto!important;
}

/* Bỏ các text hướng dẫn phụ trong khu file nếu vẫn còn class help/hint */
.file-help,
.attach-help,
.upload-help{
  display:none!important;
}

@media (max-width: 768px){
  .customer-desktop-only,
  .customer-hero-banner{
    display:none!important;
  }
  .customer-welcome-title{
    font-size:18px;
    margin:8px auto 12px auto;
  }
  .status-card .stats,
  .status-panel .stats,
  .customer-status .stats,
  #customerStatus .stats,
  #statusPanel .stats,
  .status-cards,
  .status-grid{
    flex-wrap:wrap!important;
  }
}


/* CUSTOMER_LOGIN_REGISTER_TEXT_FIX - chỉ sửa hiển thị */
.customer-auth-logo{
  text-align:center;
  margin:8px auto 14px auto;
}
.customer-auth-logo img{
  width:120px;
  max-width:42vw;
  border-radius:10px;
  background:#fff;
}
.customer-login-logo{
  display:none!important;
}





/* CUSTOMER_LOGIN_NO_FREEZE_FINAL
   Chỉ sửa hiển thị form đăng nhập web khách; logic đăng nhập nằm trong customer.js đã khôi phục. */
#loginBox input#user,
#loginBox input#password{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:40px !important;
  box-sizing:border-box !important;
  background:#ffffff !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:10px !important;
  padding:8px 12px !important;
  margin:0 0 10px 0 !important;
  box-shadow:none !important;
}
#loginBox button#loginBtn{
  display:block !important;
  width:100% !important;
  height:40px !important;
  box-sizing:border-box !important;
  background:#2563eb !important;
  color:#ffffff !important;
  border:none !important;
  border-radius:10px !important;
  padding:8px 12px !important;
  margin:8px 0 0 0 !important;
  font-weight:700 !important;
  text-align:center !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
#loginBox button#loginBtn:hover{background:#1d4ed8 !important;}
#loginBox{overflow:visible !important;}


/* CUSTOMER_UI_COMPACT_CLEAN_ONLY
   Chỉ chỉnh giao diện web khách/admin text; không đổi logic dữ liệu. */
.customer-welcome-title{
  font-size:22px;
  font-weight:800;
  color:#0f172a;
  text-align:center;
  margin:12px auto 16px auto;
  padding:0 12px;
}
#customerInfo,
#customerProfile,
.customer-info,
.customer-profile,
.info-customer{
  display:none!important;
}

/* Trạng thái gọn, hàng ngang */
#statusPanel,
#customerStatus,
.customer-status,
.status-panel,
.status-card{
  padding:10px 12px!important;
  max-width:560px!important;
}
#statusPanel .stats,
#customerStatus .stats,
.customer-status .stats,
.status-panel .stats,
.status-card .stats,
.status-grid,
.status-cards{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  align-items:stretch!important;
}
#statusPanel .stat,
#customerStatus .stat,
.customer-status .stat,
.status-panel .stat,
.status-card .stat,
.status-item,
.stat-card{
  min-width:95px!important;
  max-width:130px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
}
#statusPanel .stat strong,
#customerStatus .stat strong,
.customer-status .stat strong,
.status-panel .stat strong,
.status-card .stat strong,
.status-item strong,
.stat-card strong{
  font-size:18px!important;
  line-height:1!important;
}
#statusPanel p,
#customerStatus p,
.customer-status p,
.status-panel p,
.status-card p{
  display:none!important;
}

/* Bảng chi tiết dịch vụ gọn hơn */
#serviceDetails table,
.service-details table,
.customer-service-detail table,
.customer-app table{
  table-layout:auto!important;
  width:100%!important;
}
#serviceDetails th,
#serviceDetails td,
.service-details th,
.service-details td,
.customer-service-detail th,
.customer-service-detail td,
.customer-app table th,
.customer-app table td{
  padding:4px 6px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
#serviceDetails th:nth-child(2),
#serviceDetails td:nth-child(2),
#serviceDetails th:nth-child(3),
#serviceDetails td:nth-child(3),
#serviceDetails th:nth-child(4),
#serviceDetails td:nth-child(4),
#serviceDetails th:nth-child(5),
#serviceDetails td:nth-child(5){
  width:80px!important;
  max-width:90px!important;
}

/* Ẩn các text hướng dẫn phụ còn sót */
.muted:empty,
.hint:empty,
.help:empty,
.form-text:empty{
  display:none!important;
}
@media (max-width:768px){
  .customer-welcome-title{font-size:18px;margin:8px auto 12px}
  #statusPanel .stats,
  #customerStatus .stats,
  .customer-status .stats,
  .status-panel .stats,
  .status-card .stats,
  .status-grid,
  .status-cards{
    flex-wrap:wrap!important;
  }
}

/* UI_CUSTOMER_COMPACT_20260516
   Chỉ thu gọn giao diện web khách theo mẫu, không thay đổi logic nghiệp vụ/Firebase. */
#app .customer-profile-hidden{display:none!important}
#app .top{margin-bottom:16px}
#app .top .brand h1:empty{display:none}
#app .top .btn.red{background:#f8fafc!important;color:#111827!important;border:1px solid #e5e7eb!important;border-radius:14px!important;box-shadow:0 4px 12px rgba(16,24,40,.06)!important}
#app .customer-welcome-card,
#app .customer-status-card,
#app .customer-service-card{
  width:100%;
  border-radius:12px!important;
  background:#fff!important;
  border:1px solid #e9edf5!important;
  box-shadow:0 8px 24px rgba(16,24,40,.07)!important;
}
#app .customer-welcome-card{
  min-height:118px!important;
  padding:28px 30px!important;
  display:flex!important;
  align-items:center!important;
  gap:22px!important;
  margin-bottom:24px!important;
}
#app .customer-welcome-icon{
  width:64px!important;height:64px!important;border-radius:999px!important;
  border:3px solid #2563eb!important;color:#2563eb!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:30px!important;line-height:1!important;flex:0 0 auto!important;
}
#app .customer-welcome-title{
  margin:0!important;padding:0!important;text-align:left!important;
  font-size:30px!important;line-height:1.25!important;font-weight:800!important;color:#0f172a!important;
}
#app .customer-welcome-title .company-name{color:#2563eb!important}
#app .customer-status-card{
  padding:18px 34px!important;
  min-height:82px!important;
  display:grid!important;
  grid-template-columns:1fr 1px 1fr 1px 1fr!important;
  gap:26px!important;
  align-items:center!important;
  margin-bottom:24px!important;
}
#app .customer-status-item{
  display:flex!important;align-items:center!important;gap:16px!important;
  background:transparent!important;border:0!important;padding:0!important;min-width:0!important;
}
#app .customer-status-item b{font-size:26px!important;line-height:1!important;color:#0f172a!important}
#app .customer-status-item span:not(.customer-status-icon){font-size:16px!important;color:#0f172a!important;white-space:nowrap!important}
#app .customer-status-icon{width:48px!important;height:48px!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;font-weight:800!important;flex:0 0 auto!important}
#app .customer-status-icon.blue{background:#eef4ff!important;color:#2563eb!important}
#app .customer-status-icon.orange{background:#fff3e4!important;color:#f59e0b!important}
#app .customer-status-icon.green{background:#eaf8ef!important;color:#16a34a!important}
#app .customer-status-sep{height:38px!important;width:1px!important;background:#e2e8f0!important}
#app .customer-service-card{
  padding:22px 34px 26px!important;
  min-height:116px!important;
  margin-bottom:24px!important;
  border-left:1px solid #e9edf5!important;
}
#app .customer-service-card h2{font-size:24px!important;margin:0 0 18px 0!important;color:#0f172a!important}
#app .customer-service-card .service-tabs{margin:0!important;gap:20px!important;display:flex!important;flex-wrap:wrap!important}
#app .customer-service-card .service-tab{min-width:132px!important;padding:13px 18px!important;border-radius:14px!important;font-size:15px!important;box-shadow:none!important}
#app .customer-service-card .service-tab.gray{background:#e5e7eb!important;color:#111827!important}
#app .customer-service-card .service-tab.active{background:#2563eb!important;color:#fff!important}
@media(max-width:850px){
  #app .customer-welcome-card{min-height:auto!important;padding:18px 16px!important;gap:12px!important;margin-bottom:14px!important}
  #app .customer-welcome-icon{width:48px!important;height:48px!important;font-size:22px!important;border-width:2px!important}
  #app .customer-welcome-title{font-size:20px!important}
  #app .customer-status-card{padding:12px 14px!important;gap:10px!important;grid-template-columns:1fr!important;min-height:auto!important}
  #app .customer-status-sep{display:none!important}
  #app .customer-status-item{gap:10px!important}
  #app .customer-status-icon{width:38px!important;height:38px!important;font-size:18px!important}
  #app .customer-status-item b{font-size:22px!important}
  #app .customer-service-card{padding:16px!important;min-height:auto!important}
  #app .customer-service-card h2{font-size:20px!important;margin-bottom:12px!important}
  #app .customer-service-card .service-tabs{gap:10px!important;display:flex!important;flex-direction:row!important}
  #app .customer-service-card .service-tab{min-width:92px!important;padding:10px 12px!important;font-size:13px!important}
}
#app .customer-main-top{background:#fff;margin:-18px -18px 54px -18px;padding:22px 18px;border-top:8px solid #2563eb;box-shadow:0 4px 16px rgba(16,24,40,.06)}
#app .customer-brand{display:flex!important;align-items:center!important;gap:12px!important}
#app .customer-brand img{width:56px!important;height:56px!important;object-fit:contain!important;border-radius:6px!important}
#app .customer-brand h1{display:block!important;margin:0!important;font-size:25px!important;line-height:1.1!important;color:#0b57b7!important;font-weight:800!important}
#app .customer-brand p{margin:4px 0 0!important;color:#0b57b7!important;font-weight:700!important;font-size:15px!important}
@media(max-width:850px){#app .customer-main-top{margin:-10px -10px 24px -10px;padding:14px 10px;align-items:center!important}#app .customer-brand img{width:44px!important;height:44px!important}#app .customer-brand h1{font-size:18px!important}#app .customer-brand p{font-size:12px!important}}

/* UI_CUSTOMER_TIMES_COMPANY_ONLY_20260516
   Chỉ chỉnh giao diện web khách: font/tiêu đề/tên công ty/khung dịch vụ. Không đổi logic nghiệp vụ. */
#app .customer-main-top,
#app .customer-brand h1,
#app .customer-brand p,
#app .customer-welcome-card,
#app .customer-welcome-title,
#app .customer-status-card,
#app .customer-status-item,
#app .customer-service-card,
#app .customer-service-card h2,
#app .customer-service-card .service-tab,
#app #logoutBtn{
  font-family:"Times New Roman", Times, serif!important;
}
#app .customer-brand h1,
#app .customer-brand p{
  color:#004bd6!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.2px!important;
}
#app .customer-brand h1{font-size:31px!important;line-height:1!important;margin:0!important;}
#app .customer-brand p{font-size:20px!important;line-height:1.05!important;margin:3px 0 0!important;}
#app .customer-welcome-title{
  color:#004bd6!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  font-size:36px!important;
  line-height:1.15!important;
}
#app .customer-welcome-title .company-name{color:#004bd6!important;}
#app .customer-service-card{
  min-height:118px!important;
  padding:22px 34px 24px!important;
}
#app .customer-service-card h2{
  color:#004bd6!important;
  font-weight:900!important;
}
#app .customer-service-card .service-tabs{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:26px!important;
}
#app .customer-service-card .service-tab{
  min-width:156px!important;
  height:52px!important;
  padding:12px 22px!important;
  border-radius:12px!important;
  font-size:20px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
#app .customer-service-card .service-tab.active{
  background:#004bd6!important;
  color:#fff!important;
}
#app .customer-service-card .service-tab.gray{
  background:#f0f1f4!important;
  color:#004bd6!important;
}
@media(max-width:850px){
  #app .customer-brand h1{font-size:21px!important;}
  #app .customer-brand p{font-size:14px!important;}
  #app .customer-welcome-title{font-size:22px!important;}
  #app .customer-service-card .service-tabs{gap:10px!important;overflow-x:auto!important;}
  #app .customer-service-card .service-tab{min-width:96px!important;height:42px!important;font-size:15px!important;padding:8px 12px!important;}
}


/* Mobile UI only: danh mục con trong phần Đóng hàng */
.mobile-section-tabs{display:none;gap:8px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:10px 0 14px;padding-bottom:4px}
.mobile-section-tab{border:0;border-radius:12px;background:#eef1f5;color:#0f172a;font-weight:800;padding:10px 12px;white-space:nowrap;cursor:pointer;font-family:inherit}
.mobile-section-tab.active{background:#2563eb;color:#fff;box-shadow:0 6px 14px rgba(37,99,235,.22)}
body.mobile-view .mobile-section-tabs{display:flex}
body.mobile-view #dongHangCard{padding-bottom:12px}
body.mobile-view #dongHangCard>h2{margin-bottom:6px}
@media (max-width:480px){body.mobile-view .mobile-section-tab{font-size:12px;padding:9px 10px}}

.notification-list{display:flex;flex-direction:column;gap:10px}.notification-item{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}.notification-item.unread{border-left:5px solid #2563eb}.notification-item .meta{font-size:12px;color:#64748b}.notification-item .title{font-weight:700}.notification-item .msgtext{margin-top:4px}.notification-empty{color:#64748b;padding:14px;border:1px dashed #cbd5e1;border-radius:12px}.badge.pending{display:inline-block;min-width:20px;text-align:center}

/* UI_NOTIFICATION_TOP_20260517
   Đưa nút Thông báo lên góc phải khung tên/cụm tiêu đề; không đổi logic Firebase. */
.top-notification-btn{display:inline-flex!important;align-items:center!important;gap:6px!important;border:1px solid #e5e7eb!important;background:#f8fafc!important;color:#0f172a!important;box-shadow:0 4px 12px rgba(16,24,40,.06)!important}
#app .customer-welcome-card .top-notification-btn{margin-left:auto!important;align-self:center!important;white-space:nowrap!important}
#app .customer-welcome-card{justify-content:flex-start!important}
#app .customer-service-card .service-tabs [data-service="notifications"]{display:none!important}
@media(max-width:850px){#app .customer-welcome-card{flex-wrap:wrap!important}#app .customer-welcome-card .top-notification-btn{margin-left:0!important;width:100%!important;justify-content:center!important}.admin-top-notification{order:-1}}

/* full desktop width */
@media(min-width:851px){
.wrap{max-width:100%!important;width:100%!important;padding:16px 24px!important}
body.desktop-view .wrap{max-width:100%!important;width:100%!important}
.top,.card{width:100%}
}


/* ADMIN_UI_CLEANUP_20260518
   Chỉ chỉnh hiển thị, không thay đổi logic nghiệp vụ. */
.ui-hidden-admin-list{display:none!important;}
.ui-hidden-report-filter{display:none!important;}

/* Desktop admin full màn hình */
@media (min-width:851px){
  body.desktop-view .wrap,
  .wrap{max-width:100%!important;width:100%!important;padding:16px 24px!important;}
  #app .top,#app .card{width:100%;}
}

/* Mobile: riêng Dữ liệu xử lý chỉ giữ các mục cần thao tác nhanh;
   desktop vẫn giữ bố cục/chức năng cũ. */
body.mobile-view #tab-data .mobile-hide-processing-extra{display:none!important;}
body.mobile-view #tab-data .service-tabs{display:flex!important;overflow-x:auto!important;gap:8px!important;}
body.mobile-view #tab-data .service-tab{white-space:nowrap!important;}

/* LOGIN_VISIBILITY_GUARD: không hiển thị giao diện admin trước khi đăng nhập */
#app.hidden, #versionBox.hidden { display:none !important; }

/* 2026-05-20: Ẩn các khối import thủ công vì đã chuyển sang import tự động qua mail. Giữ nguyên HTML/JS để tránh phá cấu trúc cũ. */
.manual-import-hidden{display:none !important;}


/* CUSTOMER_APPROVAL_MOBILE_CODE_INPUT_20260520
   Chỉ sửa hiển thị ô nhập Mã khách ở bảng Hồ sơ khách chờ xét duyệt trên điện thoại.
   Không đổi login, Firebase init, onAuthStateChanged, không đổi logic duyệt/đăng ký. */
body.mobile-view #tab-customers .tablebox{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
body.mobile-view #customerApprovalBody{
  display:table-row-group!important;
}
body.mobile-view #customerApprovalBody tr,
body.mobile-view #customerApprovalBody td,
body.mobile-view #customerApprovalBody th{
  visibility:visible!important;
}
body.mobile-view #customerApprovalBody td:nth-child(3),
body.mobile-view #tab-customers table:has(#customerApprovalBody) th:nth-child(3){
  display:table-cell!important;
  min-width:170px!important;
  width:170px!important;
  max-width:none!important;
  white-space:normal!important;
  overflow:visible!important;
}
body.mobile-view #customerApprovalBody input[data-customer-reg-code]{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:150px!important;
  min-width:150px!important;
  max-width:none!important;
  height:38px!important;
  box-sizing:border-box!important;
  background:#ffffff!important;
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  border:1px solid #94a3b8!important;
  border-radius:10px!important;
  padding:8px 10px!important;
  font-size:16px!important;
}
body.mobile-view #tab-customers table:has(#customerApprovalBody){
  min-width:980px!important;
}


/* DHSX_MOBILE_UI_SAFE_20260617: mobile-only card/detail layer; desktop unchanged */
@media(max-width:860px){
  body.mobile-view .tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
  body.mobile-view .tab{position:relative;min-height:42px;white-space:normal;text-align:center;padding-right:28px}
  body.mobile-view .mobile-op-badge{position:absolute;top:-6px;right:-4px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;align-items:center;justify-content:center;font-size:11px;font-weight:800;padding:0 6px;box-shadow:0 2px 8px rgba(239,68,68,.35)}
  body.mobile-view .mobile-safe-backbar{display:flex;align-items:center;gap:10px;margin:0 0 10px 0;position:sticky;top:0;z-index:20;background:#f3f6fb;padding:8px 0}
  body.mobile-view .mobile-safe-card-list{display:block;margin:12px 0}
  body.mobile-view .mobile-safe-list-title{font-weight:800;font-size:16px;margin:8px 0;color:#0f172a}
  body.mobile-view .tablebox:has(+ .mobile-safe-card-list){display:none}
  body.mobile-view .mobile-safe-card{background:#fff;border:1px solid #c9d7ea;border-radius:14px;padding:13px 14px;margin:0 0 12px 0;box-shadow:0 2px 10px rgba(15,23,42,.04)}
  body.mobile-view .mobile-safe-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
  body.mobile-view .mobile-safe-card-head>b{font-size:15px;color:#162033;line-height:1.25;word-break:break-word}
  body.mobile-view .mobile-safe-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff3d6;color:#4b3b13;font-size:11px;font-weight:700;padding:5px 9px;white-space:nowrap}
  body.mobile-view .mobile-safe-line{display:flex;justify-content:space-between;gap:8px;background:#f2f5fa;border-radius:8px;margin:6px 0;padding:7px 9px;font-size:12px}
  body.mobile-view .mobile-safe-line span{color:#667085;min-width:82px}
  body.mobile-view .mobile-safe-line b{color:#162033;text-align:right;font-weight:700;word-break:break-word}
  body.mobile-view .mobile-safe-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  body.mobile-view .mobile-safe-actions .btn{margin:0;flex:1 1 auto;min-width:84px;min-height:32px;font-size:12px;padding:7px 9px}
  body.mobile-view .mobile-safe-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 12px}
  body.mobile-view .mobile-safe-summary.two{grid-template-columns:repeat(2,1fr)}
  body.mobile-view .mobile-safe-summary.one{grid-template-columns:1fr}
  body.mobile-view .mobile-safe-summary>div{background:#fff;border:1px solid #c9d7ea;border-radius:12px;padding:10px;text-align:center}
  body.mobile-view .mobile-safe-summary span{display:block;font-size:11px;color:#667085}
  body.mobile-view .mobile-safe-summary b{display:block;font-size:20px;color:#162033;margin-top:4px}
  body.mobile-view #mobileDongApprovalCards .mobile-safe-summary,
  body.mobile-view #mobileRutApprovalCards .mobile-safe-summary{gap:6px;margin:6px 0 9px}
  body.mobile-view #mobileDongApprovalCards .mobile-safe-summary>div,
  body.mobile-view #mobileRutApprovalCards .mobile-safe-summary>div{min-height:48px;padding:6px 4px;border-radius:10px}
  body.mobile-view #mobileDongApprovalCards .mobile-safe-summary span,
  body.mobile-view #mobileRutApprovalCards .mobile-safe-summary span{font-size:10px;line-height:1.15}
  body.mobile-view #mobileDongApprovalCards .mobile-safe-summary b,
  body.mobile-view #mobileRutApprovalCards .mobile-safe-summary b{font-size:17px;line-height:1.05;margin-top:2px}
  body.mobile-view .mobile-safe-empty{background:#fff;border:1px dashed #c9d7ea;border-radius:12px;padding:14px;color:#667085;text-align:center}
  body.mobile-view .mobile-safe-overlay{position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:9999;display:flex;align-items:stretch;justify-content:center}
  body.mobile-view .mobile-safe-panel{width:100%;max-width:520px;background:#fff;min-height:100vh;overflow:auto}
  body.mobile-view .mobile-safe-panel-head{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e7eb;padding:12px}
  body.mobile-view .mobile-safe-panel-head b{font-size:16px;color:#162033}
  body.mobile-view .mobile-safe-panel-body{padding:12px}
  body.mobile-view .mobile-safe-detail-row{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:9px 10px;margin-bottom:8px}
  body.mobile-view .mobile-safe-detail-row>span{display:block;color:#667085;font-size:11px;margin-bottom:4px}
  body.mobile-view .mobile-safe-detail-row>div{color:#162033;font-size:13px;word-break:break-word}
  body.mobile-view #reportChartGrid{grid-template-columns:1fr!important}
  body.mobile-view #reportChartGrid canvas{max-width:100%;height:auto!important}
}

/* SAFE_MOBILE_TAP_AND_ALLOC_UI_20260723
   Tang vung cham tren dien thoai, giu nguyen logic nut/Firebase va an khoi thong ke cap rong theo yeu cau. */
.alloc-summary-card-hidden{display:none!important}
@media(max-width:860px){
  body.mobile-view #app>section .btn,
  body.mobile-view .mobile-safe-overlay .btn{
    min-height:44px;
    touch-action:manipulation;
    -webkit-tap-highlight-color:rgba(37,99,235,.16);
  }
  body.mobile-view #app>section .btn:active,
  body.mobile-view .mobile-safe-overlay .btn:active{
    transform:scale(.985);
    filter:brightness(.96);
  }
  body.mobile-view .mobile-safe-actions .btn{min-height:44px!important;padding:10px 11px!important}
  body.mobile-view .processing-main-tabs .btn{min-height:46px!important}
  body.mobile-view .alloc-check{width:24px!important;height:24px!important;touch-action:manipulation}
  body.mobile-view input[type="checkbox"]{min-width:22px;min-height:22px;touch-action:manipulation}
  body.mobile-view button.mobile-action-forwarding,
  body.mobile-view a.mobile-action-forwarding{opacity:.58!important;pointer-events:none!important;transform:scale(.985)}
  body.mobile-view select,
  body.mobile-view input,
  body.mobile-view textarea{touch-action:manipulation}
}
@media(min-width:861px){.mobile-safe-card-list,.mobile-safe-backbar,.mobile-safe-overlay{display:none!important}}

/* FIX_DESKTOP_MODE_ON_PHONE_20260618: Khi chọn phiên bản máy tính trên điện thoại, giữ nguyên layout desktop và cho trình duyệt thu nhỏ toàn trang. */
body.desktop-view{min-width:1180px;overflow-x:auto;background:#f3f6fb;}
body.desktop-view .wrap{max-width:1440px!important;min-width:1180px!important;padding:18px!important;}
body.desktop-view .grid{grid-template-columns:1fr 1fr!important;}
body.desktop-view .grid3{grid-template-columns:repeat(3,1fr)!important;}
body.desktop-view .formgrid{grid-template-columns:repeat(3,1fr)!important;}
body.desktop-view .tabs{display:flex!important;overflow:visible!important;padding-bottom:0!important;}
body.desktop-view .card{padding:18px!important;border-radius:18px!important;}
body.desktop-view .mobile-safe-card-list,body.desktop-view .mobile-safe-backbar,body.desktop-view .mobile-safe-overlay,body.desktop-view .mobile-customer-tabs{display:none!important;}
body.desktop-view #app>section{display:block;}
body.desktop-view #app>section.hidden{display:none!important;}

/* SAFE_PATCH_20260619_UI_STATS_HIDE_KIEM_HOA
   Chỉ chỉnh UI/ẩn kiểm hóa, không xóa dữ liệu/logic Firebase. */
.tab[data-tab="kiemhoa"],
.service-tab[data-process-service="kiem_hoa"],
.btn[data-plan-service="kiem_hoa"]{display:none!important;}
body.mobile-view .mobile-safe-nowrap{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;display:inline-block;max-width:100%;}
body.mobile-view #tab-plans .mobile-safe-card,
body.mobile-view #tab-plans .mobile-safe-line b{word-break:normal!important;overflow-wrap:anywhere;}
body.mobile-view:not(.mobile-module-open) #app{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;}
body.mobile-view:not(.mobile-module-open) #app>.top{min-height:112px!important;padding:14px 12px!important;margin-bottom:22px!important;align-items:center!important;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(16,24,40,.08);}
body.mobile-view:not(.mobile-module-open) #app>.tabs{margin-top:14px!important;padding-bottom:0!important;}
body.mobile-view:not(.mobile-module-open) #app>.tabs .btn{min-height:48px!important;}
#adminSystemControlBox button{font-family:Arial,Helvetica,sans-serif;}


/* SAFE_PATCH_20260619_MOBILE_DUYET_DONG_TEXT_WRAP
   Chỉ sửa hiển thị card mobile Duyệt ĐK: tên KH/lý do không bị ép dọc hoặc tràn ngang. */
@media(max-width:860px){
  body.mobile-view #mobileDongApprovalCards .mobile-safe-card-head{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  body.mobile-view #mobileDongApprovalCards .mobile-safe-card-head>b{
    flex:1 1 100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body.mobile-view #mobileDongApprovalCards .mobile-safe-pill{
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.25!important;
    text-align:left!important;
  }
  body.mobile-view #mobileDongApprovalCards .mobile-safe-line,
  body.mobile-view #mobileDongApprovalCards .mobile-safe-line b,
  body.mobile-view #mobileDongApprovalCards .mobile-safe-actions,
  body.mobile-view #mobileDongApprovalCards .mobile-safe-actions *{
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.mobile-view #mobileDongApprovalCards textarea[data-reject-reason]{
    width:100%!important;
    min-height:70px!important;
    resize:vertical!important;
  }
}

/* DESKTOP_TAB_APPROVAL_STATS_20260726:
   Chỉ đổi bố cục desktop; không xóa dữ liệu hay thay đổi giao diện mobile. */
body.desktop-view #adminDesktopStats{
  display:none!important;
}
body.desktop-view #app>.tabs .tab[data-tab="kiemhoa"]{
  display:none!important;
}
.admin-desktop-tab-stats{
  display:none;
}
body.desktop-view .admin-desktop-tab-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:14px 0 12px;
}
body.desktop-view .admin-desktop-tab-stat{
  min-height:72px;
  padding:13px 16px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:12px;
  border:1px solid #d9e3f0;
  border-radius:12px;
  background:#f8fbff;
  box-shadow:0 3px 12px rgba(15,36,70,.05);
}
body.desktop-view .admin-desktop-tab-stat.pending{
  background:#fffaf3;
  border-color:#f4dfbf;
}
body.desktop-view .admin-desktop-tab-stat-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#eaf2ff;
  color:#1262dc;
  font-size:22px;
  font-weight:800;
}
body.desktop-view .admin-desktop-tab-stat.pending .admin-desktop-tab-stat-icon{
  background:#fff0db;
  color:#e87508;
}
body.desktop-view .admin-desktop-tab-stat-text{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
}
body.desktop-view .admin-desktop-tab-stat-text>span{
  color:#334155;
  font-size:14px;
  font-weight:700;
}
body.desktop-view .admin-desktop-tab-stat-text>b{
  color:#1262dc;
  font-size:26px;
  line-height:1;
}
body.desktop-view .admin-desktop-tab-stat.pending .admin-desktop-tab-stat-text>b{
  color:#e87508;
}
body.desktop-view .admin-desktop-tab-stat-text>small{
  grid-column:1/-1;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  line-height:1.3;
}
body.mobile-view .admin-desktop-tab-stats{
  display:none!important;
}

/* ADMIN_DESKTOP_DARK_SIDEBAR_20260721
   Chỉ áp dụng khi người dùng chọn Phiên bản máy tính. Toàn bộ CSS mobile giữ nguyên. */
body.desktop-view{
  min-width:1280px!important;
  background:#f4f7fb!important;
  color:#10203a;
}
body.desktop-view.admin-app-visible::before{
  content:"";
  position:fixed;
  inset:0 auto 0 0;
  width:310px;
  background:linear-gradient(180deg,#032c5b 0%,#002650 55%,#063362 100%);
  box-shadow:10px 0 28px rgba(2,28,61,.12);
  z-index:40;
}
body.desktop-view.admin-app-visible .wrap{
  max-width:none!important;
  min-width:0!important;
  width:calc(100% - 310px)!important;
  margin:0 0 0 310px!important;
  padding:28px 28px 36px!important;
}
body.desktop-view #app>.top{
  min-height:126px;
  margin:0 0 20px!important;
  padding:24px 30px!important;
  border:1px solid #d8e1ee;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 20px rgba(15,36,70,.05);
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  position:relative;
}
body.desktop-view #app>.top::before{
  content:"◎  PHÒNG DHSX";
  position:absolute;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  color:#102044;
  font-size:29px;
  line-height:1;
  font-weight:800;
  letter-spacing:.2px;
}
body.desktop-view #app>.top .brand{
  position:fixed;
  z-index:51;
  left:20px;
  top:22px;
  width:270px;
  min-height:82px;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  color:#fff!important;
}
body.desktop-view #app>.top .brand img{
  width:58px!important;
  height:68px!important;
  object-fit:contain!important;
  border-radius:0!important;
}
body.desktop-view #app>.top .brand h1{
  margin:0!important;
  color:#fff!important;
  font-size:0!important;
  line-height:1.15!important;
}
body.desktop-view #app>.top .brand h1::after{
  content:"TÂN CẢNG PHÚ HỮU";
  font-size:20px;
  white-space:nowrap;
}
body.desktop-view #app>.top .brand p{
  margin:6px 0 0!important;
  color:#fff!important;
  font-family:"Times New Roman",serif;
  font-size:15px!important;
  white-space:nowrap;
}
body.desktop-view #app>.tabs{
  position:fixed!important;
  z-index:50;
  left:16px;
  top:205px;
  bottom:202px;
  width:278px;
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:8px!important;
  padding:0 0 8px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.35) transparent;
}
body.desktop-view #app>.tabs .tab{
  width:100%;
  min-height:48px;
  padding:12px 14px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  text-align:left!important;
  font-size:15px!important;
  line-height:1.2!important;
  box-shadow:none!important;
  white-space:normal!important;
}
body.desktop-view #app>.tabs .tab::before{
  width:26px;
  flex:0 0 26px;
  text-align:center;
  font-size:21px;
  font-weight:400;
  color:#eaf5ff;
}
body.desktop-view #app>.tabs .tab[data-tab="data"]::before{content:"▤"}
body.desktop-view #app>.tabs .tab[data-tab="requests"]::before{content:"▣"}
body.desktop-view #app>.tabs .tab[data-tab="rut"]::before{content:"⇥"}
body.desktop-view #app>.tabs .tab[data-tab="kiemhoa"]::before{content:"☑"}
body.desktop-view #app>.tabs .tab[data-tab="plans"]::before{content:"☷"}
body.desktop-view #app>.tabs .tab[data-tab="trace"]::before{content:"⌕"}
body.desktop-view #app>.tabs .tab[data-tab="customers"]::before{content:"♙"}
body.desktop-view #app>.tabs .tab[data-tab="users"]::before{content:"⚙"}
body.desktop-view #app>.tabs .tab[data-tab="reports"]::before{content:"▥"}
body.desktop-view #app>.tabs .tab[data-tab="baocao"]::before{content:"▦"}
body.desktop-view #app>.tabs .tab[data-tab="importmanage"]::before{content:"⇩"}
body.desktop-view #app>.tabs .tab:hover{
  background:rgba(13,164,183,.22)!important;
}
body.desktop-view #app>.tabs .tab.active{
  color:#fff!important;
  background:linear-gradient(100deg,#079aaa,#08a9b9)!important;
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:0 8px 18px rgba(0,162,178,.2)!important;
}
body.desktop-view #app>.top>.row>a[href="customer.html"],
body.desktop-view #app>.top .admin-top-notification,
body.desktop-view #app>.top #changeVersionBtn,
body.desktop-view #app>.top #logoutBtn{
  position:fixed!important;
  z-index:52!important;
  left:16px!important;
  width:278px!important;
  min-height:52px!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:11px 18px!important;
  font-size:15px!important;
  box-shadow:none!important;
}
body.desktop-view #app>.top .admin-top-notification{top:136px!important;bottom:auto!important}
body.desktop-view #app>.top>.row>a[href="customer.html"]{bottom:140px!important}
body.desktop-view #app>.top #changeVersionBtn{bottom:78px!important}
body.desktop-view #app>.top #logoutBtn{bottom:16px!important}
body.desktop-view #app>.top .admin-top-notification::before{content:"♧";font-size:22px;margin-right:14px}
body.desktop-view #app>.top>.row>a[href="customer.html"]::before{content:"↗";font-size:22px;margin-right:14px}
body.desktop-view #app>.top #changeVersionBtn::before{content:"▤";font-size:21px;margin-right:14px}
body.desktop-view #app>.top #logoutBtn::before{content:"⇥";font-size:22px;margin-right:14px}
body.desktop-view #app>.top>.row>a[href="customer.html"]:hover,
body.desktop-view #app>.top .admin-top-notification:hover,
body.desktop-view #app>.top #changeVersionBtn:hover,
body.desktop-view #app>.top #logoutBtn:hover{background:rgba(255,255,255,.09)!important}
body.desktop-view .admin-desktop-stats{
  min-height:112px;
  margin:0 0 20px;
  padding:20px 28px;
  display:grid;
  grid-template-columns:1fr 1px 1fr 1px 1fr;
  align-items:center;
  gap:24px;
  background:#fff;
  border:1px solid #d8e1ee;
  border-radius:14px;
  box-shadow:0 5px 20px rgba(15,36,70,.05);
}
body.desktop-view .admin-desktop-stat{
  display:grid;
  grid-template-columns:56px auto 1fr;
  align-items:center;
  column-gap:14px;
}
body.desktop-view .admin-desktop-stat b{font-size:30px;color:#1262dc}
body.desktop-view .admin-desktop-stat span:last-child{font-size:16px;color:#17223a}
body.desktop-view #adminDesktopPendingBreakdown{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  line-height:1.3;
  white-space:nowrap;
}
body.desktop-view .admin-desktop-stat-sep{width:1px;height:48px;background:#ccd6e4}
body.desktop-view .admin-stat-icon{
  width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:27px;font-weight:800;background:#eef4ff;color:#1262dc;
}
body.desktop-view .admin-stat-icon.pending{background:#fff3e5;color:#f08010}
body.desktop-view .admin-stat-icon.approved{background:#eaf7ed;color:#15963a}
body.desktop-view .admin-desktop-stat:nth-child(3) b{color:#ef7b0b}
body.desktop-view .admin-desktop-stat:nth-child(5) b{color:#15963a}
body.desktop-view #app>section>.card,
body.desktop-view #app>section>.grid>.card,
body.desktop-view #app>section>.grid>div>.card{
  border:1px solid #d8e1ee;
  border-radius:14px!important;
  box-shadow:0 5px 20px rgba(15,36,70,.05)!important;
}
body:not(.desktop-view) .admin-desktop-stats{display:none!important}

/* TRA_SOAT_NGHIEP_VU_20260621: module riêng, chỉ giao diện tra cứu log */
.trace-detail-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px;margin-top:8px;text-align:left;line-height:1.55}
.trace-table .tiny{padding:5px 8px;font-size:12px}
@media(max-width:760px){
  #tab-trace .tablebox{overflow:visible}
  #tab-trace table,#tab-trace thead,#tab-trace tbody,#tab-trace tr,#tab-trace td{display:block;width:100%}
  #tab-trace thead{display:none}
  #tab-trace tr.trace-row{background:#fff;border:1px solid #e5e7eb;border-radius:14px;margin:10px 0;padding:10px;box-shadow:0 2px 10px rgba(15,23,42,.05)}
  #tab-trace tr.trace-row td{border:0!important;padding:3px 0!important;text-align:left!important}
  #tab-trace tr.trace-row td:nth-child(1)::before{content:'Thời gian: ';font-weight:700;color:#64748b}
  #tab-trace tr.trace-row td:nth-child(n+4):nth-child(-n+7){display:none}
  #tab-trace tr.trace-row td:nth-child(8){margin-top:8px}
  #tab-trace .formgrid{grid-template-columns:1fr!important}
}


/* TRACE_MOBILE_CARD_20260623: chỉ đổi giao diện mobile Tra soát nghiệp vụ, giữ bảng desktop và logic log */
.trace-mobile-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
  box-shadow:0 2px 10px rgba(15,23,42,.05);
  line-height:1.55;
}
.trace-mobile-card .tiny{margin-top:8px}
@media(max-width:760px){
  #tab-trace tr.trace-mobile-row{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    margin:10px 0!important;
    padding:0!important;
    box-shadow:none!important;
  }
  #tab-trace tr.trace-mobile-row td{
    display:block!important;
    width:100%!important;
    padding:0!important;
    border:0!important;
  }
  #tab-trace tr.trace-mobile-row td::before{content:none!important}
}


/* FIX_TRACE_CARD_NO_HORIZONTAL_20260624: Tra soát mobile hiển thị dạng thẻ, không kéo ngang */
@media(max-width:760px){
  #tab-trace .tablebox{overflow-x:hidden!important;max-width:100%!important;}
  #tab-trace .trace-table{min-width:0!important;width:100%!important;table-layout:auto!important;}
  #tab-trace .trace-mobile-card{box-sizing:border-box;width:100%;max-width:100%;overflow-wrap:anywhere;word-break:break-word;}
  #tab-trace .trace-detail-box{overflow-wrap:anywhere;word-break:break-word;}
}

/* SAFE_20260717: tab Import | Cấp rỗng trong Dữ liệu xử lý */
.processing-main-tabs{margin:10px 0 14px;display:flex;gap:8px;flex-wrap:wrap}
#processingImportPane.hidden,#processingAllocationPane.hidden{display:none!important}
#processingAllocationPane>.card{margin-bottom:14px}
.alloc-customer-stats{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
body.mobile-view .processing-main-tabs{position:sticky;top:54px;z-index:30;background:#fff;padding:8px;border-radius:12px;border:1px solid #d7e1ee}
body.mobile-view .processing-main-tabs .btn{flex:1}
body.mobile-view #processingAllocationPane{padding-bottom:18px}
@media(max-width:700px){.alloc-customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* SAFE_FIX_20260717_REPORT_MOBILE_DIRECT_AND_COMPACT_STATS
   Chỉ tối ưu hiển thị mobile Báo cáo/Thống kê; không đổi dữ liệu hoặc công thức. */
@media(max-width:860px){
  body.mobile-view #opsReportCards,
  body.mobile-view #opsExecutionCards{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.mobile-view #opsReportCards .card.mini,
  body.mobile-view #opsExecutionCards .card.mini{
    padding:9px 8px!important;
    margin:0!important;
    min-height:0!important;
    border-radius:11px!important;
  }
  body.mobile-view #opsReportCards .card.mini>b,
  body.mobile-view #opsExecutionCards .card.mini>b{
    display:block!important;
    font-size:11px!important;
    line-height:1.25!important;
    min-height:28px!important;
  }
  body.mobile-view #opsReportCards .card.mini h2,
  body.mobile-view #opsExecutionCards .card.mini h2{
    font-size:21px!important;
    line-height:1.05!important;
    margin:5px 0 0!important;
  }
  body.mobile-view #opsReportCards .card.mini p,
  body.mobile-view #opsExecutionCards .card.mini p{
    font-size:10px!important;
    line-height:1.2!important;
    margin:4px 0 0!important;
  }
  body.mobile-view #mobileReportTopCustomerCards .mobile-safe-card{
    padding:9px 10px!important;
    margin-bottom:7px!important;
  }
}
