.iin-ref-shell {
  --iin-bg: #ecf0f5;
  --iin-bg-soft: #f5f7fb;
  --iin-surface: #ffffff;
  --iin-surface-muted: #f4f6fa;
  --iin-border: #d4dbe6;
  --iin-border-strong: #c8d2de;
  --iin-text: #11233b;
  --iin-text-soft: #62728a;
  --iin-navy: #0f1726;
  --iin-navy-mid: #172338;
  --iin-wine: #8f1833;
  --iin-wine-soft: rgba(143, 24, 51, 0.08);
  --iin-success: #239663;
  --iin-warning: #d38a06;
  --iin-info: #2583f3;
  --iin-danger: #cb4b5d;
  --iin-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --iin-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --iin-radius-sm: 14px;
  --iin-radius-md: 18px;
  --iin-radius-lg: 24px;
  --premium-shell-start: rgba(28, 45, 72, 0.72);
  --premium-shell-end: rgba(12, 18, 30, 0.82);
  --premium-shell-border: rgba(255,255,255,0.16);
  color: var(--iin-text);
}

body.iin-ref-active {
  background: linear-gradient(180deg, #eef2f7 0%, #e7edf4 100%);
}

.iin-ref-shell,
.iin-ref-shell * {
  box-sizing: border-box;
}

/* Shell layout global */
.iin-ref-shell.shell-layout {
  display: block;
  min-height: 100vh;
}

body[data-sidebar="collapsed"] .iin-ref-shell .app-sidebar,
body[data-sidebar="collapsed"] .iin-ref-shell .iin-ref-sidebar {
  width: 64px !important;
}

.iin-ref-shell .app-sidebar,
.iin-ref-shell .iin-ref-sidebar {
  position: fixed !important;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(45,58,78,0.58) 0%, rgba(22,32,48,0.66) 100%) !important;
  border-right: none !important;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.05),
    8px 0 32px rgba(0,0,0,0.16) !important;
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: width;
}

body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-brand-block,
body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-footer {
  padding-left: 6px;
  padding-right: 6px;
}

body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-brand-copy,
body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-user-copy,
body[data-sidebar="collapsed"] .iin-ref-shell .app-sidebar .tab-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

body[data-sidebar="collapsed"] .iin-ref-shell .app-sidebar:hover .sidebar-brand-copy,
body[data-sidebar="collapsed"] .iin-ref-shell .app-sidebar:hover .sidebar-user-copy,
body[data-sidebar="collapsed"] .iin-ref-shell .app-sidebar:hover .tab-label {
  opacity: 1 !important;
  max-width: 220px !important;
  overflow: visible !important;
}

body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-brand {
  justify-content: center;
  width: 100%;
}

body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-footer,
body[data-sidebar="collapsed"] .iin-ref-shell .sidebar-user-main {
  justify-content: center;
}

body[data-sidebar="collapsed"] .iin-ref-shell .tab-btn {
  justify-content: center;
  width: 100%;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body[data-sidebar="collapsed"] .iin-ref-shell #sidebarCollapseBtn svg {
  transform: rotate(180deg);
}

.iin-ref-shell .sidebar-brand-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 68px;
  padding: 16px 16px 14px;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.iin-ref-shell .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.iin-ref-shell .sidebar-brand .logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.iin-ref-shell .sidebar-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.iin-ref-shell .sidebar-brand-copy strong {
  color: #fff4ed;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iin-ref-shell .sidebar-brand-copy span {
  color: rgba(230, 236, 246, 0.72);
  font-size: 0.72rem;
}

.iin-ref-shell .tabs-bar,
.iin-ref-shell .tabs-bar.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px 18px;
  min-height: 0;
  overflow: auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.iin-ref-shell .tabs-bar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.iin-ref-shell .tabs-bar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.iin-ref-shell .tabs-bar.app-nav {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.iin-ref-shell .tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: rgba(226,235,247,0.72) !important;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.iin-ref-shell .tab-btn:hover {
  transform: none !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: transparent !important;
}

.iin-ref-shell .tab-btn.active {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  border-radius: 16px !important;
}

.iin-ref-shell .tab-btn.active::before {
  content: none;
}

.iin-ref-shell .tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.iin-ref-shell .tab-icon svg {
  width: 100%;
  height: 100%;
}

.iin-ref-shell .tab-btn.active .tab-icon {
  color: #BFE3FF !important;
}

.iin-ref-shell .sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 12px 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.iin-ref-shell .sidebar-user-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  justify-content: center;
}

.iin-ref-shell .sidebar-user-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.iin-ref-shell .sidebar-user-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.10) !important;
  border: 0;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none !important;
  cursor: pointer;
  width: 50px;
  height: 50px;
}

.iin-ref-shell .sidebar-user-avatar.has-photo,
.iin-ref-shell .topbar-avatar.has-photo,
.iin-ref-shell .iin-topbar-avatar.has-photo {
  color: transparent !important;
  font-size: 0 !important;
}

.iin-ref-shell .sidebar-user-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.iin-ref-shell .sidebar-user-copy strong {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.iin-ref-shell .sidebar-user-copy span {
  color: rgba(232, 238, 247, 0.6);
  font-size: 0.7rem;
}

.iin-ref-shell .sidebar-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iin-ref-shell #sidebarPhotoBtn.sidebar-photo-btn {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 4;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 0 !important;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  border: 1px solid rgba(222, 228, 238, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #8f1833 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;
  cursor: pointer;
  pointer-events: auto;
  line-height: 1 !important;
  font-size: 0 !important;
  flex: 0 0 14px !important;
  overflow: hidden !important;
  appearance: none;
  -webkit-appearance: none;
}

.iin-ref-shell #sidebarPhotoBtn.sidebar-photo-btn:hover {
  background: #fff5f7 !important;
  color: #7a122a !important;
}

.iin-ref-shell #sidebarPhotoBtn.sidebar-photo-btn svg {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  flex: 0 0 auto;
  display: block !important;
}

.iin-ref-shell #logoutBtn.sidebar-logout-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  color: rgba(232, 238, 247, 0.54) !important;
  box-shadow: none !important;
}

.iin-ref-shell #logoutBtn.sidebar-logout-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* Shell-main: compensa sidebar fixa */
.iin-ref-shell .shell-main,
.iin-ref-shell .iin-ref-main {
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  will-change: margin-left;
}

body[data-sidebar="collapsed"] .iin-ref-shell .shell-main,
body[data-sidebar="collapsed"] .iin-ref-shell .iin-ref-main {
  margin-left: 64px !important;
  width: calc(100% - 64px) !important;
}

/* Nav da sidebar ocupa o espaço restante e rola */
.iin-ref-shell .app-sidebar .tabs-bar.app-nav {
  flex: 1 1 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  min-height: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
}

.iin-ref-shell .app-sidebar .tabs-bar.app-nav::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.iin-ref-shell .app-sidebar .tabs-bar.app-nav::-webkit-scrollbar-thumb,
.iin-ref-shell .app-sidebar .tabs-bar.app-nav::-webkit-scrollbar-track {
  background: transparent !important;
}

.iin-ref-shell .top-fixed,
.iin-ref-shell .iin-ref-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 35;
  padding: 0 !important;
  background: rgba(28,45,72,0.58) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  border-left: 0 !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  box-shadow: none !important;
}

.iin-ref-shell .hero,
.iin-ref-shell .iin-ref-topbar {
  min-height: 48px;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.iin-ref-shell .hero::before {
  display: none !important;
}

.iin-ref-shell .hero-inner,
.iin-ref-shell .iin-ref-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 14px 0 18px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.iin-ref-shell .topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.iin-ref-shell .topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.iin-ref-shell .topbar-breadcrumb-root,
.iin-ref-shell .topbar-breadcrumb-page {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.iin-ref-shell .topbar-breadcrumb-root {
  color: rgba(230, 237, 246, 0.56);
}

.iin-ref-shell .topbar-breadcrumb-page {
  color: rgba(248, 250, 252, 0.92);
}

.iin-ref-shell .topbar-breadcrumb-sep {
  width: 14px;
  height: 14px;
  color: rgba(230, 237, 246, 0.38);
}

.iin-ref-shell .topbar-breadcrumb-sep svg {
  width: 100%;
  height: 100%;
}

.iin-ref-shell .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iin-ref-shell .topbar-action-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 999px;
  background: transparent !important;
  color: rgba(242, 245, 249, 0.62) !important;
  box-shadow: none !important;
}

.iin-ref-shell .topbar-action-btn svg {
  width: 18px;
  height: 18px;
}

.iin-ref-shell .topbar-alert-btn {
  position: relative;
}

.iin-ref-shell .topbar-alert-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cf4c72;
}

.iin-ref-shell .topbar-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(170, 79, 109, 0.62) 0%, rgba(210, 167, 181, 0.42) 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ===== TOPBAR NOVA (iin-topbar) ===== */
.iin-ref-shell .iin-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 48px;
  min-height: 48px;
  background: rgba(28,45,72,0.58) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-left: 0 !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  display: flex;
  align-items: center;
  box-shadow: none !important;
}

.iin-ref-shell .iin-topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 14px;
  gap: 16px;
}

.iin-ref-shell .iin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.iin-ref-shell .iin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iin-ref-shell .iin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
}

.iin-ref-shell .iin-breadcrumb-root {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(230, 237, 246, 0.5);
  white-space: nowrap;
}

