/*
  UA Finance Reports
  Shared day/month close report layout.
*/

body.ua-p-finance-day-report .fin-report-head,
body.ua-p-finance-month-report .fin-report-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

body.ua-p-finance-day-report .fin-report-title,
body.ua-p-finance-month-report .fin-report-title{
  font-size:34px;
  font-weight:900;
  color:#f4f7ff;
  margin:0 0 6px;
}

body.ua-p-finance-day-report .fin-report-sub,
body.ua-p-finance-month-report .fin-report-sub{
  color:#b9c4dd;
  font-size:14px;
}

body.ua-p-finance-day-report .fin-actions,
body.ua-p-finance-month-report .fin-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

body.ua-p-finance-day-report .fin-btn,
body.ua-p-finance-month-report .fin-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#f6f8ff;
  text-decoration:none !important;
  font-weight:800;
}

body.ua-p-finance-day-report .fin-btn--primary,
body.ua-p-finance-month-report .fin-btn--primary{
  background:linear-gradient(135deg,#f0bd2a,#dca51a);
  color:#141414;
  border-color:rgba(255,214,102,.45);
}

body.ua-p-finance-day-report .fin-kpis,
body.ua-p-finance-month-report .fin-kpis{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}

body.ua-p-finance-day-report .fin-kpis{
  grid-template-columns:repeat(6,minmax(0,1fr));
}

body.ua-p-finance-month-report .fin-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

body.ua-p-finance-day-report .fin-kpi,
body.ua-p-finance-month-report .fin-kpi{
  background:linear-gradient(180deg,rgba(13,29,57,.92),rgba(8,18,36,.96));
  border:1px solid rgba(210,177,56,.22);
  border-radius:20px;
  padding:16px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

body.ua-p-finance-day-report .fin-kpi .t,
body.ua-p-finance-month-report .fin-kpi .t{
  color:#c5d1ea;
  font-size:13px;
  margin-bottom:8px;
}

body.ua-p-finance-day-report .fin-kpi .v,
body.ua-p-finance-month-report .fin-kpi .v{
  font-size:34px;
  font-weight:900;
  color:#fff;
  line-height:1;
}

body.ua-p-finance-day-report .fin-card,
body.ua-p-finance-month-report .fin-card{
  background:linear-gradient(180deg,rgba(7,18,36,.95),rgba(4,12,25,.98));
  border:1px solid rgba(210,177,56,.2);
  border-radius:24px;
  box-shadow:0 18px 36px rgba(0,0,0,.24);
}

body.ua-p-finance-day-report .fin-card .card-header,
body.ua-p-finance-month-report .fin-card .card-header{
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#f4f7ff;
  font-size:26px;
  font-weight:900;
  padding:20px 24px;
}

body.ua-p-finance-day-report .fin-card .table th,
body.ua-p-finance-day-report .fin-card .table td,
body.ua-p-finance-month-report .fin-card .table th,
body.ua-p-finance-month-report .fin-card .table td{
  vertical-align:middle;
}

body.ua-p-finance-day-report .fin-card .table thead th,
body.ua-p-finance-month-report .fin-card .table thead th{
  background:rgba(255,255,255,.07) !important;
  color:#f5f7ff;
  border-color:rgba(255,255,255,.08) !important;
}

body.ua-p-finance-day-report .fin-card .table tbody td,
body.ua-p-finance-month-report .fin-card .table tbody td{
  background:transparent;
  color:#edf2ff;
  border-color:rgba(255,255,255,.06) !important;
}

body.ua-p-finance-day-report .fin-empty,
body.ua-p-finance-month-report .fin-empty{
  color:#b9c4dd !important;
  padding:22px !important;
}

@media (max-width:1200px){
  body.ua-p-finance-day-report .fin-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  body.ua-p-finance-month-report .fin-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:768px){
  body.ua-p-finance-day-report .fin-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.ua-p-finance-day-report .fin-report-title,
  body.ua-p-finance-month-report .fin-report-title{
    font-size:28px;
  }
}

@media print{
  body.ua-p-finance-day-report .ua-topbar,
  body.ua-p-finance-day-report .ua-sb3,
  body.ua-p-finance-day-report .ua-ftabs-wrap,
  body.ua-p-finance-day-report .fin-actions,
  body.ua-p-finance-day-report .content-header,
  body.ua-p-finance-month-report .ua-topbar,
  body.ua-p-finance-month-report .ua-sb3,
  body.ua-p-finance-month-report .ua-ftabs-wrap,
  body.ua-p-finance-month-report .fin-actions,
  body.ua-p-finance-month-report .content-header{
    display:none !important;
  }

  body.ua-p-finance-day-report .content-wrapper,
  body.ua-p-finance-month-report .content-wrapper{
    margin:0 !important;
    padding:0 !important;
  }

  body.ua-p-finance-day-report .container-fluid,
  body.ua-p-finance-month-report .container-fluid{
    padding:0 !important;
  }

  body.ua-p-finance-day-report .fin-card,
  body.ua-p-finance-day-report .fin-kpi,
  body.ua-p-finance-month-report .fin-card,
  body.ua-p-finance-month-report .fin-kpi{
    box-shadow:none !important;
    break-inside:avoid;
  }

  body.ua-p-finance-day-report .fin-card,
  body.ua-p-finance-month-report .fin-card{
    border-color:#ccc !important;
    background:#fff !important;
  }

  body.ua-p-finance-day-report .fin-card .card-header,
  body.ua-p-finance-day-report .fin-card .table thead th,
  body.ua-p-finance-day-report .fin-card .table tbody td,
  body.ua-p-finance-day-report .fin-report-title,
  body.ua-p-finance-day-report .fin-report-sub,
  body.ua-p-finance-day-report .fin-kpi .t,
  body.ua-p-finance-day-report .fin-kpi .v,
  body.ua-p-finance-month-report .fin-card .card-header,
  body.ua-p-finance-month-report .fin-card .table thead th,
  body.ua-p-finance-month-report .fin-card .table tbody td,
  body.ua-p-finance-month-report .fin-report-title,
  body.ua-p-finance-month-report .fin-report-sub,
  body.ua-p-finance-month-report .fin-kpi .t,
  body.ua-p-finance-month-report .fin-kpi .v{
    color:#111 !important;
    background:#fff !important;
  }
}
