*,*::before,*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body,input,select,button,textarea,table{
  font-family:"Inter",Arial,Helvetica,sans-serif!important;
}

body{
  background:#eef1f5;
  color:#061b34;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:18px 0 50px;
  }

body.locked #receipt,
body.locked .btns,
body.locked .appShell,
body.locked .panel,
body.locked #msg,
body.locked #progressBox{
  display:none!important;
}

body.locked.view-receipt #receipt,
body.locked.view-receipt .btns{
  display:none!important;
}

#authBox{
  width:460px;
  max-width:92vw;
  margin-top:90px;
  background:#fff;
  padding:38px;
  border-radius:22px;
  text-align:center;
  box-shadow:0 18px 60px rgba(0,0,0,.12);
}

#authBox h2{
  font-size:30px;
  font-weight:900;
}

.auth-sub{
  color:#667085;
  margin:6px 0 18px;
}

#authBox input,
#authBox button{
  width:100%;
  height:46px;
  border-radius:10px;
  font-size:18px;
  margin-top:12px;
}

#authBox input{
  border:1px solid #d0d5dd;
  padding:0 14px;
}

button {
  border: 0;
  border-radius: 10px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  cursor: pointer !important;
  background: #0b61c9 !important;
  color: #fff !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(11, 97, 201, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  outline: none !important;
}

button:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 10px rgba(11, 97, 201, 0.2) !important;
  background: #0950a2 !important;
}

button:active {
  transform: translateY(0) !important;
}

button.danger,
.btn-danger {
  background: #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1) !important;
}

button.danger:hover,
.btn-danger:hover {
  background: #dc2626 !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2) !important;
}

button.danger:active,
.btn-danger:active {
  transform: translateY(0) !important;
}

.appShell,
.btns,
.panel{
  width:1120px;
}

.controlPanel,
.panel{
  background:#fff;
  border:1px solid #dde3ea;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(15,35,55,.06);
}

.tab{
  display:none;
}

.tab.active{
  display:block;
}

.adminOnly{
  display:none!important;
}

body.admin-role .adminOnly{
  display:block!important;
}

.controlPanel{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  margin-top:12px;
}

.controlPanel label{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-weight:800;
}

.controlPanel select,
.controlPanel input,
.filters input,
.filters select{
  height:38px;
  border:1px solid #cfd8e3;
  border-radius:9px;
  padding:0 10px;
  background:#fff;
  font-size:16px;
}

.controlPanel select{
  width:230px;
}

body.view-receipt #receipt{
  display:block!important;
}

body.view-receipt .btns{
  display:flex!important;
}

body.view-lookup #receipt,
body.view-lookup .btns,
body.view-report #receipt,
body.view-report .btns,
body.view-closeout #receipt,
body.view-admin #receipt,
body.view-closeout .btns,
body.view-admin .btns{
  display:none!important;
}

.page{
  position:relative;
  width:1120px;
  height:792px;
  background:#fff;
  border:3px double #0b2444;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(0,0,0,.16);
  font-family:"Inter",Arial,Helvetica,sans-serif!important;
  font-size:22px;
  line-height:1.35;
}

.page::before,
.page::after{
  content:"";
  position:absolute;
  inset:8px;
  border:2px solid #0b2444;
  pointer-events:none;
}

.biz{
  position:absolute;
  top:24px;
  left:210px;
  right:240px;
  z-index:3;
}

.biz h1{
  font-size:34px;
  font-weight:900;
  letter-spacing:.4px;
  color:#0b2444;
}

.biz p{
  font-size:18px;
  margin-top:8px;
  color:#142d4f;
}

.soBox{
  position:absolute;
  right:50px;
  top:52px;
  width:170px;
  height:86px;
  border:2px solid #53657c;
  border-radius:7px;
  text-align:center;
  padding-top:10px;
  z-index:3;
}

.soBox span{
  font-size:18px;
  font-weight:900;
}

.soBox b{
  display:block;
  margin-top:0px;
  color:#e00000;
  font-size:24px;
  letter-spacing:.5px;
}

.watermarkImg{
  position:absolute;
  left:350px;
  top:240px;
  width:420px;
  height:420px;
  object-fit:contain;
  opacity:.045;
}

.title{
  position:absolute;
  top:156px;
  left:0;
  right:0;
  text-align:center;
  font-size:64px;
  line-height:1;
  font-weight:900;
  letter-spacing:2px;
  color:#072245;
}

.divider{
  position:absolute;
  top:228px!important;
  left:360px!important;
  right:360px!important;
  height:4px;
  display:flex;
  align-items:center;
}

.divider::before,
.divider::after{
  content:"";
  flex:1;
  border-top:3px solid #061b34;
}

.divider .dLeft,
.divider .dRight{
  font-size:18px;
  color:#061b34;
  line-height:1;
  padding:0 6px!important;
  flex:0 0 auto;
}

.date{
  position:absolute;
  top:248px!important;
  left:0;
  right:0;
  text-align:center;
  font-size:26px;
  font-weight:900;
  color:#0b2444;
}