.iin-ref-shell .iin-breadcrumb svg {
  color: rgba(230, 237, 246, 0.35);
  flex-shrink: 0;
}

.iin-ref-shell .iin-breadcrumb-page {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.9);
  white-space: nowrap;
}

.iin-ref-shell .iin-topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 241, 248, 0.12) !important;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(241, 245, 249, 0.9) !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(7, 12, 23, 0.16) !important;
  opacity: 1 !important;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.iin-ref-shell .iin-topbar-icon-btn svg {
  color: currentColor;
  opacity: 1;
}

.iin-ref-shell .header-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.iin-ref-shell .header-icon-svg svg {
  width: 20px;
  height: 20px;
  display: block;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.iin-ref-shell .header-icon-svg .my-path {
  vector-effect: non-scaling-stroke;
}

.iin-ref-shell .iin-topbar-icon-btn .header-search__icon,
.iin-ref-shell .iin-topbar-icon-btn .header-notifications__icon {
  pointer-events: none;
}

.iin-ref-shell .iin-topbar-icon-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px);
}

.iin-ref-shell .iin-topbar-bell {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.iin-ref-shell .iin-topbar-bell {
  position: relative;
}

.iin-ref-shell .iin-topbar-bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cf4c72;
  box-shadow: 0 0 0 3px rgba(23, 35, 56, 0.92);
}

.iin-ref-shell .iin-topbar-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(143, 24, 51, 0.88) 0%, rgba(204, 145, 164, 0.58) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: default;
  margin-left: 2px;
  box-shadow: 0 10px 26px rgba(8, 15, 28, 0.22);
}

.iin-ref-shell .iin-topbar-right {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.iin-ref-shell .iin-topbar-search-btn,
.iin-ref-shell .iin-topbar-bell {
  position: relative;
}

.iin-ref-shell .iin-topbar-notification-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #13273d;
  background: linear-gradient(135deg, #cf4c72 0%, #e97d98 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px rgba(188, 70, 103, 0.35);
}

.iin-ref-shell .iin-topbar-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 44px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(40, 52, 70, 0.96) 0%, rgba(24, 33, 47, 0.98) 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 50;
}

.iin-ref-shell .iin-topbar-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 58px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(40, 52, 70, 0.97);
  border-left: 1px solid rgba(255,255,255,0.14);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.iin-ref-shell .iin-topbar-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.iin-ref-shell .iin-topbar-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.iin-ref-shell .iin-topbar-panel-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230,238,248,0.70);
}

.iin-ref-shell .iin-topbar-panel-link {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.iin-ref-shell .iin-topbar-panel-link:hover {
  color: #fff;
  opacity: 1;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.16);
}

.iin-ref-shell .iin-topbar-panel-list {
  overflow: auto;
  padding: 12px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 183, 204, 0.38) transparent;
}

.iin-ref-shell .iin-topbar-panel-list::-webkit-scrollbar {
  width: 8px;
}

.iin-ref-shell .iin-topbar-panel-list::-webkit-scrollbar-track {
  background: transparent;
}

.iin-ref-shell .iin-topbar-panel-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(167, 183, 204, 0.32);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.iin-ref-shell .iin-topbar-panel-list::-webkit-scrollbar-thumb:hover {
  background: rgba(186, 202, 224, 0.44);
  background-clip: padding-box;
}

.iin-ref-shell .iin-topbar-panel-section {
  margin-bottom: 12px;
}

.iin-ref-shell .iin-topbar-panel-section-label {
  display: block;
  padding: 8px 12px 7px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(230,238,248,0.62);
}

.iin-ref-shell .iin-topbar-item,
.iin-ref-shell .iin-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  padding: 13px 14px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.iin-ref-shell .iin-topbar-item + .iin-topbar-item,
.iin-ref-shell .iin-search-result + .iin-search-result {
  margin-top: 10px;
}

.iin-ref-shell .iin-topbar-item:hover,
.iin-ref-shell .iin-search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 10px 24px rgba(3, 8, 18, 0.18);
}

.iin-ref-shell .iin-topbar-item.is-passive {
  cursor: default;
}

.iin-ref-shell .iin-topbar-item.is-passive:hover {
  transform: none;
}

.iin-ref-shell .iin-topbar-item-icon,
.iin-ref-shell .iin-search-result-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.iin-ref-shell .iin-topbar-item-icon[data-tone="info"],
.iin-ref-shell .iin-search-result-icon[data-tone="info"] {
  color: #8fc4ff;
  background: rgba(143,196,255,0.12);
  border-color: rgba(143,196,255,0.18);
}

.iin-ref-shell .iin-topbar-item-icon[data-tone="warn"],
.iin-ref-shell .iin-search-result-icon[data-tone="warn"] {
  color: #d8b37a;
  background: rgba(216,179,122,0.12);
  border-color: rgba(216,179,122,0.18);
}

.iin-ref-shell .iin-topbar-item-icon[data-tone="ok"],
.iin-ref-shell .iin-search-result-icon[data-tone="ok"] {
  color: #8ccfae;
  background: rgba(140,207,174,0.12);
  border-color: rgba(140,207,174,0.18);
}

.iin-ref-shell .iin-topbar-item-copy,
.iin-ref-shell .iin-search-result-copy {
  min-width: 0;
}

.iin-ref-shell .iin-topbar-item-title,
.iin-ref-shell .iin-search-result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.iin-ref-shell .iin-topbar-item-time,
.iin-ref-shell .iin-search-result-kicker {
  flex-shrink: 0;
  font-size: 0.69rem;
  font-weight: 600;
  color: rgba(230,238,248,0.68);
}

.iin-ref-shell .iin-topbar-item-detail,
.iin-ref-shell .iin-search-result-detail {
  margin-top: 5px;
  color: rgba(255,255,255,0.92);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.5;
}

.iin-ref-shell .iin-topbar-item-meta {
  margin-top: 7px;
  color: rgba(230,238,248,0.78);
  font-size: 0.69rem;
}

.iin-ref-shell .iin-topbar-panel-empty,
.iin-ref-shell .iin-search-empty {
  padding: 28px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
}

.iin-ref-shell #tab-chamada .attendance-admin-hero,
.iin-ref-shell #tab-chamada .attendance-premium-hero {
  border: 1px solid rgba(203, 214, 228, 0.88) !important;
  background: linear-gradient(135deg, rgba(235, 241, 248, 0.98) 0%, rgba(224, 233, 243, 0.98) 100%) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06) !important;
  color: #18314d !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-hero h2,
.iin-ref-shell #tab-chamada .attendance-premium-hero h2 {
  color: #17314a !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-hero p,
.iin-ref-shell #tab-chamada .attendance-premium-hero p {
  color: #5f738a !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-hero__kicker,
.iin-ref-shell #tab-chamada .attendance-admin-hero__pill {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(198, 210, 225, 0.9) !important;
  color: #51667d !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-summary {
  gap: 12px;
}

.iin-ref-shell #tab-chamada .attendance-admin-card {
  border-color: rgba(211, 221, 232, 0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-card--executive,
.iin-ref-shell #tab-chamada .attendance-admin-card--focus {
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.99) 0%, rgba(235, 242, 249, 0.99) 100%) !important;
  border-color: rgba(196, 208, 223, 0.92) !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-card--executive .attendance-admin-card__label,
.iin-ref-shell #tab-chamada .attendance-admin-card--executive .attendance-admin-card__value,
.iin-ref-shell #tab-chamada .attendance-admin-card--executive .attendance-admin-card__detail {
  color: #16304b !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-card__icon {
  background: rgba(255, 255, 255, 0.78) !important;
  color: #4d6684 !important;
}

.iin-ref-shell #tab-chamada .attendance-admin-card__badge {
  background: rgba(236, 241, 247, 0.92) !important;
  color: #617486 !important;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel,
.iin-ref-shell #tab-chamada .attendance-search-panel,
.iin-ref-shell #tab-chamada .attendance-board-panel {
  border-radius: 24px;
}

.iin-ref-shell #tab-chamada .attendance-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .attendance-panel-head > div,
.iin-ref-shell #tab-chamada .attendance-search-panel .attendance-panel-head > div,
.iin-ref-shell #tab-chamada .attendance-board-panel .attendance-panel-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .attendance-panel-head h2,
.iin-ref-shell #tab-chamada .attendance-setup-panel .attendance-panel-subtitle,
.iin-ref-shell #tab-chamada .attendance-search-panel .attendance-panel-head h2,
.iin-ref-shell #tab-chamada .attendance-board-panel .attendance-panel-subtitle,
.iin-ref-shell #tab-chamada .attendance-final-copy strong {
  font-size: 0;
  line-height: 0;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .attendance-panel-head h2::after {
  content: "Configuração da aula";
  font-size: 1.02rem;
  line-height: 1.2;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .attendance-panel-subtitle::after {
  content: "Preencha os dados da aula para liberar a lista de presença.";
  font-size: 0.82rem;
  line-height: 1.45;
}

.iin-ref-shell #tab-chamada .attendance-search-panel .attendance-panel-head h2::after {
  content: "Busca rápida";
  font-size: 1.02rem;
  line-height: 1.2;
}

.iin-ref-shell #tab-chamada .attendance-board-panel .attendance-panel-subtitle::after {
  content: "Toque para marcar presença, falta ou justificativa.";
  font-size: 0.82rem;
  line-height: 1.45;
}

