:root{
  --bg:#efe2cf;
  --bg-deep:#d8c0a7;
  --paper:#fff9f2;
  --paper-soft:#f7ecde;
  --paper-ink:#f3e2cf;
  --ink:#26170f;
  --muted:#6f5c4c;
  --line:rgba(78,46,28,.12);
  --line-strong:rgba(78,46,28,.22);
  --shadow:0 26px 60px rgba(58,33,19,.14);
  --accent:#bc7139;
  --accent-strong:#8c4d22;
  --accent-soft:#efc08d;
  --navy:#2f4359;
  --olive:#536345;
  --wine:#7b4b49;
  --success:#2e7b57;
  --warning:#b9832f;
  --danger:#9d4035;
  --radius-xl:30px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --content:1320px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,243,225,.95), transparent 34%),
    radial-gradient(circle at right 18%, rgba(167,107,67,.12), transparent 22%),
    linear-gradient(180deg, #f7ecdf 0%, var(--bg) 48%, #e3cfb8 100%);
  font-family:"Trebuchet MS","Gill Sans","Segoe UI Variable Text","Segoe UI",sans-serif;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.42) 0 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:20px 20px, 34px 34px, 34px 34px;
  opacity:.5;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at center, transparent 56%, rgba(38,23,15,.05) 100%),
    linear-gradient(90deg, rgba(67,39,20,.08), transparent 14%, transparent 86%, rgba(67,39,20,.08));
}

button,input,select{
  font:inherit;
}

.report-shell{
  width:min(calc(100% - 24px), var(--content));
  margin:0 auto;
  padding:22px 0 44px;
  position:relative;
  z-index:1;
}

.report-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,252,248,.98), rgba(250,243,233,.95));
  box-shadow:var(--shadow);
}

.report-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:8px;
  background:linear-gradient(180deg, rgba(188,113,57,.88), rgba(140,77,34,.88));
  opacity:.9;
}

.report-login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.report-login{
  width:min(100%, 480px);
  padding:28px;
}

.report-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(188,113,57,.12);
  color:var(--accent-strong);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.report-eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#1fb66c;
  box-shadow:0 0 0 5px rgba(31,182,108,.14);
}

.report-login h1,
.report-title,
.report-panel h3,
.report-modal h3{
  margin:0;
  font-family:"Georgia","Palatino Linotype",serif;
  letter-spacing:-.02em;
}

.report-login-copy{
  margin-top:16px;
}

.report-login-copy h1{
  font-size:42px;
  line-height:1.02;
}

.report-login-copy p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.65;
}

.report-form{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.report-field label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.report-field input,
.report-field select{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid rgba(89,56,36,.14);
  border-radius:16px;
  background:#fffdf9;
  color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.report-actions,
.report-topbar,
.report-userbar,
.report-filter-actions,
.report-row-between,
.report-list-card{
  display:flex;
  align-items:center;
  gap:10px;
}

.report-actions{
  flex-wrap:wrap;
  margin-top:18px;
}

.report-btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:12px 16px;
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.report-btn:hover{ transform:translateY(-1px); }
.report-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.report-btn-primary{
  color:#fff8f2;
  background:linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow:0 14px 28px rgba(146,81,35,.24);
}

.report-btn-soft{
  color:var(--ink);
  background:#fff5ea;
  border:1px solid rgba(103,67,42,.1);
}

.report-btn-dark{
  color:#fff8f2;
  background:linear-gradient(135deg, var(--navy), #344d69);
  box-shadow:0 14px 28px rgba(37,56,77,.18);
}

.report-note,
.report-empty,
.report-error{
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  font-size:14px;
  line-height:1.55;
}

.report-note{
  color:var(--muted);
  background:rgba(255,252,248,.9);
  border:1px dashed rgba(76,45,28,.18);
}

.report-error{
  color:var(--danger);
  background:rgba(166,60,50,.08);
  border:1px solid rgba(166,60,50,.14);
}

.report-empty{
  color:var(--muted);
  background:rgba(255,255,255,.58);
  border:1px dashed rgba(76,45,28,.14);
}

.report-topbar{
  position:sticky;
  top:12px;
  z-index:24;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-radius:26px;
  backdrop-filter:blur(18px);
  background:
    linear-gradient(180deg, rgba(255,250,244,.88), rgba(252,244,235,.84));
  border:1px solid rgba(92,59,37,.12);
  box-shadow:0 14px 38px rgba(74,42,20,.1);
}

.report-topbar::before{
  width:100%;
  height:10px;
  inset:0 0 auto 0;
  background:linear-gradient(90deg, var(--accent-strong), var(--accent), #d7a16d, transparent 72%);
}

.report-brand{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
}

.report-brand-badge{
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.06em;
  color:#fff6ef;
  background:linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 12px 24px rgba(140,77,34,.18);
}

.report-brand-copy{
  min-width:0;
}

.report-brand-title{
  margin-top:8px;
  font-family:"Georgia","Book Antiqua","Palatino Linotype",serif;
  font-size:24px;
  font-weight:700;
  line-height:1.04;
}

.report-brand-note{
  margin-top:6px;
  max-width:42ch;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.report-top-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.report-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:8px 15px;
  border-radius:14px;
  background:rgba(255,252,248,.82);
  border:1px solid rgba(74,42,20,.12);
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.44);
}

.report-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.48fr) 360px;
  gap:22px;
  margin-top:20px;
  align-items:start;
}

.report-hero-main{
  padding:28px 30px;
  background:
    linear-gradient(rgba(134,96,71,.08) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(239,192,141,.44), transparent 34%),
    linear-gradient(160deg, rgba(255,252,248,.98), rgba(248,239,229,.96));
  background-size:100% 34px, auto, auto;
}

.report-hero-main::after{
  content:"";
  position:absolute;
  top:18px;
  right:22px;
  width:160px;
  height:160px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(188,113,57,.12), transparent 68%);
  pointer-events:none;
}