.content{
  position:absolute;
  left:48px;
  right:66px!important;
  top:312px;
  display:grid;
  grid-template-columns:1fr 360px!important;
  column-gap:32px!important;
  font-size:22px;
  z-index:5;
}

.contentLeft{
  display:grid;
  grid-template-columns:1fr;
  gap:11px;
}

.contentLeft .fieldLine{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:8px;
  align-items:center;
}

.contentLeft .reasonLine{
  grid-template-columns:auto auto 1fr;
}

.contentRight{
  display:flex;
  flex-direction:column;
  gap:11px;
  padding-top:0;
}

.fieldLine{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  white-space:nowrap;
}

.fieldLine label{
  font-weight:900;
  color:#0b2444;
  flex:0 0 auto;
}

.fieldLine span{
  flex:0 0 auto;
}

#receipt .fieldLine select,
#receipt .fieldLine input{
  flex:1 1 auto;
  width:auto!important;
  min-width:0;
  height:34px;
  border:0;
  border-bottom:1.8px dotted #aab4c0;
  background:transparent!important;
  background-image:none!important;
  font-size:22px;
  color:#102a4c;
  outline:0;

  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;

  padding:0 2px;
  font-family:"Inter",Arial,Helvetica,sans-serif!important;
}

#receipt input[list]::-webkit-calendar-picker-indicator{
  display:none!important;
  opacity:0!important;
  pointer-events:none!important;
}

#receipt select::-ms-expand{
  display:none!important;
}

#receipt .contentRight .fieldLine{
  display:grid;
  grid-template-columns:150px 1fr!important;
  column-gap:12px;
  align-items:center;
}

#receipt .contentRight .moneyLine{
  display:grid!important;
  grid-template-columns:150px minmax(155px,170px) auto!important;
  column-gap:8px!important;
  align-items:center;
}

#receipt .contentRight .fieldLine label{
  justify-self:start;
}

#receipt .contentRight .fieldLine select,
#receipt .contentRight .fieldLine input{
  width:100%!important;
  text-align:center;
}

#receipt #sotien{
  min-width:155px!important;
  width:170px!important;
  text-align:center!important;
  font-weight:900;
  color:#072245!important;
  letter-spacing:0!important;
  font-size:22px!important;
  overflow:visible!important;
  white-space:nowrap!important;
}

#receipt #buoi,
#receipt #lop{
  width:100%!important;
  text-align:center;
}

#receipt .vnd{
  font-size:20px!important;
  font-weight:900;
  color:#0b2444;
  white-space:nowrap;
  padding-left:0!important;
  margin-left:0!important;
}

.signs{
  position:absolute;
  left:140px;
  right:140px;
  top:575px;
  display:grid;
  grid-template-columns:1fr 1fr;
  text-align:center;
  z-index:4;
}

.signs b{
  display:block;
  font-size:25px;
  color:#0b2444;
}

.signs em{
  display:block;
  font-size:17px;
  color:#203a5b;
  margin-top:3px;
}

.daky{
  display:block;
  margin-top:44px;
  font-size:24px;
  font-style:italic;
}

.signImg{
  width:310px;
  height:110px;
  object-fit:contain;
  margin-top:8px;
  mix-blend-mode:multiply;
}

.bottom{
  position:absolute;
  left:76px;
  right:76px;
  bottom:32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  text-align:center;
  font-size:23px;
  color:#0b2444;
  z-index:5;
}

.btns{
  display:flex;
  gap:12px;
}

.btns button{
  flex:1;
  font-size:18px;
}

.btn-primary {
  background: #0b61c9 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(11, 97, 201, 0.1) !important;
}
.btn-primary:hover {
  background: #0950a2 !important;
  box-shadow: 0 4px 10px rgba(11, 97, 201, 0.2) !important;
}

.btn-download {
  background: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1) !important;
}
.btn-download:hover {
  background: #059669 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}

.btn-secondary {
  background: #64748b !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(100, 116, 139, 0.1) !important;
}
.btn-secondary:hover {
  background: #475569 !important;
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.2) !important;
}

.panel{
  padding:16px;
  margin-top:8px;
}

.panel h3{
  font-size:24px;
  margin-bottom:12px;
}

.filters{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  /* removed nowrap/overflow */
  gap:10px;
  margin-bottom:6px;
    }

.filters label{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:14px;
  font-weight:900;
  color:#334155;
}

.filters input,
.filters select{
  width:230px;
}

.filters label input{
  width:155px;
}

.compactFilters{ align-items:center; }

.compactFilters .legacyFilter{
  display:none!important;
}

.compactFilters .wideSearch{
  flex:1 1 360px;
  min-width:360px;
}

.detailBtn{
  border-radius:8px;
  padding:6px 12px!important;
  font-size:14px!important;
  white-space:nowrap!important;
}

.kpiButton{
  border-radius:8px;
  padding:8px 12px;
  font-size:14px;
}

.kpiButton{
  width:100%;
  height:100%;
  text-align:left;
  background:#f8fafc;
  color:#061b34;
  border:1px solid #e2e8f0;
}

