*{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}
.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}

.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;
}

/* SAFE FIX 20260624: bố cục lại mật khẩu đăng ký khách */
.register-formgrid .register-password-row{
  grid-column:1 / -1;
}
.password-field{
  position:relative;
  display:block;
  width:100%;
}
.password-field .input{
  width:100%;
  padding-right:64px;
  box-sizing:border-box;
}
.password-toggle{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  border-radius:8px;
  background:#eef4ff;
  color:#0b56d0;
  font-weight:700;
  font-size:12px;
  padding:6px 9px;
  cursor:pointer;
}
.password-toggle:hover{
  background:#dceaff;
}
@media(max-width:760px){
  .register-formgrid .register-password-row{
    grid-column:1 / -1;
  }
  .password-field .input{
    padding-right:62px;
  }
}

/* CUSTOMER_ACCOUNT_DEFAULTS_AND_CLOVER_20260721 */
#app .customer-welcome-icon{
  border-color:#18a545!important;
  color:#18a545!important;
  background:#eef3ff!important;
  overflow:hidden;
}
#app .customer-welcome-icon .customer-clover-icon{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 82%;
}
.field-label-row{
  min-height:25px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.field-label-row>label:first-child{margin-bottom:6px}
.field-default-toggle{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  margin:0!important;
  color:#16803b;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap;
  cursor:pointer;
}
.field-default-toggle input{
  width:16px!important;
  height:16px!important;
  margin:0!important;
  accent-color:#16a34a;
}
#app .customer-account-card{
  border-left:4px solid #16a34a!important;
}
#app .customer-account-card h2{margin-top:0;color:#004bd6}
#app .customer-account-card .customer-password-form{margin-top:16px}
#app .account-password-quota{
  margin:12px 0;
  padding:10px 12px;
  border-radius:10px;
  background:#f4f8ff;
  border:1px solid #d9e5f6;
  font-weight:700;
}
#app .customer-main-top>.row{
  flex-wrap:nowrap!important;
  flex:0 0 auto;
}
#app .customer-main-top #changeVersionBtn,
#app .customer-main-top #logoutBtn{
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:6px 10px!important;
  border-radius:9px!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#app .customer-main-top .customer-brand{min-width:0!important;flex:1 1 auto!important}
#app .customer-main-top .customer-brand>div{min-width:0!important}
@media(max-width:850px){
  #app .customer-main-top{gap:7px!important}
  #app .customer-main-top>.row{gap:5px!important}
  #app .customer-main-top #changeVersionBtn,
  #app .customer-main-top #logoutBtn{
    height:30px!important;
    min-height:30px!important;
    padding:5px 7px!important;
    font-size:11px!important;
  }
  #app .customer-main-top .customer-brand h1{font-size:17px!important;white-space:normal!important}
  #app .customer-main-top .customer-brand p{font-size:11px!important;white-space:normal!important}
  .field-label-row{align-items:center}
  .field-default-toggle{font-size:11px!important}
}
