﻿/* ===== MAIN CONTENT ===== */
#main {
  margin-left: var(--sidebar-w);
  padding: var(--sp-2xl) var(--sp-xl);
  flex: 1;
  min-height: 100vh;
  max-width: calc(100vw - var(--sidebar-w));
  transition: var(--tr);
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.page.active {
  display: block;
  animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix #17: Suppress page transition animation during printing */
@media print {
  .page, .page.active {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* ===== PAGE HEADER ===== */
.ph {
  margin-bottom: 40px
}

.ph h1 {
  font-family: var(--font-display);
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
  line-height: 1.1
}

.ph p {
  font-size: var(--font-sm);
  color: var(--g3);
  margin-top: 5px;
  font-weight: 400
}

/* ===== TOOLBAR ===== */
.tbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center
}

.srch {
  position: relative;
  flex: 1;
  min-width: 220px
}

.srch input {
  padding-left: 38px
}

.srch::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .5;
  pointer-events: none;
}

@media(max-width:768px) {
  .srch {
    min-width: unset;
  }
}

/* ===== SECTION LABEL ===== */
.sec-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin: 20px 0 12px;
  padding: 8px 12px;
  background: var(--glass-bg);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
}

/* ===== DASHBOARD GRID ===== */
.dash-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.dg-3-2 {
  grid-template-columns: 3fr 2fr;
}

.dg-1-1 {
  grid-template-columns: 1fr 1fr;
}

.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-quick-actions .btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 18px;
  min-width: 160px;
  height: auto;
  min-height: 52px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  transition: .2s;
  text-align: left;
}

.dash-quick-actions .btn:not(.out) .ico {
  font-size: 22px;
  font-weight: 700;
}

.dash-quick-actions .btn .ico {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ws-white-rgb), .2);
  border-radius: 8px;
}

.dash-quick-actions .btn.out .ico {
  background: var(--teal-light);
  color: var(--teal);
}