/* ========================================
   VARIÁVEIS DE CORES E TEMA
   ======================================== */
:root {
	--color-primary: #ff460a;          /* Manserv orange */
	--color-primary-contrast: #fff;
	--color-bg: #f5f7fb;               /* Fundo claro */
	--color-surface: #ffffff;           /* Superfícies brancas */
	--color-text: #1f2937;             /* Texto escuro */
	--color-muted: #6b7280;            /* Texto muted */
	--radius: 8px;                     /* Border radius padrão */
	--transition-speed: 0.15s;         /* Velocidade de transição */
}

/* ========================================
   ESTILOS BASE
   ======================================== */
html,
body {
	height: 100%;
	display: flex;
	flex-direction: column;
}

body {
	background: var(--color-bg) url('assets/bg-pattern.svg') repeat;
	background-size: 200px 200px;
	color: var(--color-text);
	font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.app-shell {
	position: relative;
	min-height: 100vh;
	width: 100%;
}

.app-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 290px;
	height: 100vh;
	padding: 1rem 0.95rem 1.05rem;
	background:
		linear-gradient(180deg, rgba(10, 16, 30, 0.985) 0%, rgba(15, 23, 42, 0.99) 100%);
	color: #f8fafc;
	box-shadow: 14px 0 30px rgba(15, 23, 42, 0.16);
	border-right: 1px solid rgba(148, 163, 184, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	transition: width 0.22s ease, padding 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
	z-index: 1030;
}

.sidebar-mobile-actions {
	display: none;
	justify-content: flex-end;
	margin-bottom: -0.25rem;
}

.sidebar-backdrop {
	display: none;
}

.sidebar-toggle-state {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

body.sidebar-scroll-lock {
	overflow: hidden;
}

.app-sidebar::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #ff5a1f 0%, #ff8f55 100%);
	opacity: 0.85;
	box-shadow: 0 0 8px rgba(255, 90, 31, 0.08);
}

.app-sidebar::after {
	content: '';
	position: absolute;
	inset: auto -36px -42px auto;
	width: 140px;
	height: 140px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.008) 45%, transparent 72%);
	pointer-events: none;
}

.app-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	margin-left: 290px;
	transition: margin-left 0.22s ease, padding 0.22s ease;
}

.app-topbar {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.25rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
	position: sticky;
	top: 0;
	z-index: 1020;
}

.app-topbar-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.app-logout-btn {
	white-space: nowrap;
}

.app-theme-btn {
	white-space: nowrap;
	border-color: rgba(255, 70, 10, 0.22);
	color: var(--color-primary);
	background: #fff;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.app-theme-btn:hover,
.app-theme-btn:focus-visible {
	background: #fff7f4;
	color: var(--color-primary);
	border-color: rgba(255, 70, 10, 0.3);
}

.app-notification-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	white-space: nowrap;
	border-color: rgba(245, 158, 11, 0.32);
	background: #fff;
	color: #b45309;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
	padding-left: 0.7rem;
	padding-right: 0.7rem;
	animation: appNotificationPulse 2.8s ease-in-out infinite;
}

.app-notification-btn:hover,
.app-notification-btn:focus-visible {
	background: #fff7ed;
	color: #92400e;
	border-color: rgba(245, 158, 11, 0.45);
}

.app-notification-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #f59e0b;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 6px 14px rgba(245, 158, 11, 0.24);
	animation: appNotificationCountGlow 2.8s ease-in-out infinite;
}

