/* Vietravel Airlines Cargo - Phase 5 UI enhancement
   Presentation-only layer. No server IDs, events or business logic are changed. */
:root{--vta-logo-bg:#0066B4;--vta-blue:#0067a8;--vta-blue-dark:#004f82;--vta-sky:#0b88c9;--vta-yellow:#ffc400;--vta-bg:#f3f7fb;--vta-border:#d6e2ec;--vta-text:#17324d;}
.vta-workspace{background:var(--vta-bg);border:1px solid #e0e9f1;border-radius:14px;padding:16px 18px 22px;margin:10px 0 22px;box-shadow:0 8px 24px rgba(0,79,130,.08);overflow-x:auto;}
.vta-workspace .main-title-orange,.vta-workspace .main-title-pink,.vta-workspace .main-title-green,.vta-workspace .main-title-blue{background:linear-gradient(90deg,var(--vta-blue-dark),var(--vta-sky))!important;color:#fff!important;border:0!important;border-left:5px solid var(--vta-yellow)!important;border-radius:8px!important;padding:10px 14px!important;margin:0 0 14px!important;box-shadow:0 3px 10px rgba(0,79,130,.16);text-transform:uppercase;letter-spacing:.25px;}
.vta-workspace table{border-collapse:separate;border-spacing:4px 5px;max-width:100%;}
.vta-workspace td{vertical-align:middle;color:var(--vta-text);}
.vta-workspace fieldset{background:#fff;border:1px solid var(--vta-border)!important;border-radius:10px!important;padding:12px!important;margin-bottom:12px;box-shadow:0 2px 8px rgba(17,67,102,.05);}
.vta-workspace legend{width:auto;border:0;padding:0 8px;color:var(--vta-blue-dark);font-weight:700;font-size:14px;}
.vta-workspace input[type=text],.vta-workspace input[type=password],.vta-workspace select,.vta-workspace textarea{border-radius:6px!important;border-color:#bfd2e2!important;min-height:32px;}
.vta-workspace input[type=text]:focus,.vta-workspace select:focus,.vta-workspace textarea:focus{outline:0;box-shadow:0 0 0 3px rgba(11,136,201,.14)!important;border-color:var(--vta-sky)!important;}
.vta-workspace .dxbButton,.vta-workspace input[type=submit],.vta-workspace input[type=button]{border-radius:7px!important;box-shadow:0 3px 8px rgba(0,79,130,.15)!important;}
.vta-workspace .modalPopup{border-radius:12px!important;border:1px solid var(--vta-border)!important;box-shadow:0 18px 55px rgba(0,45,80,.25)!important;max-width:96vw!important;}
.vta-workspace .modalBackground{background:#102a3e!important;opacity:.58!important;}
.vta-workspace .dxgvHeader,.vta-workspace th{background:linear-gradient(180deg,var(--vta-blue),var(--vta-blue-dark))!important;color:#fff!important;}
.vta-workspace .dxgvDataRow:hover td,.vta-workspace tr:hover>td{background-color:#eef8fd;}
.vta-workspace .row{margin-left:0;margin-right:0;}
.vta-workspace [class*=col-md-]{padding-left:6px;padding-right:6px;}
.vta-flight-page .vta-filter-card{background:#fff;border:1px solid var(--vta-border);border-radius:10px;padding:12px;margin-bottom:12px;}
.vta-mobile-shell{max-width:100%;background:#f3f7fb;min-height:100vh;}
.vta-mobile-logo{display:block;text-align:center;padding:8px;background:var(--vta-logo-bg);}
.vta-mobile-logo img{height:42px!important;width:auto!important;max-width:190px;object-fit:contain;}
@media(max-width:991px){.vta-workspace{padding:10px 8px;border-radius:8px}.vta-workspace table{display:block;overflow-x:auto;white-space:nowrap}.vta-workspace [style*=width]{max-width:100%}.vta-workspace .modalPopup{left:2%!important;width:96%!important;overflow:auto!important}}

/* Phase 5.1 - complete Vietravel visual alignment and responsive form sizing */
:root{
  --vta-primary:#0077c8;
  --vta-primary-dark:#005a9c;
  --vta-primary-light:#0099d8;
  --vta-accent:#ffc928;
  --vta-surface:#ffffff;
  --vta-page:#f4f8fc;
}

/* Mobile header logo visibility fix */
.vta-mobile-logo{
  background:var(--vta-logo-bg)!important;
  padding:7px 8px!important;
}
.vta-mobile-logo img{
  height:54px!important;
  width:auto!important;
  max-width:220px!important;
  object-fit:contain!important;
  opacity:1!important;
  filter:drop-shadow(0 1px 2px rgba(0,35,70,.35))!important;
}
@media(max-width:420px){
  .vta-mobile-logo img{height:50px!important;max-width:210px!important;}
}

.vta-workspace{
  background:var(--vta-page)!important;
  border-color:#dbe7f1!important;
  overflow-x:visible!important;
}

/* Remove all remaining Bamboo-like green title bars. */
.vta-workspace .main-title-orange,
.vta-workspace .main-title-pink,
.vta-workspace .main-title-green,
.vta-workspace .main-title-blue,
.vta-workspace .main-title-gray,
.vta-workspace .title,
.vta-workspace .title1,
.vta-workspace .title2{
  background:linear-gradient(90deg,var(--vta-primary-dark) 0%,var(--vta-primary) 65%,var(--vta-primary-light) 100%)!important;
  border-left:5px solid var(--vta-accent)!important;
  color:#fff!important;
  border-radius:8px!important;
  box-shadow:0 3px 10px rgba(0,90,156,.17)!important;
}

.vta-workspace .dxgvHeader,
.vta-workspace .dxgvHeader td,
.vta-workspace th{
  background:linear-gradient(180deg,var(--vta-primary) 0%,var(--vta-primary-dark) 100%)!important;
  border-color:#4c91bd!important;
  color:#fff!important;
}

.vta-workspace .dxgvFooter,
.vta-workspace .dxgvFooter td,
.vta-workspace .dxgvGroupFooter,
.vta-workspace .dxgvGroupFooter td{
  background:var(--vta-primary-dark)!important;
  color:#fff!important;
}

/* DevExpress renders editors as tables. Make regular editors comfortably usable. */
.vta-workspace .dxeTextBoxSys,
.vta-workspace .dxeButtonEditSys,
.vta-workspace .dxeMemoSys,
.vta-workspace .dxeComboBoxSys,
.vta-workspace .dxeSpinEditSys{
  min-height:36px!important;
}
.vta-workspace .dxeEditAreaSys{
  min-height:32px!important;
  padding:6px 9px!important;
  box-sizing:border-box!important;
}

/* Booking editor: widen fields by purpose without changing server controls. */
@media (min-width:1200px){
  .vta-booking-editor [id$="txtBILL_NO"]{width:145px!important}
  .vta-booking-editor [id$="txtORG"],
  .vta-booking-editor [id$="txtDES"],
  .vta-booking-editor [id$="txtTRANS_PORT"]{width:90px!important}
  .vta-booking-editor [id$="txtFL_NO"]{width:105px!important}
  .vta-booking-editor [id$="dFL_DATE"]{width:145px!important}
  .vta-booking-editor [id$="cboServiceType"]{width:150px!important}
  .vta-booking-editor [id$="timeHB"]{width:105px!important}
  .vta-booking-editor [id$="numUNIT"]{width:82px!important}
  .vta-booking-editor [id$="numGROSS_WT"],
  .vta-booking-editor [id$="numCHARGE_WT"]{width:115px!important}
  .vta-booking-editor [id$="numLength"],
  .vta-booking-editor [id$="numWidth"],
  .vta-booking-editor [id$="numHeight"],
  .vta-booking-editor [id$="numPcs"]{width:78px!important}
  .vta-booking-editor [id$="numVOLUME"]{width:90px!important}
  .vta-booking-editor [id$="cboFK_GOODS_TYPE"]{width:240px!important}
  .vta-booking-editor [id$="txtNATURE"]{width:100%!important;min-width:360px!important}
  .vta-booking-editor [id$="txtSENDER_NAME"],
  .vta-booking-editor [id$="txtRECEIVER_NAME"],
  .vta-booking-editor [id$="txtSENDER_ADDRESS"],
  .vta-booking-editor [id$="txtRECEIVER_ADDRESS"]{width:100%!important;min-width:330px!important}
  .vta-booking-editor [id$="txtUserName"],
  .vta-booking-editor [id$="txtPassword"]{width:145px!important}
}

/* Keep old table-based forms fluid on desktop and tablet. */
.vta-booking-editor > table,
.vta-awb-editor > table,
.vta-flight-editor > table,
.vta-loadplan-page > table{
  width:100%!important;
}
.vta-workspace textarea,
.vta-workspace .dxeMemoSys{max-width:100%!important}
.vta-workspace .dxgvControl,
.vta-workspace .dxgvControl table{max-width:none}

/* Tablet: retain readable controls and allow only data regions to scroll. */
@media (min-width:768px) and (max-width:1199px){
  .vta-workspace{padding:14px 12px!important}
  .vta-booking-editor .col-md-4,
  .vta-awb-editor .col-md-4{width:50%;float:left}
  .vta-workspace .dxeTextBoxSys,
  .vta-workspace .dxeButtonEditSys,
  .vta-workspace .dxeMemoSys{min-width:90px}
}

/* Mobile: stack logical sections; editors fill available width where practical. */
@media (max-width:767px){
  .vta-workspace{
    margin:6px 0 14px!important;
    padding:9px 7px 15px!important;
    border-radius:8px!important;
  }
  .vta-workspace .main-title-orange,
  .vta-workspace .main-title-pink,
  .vta-workspace .main-title-green,
  .vta-workspace .main-title-blue,
  .vta-workspace .main-title-gray{
    font-size:16px!important;
    padding:9px 11px!important;
  }
  .vta-workspace .row{display:block!important}
  .vta-workspace [class*="col-md-"],
  .vta-workspace [class*="col-sm-"]{width:100%!important;float:none!important;padding:0!important}
  .vta-workspace table{border-spacing:3px 5px!important}
  .vta-workspace td{white-space:normal!important}
  .vta-workspace .dxgvControl,
  .vta-workspace .GridViewStyle,
  .vta-workspace .grid-scroll,
  .vta-workspace fieldset{max-width:100%;overflow-x:auto}
  .vta-booking-editor [id$="txtSENDER_NAME"],
  .vta-booking-editor [id$="txtRECEIVER_NAME"],
  .vta-booking-editor [id$="txtSENDER_ADDRESS"],
  .vta-booking-editor [id$="txtRECEIVER_ADDRESS"],
  .vta-booking-editor [id$="txtNATURE"]{width:100%!important;min-width:240px!important}
  .vta-workspace .modalPopup{width:96vw!important;max-width:96vw!important;left:2vw!important}
}

/* Very small phones: avoid fixed-width popup/editor overflow. */
@media (max-width:480px){
  .vta-workspace{font-size:13px}
  .vta-workspace .dxbButton{min-height:36px}
  .vta-workspace input[type=submit],
  .vta-workspace input[type=button]{min-height:36px;padding-left:12px!important;padding-right:12px!important}
}