.report-hero-header{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 220px;
  gap:18px;
  align-items:start;
}

.report-hero-copy{
  min-width:0;
}

.report-hero-note{
  position:relative;
  padding:18px 18px 18px 20px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(49,67,89,.96), rgba(34,48,65,.98));
  color:#fef5eb;
  box-shadow:0 18px 30px rgba(47,67,89,.18);
}

.report-hero-note::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background:linear-gradient(180deg, #f0ca97, #bc7139);
}

.report-hero-note span,
.report-spotlight-foot span{
  display:block;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,245,233,.7);
}

.report-hero-note strong{
  display:block;
  margin-top:10px;
  font-size:22px;
  line-height:1.08;
  font-family:"Georgia","Book Antiqua","Palatino Linotype",serif;
}

.report-hero-note small{
  display:block;
  margin-top:12px;
  color:rgba(255,245,233,.8);
  line-height:1.55;
}

.report-title{
  max-width:9ch;
  font-size:clamp(38px, 5vw, 66px);
  line-height:.96;
  margin-top:18px;
}

.report-subtitle{
  margin:14px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.76;
  max-width:50ch;
}

.report-userbar{
  flex-wrap:wrap;
  justify-content:flex-start;
  margin-top:22px;
}

.report-periods{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
  max-width:760px;
}

.report-periods button{
  appearance:none;
  border:1px solid rgba(73,43,25,.12);
  background:rgba(255,250,245,.9);
  color:var(--muted);
  border-radius:14px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  min-width:118px;
  position:relative;
  overflow:hidden;
}

.report-periods button.is-active{
  color:#fff8f2;
  background:linear-gradient(135deg, var(--navy), #425f7f);
  box-shadow:0 14px 28px rgba(37,56,77,.18);
}

.report-kpis{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin-top:22px;
}

.report-kpi{
  min-height:182px;
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,251,247,.98), rgba(249,239,229,.94));
  border:1px solid rgba(76,45,28,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
}

.report-kpi::before{
  width:100%;
  height:8px;
  inset:0 0 auto 0;
  background:linear-gradient(90deg, rgba(188,113,57,.92), rgba(239,192,141,.8));
}

.report-kpi-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.report-kpi-label{
  color:var(--muted);
  font-size:13px;
  max-width:14ch;
  line-height:1.35;
}

.report-kpi-no{
  color:rgba(38,23,15,.22);
  font-size:28px;
  line-height:1;
  font-family:"Georgia","Book Antiqua","Palatino Linotype",serif;
}

.report-kpi-value{
  display:block;
  margin-top:12px;
  font-size:36px;
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.02;
}

.report-kpi-money{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
  min-height:70px;
}

.report-kpi-currency{
  font-size:clamp(22px, 1.4vw, 28px);
  font-weight:800;
  line-height:1;
  letter-spacing:-.03em;
}