.insumo-notification-modal {
	border: 1px solid #e6edf8;
	border-radius: 18px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.insumo-notification-kicker {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b7280;
}

.insumo-notification-list {
	display: grid;
	gap: 0.85rem;
}

.insumo-notification-item,
.insumo-notification-empty {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e3ebf5;
	border-radius: 14px;
	padding: 0.95rem;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.insumo-notification-item:hover {
	border-color: #d4deeb;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.insumo-notification-icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.14) 0%, rgba(255, 138, 76, 0.18) 100%);
	color: var(--color-primary);
	flex: 0 0 auto;
}

.insumo-notification-content {
	min-width: 0;
	flex: 1 1 auto;
}

.insumo-notification-content h6 {
	font-weight: 700;
	color: #1f2937;
}

.insumo-notification-message {
	color: #334155;
	line-height: 1.45;
	margin-bottom: 0.3rem;
}

.insumo-notification-meta {
	font-weight: 500;
}

.insumo-notification-badge {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.4rem 0.7rem;
	white-space: nowrap;
}

.insumo-notification-empty {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	align-items: center;
}

.theme-dark .insumo-notification-modal {
	background: linear-gradient(180deg, #171a20 0%, #12151b 100%);
	border-color: #2a3340;
	box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

.theme-dark .insumo-notification-kicker,
.theme-dark .insumo-notification-message,
.theme-dark .insumo-notification-content h6,
.theme-dark .insumo-notification-empty h6 {
	color: #e5e7eb;
}

.theme-dark .insumo-notification-item,
.theme-dark .insumo-notification-empty {
	background: #171a20;
	border-color: #2a3340;
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.4);
}

.theme-dark .insumo-notification-item:hover {
	border-color: #3a4556;
}

.theme-dark .insumo-notification-meta,
.theme-dark .insumo-notification-empty .text-muted {
	color: #94a3b8 !important;
}

@keyframes appNotificationPulse {
	0%,
	100% {
		transform: translateY(0) scale(1);
		box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
	}

	50% {
		transform: translateY(-1px) scale(1.02);
		box-shadow: 0 10px 22px rgba(245, 158, 11, 0.12);
	}
}

@keyframes appNotificationCountGlow {
	0%,
	100% {
		box-shadow: 0 6px 14px rgba(245, 158, 11, 0.24);
	}

	50% {
		box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08), 0 8px 18px rgba(245, 158, 11, 0.28);
	}
}

.app-topbar-title {
	font-weight: 700;
	color: #172033;
	letter-spacing: 0.015em;
}

.app-main {
	flex: 1;
	padding-top: 1.25rem;
	padding-bottom: 1.5rem;
}

.sidebar-brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.7rem;
	min-height: 52px;
	padding: 0.15rem 0.15rem 0.5rem 0.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo-link {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	text-decoration: none;
}

.sidebar-logo {
	height: 26px;
	width: auto;
	object-fit: contain;
}

.sidebar-toggle {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-toggle:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(2, 6, 23, 0.14);
}

.sidebar-toggle-inline {
	background: #ffffff;
	border: 1px solid rgba(255, 70, 10, 0.12);
	color: var(--color-primary);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.sidebar-toggle-mobile {
	display: none;
}

.sidebar-toggle-inline:hover {
	background: #fff6f2;
	color: var(--color-primary);
}

.sidebar-user {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 0.95rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(8px);
}

.sidebar-avatar {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	object-fit: cover;
	flex: 0 0 auto;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.sidebar-avatar-fallback {
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.sidebar-user-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(248, 250, 252, 0.62);
	margin-bottom: 0.18rem;
}

.sidebar-user-meta strong,
.sidebar-user-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-user-meta strong {
	font-size: 0.95rem;
}

.sidebar-user-meta span {
	font-size: 0.8rem;
	color: rgba(248, 250, 252, 0.68);
}

.sidebar-user-role {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.35rem;
	padding: 0.24rem 0.58rem;
	width: fit-content;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sidebar-user-role.role-admin {
	background: rgba(251, 191, 36, 0.14);
	color: #fef3c7;
	border: 1px solid rgba(251, 191, 36, 0.16);
}

.sidebar-user-role.role-user {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(248, 250, 252, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-name.is-admin {
	color: #fff;
}

.sidebar-nav,
.sidebar-footer {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sidebar-nav {
	flex: 1;
	min-height: 0;
	margin-top: 0.15rem;
	padding-top: 0.45rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 0.92rem;
	border-radius: 12px;
	color: rgba(248, 250, 252, 0.9);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	border: 1px solid transparent;
	position: relative;
	overflow: hidden;
}

.sidebar-link::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.sidebar-link span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-link i {
	width: 1.25rem;
	text-align: center;
	font-size: 1rem;
	flex: 0 0 auto;
}

.sidebar-link-text {
	min-width: 0;
	flex: 1 1 auto;
}

.sidebar-link-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.55rem;
	height: 1.55rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: #ff460a;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(255, 70, 10, 0.28);
	margin-left: auto;
	flex: 0 0 auto;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transform: translateX(2px);
	box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
	outline: none;
}

.sidebar-link:hover::before,
.sidebar-link:focus-visible::before,
.sidebar-link.active::before {
	opacity: 1;
}

.sidebar-link.active {
	background: linear-gradient(135deg, rgba(255, 90, 31, 0.16) 0%, rgba(255, 147, 88, 0.1) 100%);
	border-color: rgba(255, 167, 123, 0.16);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.08), 0 8px 14px rgba(15, 23, 42, 0.1);
	transform: translateX(2px);
}

.sidebar-link.active i {
	color: #ffb08a;
}

.sidebar-link-logout {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link-logout:hover,
.sidebar-link-logout:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.auth-topbar {
	position: sticky;
	top: 0;
	z-index: 1020;
}

.auth-main {
	padding-top: 90px;
}

body.sidebar-collapsed .app-sidebar {
	width: 84px;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	transform: none;
}

body.sidebar-collapsed .app-content {
	margin-left: 86px;
}

body.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-footer {
	align-items: stretch;
}

body.sidebar-collapsed .sidebar-link {
	justify-content: center;
	gap: 0;
	padding-left: 0.55rem;
	padding-right: 0.55rem;
	width: 100%;
	text-align: center;
}

body.sidebar-collapsed .sidebar-link span {
	display: none;
}

body.sidebar-collapsed .sidebar-link i {
	width: 1.5rem;
	font-size: 1.02rem;
}

body.sidebar-collapsed .sidebar-brand {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
}

body.sidebar-collapsed .sidebar-logo {
	height: 30px;
}

body.sidebar-collapsed .sidebar-user {
	justify-content: center;
	padding: 0.55rem;
}

body.sidebar-collapsed .sidebar-user-meta,
body.sidebar-collapsed .sidebar-user-role {
	display: none;
}

body.sidebar-collapsed .sidebar-user .sidebar-avatar {
	width: 42px;
	height: 42px;
	border-radius: 14px;
}

body.sidebar-collapsed .sidebar-nav {
	gap: 0.25rem;
	padding-top: 0.4rem;
}

body.sidebar-collapsed .sidebar-link:hover,
body.sidebar-collapsed .sidebar-link:focus-visible,
body.sidebar-collapsed .sidebar-link.active {
	transform: none;
}

body.sidebar-collapsed .sidebar-link.active {
	box-shadow: inset 3px 0 0 rgba(255, 138, 76, 0.88), 0 8px 14px rgba(15, 23, 42, 0.06);
}

body.sidebar-collapsed .app-topbar {
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ========================================
   LAYOUT FLEX PARA FOOTER NO FINAL
   ======================================== */
main {
	flex: 1;
}

/* ========================================
   TABELAS
   ======================================== */
table thead th {
	background: var(--color-primary);
	color: var(--color-primary-contrast);
}

table tbody tr:nth-child(even) {
	background: var(--color-surface);
}

table tbody tr:nth-child(odd) {
	background: #f8fafc;
}

table.table-hover tbody tr:hover {
	background: #eef2f7;
}

/* ========================================
   BADGES E STATUS
   ======================================== */
.badge-validade-curta {
	background: #ff460a;
}

.badge-validade-media {
	background: #ffc107;
	color: #000;
}

.status-validade {
	font-size: 0.75rem;
}

/* ========================================
   LINHA EXPIRADA (COM ANIMAÇÃO)
   ======================================== */
.row-expirada {
	outline: 2px solid #ff460a;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 70, 10, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(255, 70, 10, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 70, 10, 0);
	}
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
	border-radius: var(--radius);
	transition: all var(--transition-speed) ease;
}

.btn-primary,
.btn-success {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-primary-contrast);
}

.btn-primary:hover,
.btn-success:hover {
	filter: brightness(0.95);
}

.btn-login {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: var(--color-primary-contrast) !important;
}

.btn-login:hover {
	filter: brightness(0.95);
}

.btn-outline-secondary {
	border-color: var(--color-primary);
	color: var(--color-primary);
	border-radius: var(--radius);
}

.btn-outline-secondary:hover {
	background: var(--color-primary);
	color: var(--color-primary-contrast);
	border-color: var(--color-primary);
}

.btn-rounded {
	border-radius: var(--radius);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-select,
input,
textarea {
	border-radius: 6px;
}

.mb-3 {
	position: relative;
}

.mb-3 .form-label {
	transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
	transform-origin: left top;
}

.mb-3:focus-within .form-label,
.mb-3.filled .form-label {
	transform: translateY(-8px) scale(0.95);
	color: var(--color-primary);
}

/* ========================================
   INPUT GROUP COM ANIMAÇÕES
   ======================================== */
.input-group .form-control {
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.input-group:focus-within .form-control {
	border-color: var(--color-primary);
	box-shadow: 0 6px 18px rgba(255, 70, 10, 0.08), 0 0 0 4px rgba(255, 70, 10, 0.06);
	transform: translateY(-1px);
}

.input-group-text {
	transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.input-group:focus-within .input-group-text {
	background: rgba(181, 0, 0, 0.06);
	color: var(--color-primary);
	transform: translateY(-1px);
}

.input-group .form-control::placeholder {
	color: rgba(0, 0, 0, 0.35);
	transition: opacity 0.12s ease;
}

.input-group:focus-within .form-control::placeholder {
	opacity: 0.3;
}

/* ========================================
   LOGO
   ======================================== */
.site-logo {
	height: 28px;
	width: auto;
	vertical-align: middle;
}

/* ========================================
   TEMA ESCURO
   ======================================== */
.theme-dark {
	background: #121212;
	color: #e6e6e6;
}

.theme-dark .container {
	color: #e6e6e6;
}

.theme-dark .bg-white {
	background: #1e1e1e !important;
	color: #e6e6e6;
}

.theme-dark .navbar {
	background: #0b0b0b !important;
}

.theme-dark .app-topbar {
	background: rgba(10, 10, 10, 0.92);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	color: #e6e6e6;
}

.theme-dark .app-topbar-title {
	color: #f0f0f0;
}

.theme-dark table thead th {
	background: #212529;
	color: #fff;
}

.theme-dark table tbody tr:nth-child(even) {
	background: #1a1a1a;
}

.theme-dark table tbody tr:nth-child(odd) {
	background: #141414;
}

.theme-dark .alert {
	background: #242424;
	color: #f1f1f1;
	border-color: #333;
}

.theme-dark .btn-light {
	background: #2a2a2a;
	color: #e6e6e6;
	border-color: #3a3a3a;
}

.theme-dark .badge.bg-light {
	background: #2a2a2a;
	color: #e6e6e6;
}

.theme-dark .form-select,
.theme-dark input,
.theme-dark textarea {
	background: #1b1b1b;
	color: #e6e6e6;
	border-color: #333;
}

.theme-dark .btn-primary,
.theme-dark .btn-success {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.theme-dark .btn-outline-secondary {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.theme-dark .btn-outline-secondary:hover {
	background: var(--color-primary);
	color: var(--color-primary-contrast);
	border-color: var(--color-primary);
}

/* ========================================
   RESPEITAR PREFERÊNCIAS DE MOVIMENTO
   ======================================== */
@media (prefers-reduced-motion: reduce) {
	.mb-3 .form-label,
	.input-group .form-control,
	.input-group-text {
		transition: none !important;
	}

	.app-sidebar,
	.sidebar-toggle,
	.sidebar-link,
	.app-notification-btn,
	.app-notification-count {
		transition: none !important;
		animation: none !important;
	}
}

/* ========================================
   RESPONSIVIDADE (NOTEBOOK/CELULAR)
   ======================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}


.table thead th,
.table tbody td {
	padding-top: 0.55rem !important;
	padding-bottom: 0.55rem !important;
	font-size: 0.88rem;
}
img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
	height: auto;
}

.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-responsive table {
	min-width: 860px;
}

.materials-dt-wrapper {
	padding: 0.25rem;
}

.materials-dt-wrapper .materials-table-top,
.materials-dt-wrapper .materials-table-bottom {
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	border: 1px solid #e8eef7;
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.materials-dt-wrapper .dataTables_length,
.materials-dt-wrapper .dataTables_filter,
.materials-dt-wrapper .dataTables_info,
.materials-dt-wrapper .dataTables_paginate {
	margin: 0;
}

.materials-dt-wrapper .dataTables_length label,
.materials-dt-wrapper .dataTables_filter label {
	font-weight: 600;
	color: #2d3b4f;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
}

.materials-dt-wrapper .dataTables_length select {
	border: 1px solid #d7e3f4;
	border-radius: 10px;
	padding: 0.25rem 0.5rem;
	background: #fff;
	color: #253247;
	min-width: 74px;
}

.materials-dt-wrapper .dataTables_filter input {
	border: 1px solid #d7e3f4;
	border-radius: 10px;
	padding: 0.45rem 0.8rem;
	min-width: 220px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.04);
}

.materials-dt-wrapper .dataTables_filter input:focus,
.materials-dt-wrapper .dataTables_length select:focus {
	outline: none;
	border-color: #9ab6e3;
	box-shadow: 0 0 0 3px rgba(93, 135, 206, 0.15);
}

.materials-dt-wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	border: 1px solid transparent !important;
	padding: 0.35rem 0.65rem !important;
	margin: 0 2px !important;
	background: transparent !important;
	color: #334155 !important;
	font-weight: 600;
}

.materials-dt-wrapper .dataTables_paginate .paginate_button:hover {
	background: #eef4ff !important;
	border-color: #c8d8f3 !important;
	color: #1f3b6d !important;
}

.materials-dt-wrapper .dataTables_paginate .paginate_button.current,
.materials-dt-wrapper .dataTables_paginate .paginate_button.current:hover {
	background: linear-gradient(180deg, #2f6fdb 0%, #2458af 100%) !important;
	border-color: #2458af !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(36, 88, 175, 0.28);
}

.materials-dt-wrapper .dataTables_info {
	font-size: 0.86rem;
	color: #5b6b80;
	font-weight: 500;
}

@media (max-width: 991.98px) {
	.app-shell {
		display: block;
	}

	.sidebar-toggle-inline {
		display: none;
	}

	.sidebar-toggle-mobile {
		display: inline-flex !important;
		min-width: 42px;
		min-height: 42px;
		border-radius: 12px;
		background: #fff;
		color: var(--color-primary);
		border: 1px solid rgba(255, 70, 10, 0.16);
		box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
		align-items: center;
		justify-content: center;
		padding: 0.55rem 0.7rem;
		flex: 0 0 auto;
		position: relative;
		z-index: 1065;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}

	.sidebar-mobile-actions {
		display: flex;
		margin-bottom: 0.1rem;
	}

	.sidebar-close-mobile {
		width: 42px;
		height: 42px;
		border-radius: 999px;
	}

	.sidebar-toggle-mobile:hover,
	.sidebar-toggle-mobile:focus-visible {
		background: #fff7f4;
		color: var(--color-primary);
	}

	.app-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		transform: translateX(0);
		width: min(86vw, 320px);
		max-width: 320px;
		height: 100vh;
		padding: 0.9rem 0.85rem 0.95rem;
		gap: 0.75rem;
		overflow-y: auto;
		z-index: 1050;
		transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
	}

	.sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(2, 6, 23, 0.64);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
		z-index: 1040;
	}

	.app-content {
		margin-left: 0;
	}

	body:not(.sidebar-open-mobile) .app-sidebar {
		transform: translateX(-100%);
		width: min(86vw, 320px);
		max-width: 320px;
		pointer-events: none;
		visibility: hidden;
		transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.26s;
	}

	body:not(.sidebar-open-mobile) .sidebar-backdrop {
		opacity: 0;
		pointer-events: none;
	}

	body.sidebar-open-mobile .app-sidebar {
		transform: translate3d(0, 0, 0);
		pointer-events: auto;
		visibility: visible;
		transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
	}

	body.sidebar-open-mobile .sidebar-backdrop {
		opacity: 1;
		pointer-events: auto;
		backdrop-filter: blur(2px);
	}

	.sidebar-toggle-state:checked ~ .app-shell .app-sidebar {
		transform: translate3d(0, 0, 0);
		pointer-events: auto;
		visibility: visible;
	}

	.sidebar-toggle-state:checked ~ .app-shell .sidebar-backdrop {
		opacity: 1;
		pointer-events: auto;
		backdrop-filter: blur(2px);
	}

	.sidebar-toggle-state:checked ~ .app-shell .app-content {
		margin-left: 0;
	}

	.sidebar-toggle-state:checked ~ .app-shell .sidebar-link {
		justify-content: flex-start;
		width: auto;
		padding: 0.95rem 1rem;
		gap: 1rem;
	}

	.sidebar-toggle-state:checked ~ .app-shell .sidebar-link span {
		display: inline;
	}

	.sidebar-toggle-state:checked ~ .app-shell .sidebar-user-meta,
	.sidebar-toggle-state:checked ~ .app-shell .sidebar-user-role {
		display: block;
	}

	body.sidebar-open-mobile .app-content {
		margin-left: 0;
	}

	body.sidebar-open-mobile .sidebar-link {
		justify-content: flex-start;
		width: auto;
		padding: 0.95rem 1rem;
		gap: 1rem;
	}

	body.sidebar-open-mobile .sidebar-link span {
		display: inline;
	}

	body.sidebar-open-mobile .sidebar-user-meta,
	body.sidebar-open-mobile .sidebar-user-role {
		display: block;
	}

	.app-content {
		min-height: 100vh;
	}
}

@media (max-width: 767.98px) {
	.app-topbar {
		padding: 0.75rem 0.9rem;
		gap: 0.6rem;
		align-items: center;
		flex-wrap: wrap;
	}

	.sidebar-toggle-mobile {
		order: 1;
		flex: 0 0 auto;
		position: relative;
		z-index: 1025;
		pointer-events: auto;
		cursor: pointer;
	}

	.app-topbar-title {
		order: 2;
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.92rem;
		line-height: 1.2;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.app-topbar-title span {
		display: block;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.app-topbar-actions {
		order: 3;
		width: auto;
		justify-content: flex-end;
		flex-wrap: wrap;
		margin-left: auto;
		gap: 0.4rem;
	}

	.app-main {
		padding-top: 0.85rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.sidebar-toggle-inline {
		flex: 0 0 auto;
	}

	.app-theme-btn,
	.app-logout-btn {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		font-size: 0.9rem;
	}

	.app-sidebar {
		width: 100%;
		max-width: 100%;
		z-index: 1050;
	}

	.sidebar-nav {
		gap: 0.55rem;
	}

	.sidebar-link {
		padding: 0.92rem 1rem;
		border-radius: 14px;
	}

	body.sidebar-collapsed .app-sidebar {
		transform: translateX(-100%);
		width: 100%;
	}

	.table-responsive table {
		min-width: 700px;
	}

	.request-table-wrap,
	.section-card {
		border-radius: 0.9rem;
	}

	.section-card .card-body {
		padding-top: 0.8rem;
		padding-bottom: 1rem;
	}

	.request-table thead th,
	.pending-insumos-table thead th,
	.table thead th,
	.table tbody td {
		font-size: 0.8rem;
	}

	.pending-insumos-table th,
	.pending-insumos-table td {
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
	}

	.pending-insumos-table .btn,
	.request-table .btn {
		white-space: nowrap;
	}

	.metric-card {
		padding: 0.9rem;
	}

	.metric-value {
		font-size: 1.55rem;
	}

	.metric-help {
		font-size: 0.82rem;
	}
}

@media (max-width: 575.98px) {
	.sidebar-brand {
		padding-left: 0.1rem;
	}

	.sidebar-logo {
		height: 22px;
		max-width: 100%;
	}

	.sidebar-user {
		padding: 0.72rem;
	}

	.sidebar-avatar {
		width: 40px;
		height: 40px;
	}

	.sidebar-link {
		padding-top: 0.8rem;
		padding-bottom: 0.8rem;
		font-size: 0.96rem;
	}

	body.sidebar-open-mobile .app-sidebar {
		box-shadow: 18px 0 40px rgba(15, 23, 42, 0.24);
	}

	body.sidebar-open-mobile .sidebar-backdrop {
		opacity: 1;
	}

	.table-responsive table {
		min-width: 560px;
	}

	.request-table-wrap,
.pending-insumos-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.request-table-wrap table,
.pending-insumos-table {
	min-width: 560px;
}

.pending-insumos-table th,
.pending-insumos-table td,
.request-table th,
.request-table td,
.table th,
.table td {
	font-size: 0.78rem;
	padding-top: 0.58rem;
	padding-bottom: 0.58rem;
}

.request-table-wrap {
	overflow-x: auto;
}

	.section-card-header h2,
	.solicitacoes-hero h1 {
		font-size: 1.15rem;
	}

	.solicitacoes-subtitle,
	.metric-help {
		font-size: 0.8rem;
	}
}

.js-materials-search thead th {
	position: sticky;
	top: 0;
	background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%) !important;
	color: #213047 !important;
	border-bottom: 2px solid #d7e2f5 !important;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	font-weight: 700 !important;
}

.js-materials-search tbody tr td {
	vertical-align: middle;
	border-bottom: 1px solid #edf2fa;
}

.materials-action-group {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
	justify-content: center;
}

.materials-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.34rem 0.7rem;
	border: 1px solid transparent;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.materials-action-btn i {
	font-size: 0.82rem;
}

.materials-action-edit {
	background: #eef4ff;
	border-color: #c8d8f3;
	color: #1f4b8f;
}

.materials-action-edit:hover {
	background: #dfeaff;
	border-color: #9eb6e0;
	color: #173a70;
	box-shadow: 0 6px 14px rgba(31, 75, 143, 0.14);
	transform: translateY(-1px);
}

.materials-action-delete {
	background: #fff1f1;
	border-color: #efc8c8;
	color: #a72b2b;
}

.materials-action-delete:hover {
	background: #ffe4e4;
	border-color: #e3a0a0;
	color: #832020;
	box-shadow: 0 6px 14px rgba(167, 43, 43, 0.14);
	transform: translateY(-1px);
}

.materials-action-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(93, 135, 206, 0.24);
}

.theme-dark .materials-action-edit {
	background: rgba(77, 136, 233, 0.18);
	border-color: rgba(120, 167, 241, 0.45);
	color: #b9d6ff;
}

.theme-dark .materials-action-edit:hover {
	background: rgba(77, 136, 233, 0.28);
	border-color: rgba(139, 181, 245, 0.75);
	color: #d6e8ff;
}

.theme-dark .materials-action-delete {
	background: rgba(217, 70, 70, 0.18);
	border-color: rgba(235, 117, 117, 0.42);
	color: #ffb9b9;
}

.theme-dark .materials-action-delete:hover {
	background: rgba(217, 70, 70, 0.26);
	border-color: rgba(247, 149, 149, 0.72);
	color: #ffd6d6;
}

.delete-screen-wrap {
	min-height: 52vh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 0.5rem 0;
}

.delete-card {
	width: 100%;
	max-width: 760px;
	background: #fff;
	border: 1px solid #e6edf8;
	border-radius: 14px;
	padding: 1rem;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.delete-card-header {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.delete-header-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: #fff2f2;
	color: #b91c1c;
	border: 1px solid #f3cdcd;
	font-size: 1rem;
}

.delete-risk-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	background: linear-gradient(180deg, #fff7f7 0%, #fff1f1 100%);
	border: 1px solid #efc9c9;
	color: #8d1f1f;
	border-radius: 12px;
	padding: 0.72rem 0.82rem;
	margin-bottom: 1rem;
}

.delete-item-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.delete-item-cell {
	background: #f8fbff;
	border: 1px solid #e5edf8;
	border-radius: 10px;
	padding: 0.65rem 0.72rem;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
}

.delete-item-cell span {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	font-weight: 700;
}

.delete-item-cell strong {
	font-size: 0.95rem;
	color: #1f2937;
	line-height: 1.25;
}

.delete-confirm-form {
	border-top: 1px solid #e6edf8;
	padding-top: 1rem;
}

.theme-dark .delete-card {
	background: #171a20;
	border-color: #2a3340;
	box-shadow: 0 16px 32px rgba(2, 6, 23, 0.45);
}

.theme-dark .delete-header-icon {
	background: rgba(185, 28, 28, 0.2);
	border-color: rgba(239, 68, 68, 0.4);
	color: #fca5a5;
}

.theme-dark .delete-risk-banner {
	background: linear-gradient(180deg, rgba(153, 27, 27, 0.22) 0%, rgba(127, 29, 29, 0.2) 100%);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fecaca;
}

.theme-dark .delete-item-cell {
	background: #1f2530;
	border-color: #2f3a4a;
}

.theme-dark .delete-item-cell span {
	color: #94a3b8;
}

.theme-dark .delete-item-cell strong {
	color: #e5e7eb;
}

.theme-dark .delete-confirm-form {
	border-top-color: #2a3340;
}

@media (max-width: 768px) {
	.materials-dt-wrapper .materials-table-top,
	.materials-dt-wrapper .materials-table-bottom {
		padding: 0.65rem;
	}

	.materials-dt-wrapper .dataTables_filter input {
		min-width: 100%;
	}

	.materials-dt-wrapper .dataTables_filter,
	.materials-dt-wrapper .dataTables_length,
	.materials-dt-wrapper .dataTables_info,
	.materials-dt-wrapper .dataTables_paginate {
		width: 100%;
	}

	.materials-dt-wrapper .dataTables_paginate {
		text-align: left !important;
	}

	.materials-action-btn {
		padding: 0.32rem 0.6rem;
		font-size: 0.78rem;
	}

	.delete-item-grid {
		grid-template-columns: 1fr;
	}
}

.card,
.card-body,
.container,
.container-fluid {
	min-width: 0;
}

/* ========================================
   DASHBOARD BI STYLE
   ======================================== */
.dashboard-bi {
	position: relative;
}

.dashboard-hero {
	background: linear-gradient(140deg, #ffffff 0%, #f8fbff 50%, #eef5ff 100%);
	border: 1px solid #e5edf8;
	border-radius: 16px;
	padding: 1.2rem 1.25rem;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-overline {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.dashboard-kpi-card {
	position: relative;
	background: #fff;
	border: 1px solid #e6edf8;
	border-radius: 14px;
	padding: 1rem;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.dashboard-kpi-card::after {
	content: "";
	position: absolute;
	inset: auto -20px -40px auto;
	width: 130px;
	height: 130px;
	border-radius: 999px;
	opacity: 0.12;
	background: currentColor;
}

.kpi-blue {
	color: #2d8cff;
}

.kpi-emerald {
	color: #21a36d;
}

.kpi-violet {
	color: #6f63ff;
}

.kpi-amber {
	color: #d88b18;
}

.kpi-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 0.95rem;
	margin-bottom: 0.65rem;
}

.kpi-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 0.2rem;
}

.kpi-value {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.1;
	color: #0f172a;
	margin-bottom: 0.35rem;
}

.kpi-meta {
	font-size: 0.78rem;
	color: #64748b;
}

.kpi-delta {
	font-size: 0.78rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.delta-up {
	color: #16a34a;
}

.delta-down {
	color: #dc2626;
}

.delta-neutral {
	color: #64748b;
}

.kpi-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.3rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
}

.kpi-link:hover {
	text-decoration: underline;
}

.dashboard-filter-bar {
	padding-top: 0.85rem;
	border-top: 1px solid #e5edf8;
}

.period-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	background: #eef4ff;
	color: #1d4ed8;
	border: 1px solid #dbe8ff;
}

.unit-drill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.unit-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d8e6ff;
	background: #f5f9ff;
	color: #1f4e92;
}

.unit-chip:hover {
	background: #eaf2ff;
}

.alert-tile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.8rem 0.9rem;
	border-radius: 12px;
	border: 1px solid transparent;
	background: #f8fafc;
	transition: all 0.15s ease;
}

.alert-tile:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.alert-tile-title {
	font-size: 0.82rem;
	font-weight: 700;
	color: #0f172a;
}

.alert-tile-action {
	font-size: 0.74rem;
	color: #64748b;
	margin-top: 0.25rem;
}

.alert-tile-value {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	color: #0f172a;
}

.alert-danger {
	background: #fff1f1;
	border-color: #ffd5d5;
}

.alert-warning {
	background: #fff9ed;
	border-color: #ffe2ad;
}

.alert-info {
	background: #eff7ff;
	border-color: #cfe5ff;
}

.kpi-progress {
	width: 100%;
	height: 6px;
	border-radius: 99px;
	background: #e8eef8;
	overflow: hidden;
	margin-bottom: 0.35rem;
}

.kpi-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #6f63ff 0%, #2d8cff 100%);
}

.dashboard-panel {
	background: #fff;
	border: 1px solid #e6edf8;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.dashboard-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.9rem 1rem 0.25rem;
	border-bottom: 1px solid #eef2f8;
}

.dashboard-panel-body {
	padding: 0.9rem 1rem 1rem;
}

.chart-panel {
	height: 320px;
}

.chart-panel canvas {
	height: 230px !important;
}

#legend-validade .legend-item strong {
	color: #0f172a;
	font-weight: 700;
}

.dashboard-table thead th {
	background: #f8fafc;
	color: #475569;
	border-bottom: 1px solid #e2e8f0;
}

.dashboard-table tbody tr:nth-child(odd) {
	background: #ffffff;
}

.dashboard-table tbody tr:nth-child(even) {
	background: #f9fbff;
}

.rank-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #eef4ff;
	border: 1px solid #d9e6ff;
	font-size: 0.76rem;
	font-weight: 700;
	color: #345fa8;
}

.theme-dark .dashboard-hero,
.theme-dark .dashboard-panel,
.theme-dark .dashboard-kpi-card {
	background: #1e2633;
	border-color: #2a3547;
	box-shadow: none;
}

.theme-dark .dashboard-overline,
.theme-dark .kpi-label,
.theme-dark .kpi-meta,
.theme-dark .dashboard-table thead th {
	color: #a8b3c8;
}

.theme-dark .kpi-value,
.theme-dark #legend-validade .legend-item strong {
	color: #e6eefc;
}

.theme-dark .dashboard-table tbody tr:nth-child(even),
.theme-dark .dashboard-table tbody tr:nth-child(odd) {
	background: #1f2937;
}

.theme-dark .rank-pill {
	background: #26344a;
	border-color: #395173;
	color: #bfd8ff;
}

.theme-dark .period-chip {
	background: #25344d;
	border-color: #38516f;
	color: #c2dcff;
}

.theme-dark .kpi-link,
.theme-dark .unit-chip {
	color: #9ec8ff;
}

.theme-dark .unit-chip {
	background: #243246;
	border-color: #3e5677;
}

.theme-dark .alert-tile {
	background: #1f2a3a;
	border-color: #33465f;
}

.theme-dark .alert-tile-title,
.theme-dark .alert-tile-value {
	color: #e6eefc;
}

.theme-dark .alert-tile-action {
	color: #9db0ca;
}

input,
select,
textarea,
button {
	max-width: 100%;
}

@media (max-width: 992px) {
	.container,
	.container-fluid {
		padding-left: 12px;
		padding-right: 12px;
	}

	.navbar .container-fluid {
		gap: 8px;
	}

	.navbar nav {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.btn {
		white-space: normal;
	}

.table-responsive table {
	min-width: 520px;
}

.request-table-wrap,
.pending-insumos-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.request-table-wrap table,
.pending-insumos-table {
	min-width: 520px;
}

.pending-insumos-table th,
.pending-insumos-table td,
.request-table th,
.request-table td,
.table th,
.table td {
	font-size: 0.76rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.pending-insumos-table td:last-child {
	min-width: 150px;
}
}

@media (max-width: 768px) {
	main.container {
		padding-left: 10px;
		padding-right: 10px;
	}

	table th,
	table td {
		white-space: nowrap;
	}

	.table-responsive table {
		min-width: 680px;
	}
}

@media (max-width: 1366px) {
	main.container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.table thead th,
	.table tbody td {
		padding: 0.6rem 0.55rem !important;
		font-size: 0.9rem;
		line-height: 1.25;
	}

	.table .btn-group .btn {
		padding: 0.3rem 0.45rem;
		font-size: 0.78rem;
	}

	.row-expirada {
		animation-duration: 2.2s;
	}
}

/* ========================================
   FORMULÁRIOS RESPONSIVOS
   ======================================== */
.form-responsive {
	min-width: 0;
}

.form-actions-responsive .btn {
	min-height: 44px;
}

@media (max-width: 768px) {
	.cadastro-insumo .card-header,
	.form-responsive {
		padding: 1rem !important;
	}

	.form-responsive .form-control,
	.form-responsive .form-select,
	.form-responsive textarea,
	.form-responsive .btn {
		font-size: 1rem;
	}
}

/* ========================================
   SOLICITAÇÕES - PAINEL ADMINISTRATIVO
   ======================================== */
.solicitacoes-page {
	position: relative;
}

.solicitacoes-page::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(255, 70, 10, 0.12), transparent 38%),
		radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 30%);
	pointer-events: none;
	border-radius: 1rem;
}

.solicitacoes-page > * {
	position: relative;
	z-index: 1;
}

.solicitacoes-hero {
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.08) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(248, 250, 252, 1) 100%);
	border: 1px solid rgba(255, 70, 10, 0.08);
	border-radius: 1.5rem;
}

.solicitacoes-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 70, 10, 0.12);
	color: var(--color-primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.85rem;
}

.solicitacoes-subtitle {
	max-width: 56rem;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.solicitacoes-pill,
.section-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
	font-weight: 600;
	font-size: 0.88rem;
	color: #334155;
}

.metric-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem 1.2rem;
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
	backdrop-filter: blur(8px);
}

.metric-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex: 0 0 auto;
}