.kpiButton:hover{
  filter:none;
  border-color:#0b61c9;
  background:#eff6ff;
}

.receiptDetailGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  margin-bottom:14px;
}

.receiptDetailGrid p{
  font-size:15px;
  color:#334155;
}

.receiptDetailGrid b{
  color:#061b34;
}

.receiptImageBox{
  border:1px solid #dbe4ee;
  border-radius:12px;
  overflow:auto;
  background:#f8fafc;
  max-height:58vh;
  text-align:center;
}

.receiptImageBox img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

.bankBreakdownList{
  display:grid;
  gap:8px;
}

.bankBreakdownList div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
}

.detailImageLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:8px;
  background:#0b61c9;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.filterNote{
  margin:0 0 12px;
  color:#64748b;
  font-size:14px;
  font-weight:700;
}

.updateDataNote{
  margin:0 0 10px;
  padding:8px 14px;
  background:#fefce8;
  border:1px solid #fde047;
  border-radius:10px;
  color:#854d0e;
  font-size:14px;
  font-weight:700;
}

#lookupTab.panel,
#reportTab.panel{
  height:78vh!important;
  max-height:78vh!important;
  overflow:hidden!important;
  display:none;
  flex-direction:column;
}

#closeoutTab.panel{
  display:none;
  flex-direction:column;
  height:auto!important;
  min-height:calc(100vh - 120px)!important;
  max-height:none!important;
  overflow:visible!important;
}

#lookupTab.active,
#reportTab.active,
#closeoutTab.active{
  display:flex!important;
}

#invoiceTable,
#reportTable{
  flex:1 1 auto;
  min-height:0!important;
  overflow:hidden!important;
}


.tableScroll{
  height:100%!important;
  max-height:none!important;
  overflow:auto!important;
  position:relative!important;
  border:1px solid #dfe7f1;
  border-radius:12px;
  background:#fff;
}

.gridTable{
  width:100%;
  min-width:920px;
  table-layout:fixed;
  border-collapse:separate!important;
  border-spacing:0!important;
}

.gridTable thead{
  display:table-header-group!important;
}

.gridTable thead th{
  position:sticky!important;
  top:0!important;
  z-index:50!important;
  background:#f3f6fa!important;
  color:#061b34!important;
  font-weight:900!important;
  border-bottom:2px solid #cbd5e1!important;
  box-shadow:0 2px 0 #dfe7f1,0 4px 10px rgba(6,27,52,.08)!important;
}

.gridTable th,
.gridTable td{
  padding:10px 12px;
  font-size:15px;
  line-height:1.25;
  background:#fff;
  word-break:break-word;
  border:1px solid #e1e7ef;
}

.gridTable th{
  background:#f3f6fa!important;
  white-space: nowrap !important;
  word-break: normal !important;
}

.gridTable td.num,
.gridTable th.num{
  text-align:right;
  white-space:nowrap;
  min-width:125px;
  width:125px;
}

#invoiceTable .gridTable th:nth-child(1),
#invoiceTable .gridTable td:nth-child(1){width:105px}

#invoiceTable .gridTable th:nth-child(2),
#invoiceTable .gridTable td:nth-child(2){width:175px}

#invoiceTable .gridTable th:nth-child(3),
#invoiceTable .gridTable td:nth-child(3){width:100px}

#invoiceTable .gridTable th:nth-child(4),
#invoiceTable .gridTable td:nth-child(4){width:160px}

#invoiceTable .gridTable th:nth-child(6),
#invoiceTable .gridTable td:nth-child(6){width:160px}

#invoiceTable .gridTable th:nth-child(7),
#invoiceTable .gridTable td:nth-child(7){width:70px}

#invoiceTable .gridTable th:nth-child(8),
#invoiceTable .gridTable td:nth-child(8){width:115px;text-align:center!important}

#invoiceTable .gridTable th:nth-child(9),
#invoiceTable .gridTable td:nth-child(9){width:120px}

#reportTable .gridTable th:nth-child(1),
#reportTable .gridTable td:nth-child(1){width:110px}

#reportTable .gridTable th:nth-child(2),
#reportTable .gridTable td:nth-child(2){width:180px}

#reportTable .gridTable th:nth-child(3),
#reportTable .gridTable td:nth-child(3){width:110px}

#reportTable .gridTable th:nth-child(5),
#reportTable .gridTable td:nth-child(5){width:130px}

#reportTable .gridTable th:nth-child(6),
#reportTable .gridTable td:nth-child(6){width:170px}

#reportTable .gridTable th:nth-child(8),
#reportTable .gridTable td:nth-child(8){width:110px;text-align:center!important}

.summaryCards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:12px;
}

.card{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px;
}

.card small{
  display:block;
  color:#64748b;
}

.card b{
  display:block;
  font-size:20px;
  margin-top:5px;
}

.endDayReport{
  width:1040px;
  max-width:100%;
  margin:0 auto;
  padding:14px 18px 18px;
  color:#111;
  background:#fff;
  font-family:"Times New Roman",serif;
}