.iin-ref-shell #tab-chamada .attendance-final-copy strong::after {
  content: "Concluir lista de presença";
  font-size: 0.98rem;
  line-height: 1.25;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 16px;
  row-gap: 14px;
  padding-top: 12px;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  font-size: 0;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label::before {
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 900;
  color: #1a2d47;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label:nth-child(1)::before {
  content: "Data da aula *";
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label:nth-child(2)::before {
  content: "Turma / Horário *";
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label:nth-child(3)::before {
  content: "Instrutor *";
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label:nth-child(4)::before {
  content: "Monitor *";
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label > input,
.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label > select,
.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label > span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid > label > span.field-help {
  font-size: 0.76rem;
}

.iin-ref-shell #tab-chamada .attendance-setup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.iin-ref-shell #tab-chamada .attendance-setup-actions .primary {
  width: auto;
  min-width: 220px;
  padding-inline: 18px;
  box-shadow: none;
}

.iin-ref-shell #tab-chamada #professorClassStatus {
  margin-top: 10px;
}

.iin-ref-shell #tab-chamada .attendance-board-panel {
  padding-top: 18px;
}

.iin-ref-shell #tab-chamada #attendanceProgressBadge {
  align-self: flex-start;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 34, 58, 0.06);
  border: 1px solid rgba(180, 194, 212, 0.72);
  color: #50657e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.iin-ref-shell #tab-chamada .nucleus-board {
  gap: 12px;
  padding-top: 10px;
}

.iin-ref-shell #tab-chamada .attendance-class-shell {
  gap: 10px;
  padding: 12px 12px 6px;
}

.iin-ref-shell #tab-chamada .attendance-student-list {
  gap: 8px;
}

.iin-ref-shell #tab-chamada .attendance-student-card {
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
}

.iin-ref-shell #tab-chamada .student-card-body {
  gap: 3px;
}

.iin-ref-shell #tab-chamada .student-class-info,
.iin-ref-shell #tab-chamada .student-contact,
.iin-ref-shell #tab-chamada .student-status {
  line-height: 1.4;
}

.iin-ref-shell #tab-chamada .student-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(300px, 100%);
  gap: 8px;
}

.iin-ref-shell #tab-chamada .student-actions button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border-width: 1px;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.iin-ref-shell #tab-chamada .btn-present {
  background: rgba(223, 242, 231, 0.92);
  border-color: rgba(109, 170, 132, 0.28);
  color: #2e6d4f;
}

.iin-ref-shell #tab-chamada .btn-absent {
  background: rgba(249, 227, 231, 0.92);
  border-color: rgba(203, 118, 135, 0.26);
  color: #9c3f52;
}

.iin-ref-shell #tab-chamada .btn-justified {
  background: rgba(227, 237, 250, 0.94);
  border-color: rgba(120, 151, 212, 0.28);
  color: #3e659f;
}

.iin-ref-shell #tab-chamada .student-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  filter: none;
}

.iin-ref-shell #tab-chamada .student-actions button.is-selected {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.iin-ref-shell #tab-chamada .attendance-visitor-block {
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: rgba(248, 246, 253, 0.74);
}

.iin-ref-shell #tab-chamada .attendance-visitor-summary {
  align-items: center;
  gap: 10px;
}

.iin-ref-shell #tab-chamada .attendance-visitor-summary .badge {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 0.7rem;
}

.iin-ref-shell #tab-chamada .attendance-final-bar {
  margin-top: 14px;
  padding: 12px 14px !important;
}

@media (max-width: 820px) {
  .iin-ref-shell #tab-chamada .attendance-setup-panel .teacher-record-grid {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell #tab-chamada .attendance-setup-actions {
    justify-content: stretch;
  }

  .iin-ref-shell #tab-chamada .attendance-setup-actions .primary {
    width: 100%;
    min-width: 0;
  }

  .iin-ref-shell #tab-chamada .attendance-panel-head {
    align-items: stretch;
  }

  .iin-ref-shell #tab-chamada .student-actions {
    width: 100%;
  }
}

.iin-ref-shell #tab-dashboard .dashboard-hero__meta {
  border: 1px solid rgba(205, 214, 224, 0.9) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 248, 251, 0.96) 100%) !important;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.iin-ref-shell #tab-dashboard #dashboardExecutiveProject {
  color: #17263d !important;
}

.iin-ref-shell #tab-dashboard #dashboardExecutiveSummaryLead {
  color: #526377 !important;
}

.iin-ref-shell #tab-dashboard .dashboard-hero__badge {
  background: rgba(143, 24, 51, 0.08) !important;
  border: 1px solid rgba(143, 24, 51, 0.14) !important;
  color: #8f1833 !important;
  box-shadow: none !important;
}

.iin-ref-shell .iin-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
}

.iin-ref-shell .iin-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 25, 0.54);
  backdrop-filter: blur(8px);
}

.iin-ref-shell .iin-search-dialog {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  margin: 84px auto 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(236, 241, 248, 0.12);
  background: radial-gradient(circle at top right, rgba(207, 76, 114, 0.15), transparent 34%), linear-gradient(180deg, rgba(18, 35, 56, 0.97) 0%, rgba(13, 26, 43, 0.99) 100%);
  box-shadow: 0 36px 90px rgba(5, 11, 20, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.iin-ref-shell .iin-search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(236, 241, 248, 0.08);
}

.iin-ref-shell .iin-search-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.92);
}

.iin-ref-shell .iin-search-copy {
  min-width: 0;
}

.iin-ref-shell .header-search {
  min-width: 0;
}

