/* ==================================================
   Armador — panel de administración (se suma a /armador/cuenta/cuenta.css)
   ================================================== */
.ad-tag { background: #ff5e00; color: #fff; }
.ad-top-btn { margin-left: auto; }
.ad-deny { max-width: 640px; margin: 0 auto; }

/* indicadores */
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 28px 0; }
.ad-kpi { display: grid; gap: 6px; padding: 18px; background: #fff; border: 2px solid var(--cu-ink); box-shadow: 5px 5px 0 var(--cu-yellow); text-decoration: none; color: var(--cu-ink); }
a.ad-kpi:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cu-yellow); }
.ad-kpi b { font: 900 34px/1 'Archivo', sans-serif; letter-spacing: -.02em; }
.ad-kpi span { font: 700 11px/1.3 var(--cu-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cu-muted); }
.ad-kpi small { font-size: 13px; color: var(--cu-muted); }
.ad-kpi--alert { box-shadow: 5px 5px 0 #d93a2b; }
.ad-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.ad-card { padding: 22px; box-shadow: 5px 5px 0 var(--cu-yellow); }
.ad-card .cu-h3 { margin: 0 0 14px; }
.ad-bar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.ad-bar i { display: block; height: 12px; background: var(--cu-purple); min-width: 2px; }
.ad-bar b { text-align: right; font-family: var(--cu-mono); }

/* filtros y tablas */
.ad-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ad-filters select, .ad-filters input { min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; border: 2px solid var(--cu-ink); border-radius: 0; }
.ad-filters input { flex: 1 1 240px; }
.ad-table-wrap { overflow-x: auto; background: #fff; border: 2px solid var(--cu-ink); }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th { position: sticky; top: 0; padding: 10px 12px; font: 700 11px/1.2 var(--cu-mono); letter-spacing: .06em; text-transform: uppercase; text-align: left; white-space: nowrap; background: #f4f2ee; border-bottom: 2px solid var(--cu-ink); }
.ad-table td { padding: 10px 12px; border-bottom: 1px solid #e6e3dc; vertical-align: top; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table--click tbody tr { cursor: pointer; }
.ad-table--click tbody tr:hover td, .ad-table tbody tr:focus-within td { background: #fffbe0; }
.ad-table a { color: var(--cu-purple); overflow-wrap: anywhere; }
.ad-mut { color: var(--cu-muted); font-size: 12px; }
.ad-pill { display: inline-block; padding: 2px 8px; font: 700 10px/1.6 var(--cu-mono); letter-spacing: .06em; text-transform: uppercase; background: #eee; border: 1px solid var(--cu-ink); white-space: nowrap; }
.ad-pill--ok, .ad-pill--active, .ad-pill--published, .ad-pill--approved, .ad-pill--answered { background: #c8f7d4; }
.ad-pill--open, .ad-pill--pending, .ad-pill--alta { background: var(--cu-yellow); }
.ad-pill--blocked, .ad-pill--error, .ad-pill--rejected, .ad-pill--urgente { background: #ffd0d0; }
.ad-pill--new { background: var(--cu-purple); color: #fff; }
.ad-pill--admin { background: #ff5e00; color: #fff; }

/* solicitudes */
.ad-tk-list { display: grid; gap: 10px; }
.ad-tkrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; width: 100%; padding: 14px 16px; margin: 0 0 10px; text-align: left; font: inherit; color: var(--cu-ink); background: #fff; border: 2px solid var(--cu-ink); cursor: pointer; }
.ad-tkrow:hover { box-shadow: 4px 4px 0 var(--cu-ink); transform: translate(-2px, -2px); }
.ad-tkrow.is-unread { border-left: 8px solid var(--cu-purple); }
.ad-tkrow__code { font: 700 12px/1.3 var(--cu-mono); color: var(--cu-purple); }
.ad-tkrow__sub { display: grid; gap: 3px; min-width: 0; }
.ad-tkrow__sub b { overflow-wrap: anywhere; }
.ad-tkrow__pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ad-tk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ad-tk__main { display: grid; gap: 16px; }
.ad-back { justify-self: start; }
.ad-tk__reply { display: grid; gap: 12px; padding-top: 16px; border-top: 2px dashed rgba(10, 10, 10, .2); }
.ad-tk__side { display: grid; gap: 16px; position: sticky; top: 20px; }
.ad-tk__ctl { display: grid; gap: 12px; }
.ad-tk__ctl select, .ad-user select, .ad-user input { width: 100%; min-height: 42px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; border: 2px solid var(--cu-ink); border-radius: 0; }
.ad-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-quick button { padding: 6px 10px; font: 600 12px/1.2 var(--cu-mono); background: #f4f2ee; border: 1px solid var(--cu-ink); cursor: pointer; }
.ad-quick button:hover { background: var(--cu-yellow); }
.ad-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.ad-dl dt { font: 700 11px/1.6 var(--cu-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cu-muted); }
.ad-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ficha de usuario */
.ad-user { display: grid; gap: 20px; }
.ad-user__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ad-user__box { display: grid; gap: 10px; padding: 16px; background: #fff; border: 2px solid var(--cu-ink); }
.ad-user__box h3 { margin: 0; font: 900 15px/1 'Archivo', sans-serif; text-transform: uppercase; }
.ad-user__box form { display: grid; gap: 8px; }
.ad-user__box .cu-btn { justify-self: start; min-height: 40px; padding: 0 16px; }
.ad-user h4 { margin: 6px 0 8px; font: 700 12px/1 var(--cu-mono); letter-spacing: .08em; text-transform: uppercase; }

/* prueba de correo */
.ad-mail { margin-top: 20px; }
.ad-mail p { margin: 0 0 12px; }
.ad-mail__res { padding: 12px 14px; font-size: 14px; border: 2px solid var(--cu-ink); background: #f4f2ee; overflow-wrap: anywhere; }
.ad-mail__res.is-ok { background: #c8f7d4; }
.ad-mail__res.is-err { background: #ffd0d0; }

@media (max-width: 1100px) {
	.ad-tk { grid-template-columns: 1fr; }
	.ad-tk__side { position: static; }
	.ad-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.ad-tkrow { grid-template-columns: 1fr; }
	.ad-tkrow__pills { justify-content: flex-start; }
}