.closeoutLogo{
  height:48px;
  display:flex;
  align-items:center;
}

.closeoutLogo img{
  height:46px;
  width:auto;
  object-fit:contain;
}

.endDayReport h2,
.endDayReport h3{
  text-align:center;
  color:#111;
  margin:0;
  line-height:1.25;
  font-weight:900;
}

.endDayReport h2{
  font-size:30px;
}

.endDayReport h3{
  font-size:22px;
  margin-bottom:8px;
}

.reportMoneyLines,
.unitReportBlock{
  border:1px solid #111;
  border-bottom:0;
}

.reportLine{
  display:grid;
  grid-template-columns:1fr 28px 170px;
  min-height:34px;
  align-items:center;
  border-bottom:1px solid #111;
  font-size:22px;
  font-weight:700;
}

.reportLine span{
  padding:4px 8px;
}

.reportLine em{
  text-align:center;
  font-style:normal;
}

.reportLine b{
  padding:4px 8px;
  text-align:right;
}

.reportLine.bold{
  font-weight:900;
}

.cashCountTable{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:21px;
}

.cashCountTable th,
.cashCountTable td{
  border:1px solid #111;
  padding:5px 8px;
  text-align:center;
}

.cashCountTable th{
  background:#d9d9d9;
  font-weight:900;
}

.cashCountTable td.num{
  text-align:right;
}

.cashCountTable input{
  width:100%;
  height:28px;
  border:0;
  text-align:center;
  font:inherit;
  background:transparent;
  outline:0;
}

.cashTotalRow td:first-child{
  background:#fff200;
  font-weight:900;
}

.cashTotalRow td:last-child{
  font-weight:900;
  text-align:right;
}

.printTime{
  border-left:1px solid #111;
  border-right:1px solid #111;
  padding:4px 8px;
  text-align:center;
  font-size:18px;
  font-style:italic;
}

.unitReportBlock{
  margin-top:22px;
}

.unitReportBlock h4{
  margin:0;
  padding:6px 8px;
  text-align:center;
  background:#d9d9d9;
  border-bottom:1px solid #111;
  font-size:22px;
  font-weight:900;
}

.shiftInputLabel{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:900;
  color:#203047;
}

.shiftInputLabel input{
  height:46px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:0 14px;
  font-size:22px;
  text-align:right;
}

.draftActions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:16px;
}

.miniBtn{
  padding:7px 9px;
  font-size:13px;
  margin-right:4px;
}

#progressBox{
  position:fixed;
  left:50%;
  top:50%;
  bottom:auto;
  transform:translate(-50%,-50%);
  width:720px;
  background:#fff;
  padding:18px 20px;
  border-radius:16px;
  box-shadow:0 18px 70px rgba(0,0,0,.38);
  z-index:99999;
  font-weight:900;
}

.progressOuter{
  height:16px;
  background:#dce3ec;
  border-radius:999px;
  overflow:hidden;
  margin-top:10px;
}

.progressInner{
  height:100%;
  width:0;
  background:#0b61c9;
  transition:.2s;
}

#msg{
  width:1120px;
  min-height:26px;
  font-weight:900;
  color:#0b61c9;
}

#msg.error{
  color:#d92d20;
}

.modalOverlay{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(3,10,22,.74)!important;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}

.editModalBox,
.modalBox{
  width:720px;
  max-width:calc(100vw - 32px);
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:#ffffff;
  border-radius:20px;
  padding:24px;
  color:#061b34;
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  border:1px solid #dbe4ee;
}

.modalBox.smallModal{
  width:640px;
}

.modalHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  border-bottom:1px solid #d8e0eb;
  padding-bottom:14px;
  margin-bottom:16px;
}

.modalHead h3{
  font-size:28px;
  line-height:1.15;
  color:#061b34;
  margin:0 0 4px;
  font-weight:900;
}

.modalHead p{
  font-size:15px;
  color:#5d6b7c;
}

.modalClose{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 22px;
  font-weight:700;
  cursor:pointer;
  flex-shrink:0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modalClose:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.modalClose:active {
  transform: rotate(90deg) scale(0.95);
}

.editFormGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 16px;
}

.editFormGrid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:900;
  font-size:14px;
  color:#203047;
}

.editFormGrid label.full{
  grid-column:1/-1;
}

.editFormGrid input,
.editFormGrid select,
.editFormGrid textarea{
  width:100%;
  height:42px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:0 12px;
  background:#fff;
  font-size:17px;
  color:#111;
  font-family:"Inter",Arial,Helvetica,sans-serif!important;
}

.editFormGrid textarea{
  height:auto;
  padding:10px 12px;
  resize:vertical;
}

.editPreview{
  margin-top:16px;
  background:#f8fafc;
  border:1px dashed #b8c4d6;
  border-radius:12px;
  padding:12px 14px;
  line-height:1.55;
  font-size:16px;
}

.confirmList{
  background:#ffffff;
  border:2px solid #d9e2ef;
  border-radius:12px;
  padding:12px 14px;
  line-height:1.85;
  font-size:17px;
  color:#061b34;
}