.iin-ref-shell .header-search:not(.header-search--field),
.iin-ref-shell .header-notifications {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iin-ref-shell .header-search:not(.header-search--field) .header-search__icon,
.iin-ref-shell .header-notifications__icon {
  color: rgba(255, 255, 255, 0.96);
}

.iin-ref-shell .header-search--field {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(236, 241, 248, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.iin-ref-shell .header-search--field:focus-within {
  border-color: rgba(212, 17, 17, 0.42);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 17, 17, 0.1);
}

.iin-ref-shell .header-search--field .header-search__icon {
  color: rgba(255, 255, 255, 0.96);
}

.iin-ref-shell .header-search__input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.iin-ref-shell .header-search__input::placeholder {
  color: rgba(229, 236, 245, 0.4);
  font-weight: 500;
}

.iin-ref-shell .iin-search-copy > input {
  width: 100%;
  margin-top: 6px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.iin-ref-shell .iin-search-copy > input::placeholder {
  color: rgba(229, 236, 245, 0.4);
  font-weight: 500;
}

.iin-ref-shell .iin-search-close {
  min-width: 44px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(231, 237, 245, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
}

.iin-ref-shell .iin-search-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 0;
  color: rgba(215, 225, 239, 0.48);
  font-size: 0.73rem;
  font-weight: 600;
}

.iin-ref-shell .iin-search-results {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 14px 12px 16px;
}

.iin-ref-shell .iin-search-section-label {
  display: block;
  padding: 8px 10px 6px;
  color: rgba(215, 225, 239, 0.42);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iin-ref-shell .app-content,
.iin-ref-shell .iin-ref-content {
  width: 100%;
  max-width: none;
  padding: 24px 28px 40px !important;
  flex: 1;
}

.iin-ref-shell .tab-page,
.iin-ref-shell .iin-page {
  display: grid;
  gap: 22px;
  align-content: start;
  width: 100%;
  max-width: 1440px;
}

.iin-ref-shell .page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0 2px;
}

.iin-ref-shell .page-intro-copy {
  display: grid;
  gap: 8px;
}

.iin-ref-shell .page-eyebrow {
  margin: 0;
  color: var(--iin-wine);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.iin-ref-shell .page-title {
  margin: 0;
  color: var(--iin-text);
  font-size: clamp(1.85rem, 2.3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.iin-ref-shell .page-description {
  margin: 0;
  max-width: 840px;
  color: var(--iin-text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.iin-ref-shell .page-priority-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--iin-wine-soft);
  color: var(--iin-wine);
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.iin-ref-shell .iin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.iin-ref-shell .iin-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.iin-ref-shell .iin-stack-grid {
  display: grid;
  gap: 16px;
}

.iin-ref-shell .premium-card,
.iin-ref-shell .iin-card,
.iin-ref-shell .panel,
.iin-ref-shell .panel-lite,
.iin-ref-shell .table-wrapper,
.iin-ref-shell .metric-card,
.iin-ref-shell .student-card,
.iin-ref-shell .nucleus-column,
.iin-ref-shell .stock-card,
.iin-ref-shell .snack-card,
.iin-ref-shell .modal-content {
  background: var(--iin-surface) !important;
  border: 1px solid var(--iin-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--iin-shadow-sm) !important;
  backdrop-filter: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.iin-ref-shell .panel,
.iin-ref-shell .metric-card {
  padding: 20px !important;
}

.iin-ref-shell .premium-card {
  padding: 20px !important;
}

.iin-ref-shell .premium-card:hover,
.iin-ref-shell .iin-card:hover,
.iin-ref-shell .panel:hover,
.iin-ref-shell .panel-lite:hover,
.iin-ref-shell .metric-card:hover {
  box-shadow: var(--iin-shadow-md) !important;
  border-color: var(--iin-border-strong) !important;
}

.iin-ref-shell .panel::before,
.iin-ref-shell .panel::after {
  display: none !important;
}

.iin-ref-shell .kpi-icon-box {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.iin-ref-shell #tab-estoque .stock-kpi-card .kpi-icon-box--snacks {
  align-self: flex-start;
  margin-top: 0 !important;
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.98) 0%, rgba(236, 242, 248, 0.98)) !important;
  color: #4f6b8f !important;
  border: 1px solid rgba(212, 222, 236, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.iin-ref-shell #tab-estoque .stock-kpi-card .kpi-icon-box--snacks svg {
  width: 21px;
  height: 21px;
  transform: translateY(0.5px);
}

.iin-ref-shell #tab-estoque .stock-kpi-card .kpi-icon-box .stock-kpi-icon-image {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.iin-ref-shell .btn-wine,
.iin-ref-shell .primary,
.iin-ref-shell .small-btn {
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--iin-wine) 0%, #a22548 100%) !important;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(143, 24, 51, 0.2) !important;
}

.iin-ref-shell .btn-wine:hover,
.iin-ref-shell .primary:hover,
.iin-ref-shell .small-btn:hover {
  background: linear-gradient(135deg, #a22548 0%, #c14b6a 100%) !important;
  box-shadow: 0 6px 24px rgba(143, 24, 51, 0.3) !important;
  transform: translateY(-1px);
}

.iin-ref-shell .input-premium {
  background: #fff !important;
  border: 1.5px solid var(--iin-border) !important;
  border-radius: 10px !important;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--iin-text) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--iin-shadow-sm);
}

.iin-ref-shell .input-premium:focus {
  outline: none;
  border-color: rgba(143, 24, 51, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(143, 24, 51, 0.08), var(--iin-shadow-sm) !important;
}

.iin-ref-shell .table-premium {
  width: 100%;
  border-collapse: collapse;
}

.iin-ref-shell .table-premium thead th {
  background: #eef2f7;
  color: var(--iin-text);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--iin-border);
}

.iin-ref-shell .table-premium tbody td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(212, 219, 230, 0.7);
  transition: background 0.15s;
}

.iin-ref-shell .table-premium tbody tr:hover td {
  background: rgba(244, 246, 250, 0.6);
}

.iin-ref-shell .iin-card-head,
.iin-ref-shell .panel-title-row,
.iin-ref-shell .dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.iin-ref-shell .panel-title-row h2,
.iin-ref-shell .dashboard-title-stack h2,
.iin-ref-shell .panel-collapse-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--iin-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.iin-ref-shell .panel-title-row h2::before,
.iin-ref-shell .dashboard-title-stack h2::before,
.iin-ref-shell .panel-collapse-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--iin-wine) 0%, #bb4566 100%);
}

.iin-ref-shell .dashboard-panel-subtitle,
.iin-ref-shell .panel-collapse-sub,
.iin-ref-shell .metric-card-note,
.iin-ref-shell .fila-metric-note,
.iin-ref-shell .muted,
.iin-ref-shell .field-help {
  color: var(--iin-text-soft) !important;
}

.iin-ref-shell .metric-card {
  min-height: 198px;
  display: grid;
  gap: 28px;
}

.iin-ref-shell .metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.iin-ref-shell .metric-kicker,
.iin-ref-shell .fila-metric-kicker {
  color: #66768e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.iin-ref-shell .metric-card h3,
.iin-ref-shell .fila-metric-card h3 {
  margin: 0;
  color: var(--iin-text);
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  line-height: 0.96;
}

.iin-ref-shell .metric-card-icon,
.iin-ref-shell .fila-metric-icon,
.iin-ref-shell .stock-card-icon {
  width: 56px !important;
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid var(--iin-border) !important;
}

.iin-ref-shell .metric-card-icon-total {
  background: rgba(143, 24, 51, 0.08) !important;
  border-color: rgba(143, 24, 51, 0.12) !important;
  color: var(--iin-wine) !important;
}

.iin-ref-shell .metric-card-icon-present {
  background: rgba(35, 150, 99, 0.08) !important;
  border-color: rgba(35, 150, 99, 0.12) !important;
  color: var(--iin-success) !important;
}

.iin-ref-shell .metric-card-icon-absent {
  background: rgba(211, 138, 6, 0.08) !important;
  border-color: rgba(211, 138, 6, 0.12) !important;
  color: var(--iin-warning) !important;
}

.iin-ref-shell .metric-card-icon-kit {
  background: rgba(37, 131, 243, 0.08) !important;
  border-color: rgba(37, 131, 243, 0.12) !important;
  color: var(--iin-info) !important;
}

.iin-ref-shell .dashboard-toolbar-row,
.iin-ref-shell .iin-toolbar,
.iin-ref-shell .toolbar {
  display: flex !important;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.iin-ref-shell .toolbar.compact {
  gap: 10px;
}

.iin-ref-shell .iin-form-grid,
.iin-ref-shell .grid-form {
  display: grid !important;
  gap: 16px;
}

.iin-ref-shell .grid-form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iin-ref-shell .grid-form.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iin-ref-shell .grid-form.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iin-ref-shell .grid-form label,
.iin-ref-shell .toolbar label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--iin-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.iin-ref-shell input,
.iin-ref-shell select,
.iin-ref-shell textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: var(--iin-radius-sm) !important;
  border: 1px solid var(--iin-border) !important;
  background: #fff !important;
  color: var(--iin-text) !important;
  box-shadow: none !important;
}

.iin-ref-shell textarea {
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.iin-ref-shell input:focus,
.iin-ref-shell select:focus,
.iin-ref-shell textarea:focus {
  outline: none;
  border-color: rgba(143, 24, 51, 0.36) !important;
  box-shadow: 0 0 0 4px rgba(143, 24, 51, 0.08) !important;
}

.iin-ref-shell button,
.iin-ref-shell .primary,
.iin-ref-shell .ghost,
.iin-ref-shell .warn,
.iin-ref-shell .small-btn {
  min-height: 46px;
  border-radius: var(--iin-radius-sm) !important;
  font-weight: 600;
  box-shadow: none !important;
}

.iin-ref-shell .primary,
.iin-ref-shell .small-btn {
  background: linear-gradient(135deg, var(--iin-wine) 0%, #a22548 100%) !important;
  border: none !important;
  color: #fff !important;
}

.iin-ref-shell .ghost {
  background: #fff !important;
  border: 1px solid var(--iin-border) !important;
  color: var(--iin-text) !important;
}

.iin-ref-shell .warn {
  background: #fff4dc !important;
  border: 1px solid #f1d9a1 !important;
  color: #8b6111 !important;
}

.iin-ref-shell .badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3e8ee;
  border: none;
  color: var(--iin-wine);
  font-size: 0.78rem;
  font-weight: 700;
}

.iin-ref-shell #adminMestreTableBody .mestre-admin-status-stack {
  display: grid;
  gap: 0;
}

.iin-ref-shell #adminMestreTableBody .mestre-admin-status-stack .muted {
  display: none !important;
}

.iin-ref-shell .badge.mestre-chip--ok,
.iin-ref-shell .badge.mestre-chip--selected {
  background: linear-gradient(180deg, rgba(20, 122, 74, 0.16) 0%, rgba(20, 122, 74, 0.1) 100%) !important;
  border: 1px solid rgba(20, 122, 74, 0.18) !important;
  color: #147a4a !important;
}

.iin-ref-shell .badge.mestre-chip--pending {
  background: linear-gradient(180deg, rgba(192, 45, 62, 0.12) 0%, rgba(192, 45, 62, 0.08) 100%) !important;
  border: 1px solid rgba(192, 45, 62, 0.14) !important;
  color: #b42334 !important;
}

.iin-ref-shell #adminMestreContent.teacher-mestre-admin-content,
.iin-ref-shell #adminMestreContent {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.iin-ref-shell #adminMestreContent .mestre-admin-content-shell {
  display: grid;
  gap: 16px;
  padding: 18px 18px 8px;
  border: 1px solid #d9e1ec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.iin-ref-shell #adminMestreContent .mestre-admin-content-head {
  position: relative;
  padding-left: 18px;
}

.iin-ref-shell #adminMestreContent .mestre-admin-content-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8f1833 0%, #c4425f 100%);
}

.iin-ref-shell #adminMestreContent .mestre-admin-content-copy h3 {
  margin: 0;
  color: #081b3a;
  font-size: 1.05rem;
  font-weight: 700;
}

.iin-ref-shell #adminMestreContent .mestre-admin-content-copy p {
  margin: 6px 0 0;
  color: #61708a;
  font-size: 0.92rem;
}

.iin-ref-shell #teacherMestreAdminHost .mestre-admin-activity-shell {
  padding: 18px 18px 20px !important;
  border-radius: 24px !important;
  border: 1px solid #d9e1ec;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.iin-ref-shell #teacherMestreAdminHost .mestre-admin-activity-shell .panel-title-row {
  margin-bottom: 8px;
}

.iin-ref-shell #teacherMestreAdminHost .mestre-admin-activity-shell > .muted {
  margin: 0 0 16px;
}