.report-kpi-digits{
  font-size:clamp(28px, 2.2vw, 44px);
  font-weight:800;
  line-height:0.98;
  letter-spacing:-.05em;
  font-variant-numeric:tabular-nums;
  min-width:0;
  font-family:"Bahnschrift","Trebuchet MS","Segoe UI",sans-serif;
}

.report-kpi-change{
  display:inline-block;
  margin-top:12px;
  padding:8px 11px;
  border-radius:12px;
  background:rgba(46,123,87,.1);
  color:var(--success);
  font-size:12px;
  font-weight:800;
}

.report-kpi-tone-2::before{
  background:linear-gradient(90deg, rgba(83,99,69,.92), rgba(188,201,173,.84));
}

.report-kpi-tone-3::before{
  background:linear-gradient(90deg, rgba(47,67,89,.92), rgba(140,166,194,.8));
}

.report-kpi-tone-4::before{
  background:linear-gradient(90deg, rgba(123,75,73,.92), rgba(221,173,170,.82));
}

.report-hero-side{
  display:grid;
  gap:18px;
  align-content:start;
}

.report-spotlight{
  padding:24px;
  color:#fff6ef;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(180deg, #4a2d1f, #2d1b12);
}

.report-spotlight p{
  color:rgba(255,241,229,.8);
}

.report-spotlight::before{
  width:100%;
  height:9px;
  inset:0 0 auto 0;
  background:linear-gradient(90deg, #f0ca97, #bc7139, rgba(255,255,255,.22));
}

.report-big-number{
  margin-top:18px;
  font-size:clamp(38px, 4vw, 54px);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1;
}

.report-spark{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  align-items:end;
  gap:8px;
  min-height:92px;
  margin-top:16px;
}

.report-spark span{
  border-radius:12px 12px 6px 6px;
  background:linear-gradient(180deg, #f0ca97, #fff1df);
  min-height:16px;
}

.report-spotlight-foot{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,241,229,.18);
}

.report-spotlight-foot strong{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.4;
}

.report-panel{
  padding:24px;
}

.report-panel p{
  margin:6px 0 0;
  color:var(--muted);
  line-height:1.55;
}

.report-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:22px;
  margin-top:20px;
  align-items:start;
}

.report-filter-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
}

.report-filter-actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}

.report-trend-wrap{
  margin-top:18px;
  padding:18px;
  border-radius:24px;
  background:
    linear-gradient(rgba(134,96,71,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(239,197,154,.16), rgba(255,251,246,.78));
  background-size:100% 28px, auto;
  border:1px solid rgba(103,66,37,.08);
}

.report-trend-bars{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:10px;
  align-items:end;
  min-height:220px;
  margin-top:18px;
}

.report-trend-bar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.report-trend-fill{
  width:100%;
  max-width:40px;
  min-height:18px;
  border-radius:14px 14px 8px 8px;
  background:linear-gradient(180deg, var(--accent), #f2d4b2);
}

.report-trend-bar b{
  font-size:12px;
  color:var(--muted);
}

.report-list{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.report-list-item{
  position:relative;
  padding:14px 16px 14px 18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(249,238,224,.92), rgba(255,251,246,.9));
  border:1px solid rgba(76,45,28,.08);
}

.report-list-item::before{
  width:5px;
  inset:10px auto 10px 0;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(188,113,57,.9), rgba(239,192,141,.85));
}

.report-payment-line{
  margin-top:10px;
}

.report-track{
  width:100%;
  height:12px;
  margin-top:8px;
  border-radius:999px;
  background:#f0e4d6;
  overflow:hidden;
}

.report-track > span{
  display:block;
  height:100%;
  border-radius:inherit;
}

.report-list-card{
  position:relative;
  align-items:flex-start;
  justify-content:space-between;
  width:100%;
  padding:18px 18px 18px 24px;
  border:none;
  cursor:pointer;
  text-align:left;
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(255,252,248,.98), rgba(248,239,229,.94));
  border:1px solid rgba(70,42,24,.08);
  box-shadow:0 10px 24px rgba(67,39,19,.06);
}

.report-list-card:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(67,39,19,.12);
}

.report-list-card::before{
  content:"";
  position:absolute;
  inset:14px auto 14px 10px;
  width:5px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(188,113,57,.92), rgba(239,192,141,.86));
}

.report-list-card.is-billiard::before{
  background:linear-gradient(180deg, rgba(47,67,89,.94), rgba(140,166,194,.84));
}

