/* Phase 2: Billing & accounting pages get the Subscribers/NOC working-surface style. */
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard){
  --ua-bill-card:rgba(8,19,35,.87);
  --ua-bill-card-2:rgba(12,26,46,.78);
  --ua-bill-line:rgba(255,210,92,.18);
  --ua-bill-gold:#ffd45a;
  --ua-bill-cyan:#57dcff;
  --ua-bill-text:#eef7ff;
  --ua-bill-muted:rgba(222,237,255,.68);
  --ua-bill-shadow:0 18px 46px rgba(0,0,0,.26);
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.bg-white,.bg-light,.bg-body,.modal-content,.dropdown-menu,.list-group-item,.popover,.offcanvas,.accordion-item):not(.ua-keep-plain),
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) #uaPrintModal{
  background:linear-gradient(180deg, var(--ua-bill-card), rgba(5,14,27,.94)) !important;
  color:var(--ua-bill-text) !important;
  border:1px solid rgba(255,210,92,.22) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.48) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) #uaPrintModal > div:first-child{
  border-bottom-color:rgba(255,210,92,.16) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content-wrapper{
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
  max-width:none !important;
  direction:rtl !important;
  text-align:right !important;
  border:1px solid rgba(255,210,92,.13) !important;
  border-radius:18px !important;
  background:
    radial-gradient(circle at 82% -12%, rgba(255,212,90,.10), transparent 30%),
    radial-gradient(circle at 8% 4%, rgba(87,220,255,.07), transparent 28%),
    linear-gradient(180deg, rgba(8,19,35,.84), rgba(3,10,20,.72)) !important;
  box-shadow:var(--ua-bill-shadow) !important;
  color:var(--ua-bill-text) !important;
  overflow:hidden !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content{
  padding:16px 18px 24px !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content-header{
  position:relative !important;
  margin:0 !important;
  padding:14px 18px !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,210,92,.14) !important;
  border-radius:0 !important;
  background:
    linear-gradient(90deg, rgba(4,15,29,.24), rgba(119,84,18,.16), rgba(4,15,29,.24)),
    linear-gradient(180deg, rgba(12,28,49,.82), rgba(6,17,31,.70)) !important;
  box-shadow:none !important;
  overflow:visible !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content-header::after{
  content:"" !important;
  position:absolute !important;
  left:18px !important;
  right:18px !important;
  bottom:0 !important;
  height:1px !important;
  border-radius:999px !important;
  background:linear-gradient(90deg, transparent, rgba(255,212,90,.78), rgba(87,220,255,.26), transparent) !important;
  box-shadow:0 0 16px rgba(255,194,62,.20) !important;
  pointer-events:none !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content-header .container-fluid{
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .content-header :where(h1,h2,h3){
  margin:0 !important;
  color:#fff !important;
  font-size:20px !important;
  line-height:1.35 !important;
  font-weight:950 !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.text-muted, small, .small){
  color:var(--ua-bill-muted) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .ua-ftabs-wrap{
  margin:0 0 14px !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .ua-ftabs{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  border-radius:14px !important;
  border:1px solid rgba(255,210,92,.16) !important;
  background:rgba(8,20,36,.76) !important;
  box-shadow:0 12px 26px rgba(0,0,0,.18) !important;
}
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .ua-ftabs::-webkit-scrollbar{display:none !important;}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .ua-ftab{
  flex:0 0 auto !important;
  min-width:132px !important;
  color:rgba(238,247,255,.84) !important;
  background:transparent !important;
  box-shadow:inset 1px 0 0 rgba(255,255,255,.07) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .ua-ftab.is-active{
  background:linear-gradient(180deg, rgba(255,212,90,.95), rgba(232,168,15,.95)) !important;
  color:#141006 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 8px 18px rgba(0,0,0,.18) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.box,.card,.panel,.callout,.well,.small-box):not(.ua-keep-plain){
  border:1px solid var(--ua-bill-line) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg, var(--ua-bill-card), rgba(5,14,27,.78)) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.22) !important;
  color:var(--ua-bill-text) !important;
  overflow:hidden !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.box-header,.card-header,.panel-heading){
  min-height:48px !important;
  padding:12px 15px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.box-title,.card-title,.panel-title,.card h1,.card h2,.card h3,.card h4,.small-box h3){
  margin:0 !important;
  color:#f8fbff !important;
  font-weight:950 !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.box-body,.card-body,.panel-body){
  padding:15px !important;
  color:var(--ua-bill-text) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .row{row-gap:14px !important;}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.form-control,.form-select,input[type="text"],input[type="password"],input[type="number"],input[type="date"],input[type="email"],select,textarea){
  min-height:40px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,210,92,.22) !important;
  background:rgba(8,20,36,.88) !important;
  color:#f7fbff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) select option{
  color:#07111f !important;
  background:#eef7ff !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.form-control,.form-select,input,select,textarea):focus{
  border-color:rgba(87,220,255,.62) !important;
  box-shadow:0 0 0 .16rem rgba(87,220,255,.10), inset 0 1px 0 rgba(255,255,255,.06) !important;
  outline:none !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) label{
  color:#f1f8ff !important;
  font-weight:900 !important;
  margin-bottom:6px !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) input[type="checkbox"]{accent-color:#ffd45a;}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn,.ua-btn){
  min-height:36px !important;
  border-radius:11px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:8px 13px !important;
  font-size:12.5px !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  white-space:nowrap !important;
  text-decoration:none !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.18) !important;
  transition:transform .14s ease, filter .14s ease, border-color .14s ease !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn:hover,.ua-btn:hover){
  transform:translateY(-1px) !important;
  filter:brightness(1.06) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-xs,.btn-sm){
  min-height:30px !important;
  padding:6px 10px !important;
  border-radius:9px !important;
  font-size:11.5px !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-primary,.btn-info,.btn-outline-primary,.btn-outline-info){
  background:linear-gradient(180deg, rgba(23,150,190,.98), rgba(8,92,130,.98)) !important;
  color:#fff !important;
  border-color:rgba(87,220,255,.34) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-success,.btn-outline-success){
  background:linear-gradient(180deg, rgba(34,174,101,.98), rgba(16,121,65,.98)) !important;
  color:#fff !important;
  border-color:rgba(103,255,181,.30) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-warning,.btn-outline-warning){
  background:linear-gradient(180deg, #ffdb62, #e7a80f) !important;
  color:#141006 !important;
  border-color:rgba(255,224,112,.76) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-danger,.btn-outline-danger){
  background:linear-gradient(180deg, #ff5f6a, #d93442) !important;
  color:#fff !important;
  border-color:rgba(255,126,136,.34) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.btn-default,.btn-secondary,.btn-light,.btn-outline-secondary,.btn-outline-dark){
  background:rgba(18,35,58,.94) !important;
  color:#eef7ff !important;
  border-color:rgba(255,255,255,.15) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .btn-block{
  width:100% !important;
  display:flex !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.table-responsive,.box-body.table-responsive,.card-body.table-responsive){
  border:1px solid rgba(255,210,92,.12) !important;
  border-radius:14px !important;
  background:rgba(5,14,27,.62) !important;
  overflow:auto !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) table.table{
  margin:0 !important;
  color:var(--ua-bill-text) !important;
  border-color:rgba(145,180,45,.28) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) table.table > :not(caption) > * > *{
  background:rgba(9,22,39,.58) !important;
  color:var(--ua-bill-text) !important;
  border-color:rgba(145,180,45,.24) !important;
  text-align:center !important;
  vertical-align:middle !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) table.table thead th{
  background:linear-gradient(180deg, rgba(17,35,60,.98), rgba(10,24,43,.98)) !important;
  color:#fff !important;
  font-weight:950 !important;
  white-space:nowrap !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) table.table tbody tr:hover > *{
  background:rgba(87,220,255,.075) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) :where(.alert,.callout){
  border-radius:14px !important;
  border-width:1px !important;
  color:var(--ua-bill-text) !important;
  background:linear-gradient(180deg, rgba(12,26,46,.92), rgba(6,16,29,.82)) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.16) !important;
}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .alert-info{border-color:rgba(87,220,255,.28) !important;}
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .alert-success{border-color:rgba(103,255,181,.28) !important;}
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .alert-warning{border-color:rgba(255,212,90,.34) !important;}
body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) .alert-danger{border-color:rgba(255,126,136,.34) !important;}

body.ua-authed:where(
  .ua-p-finance-reports,
  .ua-p-finance-cashbox,
  .ua-p-finance-month-close,
  .ua-p-invoices,
  .ua-p-invoices-add,
  .ua-p-invoices-generate-month,
  .ua-p-pay-invoice,
  .ua-p-billing-limit-requests,
  .ua-p-billing-cut-requests,
  .ua-p-finance-payments,
  .ua-p-finance-expenses,
  .ua-p-purchases-report,
  .ua-p-purchases-new,
  .ua-p-purchases-view
):not(.ua-page-dashboard) hr{
  border-color:rgba(255,210,92,.13) !important;
  opacity:1 !important;
}

.ua-bill-window{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  background:rgba(0,0,0,.62) !important;
  direction:rtl !important;
}
.ua-bill-window.is-open{display:flex !important;}
.ua-bill-window__box{
  width:min(1040px,96vw) !important;
  height:min(780px,92vh) !important;
  display:flex !important;
  flex-direction:column !important;
  border:1px solid rgba(255,210,92,.34) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg, rgba(8,19,35,.98), rgba(3,10,20,.98)) !important;
  box-shadow:0 26px 90px rgba(0,0,0,.58) !important;
  color:#eef7ff !important;
  overflow:hidden !important;
}
.ua-bill-window.is-max .ua-bill-window__box{
  width:calc(100vw - 28px) !important;
  height:calc(100vh - 28px) !important;
  border-radius:14px !important;
}
.ua-bill-window__head{
  height:42px !important;
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:0 0 0 10px !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.035) !important;
}
.ua-bill-window__title{
  min-width:0 !important;
  padding-inline:12px !important;
  color:#ffd45a !important;
  font-weight:950 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.ua-bill-window__controls{
  display:flex !important;
  align-items:stretch !important;
  align-self:stretch !important;
  direction:ltr !important;
}
.ua-bill-window__btn{
  width:46px !important;
  height:42px !important;
  border:0 !important;
  border-radius:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  color:rgba(255,255,255,.84) !important;
  font-size:16px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.ua-bill-window__btn:hover{
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}
.ua-bill-window__btn--close:hover{background:#c42b1c !important;}
.ua-bill-window__body{
  flex:1 1 auto !important;
  min-height:0 !important;
  background:linear-gradient(180deg, rgba(8,19,35,.98), rgba(3,10,20,.98)) !important;
}
.ua-bill-window__frame{
  width:100% !important;
  height:100% !important;
  border:0 !important;
  display:block !important;
  background:#07111f !important;
}

@media (max-width:900px){
  body.ua-authed:where(
    .ua-p-finance-reports,
    .ua-p-finance-cashbox,
    .ua-p-finance-month-close,
    .ua-p-invoices,
    .ua-p-invoices-add,
    .ua-p-invoices-generate-month,
    .ua-p-pay-invoice,
    .ua-p-billing-limit-requests,
    .ua-p-billing-cut-requests,
    .ua-p-finance-payments,
    .ua-p-finance-expenses,
    .ua-p-purchases-report,
    .ua-p-purchases-new,
    .ua-p-purchases-view
  ):not(.ua-page-dashboard) .content{padding:12px !important;}
  body.ua-authed:where(
    .ua-p-finance-reports,
    .ua-p-finance-cashbox,
    .ua-p-finance-month-close,
    .ua-p-invoices,
    .ua-p-invoices-add,
    .ua-p-invoices-generate-month,
    .ua-p-pay-invoice,
    .ua-p-billing-limit-requests,
    .ua-p-billing-cut-requests,
    .ua-p-finance-payments,
    .ua-p-finance-expenses,
    .ua-p-purchases-report,
    .ua-p-purchases-new,
    .ua-p-purchases-view
  ):not(.ua-page-dashboard) .content-header{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
}


/* Billing cycle page: compact root-level layout for day/approval boxes.
   Keeps the same dark/gold/cyan palette, but removes the oversized Bootstrap rectangles. */
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-card{
  margin-bottom:0 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-body{
  padding:14px 16px 16px !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-form{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  margin:0 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(150px, max-content)) !important;
  align-items:end !important;
  justify-content:start !important;
  gap:12px 14px !important;
  width:100% !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field{
  width:clamp(150px, 11vw, 188px) !important;
  min-width:0 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field--sm{
  width:clamp(132px, 9vw, 162px) !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field label{
  display:block !important;
  margin:0 0 6px !important;
  min-height:0 !important;
  color:#eef7ff !important;
  font-size:12.5px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  white-space:normal !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field .form-control{
  width:100% !important;
  max-width:100% !important;
  height:36px !important;
  min-height:36px !important;
  padding:4px 10px !important;
  border-radius:10px !important;
  text-align:center !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:900 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-controls{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-top:1px !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-checks{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  min-width:0 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-check{
  min-height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 12px !important;
  border:1px solid rgba(255,210,92,.15) !important;
  border-radius:11px !important;
  background:rgba(8,20,36,.62) !important;
  color:#eef7ff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  line-height:1.25 !important;
  cursor:pointer !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-check input{
  width:15px !important;
  height:15px !important;
  margin:0 !important;
  flex:0 0 auto !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-check span{
  font-size:12.5px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-save{
  min-height:36px !important;
  padding:0 16px !important;
  border-radius:11px !important;
  white-space:nowrap !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-sep{
  margin:13px 0 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-summary{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:10px !important;
  margin:0 0 12px !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-summary-cell{
  min-height:56px !important;
  padding:10px 12px !important;
  border:1px solid rgba(255,210,92,.13) !important;
  border-radius:12px !important;
  background:rgba(6,16,29,.48) !important;
  color:#eef7ff !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:4px !important;
  line-height:1.5 !important;
}
body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-note{
  margin-top:0 !important;
}
@media (max-width:760px){
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field,
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-field--sm{
    width:100% !important;
  }
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-summary{
    grid-template-columns:1fr !important;
  }
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-controls{
    align-items:stretch !important;
  }
  body.ua-authed.ua-p-invoices-generate-month:not(.ua-page-dashboard) .ua-cycle-save{
    width:100% !important;
  }
}