.iin-ref-shell #adminMestreAccordion {
  display: grid;
  gap: 12px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-card {
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border: none;
  background: #ffffff;
  text-align: left;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef2f7;
  color: #7d8ca2;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-icon.is-active {
  background: #e6f4ee;
  color: #1f9d62;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-icon svg {
  width: 20px;
  height: 20px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-copy strong {
  color: #081b3a;
  font-size: 0.98rem;
  font-weight: 700;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-copy small {
  color: #61708a;
  font-size: 0.92rem;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-badge {
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-badge--active {
  background: #e6f4ee !important;
  color: #1f9d62 !important;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-badge--pending {
  background: #fff2dc !important;
  color: #d4860f !important;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-chevron {
  color: #6e7d95;
  transition: transform 0.2s ease;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-card.is-open .mestre-admin-month-chevron {
  transform: rotate(180deg);
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-chevron svg {
  width: 18px;
  height: 18px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-panel {
  padding: 18px 18px 18px;
  border-top: 1px solid #dfe5ef;
  background: #ffffff;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.iin-ref-shell #adminMestreAccordion label {
  display: grid;
  gap: 8px;
  color: #081b3a;
  font-size: 0.96rem;
  font-weight: 600;
}

.iin-ref-shell #adminMestreAccordion input[type="text"],
.iin-ref-shell #adminMestreAccordion select,
.iin-ref-shell #adminMestreAccordion textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #d7deea;
  border-radius: 14px;
  background: #ffffff;
  color: #4d5d78;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.iin-ref-shell #adminMestreAccordion textarea {
  min-height: 96px;
  resize: vertical;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-description {
  margin-bottom: 16px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-upload-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-upload-box {
  flex: 1 1 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 2px dashed #d2dae7;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-upload-icon {
  color: #7a879c;
  display: inline-flex;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-upload-icon svg {
  width: 18px;
  height: 18px;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-upload-name {
  color: #5d6d87;
  font-size: 0.96rem;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-actions .primary {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px !important;
}

.iin-ref-shell #adminMestreAccordion .mestre-admin-month-actions .ghost {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px !important;
  border: 1px solid #d7deea !important;
  background: #ffffff !important;
  color: #697993 !important;
}

.iin-ref-shell .iin-table-shell,
.iin-ref-shell .table-wrapper {
  overflow: hidden;
}

.iin-ref-shell .table-wrapper table {
  min-width: 840px;
  border-collapse: collapse;
}

.iin-ref-shell .table-wrapper th,
.iin-ref-shell .table-wrapper td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #e5ebf2;
}

.iin-ref-shell .table-wrapper th {
  background: #eef2f7 !important;
  color: var(--iin-text) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .iin-ref-shell #adminMestreAccordion .mestre-admin-month-form-grid {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell #adminMestreAccordion .mestre-admin-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .iin-ref-shell #adminMestreAccordion .mestre-admin-month-meta {
    gap: 8px;
  }

  .iin-ref-shell #adminMestreAccordion .mestre-admin-month-toggle {
    align-items: flex-start;
  }
}

.iin-ref-shell .table-wrapper tbody td {
  color: var(--iin-text);
}

.iin-ref-shell .table-wrapper tbody tr:hover td {
  background: #fafbfd !important;
}

.iin-ref-shell .iin-history-list,
.iin-ref-shell .history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.iin-ref-shell .history-list li {
  padding: 18px !important;
  border: 1px solid var(--iin-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.iin-ref-shell .iin-collapse,
.iin-ref-shell .collapsible-panel {
  overflow: hidden;
}

.iin-ref-shell .panel-collapse-toggle {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px !important;
  background: transparent !important;
  border: none !important;
}

.iin-ref-shell .panel-collapse-head {
  display: grid;
  gap: 4px;
  text-align: left;
}

.iin-ref-shell .panel-collapse-icon {
  width: 18px;
  height: 18px;
  color: var(--iin-text-soft);
}

.iin-ref-shell .panel-collapse-content {
  padding: 0 26px 26px !important;
}

.iin-ref-shell .dashboard-primary-grid,
.iin-ref-shell .dashboard-highlight-grid {
  display: grid;
  gap: 18px;
}

.iin-ref-shell #tab-fila .fila-metric-card {
  min-height: 170px;
  padding: 26px !important;
}

.iin-ref-shell .fila-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.iin-ref-shell .fila-metric-head > div {
  display: grid;
  gap: 10px;
}

.iin-ref-shell #filaBusca {
  padding-left: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%23718097' stroke-width='1.8'/%3E%3Cpath d='M16 16L20 20' stroke='%23718097' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px 50%;
}

.iin-ref-shell #tab-fila .fila-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.iin-ref-shell #tab-fila .fila-status-confirmou,
.iin-ref-shell #tab-fila .fila-status-matriculado {
  background: rgba(35, 150, 99, 0.12);
  color: var(--iin-success);
}

.iin-ref-shell #tab-fila .fila-status-contatado {
  background: rgba(211, 138, 6, 0.14);
  color: var(--iin-warning);
}

.iin-ref-shell #tab-fila .fila-status-novo,
.iin-ref-shell #tab-fila .fila-status-arquivado {
  background: rgba(143, 24, 51, 0.08);
  color: var(--iin-wine);
}

.iin-ref-shell #tab-fila .fila-actions.premium {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iin-ref-shell #tab-fila .fila-actions .action-btn,
.iin-ref-shell #tab-fila .fila-actions .fila-link-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px !important;
  font-size: 0.78rem;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) #attendanceReportBoard.attendance-summary-board {
  display: block !important;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-shell {
  border: 1px solid rgba(209, 219, 232, 0.98);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(235, 241, 248, 0.78), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 250, 253, 0.99) 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px 20px;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-copy {
  display: grid;
  gap: 10px;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-copy h3 {
  margin: 0;
  color: var(--iin-text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-copy p {
  margin: 0;
  color: #667892;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.6;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(143, 24, 51, 0.08);
  color: var(--iin-wine);
  border: 1px solid rgba(143, 24, 51, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table-shell {
  padding: 0 28px 28px;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 223, 235, 0.98);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table thead th {
  height: 56px;
  padding: 0 20px;
  background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  color: #415777;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tbody td,
.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tfoot td {
  padding: 18px 20px;
  border-top: 1px solid rgba(227, 233, 241, 0.95);
  color: var(--iin-text);
  font-size: 0.95rem;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tbody tr:first-child td {
  border-top: none;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tbody td:first-child,
.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tfoot td:first-child {
  font-weight: 700;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tbody tr:hover {
  background: rgba(247, 250, 253, 0.96);
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-table tfoot td {
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.94) 0%, rgba(243, 247, 252, 0.94) 100%);
  font-weight: 800;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-status--great {
  background: rgba(35, 150, 99, 0.12);
  color: #208a5a;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-status--warning {
  background: rgba(211, 138, 6, 0.16);
  color: #c57b00;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-status--critical {
  background: rgba(192, 45, 62, 0.1);
  color: #c02d3e;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .attendance-summary-status--neutral {
  background: rgba(54, 74, 102, 0.1);
  color: #405268;
}

.iin-ref-shell #tab-fila .fila-list-panel {
  margin-top: 12px;
  padding: 0 !important;
  border: 1px solid rgba(209, 219, 232, 0.95) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.98) 100%) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-toggle {
  min-height: 84px;
  padding: 22px 24px !important;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-head strong {
  display: block;
  color: var(--iin-text);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-sub {
  color: #70819a;
  font-size: 0.88rem;
  font-weight: 500;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
  border: 1px solid rgba(209, 219, 232, 0.95);
  color: #64748b;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.iin-ref-shell #tab-fila .fila-list-panel .panel-collapse-content {
  padding: 0 24px 24px !important;
}

.iin-ref-shell #tab-fila .fila-list-panel .fila-list-content-shell {
  border-top: 1px solid rgba(218, 226, 236, 0.9);
  padding-top: 18px;
}

.iin-ref-shell #tab-fila .fila-list-panel:not(.is-open) {
  padding-bottom: 0 !important;
}

.iin-ref-shell #tab-fila .fila-list-panel:not(.is-open) .panel-collapse-content {
  padding-bottom: 0 !important;
}

.iin-ref-shell #tab-estoque .stock-form-compact {
  display: flex !important;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  align-content: start;
}

.iin-ref-shell #tab-estoque .stock-form-compact label {
  flex: 1 1 180px;
}

.iin-ref-shell #tab-estoque .stock-cards-compact,
.iin-ref-shell #tab-estoque .snack-cards {
  display: grid;
  gap: 14px;
}

.iin-ref-shell #tab-estoque {
  gap: 24px;
}

.iin-ref-shell #tab-estoque .stock-kpi-grid {
  margin-bottom: 6px !important;
}

.iin-ref-shell #tab-estoque .stock-kpi-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  min-height: 168px;
  padding: 24px 24px 22px !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08) !important;
}

.iin-ref-shell #tab-estoque .stock-kpi-card .kpi-icon-box {
  margin-left: auto !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
}

.iin-ref-shell #tab-estoque .stock-kpi-card .page-eyebrow {
  margin-bottom: 14px;
}

.iin-ref-shell #tab-estoque .stock-kpi-card h3 {
  margin-bottom: 10px !important;
  font-size: 2.25rem !important;
  line-height: 1;
  letter-spacing: -0.03em;
}

.iin-ref-shell #tab-estoque .stock-kpi-card .muted {
  color: #5f7391 !important;
  font-size: 0.93rem !important;
}

.iin-ref-shell #tab-estoque .stock-section-head {
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.iin-ref-shell #tab-estoque .stock-section-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.iin-ref-shell #tab-estoque .stock-section-copy .muted {
  margin: 0 0 0 16px !important;
  color: #617695 !important;
  line-height: 1.45;
}

.iin-ref-shell #tab-estoque .stock-uniform-panel,
.iin-ref-shell #tab-estoque .stock-physical-panel,
.iin-ref-shell #tab-estoque .stock-adjust-panel,
.iin-ref-shell #tab-estoque .stock-snack-panel {
  overflow: hidden;
}