.confirmList b{
  color:#061b34;
}

.modalActions{
  display:flex;
  gap:12px;
  margin-top:18px;
  justify-content:flex-end;
}

.modalActions button{
  border:0;
  border-radius:10px;
  padding:13px 22px;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}

.centerPopup{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:100000;
  width:460px;
  max-width:calc(100vw - 28px);
  background:#fff;
  border-radius:18px;
  padding:22px 24px 20px;
  box-shadow:0 28px 80px rgba(0,0,0,.46);
  border:2px solid #dbe4ee;
  color:#102848;
  text-align:center;
  font-family:"Inter",Arial,Helvetica,sans-serif!important;
}

.centerPopup.success{
  border-top:8px solid #11845b;
}

.centerPopup.error{
  border-top:8px solid #d92d20;
}

.centerPopup.info{
  border-top:8px solid #0b61c9;
}

.centerPopupTitle{
  font-size:24px;
  font-weight:900;
  margin:4px 28px 10px;
}

.centerPopupBody{
  font-size:17px;
  line-height:1.55;
  font-weight:700;
}

.centerPopupBody a{
  color:#0b61c9;
  font-weight:900;
}

.reportBreakdowns{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:10px 0 14px;
}

.reportMiniBox{
  border:1px solid #dde3ea;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.reportMiniBox h4{
  font-size:14px;
  padding:8px 10px;
  background:#f1f5f9;
  color:#0f2748;
}

.miniReportTable{
  font-size:13px;
}

.miniReportTable td{
  padding:6px 8px;
}

.centerPopupClose{
  position:absolute;
  right:10px;
  top:8px;
  width:32px;
  height:32px;
  border-radius:50%;
  padding:0;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 20px;
  line-height: 1;
  font-weight:700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.centerPopupClose:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.centerPopupClose:active {
  transform: rotate(90deg) scale(0.95);
}

@page{
  size:A4 landscape;
  margin:8mm;
}

@media print{
  body{
    background:#fff;
    padding:0;
    gap:0;
  }

  .appShell,
  .btns,
  .panel,
  #msg,
  #progressBox{
    display:none!important;
  }

  .page{
    box-shadow:none;
    margin:0;
  }

  body.view-report .appShell,
  body.view-report #reportTab.panel{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    border:0!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
  }

  body.view-report .compactMenuBar,
  body.view-report #reportTab h3,
  body.view-report .filters,
  body.view-report .filterNote,
  body.view-report #reportSummary,
  body.view-report #reportTable{
    display:none!important;
  }

  body.view-report .endDayReport{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    transform:none!important;
  }

  body.view-report .closeoutLogo{
    height:42px!important;
  }

  body.view-report .closeoutLogo img{
    height:40px!important;
  }

  body.view-report .endDayReport h2{
    font-size:26px!important;
  }

  body.view-report .endDayReport h3{
    font-size:20px!important;
  }

  body.view-report .reportLine,
  body.view-report .cashCountTable{
    font-size:18px!important;
  }

  body.view-report .unitReportBlock{
    margin-top:12px!important;
  }
}

@media(max-width:760px){
  .reportBreakdowns{
    grid-template-columns:1fr;
  }

  .editFormGrid{
    grid-template-columns:1fr;
  }

  .modalActions{
    flex-direction:column;
  }
}

