/* APK Approval History Layout 2027
   Keep approval queue clear: pending first, history second. */
.apk-approval-section{
  margin: 22px 0 34px !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(135,165,220,.35) !important;
  box-shadow: 0 18px 46px rgba(24,45,87,.08) !important;
}
.apk-approval-section--pending{
  border-color: rgba(245,69,126,.35) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,249,255,.92)) !important;
}
.apk-approval-section--history{
  border-color: rgba(34,197,94,.28) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,253,244,.84)) !important;
}
.apk-section-title{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 16px !important;
  padding: 2px 4px 14px !important;
  border-bottom: 1px solid rgba(135,165,220,.25) !important;
}
.apk-section-title h2{
  margin: 4px 0 3px !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.1 !important;
  color: #10203d !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}
.apk-section-title p{
  margin:0 !important;
  color:#60718d !important;
  font-weight:700 !important;
}
.apk-section-kicker{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#f13d82 !important;
  font-size:12px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
}
.apk-section-kicker:before{
  content:"";
  width:9px;height:9px;border-radius:999px;
  background:currentColor;
  box-shadow:0 0 18px currentColor;
}
.apk-section-count{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:82px !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#7c3aed) !important;
  font-weight:900 !important;
  box-shadow:0 12px 30px rgba(37,99,235,.22) !important;
}
.apk-section-count--done{
  background:linear-gradient(135deg,#16a34a,#0ea5e9) !important;
  box-shadow:0 12px 30px rgba(22,163,74,.2) !important;
}
.apk-approval-section--history .apk-action-cell{
  min-width: 150px !important;
}
body[data-apk-theme="dark"] .apk-approval-section,
html[data-theme="dark"] .apk-approval-section,
body.theme-dark .apk-approval-section,
body.dark .apk-approval-section{
  background: linear-gradient(135deg, rgba(13,27,50,.98), rgba(18,33,61,.94)) !important;
  border-color: rgba(96,165,250,.32) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.34) !important;
}
body[data-apk-theme="dark"] .apk-approval-section--pending,
html[data-theme="dark"] .apk-approval-section--pending,
body.theme-dark .apk-approval-section--pending,
body.dark .apk-approval-section--pending{
  border-color: rgba(244,114,182,.44) !important;
}
body[data-apk-theme="dark"] .apk-approval-section--history,
html[data-theme="dark"] .apk-approval-section--history,
body.theme-dark .apk-approval-section--history,
body.dark .apk-approval-section--history{
  border-color: rgba(52,211,153,.36) !important;
}
body[data-apk-theme="dark"] .apk-section-title,
html[data-theme="dark"] .apk-section-title,
body.theme-dark .apk-section-title,
body.dark .apk-section-title{
  border-bottom-color: rgba(148,163,184,.22) !important;
}
body[data-apk-theme="dark"] .apk-section-title h2,
html[data-theme="dark"] .apk-section-title h2,
body.theme-dark .apk-section-title h2,
body.dark .apk-section-title h2{
  color:#f8fbff !important;
}
body[data-apk-theme="dark"] .apk-section-title p,
html[data-theme="dark"] .apk-section-title p,
body.theme-dark .apk-section-title p,
body.dark .apk-section-title p{
  color:#bdd0f0 !important;
}
body[data-apk-theme="dark"] .apk-section-kicker,
html[data-theme="dark"] .apk-section-kicker,
body.theme-dark .apk-section-kicker,
body.dark .apk-section-kicker{
  color:#ff73b4 !important;
}
@media (max-width: 768px){
  .apk-approval-section{ padding:12px !important; border-radius:22px !important; }
  .apk-section-title{ flex-direction:column !important; align-items:flex-start !important; }
  .apk-section-count{ min-width:auto !important; }
}