.iin-ref-shell #tab-estoque .stock-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px !important;
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.9) 0%, rgba(242, 246, 251, 0.8) 100%) !important;
}

.iin-ref-shell #tab-estoque .stock-search-wrap,
.iin-ref-shell #tab-estoque .stock-filter-wrap {
  display: flex;
}

.iin-ref-shell #tab-estoque .stock-search-wrap {
  position: relative;
  align-items: center;
  overflow: visible;
}

.iin-ref-shell #tab-estoque .stock-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  color: #718097;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iin-ref-shell #tab-estoque .stock-toolbar .input-premium,
.iin-ref-shell #tab-estoque .stock-toolbar select {
  min-height: 56px !important;
  border-radius: 16px !important;
  border-color: #d4ddea !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.iin-ref-shell #tab-estoque #uniformSearch {
  padding-left: 44px !important;
}

.iin-ref-shell #tab-estoque #uniformNucleusFilter {
  min-width: 220px !important;
}

.iin-ref-shell #tab-estoque .stock-uniform-table {
  border-radius: 0 0 22px 22px;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.iin-ref-shell #tab-estoque .stock-uniform-table table,
.iin-ref-shell #tab-estoque .stock-uniform-table tbody,
.iin-ref-shell #tab-estoque .stock-uniform-table tr,
.iin-ref-shell #tab-estoque .stock-uniform-table td {
  overflow: visible !important;
}

.iin-ref-shell #tab-estoque .stock-uniform-table table {
  width: 100%;
}

.iin-ref-shell #tab-estoque .stock-uniform-table thead th {
  height: 52px;
  background: #eef3f8 !important;
}

.iin-ref-shell #tab-estoque .stock-uniform-table tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}

.iin-ref-shell #tab-estoque .stock-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.iin-ref-shell #tab-estoque .stock-physical-panel,
.iin-ref-shell #tab-estoque .stock-adjust-panel {
  min-height: 100%;
}

.iin-ref-shell #tab-estoque .stock-physical-panel #stockView {
  display: grid !important;
  gap: 16px !important;
  padding: 22px 24px 24px !important;
}

.iin-ref-shell #tab-estoque .stock-card {
  padding: 16px 18px !important;
  border-radius: 18px !important;
  border: 1px solid #d9e2ee !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
  box-shadow: none !important;
}

.iin-ref-shell #tab-estoque .stock-card-head {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
}

.iin-ref-shell #tab-estoque .stock-card-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.iin-ref-shell #tab-estoque .stock-card-copy--premium {
  display: grid !important;
  gap: 10px !important;
}

.iin-ref-shell #tab-estoque .stock-card-copy__top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.iin-ref-shell #tab-estoque .stock-card-copy h4 {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #10213a !important;
}

.iin-ref-shell #tab-estoque .stock-card-toggle {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143, 24, 51, 0.08);
  color: #8f1833 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

.iin-ref-shell #tab-estoque .stock-size-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.iin-ref-shell #tab-estoque .stock-size-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.iin-ref-shell #tab-estoque .stock-size-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.iin-ref-shell #tab-estoque .stock-adjust-panel .stock-form-compact {
  padding: 22px 24px 24px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.iin-ref-shell #tab-estoque .stock-adjust-panel .stock-form-compact label {
  flex: none;
}

.iin-ref-shell #tab-estoque #stockGradeField {
  margin-top: -4px;
}

.iin-ref-shell #tab-estoque .item-delivery-controls-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

.iin-ref-shell #tab-estoque .item-delivery-select,
.iin-ref-shell #tab-estoque .item-delivery-size {
  min-height: 44px !important;
  border-radius: 14px !important;
}

.iin-ref-shell #tab-estoque .item-delivery-select {
  width: 220px !important;
  min-width: 220px !important;
  flex: 0 0 220px !important;
  padding-right: 36px !important;
}

.iin-ref-shell #tab-estoque .item-delivery-size {
  width: 160px !important;
  min-width: 160px !important;
  flex: 0 0 160px !important;
  margin-top: 0 !important;
  padding-right: 36px !important;
}

.iin-ref-shell #tab-estoque .item-delivery-availability {
  margin: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.4 !important;
}

.iin-ref-shell #tab-estoque .stock-adjust-panel .input-premium,
.iin-ref-shell #tab-estoque .stock-adjust-panel select,
.iin-ref-shell #tab-estoque .stock-adjust-panel input {
  min-height: 54px !important;
  border-radius: 16px !important;
  border-color: #d5deea !important;
}

.iin-ref-shell #tab-estoque .stock-adjust-panel .btn-wine {
  min-height: 52px;
  border-radius: 16px !important;
  box-shadow: 0 14px 26px rgba(143, 24, 51, 0.18);
}

.iin-ref-shell #tab-estoque .stock-snack-panel .snack-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr) !important;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-shell {
  display: grid;
  gap: 24px;
  padding: 28px 30px 30px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(212, 222, 236, 0.95) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%) !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08) !important;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type {
  display: grid;
  gap: 24px;
  padding: 30px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(210, 221, 236, 0.95) !important;
  background:
    radial-gradient(circle at top right, rgba(226, 234, 246, 0.75), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 254, 0.99) 100%) !important;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08) !important;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .panel-title-row {
  align-items: flex-start !important;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .panel-title-row h2 {
  margin: 0 !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.03em;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type > .muted {
  margin: -10px 0 0 !important;
  color: #60738f !important;
  line-height: 1.6;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .grid-form.three {
  gap: 18px !important;
  padding: 0 !important;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .toolbar {
  display: flex !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(216, 225, 238, 0.95) !important;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(244, 248, 253, 0.98) 100%) !important;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type #acompanhamentoBoard {
  display: grid;
  gap: 14px;
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .acompanhamento-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(215, 225, 238, 0.98);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.iin-ref-shell #tab-acompanhamento > .panel:first-of-type .acompanhamento-card .badge {
  background: rgba(119, 140, 173, 0.12) !important;
  color: #304667 !important;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel {
  padding: 30px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(210, 221, 236, 0.95) !important;
  background:
    radial-gradient(circle at top right, rgba(226, 234, 246, 0.75), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 254, 0.99) 100%) !important;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08) !important;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .panel-title-row {
  align-items: flex-start !important;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .panel-title-row h2 {
  margin: 0 !important;
  font-size: 1.18rem !important;
  letter-spacing: -0.03em;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel > .muted {
  margin: 12px 0 0 !important;
  color: #617695 !important;
  line-height: 1.6;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-shell {
  gap: 20px;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary {
  gap: 12px;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card--accent {
  backdrop-filter: blur(8px);
  min-height: 112px;
  padding: 14px 15px 13px;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-nucleus-shell,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-collaborator-shell {
  border-radius: 22px;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-section-head h3 {
  font-size: 1rem;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-table-shell {
  border-radius: 20px;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-table thead th {
  backdrop-filter: blur(6px);
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card strong,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card--accent strong {
  color: #101828;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card span,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card--accent span,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-section-head p,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-collaborator-cell span {
  color: #667085;
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-summary-card--accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 249, 251, 0.99) 100%);
  border-color: rgba(228, 231, 236, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-nucleus-card,
.iin-ref-shell #tab-acompanhamento #acompanhamentoEadPanel .ead-monitor-table-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(249, 250, 252, 0.985) 100%);
}

.iin-ref-shell #tab-acompanhamento .methodology-print-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-copy .panel-title-row {
  align-items: flex-start !important;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-copy .panel-title-row h2 {
  margin: 0 !important;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-copy .muted {
  margin: 0 !important;
  color: #617695 !important;
  line-height: 1.55;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) #printCustomBox {
  padding: 20px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(214, 223, 235, 0.96) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.98) 100%) !important;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05) !important;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .print-fields-grid {
  gap: 12px 14px !important;
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .print-field-option {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(216, 225, 236, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.iin-ref-shell :is(#tab-relatorios, #tab-acompanhamento) .print-field-option__label {
  color: #24364a;
}

.iin-ref-shell #tab-acompanhamento #checklistPrintStatus {
  font-size: 0.92rem;
  color: #3b547a !important;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 20px 20px 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(209, 219, 232, 0.98);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.iin-ref-shell #tab-acompanhamento .methodology-print-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-card-copy h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-card-copy h3::before {
  content: none !important;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-meta {
  margin: 0;
  color: #5f7391;
  font-size: 0.94rem;
  line-height: 1.45;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-btn {
  min-width: 122px;
  height: 48px;
  padding: 0 18px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(205, 215, 228, 0.98) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #10213a !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 198, 214, 1) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.iin-ref-shell #tab-acompanhamento .methodology-print-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.iin-ref-shell #tab-acompanhamento .methodology-print-staging {
  display: none !important;
}

@media (max-width: 900px) {
  .iin-ref-shell #tab-acompanhamento .methodology-print-cards {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell #tab-acompanhamento .methodology-print-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .iin-ref-shell #tab-acompanhamento .methodology-print-btn {
    width: 100%;
  }
}

.iin-ref-shell #tab-admin {
  display: grid;
  gap: 14px;
}

.iin-ref-shell #tab-admin .admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.iin-ref-shell #tab-admin .admin-kpi-card {
  min-height: 158px;
  padding: 18px 20px !important;
  border-radius: 20px !important;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05) !important;
}

.iin-ref-shell #tab-admin .admin-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.iin-ref-shell #tab-admin .admin-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid #d9e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.iin-ref-shell #tab-admin .admin-kpi-icon--wine { color: var(--iin-wine); }
.iin-ref-shell #tab-admin .admin-kpi-icon--success { color: #2aa36a; }
.iin-ref-shell #tab-admin .admin-kpi-icon--info { color: #2f7df4; }
.iin-ref-shell #tab-admin .admin-kpi-icon--gold { color: #c5933c; }

.iin-ref-shell #tab-admin .admin-kpi-value {
  margin: 0 0 4px !important;
  font-size: 1.75rem !important;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0f2039;
}

.iin-ref-shell #tab-admin .admin-kpi-note {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #617695 !important;
}

.iin-ref-shell #tab-admin .admin-section-card {
  overflow: hidden;
  padding: 0 !important;
  border-radius: 20px !important;
}

.iin-ref-shell #tab-admin .admin-section-card + .admin-section-card {
  margin-top: 0 !important;
}

.iin-ref-shell #tab-admin .admin-section-card > .panel-collapse-content,
.iin-ref-shell #tab-admin .admin-section-card:not(#usersPanel) > .panel-collapse-content {
  padding: 20px 22px 22px !important;
  border-top: 1px solid #dbe4ef;
}

.iin-ref-shell #tab-admin .admin-section-card:not(.is-open) > .panel-collapse-content {
  border-top-color: transparent;
}

.iin-ref-shell #tab-admin .admin-section-card > .admin-section-toggle,
.iin-ref-shell #tab-admin .admin-section-toggle {
  width: 100%;
  min-height: 84px;
  height: 84px;
  padding: 18px 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.iin-ref-shell #tab-admin .admin-section-card > .admin-section-toggle:hover,
.iin-ref-shell #tab-admin .admin-section-toggle:hover {
  background: rgba(245, 247, 251, 0.72);
}

.iin-ref-shell #tab-admin .admin-section-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.iin-ref-shell #tab-admin .admin-section-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(143, 24, 51, 0.08);
  color: var(--iin-wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.iin-ref-shell #tab-admin .admin-section-copy {
  display: grid;
  gap: 3px;
  text-align: left;
  min-width: 0;
  align-content: center;
}

.iin-ref-shell #tab-admin .admin-section-copy h2 {
  margin: 0 !important;
  font-size: 0.99rem !important;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iin-ref-shell #tab-admin .admin-section-copy h2::before {
  content: none !important;
}

.iin-ref-shell #tab-admin .admin-section-copy .panel-collapse-sub {
  margin: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iin-ref-shell #tab-admin .admin-section-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  justify-content: end;
  min-width: 112px;
  height: 100%;
}