.homeMenuBox{width:1120px;min-height:620px;background:#fff;border:1px solid #dde3ea;border-radius:22px;box-shadow:0 12px 35px rgba(15,35,55,.08);text-align:center;padding:34px 24px;position:relative}.homeMenuBox h2{font-size:34px;font-weight:900;color:#061b34;margin-bottom:24px}.mainMenuRow{display:flex;justify-content:center;gap:28px;position:relative;z-index:20}.mainMenuItem{position:relative;width:190px}.mainBtn{width:190px;height:68px;border-radius:18px;font-size:26px;font-weight:900;background:#0b61c9}.subMenuPopup{display:none;position:absolute;left:50%;top:78px;transform:translateX(-50%);width:190px;background:#fff;border:1px solid #d9e2ef;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.20);padding:10px;z-index:9999}.subMenuPopup.open{display:block}.subMenuPopup button{width:100%;margin:5px 0;background:#f1f5f9;color:#061b34;border-radius:12px;font-size:18px}.subMenuPopup button:hover{background:#0b61c9;color:#fff}.subMenuPopup button.danger{background:#fee4e2;color:#b42318}.homeLogo{display:block;width:360px;max-width:70vw;margin:90px auto 0;object-fit:contain}

body.home-view #receipt,body.home-view .btns,body.home-view #lookupTab,body.home-view #reportTab,body.home-view #closeoutTab,body.home-view #adminUsersTab,body.home-view #adminDataTab,body.home-view #receiptTab{display:none!important}body.home-view #appShell{display:block!important}

body.view-receipt .homeMenuBox,
body.view-lookup .homeMenuBox,
body.view-report .homeMenuBox,
body.view-closeout .homeMenuBox,
body.view-admin .homeMenuBox{
  display:none!important;
}
.compactMenuBar{
  width:1120px;
  display:none;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dde3ea;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(15,35,55,.06);
  padding:8px 10px;
  margin-top:0;
  position:relative;
  z-index:1000;
}
body.view-receipt .compactMenuBar,
body.view-lookup .compactMenuBar,
body.view-report .compactMenuBar,
body.view-closeout .compactMenuBar,
body.view-admin .compactMenuBar{
  display:flex!important;
}
body.home-view .compactMenuBar{display:none!important}
.compactHomeBtn,
.miniMainBtn{
  height:42px!important;
  min-width:92px;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:15px!important;
  line-height:1.1!important;
}
.compactHomeBtn{background:#667085!important}
.miniMenuItem{position:relative;display:inline-flex}
.miniSubMenu{
  top:48px!important;
  width:150px!important;
  border-radius:12px!important;
  padding:8px!important;
}
.miniSubMenu button{
  font-size:15px!important;
  height:36px!important;
  margin:3px 0!important;
  padding:0 8px!important;
}

.controlPanel{
  margin-top:8px!important;
  padding:8px 10px!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
.controlPanel label{
  font-size:16px!important;
  gap:8px!important;
}
.controlPanel select{
  width:210px!important;
  height:40px!important;
}
.controlPanel input[type="date"]{
  width:155px!important;
  height:40px!important;
  font-size:16px!important;
}
.btnGetNo,
.controlPanel button{
  height:42px!important;
  padding:0 13px!important;
  font-size:15px!important;
}

.cornerLogo{
  position:absolute!important;
  top:24px!important;
  left:15px!important;
  width:190px!important;
  height:auto!important;
  max-height:190px!important;
  object-fit:contain!important;
  object-position:center!important;
  z-index:3!important;
}
.biz{
  top:22px!important;
  left:210px!important;
  right:24px!important;
}
.biz h1{
  font-size:32px!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  letter-spacing:.2px!important;
}
.biz p{
  font-size:23px!important;
  line-height:1.1!important;
  margin-top:8px!important;
}
.soBox{
  top:88px!important;
  right:48px!important;
  width:170px!important;
  height:82px!important;
}
.title{
  top:145px!important;
  font-size:62px!important;
}
.divider{top:212px!important;left:370px!important;right:370px!important}
.date{top:230px!important;font-size:26px!important}
.content{
  top:292px!important;
  left:50px!important;
  right:58px!important;
  grid-template-columns:minmax(0,1fr) 365px!important;
  column-gap:30px!important;
  font-size:21px!important;
}
.contentLeft{gap:11px!important}
.contentRight{gap:11px!important}
.fieldLine{min-height:34px!important;white-space:nowrap!important}
#receipt .fieldLine input,
#receipt .fieldLine select{font-size:21px!important;height:33px!important;line-height:33px!important}
#receipt .contentRight .fieldLine{grid-template-columns:150px 1fr!important}
#receipt .contentRight .moneyLine{grid-template-columns:150px 170px auto!important}
#receipt #sotien{width:170px!important;min-width:170px!important;font-size:21px!important}
#receipt .vnd{font-size:20px!important}
.signs{top:570px!important}
.bottom{bottom:32px!important}

body.receipt-other .soBox{display:none!important}
body.receipt-other .normalOnly{display:none!important}
body.receipt-other .content{
  top:292px!important;
  grid-template-columns:minmax(0,1fr) 365px!important;
}
body.receipt-other .contentLeft{gap:12px!important}
body.receipt-other #reasonPrefix{display:none!important}
body.receipt-other .contentLeft .reasonLine{grid-template-columns:auto 1fr!important}

/* === FIX UI 2026-04-30: mở rộng vùng báo cáo/kết ca để không mất nút và xem đủ dữ liệu === */
:root{--ntc-wide:calc(100vw - 28px);--ntc-max-wide:1780px;}
.appShell,.btns,.panel,.compactMenuBar,#msg{
  width:var(--ntc-wide)!important;
  max-width:var(--ntc-max-wide)!important;
}
.homeMenuBox{
  width:var(--ntc-wide)!important;
  max-width:var(--ntc-max-wide)!important;
}
body.view-report{
  align-items:center!important;
  overflow-x:hidden!important;
}
body.view-report #reportTab.panel{
  height:calc(100vh - 116px)!important;
  max-height:none!important;
  padding:14px 18px 18px!important;
  overflow:hidden!important;
}
body.view-report #reportSummary.summaryCards{
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:12px!important;
}
body.view-report #reportTable{
  min-height:0!important;
}
@media(max-width:1280px){
  body.view-report #reportSummary.summaryCards{grid-template-columns:repeat(3,1fr)!important;}
}
/* === FIX KẾT CA: không hiện trang chủ khi vào Kết ca === */
body.view-closeout #appShell{
  display:block!important;
}

body.view-closeout #receipt,
body.view-closeout .btns,
body.view-closeout #lookupTab,
body.view-closeout #reportTab,
body.view-closeout #receiptTab,
body.view-closeout .homeMenuBox{
  display:none!important;
}