.metric-icon-warning {
	background: rgba(255, 176, 32, 0.16);
	color: #b45309;
}

.metric-icon-info {
	background: rgba(59, 130, 246, 0.12);
	color: #2563eb;
}

.metric-icon-success {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
}

.metric-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--color-muted);
	margin-bottom: 0.2rem;
}

.metric-value {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: #0f172a;
	margin-bottom: 0.35rem;
}

.metric-help {
	color: var(--color-muted);
	font-size: 0.88rem;
	line-height: 1.45;
}

.section-card {
	border-radius: 1.25rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.section-card .card-body {
	padding-top: 1rem;
	padding-bottom: 1.35rem;
}

.section-card-header {
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.section-card-subtitle {
	color: var(--color-muted);
	font-size: 0.94rem;
	line-height: 1.55;
}

.approved-accounts-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
	border-color: rgba(15, 23, 42, 0.07);
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.06);
}

.approved-accounts-header {
	padding-bottom: 1rem;
}

.approved-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
	min-width: min(100%, 22rem);
}

.approved-summary-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 9.5rem;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
	text-align: left;
}

.approved-summary-item span {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.approved-summary-item strong {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
}

.approved-table-toolbar {
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.05), rgba(255, 255, 255, 0.96));
	border: 1px solid rgba(255, 70, 10, 0.09);
}