.iin-ref-shell #tab-admin .admin-badge-wine {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  background: rgba(143, 24, 51, 0.08);
  color: var(--iin-wine);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  white-space: nowrap;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode #adminAulasRegistryHost {
  display: grid;
  gap: 18px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode #eadRoot {
  display: none !important;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-unified-panel {
  margin-top: 0 !important;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-unified-panel .panel-title-row {
  margin-bottom: 18px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-unified-panel .panel-collapse-content,
.iin-ref-shell #tab-admin .admin-ead-unified-panel .panel-collapse-content {
  display: grid;
  gap: 18px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-unified-form,
.iin-ref-shell #tab-admin .admin-ead-unified-form {
  gap: 16px 18px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-summary-shell,
.iin-ref-shell #tab-admin .admin-ead-summary-shell {
  display: grid;
  gap: 16px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-summary-head,
.iin-ref-shell #tab-admin .admin-ead-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-summary-head h3,
.iin-ref-shell #tab-admin .admin-ead-summary-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0b2348;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-summary-head p,
.iin-ref-shell #tab-admin .admin-ead-summary-head p {
  margin: 4px 0 0;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-grid,
.iin-ref-shell #tab-admin .admin-ead-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-card,
.iin-ref-shell #tab-admin .admin-ead-kpi-card {
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-copy,
.iin-ref-shell #tab-admin .admin-ead-kpi-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-label,
.iin-ref-shell #tab-admin .admin-ead-kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #6c7d96;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-copy strong,
.iin-ref-shell #tab-admin .admin-ead-kpi-copy strong {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  color: #0b2348;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-copy p,
.iin-ref-shell #tab-admin .admin-ead-kpi-copy p {
  margin: 0;
  color: #5a7094;
  font-size: 0.92rem;
  line-height: 1.4;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-icon,
.iin-ref-shell #tab-admin .admin-ead-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f1833;
  background: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}

.iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-icon svg,
.iin-ref-shell #tab-admin .admin-ead-kpi-icon svg {
  width: 19px;
  height: 19px;
  max-width: 19px;
  max-height: 19px;
}

@media (max-width: 1100px) {
  .iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-grid,
  .iin-ref-shell #tab-admin .admin-ead-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .iin-ref-shell #tab-aulas.aulas-admin-mode .admin-ead-kpi-grid,
  .iin-ref-shell #tab-admin .admin-ead-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.iin-ref-shell #tab-aulas #eadRoot .admin-ead-week-group {
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.iin-ref-shell #tab-aulas #eadRoot #aulasGrid {
  display: grid;
  gap: 14px;
}

.iin-ref-shell #tab-aulas #eadRoot .admin-ead-week-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e5edf6;
  background: #fbfdff;
}

.iin-ref-shell #tab-aulas #eadRoot .admin-ead-week-item-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.iin-ref-shell #tab-aulas #eadRoot .admin-ead-week-item-copy strong {
  color: #0b2348;
  font-size: 0.98rem;
}

.iin-ref-shell #tab-aulas #eadRoot .admin-ead-week-item-copy p {
  margin: 0;
  color: #3f5577;
  line-height: 1.45;
}

.iin-ref-shell #tab-admin .admin-section-toggle .panel-collapse-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(205, 215, 228, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  color: #70819a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
}

.iin-ref-shell #tab-admin .admin-section-toggle .panel-collapse-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.iin-ref-shell #tab-admin .admin-section-card.is-open .admin-section-toggle .panel-collapse-icon {
  background: linear-gradient(180deg, #fff7f8 0%, #f4f7fb 100%);
  border-color: rgba(190, 202, 220, 0.95);
}

.iin-ref-shell #tab-admin .admin-users-stack {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
  border-top: 1px solid #dbe4ef;
}

.iin-ref-shell #tab-admin .admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.iin-ref-shell #tab-admin .admin-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
  max-width: 482px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d5deea;
  background: #fff;
  color: #74839a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.iin-ref-shell #tab-admin .admin-search-shell input {
  width: 100%;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 0.95rem;
  color: #162847 !important;
}

.iin-ref-shell #tab-admin .admin-user-create-btn {
  min-height: 50px;
  padding: 0 24px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px !important;
}

.iin-ref-shell #tab-admin .admin-user-create-btn.is-open {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 14px 24px rgba(143, 24, 51, 0.24) !important;
}

.iin-ref-shell #tab-admin .admin-user-form-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #d9e2ee;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.iin-ref-shell #tab-admin .admin-user-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.iin-ref-shell #tab-admin .admin-users-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d9e2ee;
}

.iin-ref-shell #tab-admin .admin-users-table-wrap thead th {
  height: 54px;
  background: #eef3f8 !important;
}

.iin-ref-shell #tab-admin .admin-users-table-wrap tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
  vertical-align: middle;
}

.iin-ref-shell #tab-admin .admin-users-table-wrap tbody td.admin-row-actions-cell,
.iin-ref-shell #tab-admin .admin-users-table-wrap thead th:last-child {
  width: 108px;
  min-width: 108px;
  text-align: right;
  white-space: nowrap;
}

.iin-ref-shell #tab-admin .admin-user-email {
  color: #667a98;
}

.iin-ref-shell #tab-admin .admin-role-badge,
.iin-ref-shell #tab-admin .admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.iin-ref-shell #tab-admin .admin-role-badge--admin {
  background: rgba(143, 24, 51, 0.08);
  color: var(--iin-wine);
}

.iin-ref-shell #tab-admin .admin-role-badge--gestao {
  background: rgba(201, 147, 60, 0.12);
  color: #9b6c18;
}

.iin-ref-shell #tab-admin .admin-role-badge--supervisao {
  background: rgba(83, 102, 125, 0.12);
  color: #55677e;
}

.iin-ref-shell #tab-admin .admin-role-badge--professor {
  background: rgba(47, 125, 244, 0.1);
  color: #2f7df4;
}

.iin-ref-shell #tab-admin .admin-status-badge--active {
  background: rgba(42, 163, 106, 0.12);
  color: #239560;
}

.iin-ref-shell #tab-admin .admin-status-badge--inactive {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.iin-ref-shell #tab-admin .admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(205, 214, 226, 0.9);
  background: rgba(246, 248, 252, 0.9);
  color: #5e6d84 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn:hover:not(:disabled) {
  background: #eef3f8;
  border-color: #c6d2e1;
  color: #183355 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.iin-ref-shell #tab-admin .admin-row-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  stroke: currentColor;
  opacity: 1 !important;
  visibility: visible !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn svg path {
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn--edit {
  color: #5e6d84 !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn--delete {
  color: #5e6d84 !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn--edit:hover:not(:disabled) {
  background: #edf3fb;
  border-color: #c9d6e8;
  color: #213b62 !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn--delete:hover:not(:disabled) {
  background: #fff1f3;
  border-color: #f2c8cf;
  color: #b42334 !important;
}

.iin-ref-shell #tab-admin .admin-row-icon-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .iin-ref-shell #tab-admin .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .iin-ref-shell #tab-admin .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell #tab-admin .admin-section-toggle {
    align-items: flex-start;
  }

  .iin-ref-shell #tab-admin .admin-section-head {
    flex: 1 1 auto;
  }

  .iin-ref-shell #tab-admin .admin-section-meta {
    align-items: flex-end;
    flex-direction: column;
  }
}