body.view-closeout #closeoutTab.panel{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:calc(100vh - 120px)!important;
  max-height:none!important;
  overflow:visible!important;
  padding:14px 18px 18px!important;
}

body.view-closeout #closeoutPrintable{
  display:block!important;
  flex:1 1 auto!important;
  min-height:620px!important;
  max-height:none!important;
  overflow:auto!important;
}
/* === FIX: đưa nút TẢI PNG / LƯU lên thanh phiếu, bỏ hàng nút dưới === */
body.view-receipt .btns{
  display:none!important;
}

body.view-receipt .controlPanel{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  padding:8px 10px!important;
}

body.view-receipt .controlPanel label{
  flex:0 0 auto!important;
}

body.view-receipt .receiptTopBtn{
  height:42px!important;
  min-width:120px!important;
  padding:0 18px!important;
  font-size:16px!important;
  border-radius:12px!important;
  white-space:nowrap!important;
}

body.view-receipt .receiptTopBtn:first-of-type{
  margin-left:auto!important;
}

.adminConfigGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.adminConfigBox{
  border:1px solid #dbe3ef;
  border-radius:8px;
  padding:12px;
  background:#fff;
}
.adminConfigBox h4{
  margin:0 0 10px;
  color:#0f172a;
}
.adminInlineForm {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}
.adminInlineForm input,
.adminInlineForm select{
  width: auto !important;
  min-width: 80px !important;
  max-width: 100% !important;
}
#cfgSubjectName, #cfgCourseName, #cfgPaymentLabel {
  width: 160px !important;
}
#cfgSubjectFee, #cfgTuitionMonth, #cfgBankName {
  width: 120px !important;
}
#cfgSubjectSort, #cfgCourseSort, #cfgPaymentSort {
  width: 70px !important;
}
.okText{color:#047857;font-weight:700}
.errorText{color:#dc2626;font-weight:700}

/* Multi-page shell */
body{
  align-items:center;
  padding:18px;
}

.appShell{
  max-width:1180px;
  width:100%;
}

.appNav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  background:#fff;
  border:1px solid #dde3ea;
  border-radius:12px;
  padding:10px;
  box-shadow:0 8px 24px rgba(15,35,55,.06);
}

.appNav a,
.dashboardGrid a{
  color:#0b2444;
  text-decoration:none;
  font-weight:900;
}

.appNav a{
  padding:10px 12px;
  border-radius:8px;
  background:#f1f5f9;
}

.appNav a.active,
.appNav a:hover{
  color:#fff;
  background:#0b61c9;
}

.appNav button{
  height:40px;
  padding:0 12px;
  border-radius:8px;
}

.compactNav{
  width: 100%;
  max-width:100%;
  align-self:flex-start;
  gap:10px;
  padding:8px 0;
  margin:0 0 20px 0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}

.compactNav > a,
.compactNav > button,
.compactNav > .navDrop > button{
  min-width: 120px;
  height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  padding:0 18px;
  color:#fff;
  background:#0b61c9;
  font-size:15px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  box-shadow:0 2px 4px rgba(11, 97, 201, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(11, 97, 201, 0.1);
}

.compactNav > .navBack{
  min-width:140px;
  background:#64748b; /* Elegant slate grey */
  border-color: rgba(100, 116, 139, 0.1);
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.08);
}

.compactNav > .navBack:hover {
  background: #475569;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.16);
}

.compactNav > a:hover,
.compactNav > button:hover,
.compactNav > .navDrop > button:hover{
  color:#fff;
  background:#0950a2;
  filter:none;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(11, 97, 201, 0.2);
}

.compactNav .navDrop{
  position:relative;
}

.compactNav .navMenu {
  position: absolute;
  left: 50%;
  top: 45px !important;
  transform: translateX(-50%) translateY(10px) !important;
  min-width: 190px;
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

.compactNav .navMenu::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: -15px !important;
  left: 0 !important;
  right: 0 !important;
  height: 15px !important;
  background: transparent !important;
}

.compactNav .navDrop:hover .navMenu,
.compactNav .navDrop:focus-within .navMenu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.compactNav .navMenu a,
.compactNav .navMenu button{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  padding:0 14px;
  border-radius:8px;
  border:0;
  background:transparent;
  color:#334155;
  font-size:14px;
  font-weight:600;
  text-align:left;
  text-decoration:none;
  box-shadow:none;
  transition: all 0.15s ease;
}

.compactNav .navMenu a:hover,
.compactNav .navMenu button:hover{
  background:#f1f5f9;
  color:#0b61c9;
}

.compactNav .navMenu button.danger {
  color: #ef4444;
  background: transparent;
}

.compactNav .navMenu button.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.dashboardHero{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  background:#fff;
  border:1px solid #dde3ea;
  border-radius:16px;
  padding:32px;
  box-shadow:0 8px 24px rgba(15,35,55,.06);
}

.dashboardLogo{
  width:132px;
  height:auto;
}

.dashboardHero h1{
  font-size:38px;
  line-height:1.05;
  margin-top:10px;
}

.dashboardHero p{
  color:#667085;
  margin-top:8px;
}

.dashboardUser{
  min-width:180px;
  text-align:right;
}

.dashboardUser b,
.dashboardUser span{
  display:block;
}

.dashboardUser span{
  margin-top:4px;
  color:#0b61c9;
  font-weight:900;
}

.dashboardGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
  margin-top:14px;
}

