/* Almoxarifado Aero — aplicativo no site via shortcode [almoxarifado].
   Estilos isolados em .alx-app para não interferir no tema. */
.alx-app { --marca: #0f2147; --marca2: #1d3d7a; --destaque: #f2a900; --borda: #dcdcde; --sub: #50575e;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1d2327; text-align: left;
	background: #f0f0f1; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; margin: 1em 0; }
.alx-app *, .alx-app *::before, .alx-app *::after { box-sizing: border-box; }
.alx-app.alx-full { width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; border-radius: 0; border-left: 0; border-right: 0; }
.alx-app a { color: #2271b1; text-decoration: none; box-shadow: none; }
.alx-app a:hover { text-decoration: underline; }
.alx-app img { max-width: 100%; height: auto; }

/* Topo */
.alx-app-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #fff; background: linear-gradient(120deg, var(--marca), var(--marca2)); border-bottom: 3px solid var(--destaque); }
.alx-app-top img { max-height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.alx-app-top img.bg { background: #fff; border-radius: 6px; padding: 3px 6px; }
.alx-app-marca strong { display: block; font-size: 15px; line-height: 1.2; }
.alx-app-marca span { font-size: 12px; opacity: .85; }
.alx-app-user { margin-left: auto; font-size: 12px; opacity: .9; white-space: nowrap; }
.alx-app-user a { color: #fff !important; text-decoration: underline; }
.alx-app-user .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: text-bottom; }
.alx-app-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px !important; margin: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer; border-radius: 6px; }
.alx-app-burger i { display: block; height: 3px; width: 100%; background: #fff; border-radius: 2px; }

/* Corpo: menu lateral + aba aberta */
.alx-app-body { display: flex; min-height: 640px; position: relative; }
.alx-app-nav { width: 230px; flex: 0 0 230px; background: #1d2327; padding: 8px 0 24px; }
.alx-app-grupo { color: #a7aaad; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px 6px; }
.alx-app-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 16px; color: #f0f0f1 !important; font-size: 14px; border-left: 4px solid transparent; }
.alx-app-nav a:hover { background: #2c3338; text-decoration: none; color: #72aee6 !important; }
.alx-app-nav a.on { background: var(--marca); border-left-color: var(--destaque); font-weight: 600; color: #fff !important; }
.alx-app-nav .dashicons { font-size: 18px; width: 18px; height: 18px; opacity: .85; }
.alx-app-nav .t { flex: 1; }
.alx-app-badge { background: #d63638; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.alx-app-badge.amarelo { background: #dba617; color: #1d2327; }
.alx-app-main { flex: 1; min-width: 0; padding: 16px 22px 30px; background: #f0f0f1; overflow-x: auto; }
.alx-app.sem-menu .alx-app-main { padding: 16px; }
.alx-app-veu { display: none; }

/* Elementos no estilo do painel */
.alx-app .wrap { margin: 0; }
.alx-app h1, .alx-app h2, .alx-app h3, .alx-app .wp-heading-inline { font-family: inherit; letter-spacing: normal; text-transform: none; }
.alx-app h1, .alx-app .wp-heading-inline { display: inline-block; font-size: 23px; font-weight: 400; margin: 0 8px 12px 0; padding: 0; line-height: 1.3; color: #1d2327; }
.alx-app h2 { font-size: 1.3em; margin: 1em 0; color: #1d2327; }
.alx-app h2.alx-h2 { font-size: 16px; }
.alx-app p { margin: 0 0 1em; }
.alx-app .wp-header-end { visibility: hidden; margin: -2px 0 0; border: 0; }
.alx-app .description { color: #646970; font-size: 13px; font-style: normal; }
.alx-app .ul-disc { list-style: disc; margin: 0 0 1em 22px; }
.alx-app ul { margin: 0; padding: 0; }
.alx-app .button, .alx-app .page-title-action, .alx-app input[type=submit].button { display: inline-block; text-decoration: none; font-size: 13px; line-height: 2.15384615; min-height: 30px; margin: 0; padding: 0 10px; cursor: pointer; border: 1px solid #2271b1; border-radius: 3px; background: #f6f7f7; color: #2271b1; white-space: nowrap; vertical-align: middle; font-family: inherit; }
.alx-app .page-title-action { margin-left: 4px; position: relative; top: -3px; }
.alx-app .button:hover, .alx-app .page-title-action:hover { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; text-decoration: none; }
.alx-app .button-primary, .alx-app input[type=submit].button-primary { background: var(--marca); border-color: var(--marca); color: #fff; }
.alx-app .button-primary:hover { background: var(--marca2); border-color: var(--marca2); color: #fff; }
.alx-app .button-small { min-height: 26px; line-height: 2.18181818; padding: 0 8px; font-size: 11px; }
.alx-app .button-link { background: none; border: 0; color: #2271b1; cursor: pointer; padding: 0; text-decoration: underline; font-size: 13px; }
.alx-app p.submit { margin: 16px 0 0; padding: 0; }
.alx-app .notice { background: #fff; border: 1px solid #c3c4c7; border-left: 4px solid #72aee6; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 5px 0 15px; padding: 1px 12px; }
.alx-app .notice p { margin: .5em 0; padding: 2px; }
.alx-app .notice-success { border-left-color: #00a32a; }
.alx-app .notice-error { border-left-color: #d63638; }
.alx-app .notice-warning { border-left-color: #dba617; }
.alx-app .notice-info { border-left-color: #72aee6; }
.alx-app .nav-tab-wrapper { border-bottom: 1px solid #c3c4c7; margin: 0 0 12px; padding-top: 9px; font-size: 14px; }
.alx-app .nav-tab { display: inline-block; border: 1px solid #c3c4c7; border-bottom: 0; margin: 0 4px -1px 0; padding: 5px 10px; font-weight: 600; background: #dcdcde; color: #50575e; }
.alx-app .nav-tab-active { background: #f0f0f1; color: #000; border-bottom: 1px solid #f0f0f1; }
.alx-app table.widefat { width: 100%; border-collapse: collapse; border: 1px solid #c3c4c7; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 0 0 1em; font-size: 13px; }
.alx-app .widefat th, .alx-app .widefat td { padding: 8px 10px; text-align: left; border: 0; border-bottom: 1px solid #f0f0f1; vertical-align: top; color: #50575e; }
.alx-app .widefat thead th, .alx-app .widefat thead td { border-bottom: 1px solid #c3c4c7; font-weight: 400; color: #2c3338; background: #fff; }
.alx-app .widefat td strong, .alx-app .widefat td b { color: #1d2327; }
.alx-app .striped > tbody > :nth-child(odd) { background: #f6f7f7; }
.alx-app .check-column { width: 2.2em; }
.alx-app input[type=text], .alx-app input[type=search], .alx-app input[type=email], .alx-app input[type=url], .alx-app input[type=tel], .alx-app input[type=number], .alx-app input[type=date], .alx-app input[type=datetime-local], .alx-app select, .alx-app textarea { font: inherit; font-size: 14px; color: #2c3338; background: #fff; border: 1px solid #8c8f94; border-radius: 4px; padding: 3px 8px; min-height: 32px; line-height: 2; box-shadow: none; max-width: 100%; width: auto; margin: 0; }
.alx-app textarea { line-height: 1.5; padding: 6px 8px; width: 100%; }
.alx-app input:focus, .alx-app select:focus, .alx-app textarea:focus { border-color: var(--marca2); box-shadow: 0 0 0 1px var(--marca2); outline: 0; }
.alx-app label { display: inline; font-weight: inherit; margin: 0; }
.alx-app .alx-field label { display: block; }
.alx-app input[type=checkbox], .alx-app input[type=radio] { width: auto; min-height: 0; margin: 0 4px 0 0; }
.alx-app .alx-card { text-decoration: none !important; }

/* Tela de login no site */
.alx-app-login { display: flex; justify-content: center; padding: 40px 16px; background: linear-gradient(160deg, var(--marca), var(--marca2)); }
.alx-login-box { width: 100%; max-width: 360px; background: #fff; border-radius: 12px; border-top: 4px solid var(--destaque); padding: 26px 24px; box-shadow: 0 6px 24px rgba(0,0,0,.25); text-align: center; }
.alx-login-logo { max-height: 70px; width: auto; margin: 0 auto 8px; display: block; }
.alx-login-box h2 { margin: 6px 0 2px; font-size: 20px; color: var(--marca); }
.alx-login-box > p { color: #646970; margin: 0 0 16px; }
.alx-login-box form { text-align: left; }
.alx-login-box form p { margin: 0 0 12px; }
.alx-login-box label { display: block; font-weight: 600; margin-bottom: 4px; }
.alx-login-box input[type=text], .alx-login-box input[type=password] { width: 100%; font-size: 16px; padding: 8px 10px; border: 1px solid #8c8f94; border-radius: 6px; }
.alx-login-box .login-remember label { font-weight: 400; }
.alx-login-box input[type=submit] { width: 100%; padding: 11px; font-size: 16px; font-weight: 700; border: 0; border-radius: 8px; background: var(--marca); color: #fff; cursor: pointer; }
.alx-app-aviso { padding: 20px; background: #fff; }

/* Celular / tablet: menu vira gaveta */
@media (max-width: 900px) {
	.alx-app-burger { display: inline-flex; }
	.alx-app-user { display: none; }
	.alx-app-nav { position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 4px 0 18px rgba(0,0,0,.3); overflow-y: auto; }
	.alx-app.menu-aberto .alx-app-nav { transform: none; }
	.alx-app.menu-aberto .alx-app-veu { display: block; position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.35); }
	.alx-app-main { padding: 12px; }
	.alx-app table.widefat { display: block; overflow-x: auto; white-space: nowrap; }
	.alx-app .alx-grid { grid-template-columns: 1fr; }
	.alx-app .alx-marca-layout { grid-template-columns: 1fr; }
}
/* Mecânico logado: página do crachá dentro do site */
.alx-app-mec .alx-app-top { border-radius: 10px 10px 0 0; }
.alx-app-mec-frame { display: block; width: 100%; height: 88vh; min-height: 640px; border: 0; background: #eef1f6; }
.alx-app-mec-link { text-align: right; font-size: 13px; margin: 6px 0 0; }
/* "Sair" no menu só aparece no celular (no computador fica no topo). */
.alx-app-nav .alx-app-conta { display: none; }
@media (max-width: 900px) { .alx-app-nav .alx-app-conta { display: flex; } .alx-app-nav div.alx-app-conta { display: block; } }