.iin-ref-shell .dashboard-fallback-chip {
  display: grid;
  gap: 6px;
  min-width: 168px;
  padding: 14px 16px;
}

.iin-ref-shell .dashboard-fallback-chip small {
  color: #617695;
  font-size: 0.76rem;
  font-weight: 600;
}

.iin-ref-shell .dashboard-fallback-alert {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #dde4ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.iin-ref-shell .dashboard-fallback-alert strong {
  color: #12243a;
  font-size: 0.94rem;
}

.iin-ref-shell .dashboard-fallback-alert span {
  color: #607089;
  font-size: 0.82rem;
  line-height: 1.45;
}

.iin-ref-shell .attendance-final-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px !important;
  border-radius: 18px;
  background: #fbfcfe !important;
  border: 1px solid var(--iin-border) !important;
}

.iin-ref-shell .attendance-final-copy {
  display: grid;
  gap: 4px;
}

.iin-ref-shell .modal {
  background: rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(10px);
}

.iin-ref-shell #filaModal.modal {
  position: fixed !important;
  inset: 0 !important;
  display: grid;
  place-items: center;
  padding: 28px !important;
  z-index: 5000 !important;
  overflow: auto;
}

.iin-ref-shell #filaModal.modal.hidden {
  display: none !important;
}

.iin-ref-shell #filaModal .modal-content.wide {
  width: min(1040px, calc(100vw - 48px));
  max-height: min(88vh, 920px);
  padding: 0 !important;
  border-radius: 26px !important;
  border: 1px solid rgba(210, 219, 232, 0.98) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden !important;
}

.iin-ref-shell #filaModal .modal-header {
  margin: 0;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(221, 228, 238, 0.92);
  background: linear-gradient(180deg, rgba(251, 252, 254, 0.98) 0%, rgba(246, 249, 253, 0.98) 100%);
}

.iin-ref-shell #filaModal .modal-header h3 {
  margin: 0;
  color: var(--iin-text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.iin-ref-shell #filaModalClose {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px !important;
}

.iin-ref-shell #filaModalBody {
  max-height: calc(88vh - 94px);
  overflow: auto;
  padding: 24px 26px 28px;
}

.iin-ref-shell #filaModalBody .panel-lite {
  border-radius: 18px !important;
  border: 1px solid rgba(216, 225, 236, 0.96) !important;
  background: #fbfcfe !important;
}

body.fila-modal-open {
  overflow: hidden;
}

.iin-ref-shell .sidebar-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 1320px) {
  .iin-ref-shell .iin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iin-ref-shell .iin-split-grid,
  .iin-ref-shell .dashboard-primary-grid,
  .iin-ref-shell .dashboard-highlight-grid {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell #tab-estoque .stock-main-grid,
  .iin-ref-shell #tab-estoque .stock-snack-panel .snack-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .iin-ref-shell .shell-layout,
  .iin-ref-shell .iin-ref-layout {
    grid-template-columns: 1fr;
  }

  .iin-ref-shell .shell-main,
  .iin-ref-shell .iin-ref-main,
  body[data-sidebar="collapsed"] .iin-ref-shell .shell-main,
  body[data-sidebar="collapsed"] .iin-ref-shell .iin-ref-main {
    margin-left: 0 !important;
    width: 100%;
  }

  .iin-ref-shell .app-sidebar,
  .iin-ref-shell .iin-ref-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(84vw, 310px);
    transform: translateX(-108%);
    z-index: 50;
  }

  .iin-ref-shell body[data-sidebar-open="1"] .app-sidebar {
    transform: translateX(0);
  }

  body[data-sidebar-open="1"] .iin-ref-shell .app-sidebar {
    transform: translateX(0);
  }

  .iin-ref-shell .hero-inner,
  .iin-ref-shell .iin-ref-topbar-inner {
    padding: 0 18px !important;
  }

  .iin-ref-shell .iin-topbar-right {
    gap: 8px;
  }

  .iin-ref-shell .iin-topbar-panel {
    right: 0;
    top: calc(100% + 12px);
    width: min(340px, calc(100vw - 22px));
  }

  .iin-ref-shell .iin-topbar-panel::before {
    right: 64px;
  }

  .iin-ref-shell .iin-search-dialog {
    width: calc(100vw - 20px);
    margin-top: 68px;
    border-radius: 24px;
  }

  .iin-ref-shell .iin-search-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .iin-ref-shell .iin-search-close {
    grid-column: 1;
    justify-self: end;
  }

  .iin-ref-shell .header-search--field {
    padding: 11px 13px;
    border-radius: 15px;
  }

  .iin-ref-shell .app-content,
  .iin-ref-shell .iin-ref-content {
    padding: 26px 18px 36px !important;
  }

  .iin-ref-shell #tab-estoque .stock-section-copy .muted {
    margin-left: 0 !important;
  }

  .iin-ref-shell #tab-estoque .stock-toolbar {
    padding: 16px 18px !important;
  }

  .iin-ref-shell #tab-estoque .stock-physical-panel #stockView,
  .iin-ref-shell #tab-estoque .stock-adjust-panel .stock-form-compact {
    padding: 18px !important;
  }

  .iin-ref-shell #tab-estoque .item-delivery-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .iin-ref-shell #tab-estoque .item-delivery-select,
  .iin-ref-shell #tab-estoque .item-delivery-size {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 760px) {
  .iin-ref-shell .iin-kpi-grid,
  .iin-ref-shell .grid-form.two,
  .iin-ref-shell .grid-form.three,
  .iin-ref-shell .grid-form.four {
    grid-template-columns: 1fr !important;
  }

  .iin-ref-shell .page-intro,
  .iin-ref-shell .panel-title-row,
  .iin-ref-shell .dashboard-panel-head,
  .iin-ref-shell .toolbar,
  .iin-ref-shell .attendance-final-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .iin-ref-shell .page-priority-badge {
    align-self: flex-start;
  }

  .iin-ref-shell .page-title {
    font-size: 2rem;
  }

  .iin-ref-shell #tab-estoque .stock-card-copy {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .iin-ref-shell #tab-estoque .stock-card-copy p {
    min-width: 0;
    text-align: left;
  }
}

/* =================================================================
   NEUTRALIZACAO DE CONFLITOS: styles.css (legado) vs lovable-screen.css
   Cada bloco resolve um conflito identificado em auditoria cirurgica.
================================================================= */

/* [C1+C2] .tabs-bar no legado = horizontal/branco. Na sidebar nova = vertical/escura. */
.iin-ref-shell .app-sidebar .tabs-bar,
.iin-ref-shell .app-sidebar .tabs-bar.app-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 10px 16px !important;
  gap: 2px !important;
  margin: 0 !important;
  max-width: none !important;
}

/* [C2] .tab-btn no legado = white bg, flex:0 0 auto, padding curto. */
.iin-ref-shell .app-sidebar .tab-btn {
  flex: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: rgba(220, 228, 240, 0.72) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

/* [C4] .tab-btn:hover no legado = translateY(-1px). Sidebar nao deve saltar. */
.iin-ref-shell .app-sidebar .tab-btn:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(248, 250, 252, 0.88) !important;
  box-shadow: none !important;
}

/* [C3] .tab-btn.active no legado = fundo vermelho solido. Lovable = glass sutil. */
.iin-ref-shell .app-sidebar .tab-btn.active {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transform: none !important;
  border-radius: 16px !important;
}

.iin-ref-shell .app-sidebar .tab-btn.active::before {
  content: none !important;
}

/* [C5] #logoutBtn afetado por ".hero .ghost, #logoutBtn" no legado = white. */
.iin-ref-shell #logoutBtn,
.iin-ref-shell .sidebar-logout-btn {
  min-height: 36px !important;
  width: 36px !important;
  padding: 0 !important;
  background: transparent !important;
  color: rgba(232, 238, 247, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.iin-ref-shell #logoutBtn:hover,
.iin-ref-shell .sidebar-logout-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* [C6] body dark background do legado: body.iin-ref-active recebe fundo claro. */
body.iin-ref-active {
  background: linear-gradient(180deg, #edf1f7 0%, #e6ecf3 100%) !important;
  min-height: 100vh;
}

/* [C9] .panel do legado tem margin-bottom:16px -- neutralizar dentro do shell. */
.iin-ref-shell .panel {
  margin-bottom: 0 !important;
}

/* [C7] #appShell tem position:relative no legado. Com sidebar fixed precisa ser static. */
.iin-ref-shell#appShell,
.iin-ref-shell.app-shell {
  position: static !important;
}

/* [GERAL] button:hover do legado faz translateY(-2px) em TODOS os buttons.
   Botoes de nav e icones da topbar/sidebar nao devem reagir. */
.iin-ref-shell .app-sidebar button:hover,
.iin-ref-shell .iin-topbar button:hover,
.iin-ref-shell .iin-topbar-icon-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}