.dashboardGrid a,
.dashboardGrid button{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#fff;
  border:1px solid #dde3ea;
  box-shadow:0 8px 24px rgba(15,35,55,.05);
  font-size:16px;
}

body.home-view {
  background: linear-gradient(135deg, rgba(11, 33, 62, 0.76) 0%, rgba(15, 23, 42, 0.88) 100%), url("../assets/lễ tân.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  transition: background 0.3s ease;
}

body:not(.home-view) .dashboardHero,
body:not(.home-view) .homeMenuCards,
body:not(.home-view) .homeQuickActions {
  display: none !important;
}

.homeMenuCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
  width: 100%;
}

.homeMenuCard {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.homeMenuCard:hover,
.homeMenuCard:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.38);
}

.homeMenuTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.homeMenuTitle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b61c9 0%, #00b4db 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(11, 97, 201, 0.35);
}

.homeMenuTitle b {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.arrow-icon {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dropdown */
.homeMenuDropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.homeMenuCard.has-dropdown:hover .homeMenuDropdown,
.homeMenuCard.has-dropdown:focus-within .homeMenuDropdown {
  max-height: 400px;
  opacity: 1;
  margin-top: 16px;
}

.homeMenuCard.has-dropdown:hover .arrow-icon,
.homeMenuCard.has-dropdown:focus-within .arrow-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

.homeMenuDropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.homeMenuDropdown a::after {
  content: "→";
  color: #00b4db;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.homeMenuDropdown a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.homeMenuDropdown a:hover::after {
  transform: translateX(3px);
  color: #ffffff;
}

.homeQuickActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.homeQuickActions button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.homeQuickActions button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.homeQuickActions button.danger {
  background: rgba(217, 45, 32, 0.25);
  border: 1px solid rgba(217, 45, 32, 0.4);
}

.homeQuickActions button.danger:hover {
  background: rgba(217, 45, 32, 0.4);
  border-color: rgba(217, 45, 32, 0.55);
}

.dashboardHero {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  color: #ffffff;
  width: 100%;
}

.dashboardHero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.dashboardHero p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  font-size: 15px;
}

.dashboardUser {
  min-width: 180px;
  text-align: right;
}

.dashboardUser b {
  font-size: 18px;
  color: #ffffff;
}

.dashboardUser span {
  display: block;
  margin-top: 4px;
  color: #00b4db !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.paidStampImg {
  position: absolute;
  right: 240px;
  top: 505px;
  width: 190px;
  height: auto;
  object-fit: contain;
  opacity: .86;
  transform: rotate(-10deg);
  z-index: 6;
  pointer-events: none;
}

.progressClose {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.progressClose:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.progressClose:active {
  transform: rotate(90deg) scale(0.95);
}

#progressBox {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: min(520px,92vw);
  z-index: 3000;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(15,35,55,.18);
}

@media (max-width: 760px) {
  .dashboardHero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .dashboardUser {
    text-align: left;
  }
  .homeMenuCards {
    grid-template-columns: 1fr;
  }
  .homeQuickActions {
    justify-content: stretch;
  }
  .homeQuickActions button {
    flex: 1;
  }
}

/* Premium SVG Close Icon */
.close-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
  display: block;
  pointer-events: none;
}

.modalClose:hover .close-icon,
.progressClose:hover .close-icon,
.centerPopupClose:hover .close-icon,
.subjectChip button:hover .close-icon {
  transform: rotate(90deg);
}

/* Specificity overrides to rescue Close Buttons from clashing button styles */
button.modalClose,
button.progressClose,
button.centerPopupClose {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: rgba(15, 23, 42, 0.07) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transform: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

button.modalClose {
  width: 36px !important;
  height: 36px !important;
}

button.progressClose {
  width: 28px !important;
  height: 28px !important;
}

button.modalClose:hover,
button.progressClose:hover,
button.centerPopupClose:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

button.modalClose:active,
button.progressClose:active,
button.centerPopupClose:active {
  transform: rotate(90deg) scale(0.95) !important;
}

/* === Specificity override to hide main shell when app is locked === */
html body.locked #appShell {
  display: none !important;
}

/* Fix admin arrow squishing in home menu card & header nav dropdowns */
body.admin-role .homeMenuDropdown a.adminOnly,
body.admin-role .navMenu a.adminOnly {
  display: flex !important;
}

/* Clean up cluttered helper annotations for corporate look */
.updateDataNote,
.filterNote,
#reportRoleNote {
  display: none !important;
}

/* Center action buttons in closeout tables */
#savedCloseoutTable .gridTable th:nth-child(6),
#savedCloseoutTable .gridTable td:nth-child(6) {
  text-align: center !important;
}