.report-list-card.is-kasbon::before{
  background:linear-gradient(180deg, rgba(123,75,73,.96), rgba(221,173,170,.86));
}

.report-list-leading{
  min-width:0;
}

.report-list-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(38,23,15,.06);
  color:var(--muted);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:8px;
}

.report-list-meta{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.report-money{
  text-align:right;
  white-space:nowrap;
}

.report-money strong{
  display:block;
  font-size:20px;
  font-family:"Bahnschrift","Trebuchet MS","Segoe UI",sans-serif;
}

.report-money span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}

@media (min-width: 1321px){
  .report-shell{
    width:min(calc(100% - 40px), 1320px);
    padding-top:22px;
  }

  .report-topbar{
    padding:16px 20px;
  }

  .report-top-meta{
    max-width:52%;
  }
}

.report-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(31,20,13,.42);
  backdrop-filter:blur(7px);
  display:grid;
  place-items:end center;
  padding:18px;
}

.report-modal{
  width:min(100%, 920px);
  max-height:min(86vh, 920px);
  overflow:auto;
  padding:24px;
  border-radius:28px;
  background:
    linear-gradient(rgba(134,96,71,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,250,244,.98), rgba(255,246,239,.98));
  background-size:100% 30px, auto;
  box-shadow:0 30px 90px rgba(33,20,13,.22);
}

.report-detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:16px;
}

.report-detail-box{
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(249,238,224,.92), rgba(255,251,246,.9));
  border:1px solid rgba(76,45,28,.08);
}

.report-detail-box strong{
  display:block;
  margin-top:6px;
  font-size:16px;
}

.report-items{
  margin-top:16px;
  display:grid;
  gap:10px;
}

.report-item-card{
  padding:14px;
  border-radius:18px;
  background:#fffaf5;
  border:1px solid rgba(76,45,28,.08);
}

.report-item-card .meta{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.report-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(18px);
  z-index:90;
  max-width:min(calc(100% - 24px), 560px);
  padding:12px 16px;
  border-radius:16px;
  background:rgba(29,20,14,.92);
  color:#fff9f4;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 18px 40px rgba(20,12,8,.25);
}

.report-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width: 1320px){
  .report-hero,
  .report-grid{
    grid-template-columns:1fr;
  }

  .report-title{
    max-width:none;
  }

  .report-periods{
    max-width:none;
  }

  .report-hero-side{
    grid-template-columns:1fr 1fr;
    display:grid;
  }

  .report-hero-header{
    grid-template-columns:1fr;
  }
}

@media (max-width: 1080px){
  .report-kpis,
  .report-filter-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .report-hero-side{
    grid-template-columns:1fr;
  }
}

@media (max-width: 1240px){
  .report-kpis{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .report-kpi{
    min-height:154px;
  }

  .report-kpi-digits{
    font-size:clamp(28px, 2vw, 38px);
  }
}

@media (max-width: 720px){
  .report-shell{
    width:min(calc(100% - 18px), var(--content));
    padding-top:10px;
  }

  .report-topbar{
    border-radius:26px;
    align-items:flex-start;
    flex-direction:column;
    padding:16px 16px 18px;
  }

  .report-hero-main,
  .report-panel,
  .report-spotlight,
  .report-login{
    padding:18px;
  }

  .report-title{
    font-size:40px;
  }

  .report-kpis,
  .report-filter-grid,
  .report-detail-grid{
    grid-template-columns:1fr;
  }

  .report-kpi-money{
    min-height:auto;
  }

  .report-periods{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .report-trend-bars{
    min-height:180px;
  }

  .report-spotlight-foot{
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px){
  .report-top-meta,
  .report-actions,
  .report-filter-actions,
  .report-userbar{
    width:100%;
  }

  .report-pill,
  .report-actions .report-btn,
  .report-filter-actions .report-btn{
    width:100%;
  }

  .report-brand-badge{
    width:40px;
    height:40px;
  }

  .report-list-card{
    flex-direction:column;
  }

  .report-money{
    text-align:left;
  }

  .report-hero-note{
    padding:16px;
  }

  .report-brand-title{
    font-size:21px;
  }
}

@media print{
  body{
    background:#fff;
  }

  body::before,
  .report-topbar .report-btn,
  .report-filter-actions,
  .report-modal-backdrop,
  .report-toast{
    display:none !important;
  }

  .report-card,
  .report-panel,
  .report-kpi,
  .report-list-card{
    box-shadow:none !important;
    border-color:#ddd;
  }
}