.approved-table-note {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.45;
}

.approved-table-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
	font-size: 0.84rem;
	font-weight: 700;
	color: #334155;
}

.approved-table-wrap {
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.approved-table-wrap .request-table thead th {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	color: #334155;
	border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.approved-table-wrap .request-table tbody tr:hover {
	background: #f8fafc;
}

.approved-row-badge {
	border-radius: 999px;
	padding-left: 0.55rem;
	padding-right: 0.55rem;
}

.request-table-wrap {
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.request-table {
	margin-bottom: 0;
	--bs-table-bg: #fff;
}

.request-table thead th {
	background: #f8fafc;
	color: #334155;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-bottom-color: rgba(15, 23, 42, 0.08);
}

.request-table tbody tr {
	transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.request-table tbody tr:hover {
	background: #f8fafc;
	transform: translateY(-1px);
}

.pending-insumos-card {
	border: 1px solid rgba(37, 99, 235, 0.08);
	box-shadow: 0 22px 42px rgba(15, 23, 42, 0.07);
}

.pending-insumos-sector-filtered {
	border: 1px solid rgba(37, 99, 235, 0.18);
	box-shadow: 0 18px 36px rgba(37, 99, 235, 0.08);
	outline: 2px solid rgba(37, 99, 235, 0.06);
	outline-offset: 0;
}

.pending-insumos-sector-filtered .card-header {
	background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.pending-insumos-sector-badge {
	font-weight: 700;
	padding: 0.45rem 0.75rem;
	white-space: nowrap;
}

.pending-insumos-header {
	background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.pending-insumos-body {
	padding-top: 0.5rem;
}

.pending-insumos-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
	font-weight: 700;
	font-size: 0.9rem;
}

.pending-insumos-table thead th {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	color: #1e293b;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pending-insumos-table {
	font-size: 0.94rem;
	border-collapse: separate;
	border-spacing: 0 0.55rem;
}

.pending-insumos-table th,
.pending-insumos-table td {
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.pending-insumos-table tbody tr {
	background: #fff;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
	border-radius: 1rem;
	overflow: hidden;
}

.pending-insumos-table tbody td {
	vertical-align: top;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	background-clip: padding-box;
}

.pending-insumos-table tbody td:first-child {
	border-left: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 1rem 0 0 1rem;
}

.pending-insumos-table tbody td:last-child {
	border-right: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 0 1rem 1rem 0;
}

.pending-insumos-table .form-control-sm {
	height: 2.85rem;
	min-width: 100%;
	width: 100%;
	border-radius: 0.95rem;
	border-color: rgba(15, 23, 42, 0.12);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pending-insumos-input {
	font-size: 0.94rem;
	font-weight: 600;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.pending-insumos-input::placeholder {
	color: #94a3b8;
	font-weight: 500;
}

.pending-insumos-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.pending-insumos-field-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.pending-insumos-table td:nth-child(3) {
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	vertical-align: middle;
}

.pending-insumos-table td:nth-child(4) .pending-insumos-input {
	text-align: center;
	background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
}

.pending-insumos-table td:nth-child(5) .pending-insumos-input {
	text-align: center;
}

.pending-insumos-table td:nth-child(6) .pending-insumos-input,
.pending-insumos-table td:nth-child(7) .pending-insumos-input {
	text-align: center;
	font-size: 0.9rem;
}

.pending-insumos-table .form-control-sm:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 0.22rem rgba(255, 70, 10, 0.14);
	transform: translateY(-1px);
}

.pending-insumos-table .form-control-sm:hover {
	border-color: rgba(255, 70, 10, 0.22);
}

#pedidos-insumo-pendentes .dataTables_wrapper {
	padding: 0.25rem;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_length,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_filter,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_info,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_paginate {
	margin: 0;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_length,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_filter {
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	border: 1px solid #e8eef7;
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_length label,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_filter label {
	font-weight: 600;
	color: #2d3b4f;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_length select {
	border: 1px solid #d7e3f4;
	border-radius: 10px;
	padding: 0.25rem 0.5rem;
	background: #fff;
	color: #253247;
	min-width: 74px;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_filter input {
	border: 1px solid #d7e3f4;
	border-radius: 10px;
	padding: 0.45rem 0.8rem;
	min-width: 220px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.04);
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_filter input:focus,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_length select:focus {
	outline: none;
	border-color: #9ab6e3;
	box-shadow: 0 0 0 3px rgba(93, 135, 206, 0.15);
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	border: 1px solid transparent !important;
	padding: 0.35rem 0.65rem !important;
	margin: 0 2px !important;
	background: transparent !important;
	color: #334155 !important;
	font-weight: 600;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #eef4ff !important;
	border-color: #c8d8f3 !important;
	color: #1f3b6d !important;
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: linear-gradient(180deg, #2f6fdb 0%, #2458af 100%) !important;
	border-color: #2458af !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(36, 88, 175, 0.28);
}

#pedidos-insumo-pendentes .dataTables_wrapper .dataTables_info {
	font-size: 0.86rem;
	color: #5b6b80;
	font-weight: 500;
}

.pending-insumos-approve,
.pending-insumos-reject {
	min-width: 7.4rem;
	border-radius: 0.8rem;
	font-weight: 700;
}

.pending-insumos-reject {
	border-color: rgba(220, 38, 38, 0.28);
}

.pending-insumos-table td:last-child form {
	display: block !important;
}

.pending-insumos-table td:last-child form + form {
	margin-top: 0.5rem;
}

.pending-insumos-table td:last-child .pending-insumos-approve,
.pending-insumos-table td:last-child .pending-insumos-reject {
	width: 100%;
	min-width: 0;
}

.insumo-historico-page::before {
	background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 38%),
		radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 30%);
}

.insumo-historico-hero {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(248, 250, 252, 1) 100%);
	border: 1px solid rgba(37, 99, 235, 0.08);
}

.insumo-historico-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.insumo-historico-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
	font-size: 0.82rem;
	font-weight: 700;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.insumo-historico-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.insumo-historico-summary-item {
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(37, 99, 235, 0.08);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.insumo-historico-summary-item span {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 0.2rem;
}

.insumo-historico-summary-item strong {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.15;
}

.insumo-historico-card {
	border: 1px solid rgba(37, 99, 235, 0.08);
	box-shadow: 0 22px 42px rgba(15, 23, 42, 0.07);
}

.insumo-historico-header {
	background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.insumo-historico-pill {
	background: rgba(37, 99, 235, 0.08);
	border-color: rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
}

.insumo-historico-filter-card {
	border-radius: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.insumo-historico-document {
	border-radius: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.insumo-historico-meta-card {
	height: 100%;
	padding: 0.85rem 0.95rem;
	border-radius: 0.95rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid rgba(37, 99, 235, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.insumo-historico-meta-card .small.text-muted {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.insumo-historico-badge {
	border-radius: 999px;
	padding: 0.45rem 0.7rem;
	font-weight: 700;
}

.insumo-historico-meta-grid .small.text-muted {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.insumo-historico-table td:nth-child(3),
.insumo-historico-table td:nth-child(4) {
	white-space: nowrap;
}

.insumo-historico-actions .btn {
	min-width: 11rem;
}

@media (max-width: 768px) {
	.insumo-historico-summary {
		grid-template-columns: 1fr;
	}

	.insumo-historico-hero-chips {
		gap: 0.4rem;
	}

	.insumo-historico-chip {
		width: 100%;
		justify-content: center;
	}

	.pending-insumos-table {
		font-size: 0.88rem;
		border-spacing: 0 0.45rem;
	}

	.pending-insumos-table th,
	.pending-insumos-table td {
		padding: 0.75rem 0.65rem;
	}

	.pending-insumos-pill {
		width: 100%;
		justify-content: center;
	}

	.pending-insumos-table .form-control-sm {
		min-width: 0;
		height: 2.7rem;
	}

	.pending-insumos-field-label {
		font-size: 0.68rem;
	}

	.pending-insumos-table td:last-child {
		min-width: 10rem;
	}

	.pending-insumos-table td:nth-child(3) {
		white-space: normal;
	}

	.pending-insumos-table td:last-child .pending-insumos-approve,
	.pending-insumos-table td:last-child .pending-insumos-reject {
		padding-left: 0.8rem;
		padding-right: 0.8rem;
	}

	.insumo-historico-actions .btn,
	.insumo-historico-actions form {
		width: 100%;
	}
}

.solicitacao-sheet {
	padding: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.solicitacao-sheet-top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.sheet-field {
	padding: 0.8rem 0.9rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.85rem;
	background: #fff;
}

.sheet-field label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
	margin-bottom: 0.35rem;
}

.sheet-value {
	font-size: 0.98rem;
	font-weight: 600;
	color: #0f172a;
}

.solicitacao-document-table th,
.solicitacao-document-table td {
	vertical-align: middle;
}

.solicitacao-document-table td .form-control {
	min-height: 2.5rem;
}

.solicitacao-document-table td.text-muted {
	background: #f8fafc;
	font-size: 0.82rem;
	line-height: 1.35;
	text-align: center;
}

@media (max-width: 768px) {
	.solicitacao-sheet-top {
		grid-template-columns: 1fr;
	}

	.request-table-wrap {
		overflow: visible;
		border: 0;
	}

	.request-table-wrap table,
	.pending-insumos-table,
	.insumo-historico-table {
		min-width: 0;
	}

	.request-table thead,
	.pending-insumos-table thead,
	.insumo-historico-table thead {
		display: none;
	}

	.request-table,
	.pending-insumos-table,
	.insumo-historico-table,
	.request-table tbody,
	.pending-insumos-table tbody,
	.insumo-historico-table tbody,
	.request-table tr,
	.pending-insumos-table tr,
	.insumo-historico-table tr,
	.request-table td,
	.pending-insumos-table td,
	.insumo-historico-table td {
		display: block;
		width: 100%;
	}

	.request-table tr,
	.pending-insumos-table tr,
	.insumo-historico-table tr {
		margin-bottom: 0.9rem;
		border: 1px solid rgba(15, 23, 42, 0.08);
		border-radius: 1rem;
		padding: 0.85rem 0.9rem;
		background: #fff;
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
	}

	.request-table td,
	.pending-insumos-table td,
	.insumo-historico-table td {
		border: 0;
		padding: 0.42rem 0;
		display: flex;
		justify-content: space-between;
		gap: 0.75rem;
		align-items: flex-start;
		white-space: normal;
	}

	.request-table td::before,
	.pending-insumos-table td::before,
	.insumo-historico-table td::before {
		content: attr(data-label);
		flex: 0 0 42%;
		max-width: 42%;
		font-size: 0.68rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: #64748b;
	}

	.pending-insumos-table td .pending-insumos-field {
		width: 100%;
	}

	.pending-insumos-table td .pending-insumos-field-label {
		align-self: flex-end;
	}

	.pending-insumos-table td:last-child,
	.request-table td:last-child,
	.insumo-historico-table td:last-child {
		min-width: 0;
	}

	.pending-insumos-table td:last-child form,
	.insumo-historico-actions {
		gap: 0.65rem;
	}

	.pending-insumos-table td:last-child form + form {
		margin-top: 0;
	}

	.pending-insumos-table td:last-child .pending-insumos-approve,
	.pending-insumos-table td:last-child .pending-insumos-reject,
	.insumo-historico-actions .btn {
		width: 100%;
	}
}

.solicitacoes-filter .form-control,
.solicitacoes-filter .form-select {
	height: 3rem;
	border-radius: 0.9rem;
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: none;
}

.solicitacoes-filter .form-control:focus,
.solicitacoes-filter .form-select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 0.2rem rgba(255, 70, 10, 0.12);
}

@media (max-width: 768px) {
	.solicitacoes-hero {
		border-radius: 1rem;
	}

	.metric-card {
		padding: 1rem;
	}

	.metric-value {
		font-size: 1.6rem;
	}

	.section-card,
	.section-card-header {
		border-radius: 1rem;
	}
}

/* ========================================
   PERFIL DO USUÁRIO / ADMIN
   ======================================== */
.profile-page {
	padding-bottom: 0.5rem;
}

.profile-hero {
	border-radius: 1.35rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
	overflow: hidden;
}

.profile-hero-body {
	display: flex;
	align-items: flex-start;
	gap: 1.2rem;
	padding: 1.15rem 1.2rem;
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.06) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(248, 250, 252, 1) 100%);
}

.profile-hero-avatar-wrap {
	flex: 0 0 auto;
}

.profile-hero-avatar,
.avatar-preview-image {
	width: 116px;
	height: 116px;
	border-radius: 28px;
	object-fit: cover;
	box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.85);
}

.profile-hero-avatar-fallback,
.avatar-preview-fallback {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #ff460a 0%, #ff8a4c 100%);
	color: #fff;
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.profile-hero-content {
	flex: 1 1 auto;
	min-width: 0;
}

.profile-hero-name {
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}

.profile-hero-email {
	color: var(--color-muted);
	font-size: 1rem;
}

.profile-role-badge {
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.5rem 0.75rem;
}

.profile-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.profile-summary-item {
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.profile-summary-item span {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 0.25rem;
}

.profile-summary-item strong {
	display: block;
	font-size: 0.95rem;
	color: #0f172a;
}

.profile-alert {
	border-radius: 1rem;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.profile-tabs {
	border-bottom: 0;
	gap: 0.35rem;
}

.profile-tabs .nav-link {
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.9);
	color: #334155;
	font-weight: 700;
	padding: 0.75rem 1rem;
}

.profile-tabs .nav-link.active {
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.12), rgba(255, 138, 76, 0.12));
	border-color: rgba(255, 70, 10, 0.22);
	color: var(--color-primary);
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.profile-section-card {
	border-radius: 1.25rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.profile-section-card .card-body {
	padding: 1.1rem;
}

.profile-preferences-note {
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.06), rgba(255, 255, 255, 0.96));
	border: 1px solid rgba(255, 70, 10, 0.1);
	color: #475569;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.profile-preference-switches {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.profile-preference-switch {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding-left: 2.2rem;
	min-height: 1.75rem;
	color: #334155;
}

.profile-preference-switch .form-check-input {
	margin-left: -2.2rem;
	margin-top: 0;
	box-shadow: none;
}

.profile-preference-switch .form-check-input:checked {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.profile-preference-switch .form-check-label {
	margin-bottom: 0;
	font-size: 0.95rem;
}

.profile-form .form-label {
	font-weight: 700;
	color: #334155;
}

.profile-form .form-control {
	border-radius: 0.95rem;
	min-height: 2.95rem;
}

.profile-form .input-group .form-control,
.profile-form .input-group .btn,
.profile-form .input-group .input-group-text {
	min-height: 2.95rem;
}

.profile-form-actions .btn {
	min-height: 46px;
}

.password-strength {
	display: grid;
	gap: 0.35rem;
}

.password-strength-bar {
	height: 10px;
	border-radius: 999px;
	background: #e8eef8;
	overflow: hidden;
}

.password-strength-bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	transition: width 0.2s ease, background 0.2s ease;
}

.password-strength.is-empty .password-strength-bar span {
	background: #cbd5e1;
}

.password-strength.is-weak .password-strength-bar span {
	background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
}

.password-strength.is-medium .password-strength-bar span {
	background: linear-gradient(90deg, #f59e0b 0%, #facc15 100%);
}

.password-strength.is-strong .password-strength-bar span {
	background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.password-strength-meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.82rem;
	color: var(--color-muted);
	flex-wrap: wrap;
}

.password-strength-meta span:first-child {
	font-weight: 700;
	color: #334155;
}

.avatar-preview-card {
	padding: 1rem;
	border-radius: 1.15rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
	text-align: center;
}

.avatar-preview-image {
	width: 220px;
	height: 220px;
	margin: 0 auto;
	display: block;
}

.avatar-preview-fallback {
	width: 220px;
	height: 220px;
	margin: 0 auto;
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
}

.avatar-preview-caption {
	margin-top: 0.85rem;
	font-size: 0.88rem;
	color: var(--color-muted);
}

.avatar-actions-box {
	padding: 1rem;
	border-radius: 1rem;
	border: 1px dashed rgba(255, 70, 10, 0.24);
	background: #fffaf8;
}

.profile-activity-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.profile-activity-item {
	display: flex;
	gap: 0.85rem;
	padding: 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: #fff;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.profile-activity-icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: #eef4ff;
	flex: 0 0 auto;
}

.profile-activity-icon.text-primary { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.profile-activity-icon.text-success { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.profile-activity-icon.text-warning { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.profile-activity-icon.text-info { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.profile-activity-icon.text-danger { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.profile-activity-icon.text-muted { background: rgba(100, 116, 139, 0.12); color: #475569; }

.profile-activity-content {
	flex: 1 1 auto;
	min-width: 0;
}

.profile-activity-header {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
	font-size: 0.88rem;
}

.profile-activity-header strong {
	color: #0f172a;
}

.profile-activity-header span,
.profile-activity-meta,
.profile-activity-details {
	color: var(--color-muted);
	font-size: 0.85rem;
}

.profile-activity-title {
	font-weight: 700;
	color: #334155;
	margin-bottom: 0.2rem;
}

.profile-empty-state {
	text-align: center;
	padding: 2rem 1rem;
	border-radius: 1rem;
	border: 1px dashed rgba(15, 23, 42, 0.12);
	background: #fbfdff;
}

.profile-empty-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 0.85rem;
	border-radius: 16px;
	display: grid;
	place-items: center;
	background: rgba(255, 70, 10, 0.08);
	color: var(--color-primary);
	font-size: 1.1rem;
}

/* ========================================
   CONFIGURAÇÕES DO SISTEMA
   ======================================== */
.settings-page {
	padding-bottom: 0.5rem;
}

.settings-form {
	min-width: 0;
}

.settings-color-input {
	width: 4.2rem;
	height: 3.35rem;
	padding: 0.2rem;
	border-radius: 0.95rem;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.settings-color-preview {
	min-width: 10rem;
	flex: 1 1 auto;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 20px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

.settings-color-preview::after {
	content: 'Prévia';
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	opacity: 0.85;
	margin-bottom: 0.25rem;
}

.settings-logo-preview {
	border-radius: 1rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	overflow: hidden;
}

.settings-logo-image {
	max-height: 96px;
	width: auto;
	object-fit: contain;
}

.settings-logo-placeholder {
	width: 96px;
	height: 96px;
	margin: 0 auto;
	border-radius: 1rem;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.08), rgba(255, 138, 76, 0.12));
	color: var(--color-primary);
	font-size: 2rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.theme-dark .settings-color-input {
	background: #1b1b1b;
	border-color: #333;
}

.theme-dark .settings-logo-preview {
	background: linear-gradient(180deg, #171a20 0%, #12151b 100%);
	border-color: #2a3340;
}

.theme-dark .settings-logo-placeholder {
	background: linear-gradient(135deg, rgba(255, 70, 10, 0.12), rgba(255, 138, 76, 0.18));
	color: #ffb08a;
}

.theme-dark .settings-color-preview {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 20px rgba(2, 6, 23, 0.28);
}

@media (max-width: 991.98px) {
	.profile-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.profile-hero-body {
		flex-direction: column;
	}

	.profile-hero-avatar,
	.avatar-preview-image,
	.avatar-preview-fallback {
		width: 100%;
		max-width: 220px;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.profile-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 0.15rem;
	}

	.profile-tabs .nav-item {
		flex: 0 0 auto;
	}
}

@media (max-width: 575.98px) {
	.profile-summary-grid {
		grid-template-columns: 1fr;
	}

	.profile-preferences-note,
	.profile-preference-switches {
		padding: 0.85rem;
	}

	.profile-section-card .card-body,
	.profile-hero-body {
		padding: 1rem;
	}

	.profile-activity-item {
		padding: 0.9rem;
	}

	.avatar-actions-box {
		padding: 0.85rem;
	}

	.profile-hero-name {
		font-size: 1.35rem;
	}
}
