/* OysKasir dashboard polish — loaded after the active Watzap theme layers. */
:root {
  --dashboard-card: rgba(255, 255, 255, .78);
  --dashboard-line: rgba(99, 102, 241, .10);
  --dashboard-shadow: 0 16px 44px rgba(50, 52, 92, .09), inset 0 1px 0 rgba(255, 255, 255, .82);
}

/* Dashboard banner */
.dashboard-head {
  min-height: 132px;
  margin-bottom: 25px;
  padding: 28px 30px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, .20), transparent 15rem),
    linear-gradient(118deg, #5c63ec 0%, #6a5cf2 48%, #8b52ed 100%);
  box-shadow: 0 22px 48px rgba(91, 80, 219, .21), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.dashboard-head::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: 40px;
  top: -190px;
  border: 38px solid rgba(255, 255, 255, .065);
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-head::after {
  width: 210px;
  height: 210px;
  right: -62px;
  bottom: -145px;
  border-width: 35px;
}

.dashboard-head h2 {
  font-size: clamp(27px, 2.25vw, 36px);
  line-height: 1.16;
  letter-spacing: -.055em;
  text-shadow: 0 2px 12px rgba(45, 36, 129, .12);
}

.dashboard-head p {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 550;
}

.dashboard-tools {
  gap: 8px;
  padding: 9px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.dashboard-tools input,
.dashboard-tools .btn {
  min-height: 44px;
  border-radius: 12px;
}

.dashboard-tools input { width: 144px; }
.dashboard-tools .btn {
  max-width: none;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 750;
}

.dashboard-tools .btn.icon-btn { min-width: 44px; }
.dashboard-tools .btn.green {
  border-color: rgba(255, 255, 255, .65);
  background: rgba(237, 255, 249, .94);
  box-shadow: 0 7px 20px rgba(23, 111, 90, .10);
}

/* Statistic cards */
.dashboard-stats {
  gap: 16px;
  margin-bottom: 25px;
}

.dashboard-stats .stat {
  min-height: 172px;
  padding: 22px;
  border-radius: 23px;
  background: var(--dashboard-card);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease, border-color .24s ease;
}

.dashboard-stats .stat.gradient {
  border-color: rgba(255, 255, 255, .28);
  background:
    radial-gradient(circle at 93% 8%, rgba(255, 255, 255, .16), transparent 10rem),
    linear-gradient(125deg, #5c63ec 0%, #7456ed 56%, #8b52ed 100%);
  box-shadow: 0 18px 42px rgba(93, 77, 221, .23), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.dashboard-stats .stat:not(.gradient)::before {
  height: 3px;
  opacity: .92;
}

.dashboard-stats .stat:nth-child(2)::before { background: linear-gradient(90deg, #5c67f2, #8b5cf6); }
.dashboard-stats .stat:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dashboard-stats .stat-top { margin-bottom: 24px; }
.dashboard-stats .stat-label { color: #7a8599; font-size: 9px; letter-spacing: .075em; }
.dashboard-stats .gradient .stat-label { color: rgba(255, 255, 255, .77); }
.dashboard-stats .stat-value { color: #172033; font-size: 31px; font-weight: 750; letter-spacing: -.045em; }
.dashboard-stats .gradient .stat-value { color: #fff; font-size: 35px; }
.dashboard-stats .stat-foot { color: #98a1b1; }
.dashboard-stats .stat-icon {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(55, 61, 106, .10);
}

.dashboard-stats .revenue-bottom {
  margin-top: 17px;
  padding-top: 14px;
  border-top-color: rgba(255, 255, 255, .20);
  color: rgba(255, 255, 255, .72);
}

.dashboard-stats .revenue-bottom b { color: #fff; }

/* Global branch table directly below dashboard cards */
.dashboard-stats + .table-wrap {
  border-color: rgba(255, 255, 255, .94);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--dashboard-shadow);
}

.dashboard-stats + .table-wrap .data-table th {
  padding: 18px 20px;
  color: #748095;
  background: rgba(255, 255, 255, .55);
  border-bottom-color: rgba(99, 102, 241, .08);
  font-size: 9px;
  letter-spacing: .07em;
}

.dashboard-stats + .table-wrap .data-table td {
  height: 67px;
  padding: 17px 20px;
  color: #465267;
  font-size: 12px;
}

.dashboard-stats + .table-wrap .data-table tbody tr { transition: background-color .2s ease; }
.dashboard-stats + .table-wrap .data-table tbody tr:hover { background: rgba(246, 244, 255, .74); }
.dashboard-stats + .table-wrap .btn.soft {
  min-height: 34px;
  padding-inline: 12px;
  border-color: rgba(99, 102, 241, .10);
  border-radius: 11px;
  color: #5f58c7;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 6px 16px rgba(82, 75, 151, .07);
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-stats .stat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .98);
    box-shadow: 0 21px 50px rgba(50, 52, 92, .13), inset 0 1px 0 #fff;
  }

  .dashboard-stats .stat.gradient:hover {
    box-shadow: 0 23px 52px rgba(93, 77, 221, .29), inset 0 1px 0 rgba(255, 255, 255, .18);
  }

}

@media (max-width: 1190px) {
  .dashboard-head { min-height: 0; }
  .dashboard-tools { width: 100%; max-width: 100%; }
}

@media (max-width: 960px) {
  .dashboard-stats .stat { min-height: 156px; }
}

@media (max-width: 760px) {
  .dashboard-head { padding: 23px 20px; border-radius: 21px; }
  .dashboard-head h2 { font-size: 26px; }
  .dashboard-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .dashboard-tools .date-filter {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px;
    width: 100%;
    min-width: 0;
    flex: none;
  }
  .dashboard-tools input { width: 100%; min-width: 0; }
  .dashboard-tools > .btn { width: 100%; min-width: 0; }
  .dashboard-stats { gap: 11px; }
  .dashboard-stats .stat { min-height: 140px; padding: 18px; border-radius: 20px; }
  .dashboard-stats .stat:first-child { min-height: 158px; }
  .dashboard-stats .stat-value { font-size: 27px; }
  .dashboard-stats .gradient .stat-value { font-size: 32px; }
  .dashboard-stats + .table-wrap { border-radius: 18px; }
}

@media (max-width: 430px) {
  .dashboard-head { padding: 21px 17px; }
  .dashboard-head h2 { font-size: 24px; }
  .dashboard-tools { padding: 7px; }
  .dashboard-tools .date-filter small { display: none; }
  .dashboard-tools .date-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .dashboard-tools .date-filter .btn { grid-column: 3; }
  .dashboard-stats .stat { min-height: 132px; padding: 16px; }
  .dashboard-stats .stat:first-child { min-height: 152px; }
  .dashboard-stats .stat-top { margin-bottom: 18px; }
  .dashboard-stats .stat-value { font-size: 24px; }
  .dashboard-stats .gradient .stat-value { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-stats .stat { transition: none; }
}

@media print {
  .dashboard-stats .stat,
  .dashboard-stats + .table-wrap { background: #fff; box-shadow: none; backdrop-filter: none; }
}

