/* TECNOFIXSUITE - Estilos */
:root { --tfs-accent: #0d6efd; --sidebar-w: 250px; --sidebar-bg: #111827; }
body { background: #f3f4f6; font-size: .92rem; }
.has-sidebar .main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); background: var(--sidebar-bg); color: #cbd5e1; display: flex; flex-direction: column; z-index: 1040; transition: transform .2s; }
.sidebar-brand { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand a { color: #fff; font-size: 1.05rem; line-height: 1.1; }
.sidebar-brand small { font-size: .7rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--tfs-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.sidebar-nav .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 14px 18px 4px; }
.sidebar-nav .nav-link { color: #cbd5e1; padding: 7px 18px; display: flex; gap: 10px; align-items: center; border-left: 3px solid transparent; font-size: .88rem; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-nav .nav-link.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--tfs-accent); }
.sidebar-foot { font-size: .7rem; color: #64748b; padding: 8px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.topbar { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.content { padding: 20px; flex: 1; }
.card { border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card-header { background: #fff; font-weight: 600; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; color: #6b7280; letter-spacing: .03em; background: #f9fafb; white-space: nowrap; }
.kpi { border-radius: 12px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; height: 100%; }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.kpi .kpi-value { font-size: 1.4rem; font-weight: 700; }
.kpi .kpi-label { color: #6b7280; font-size: .8rem; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { min-width: 270px; max-width: 270px; background: #e5e7eb; border-radius: 10px; padding: 8px; }
.kanban-col h6 { font-size: .8rem; text-transform: uppercase; margin: 4px 4px 8px; }
.kanban-card { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: .82rem; cursor: grab; }
.kanban-card.dragging { opacity: .5; }
.kanban-col.drop-hover { outline: 2px dashed var(--tfs-accent); }
.timeline { border-left: 2px solid #e5e7eb; padding-left: 16px; }
.timeline .tl-item { position: relative; margin-bottom: 14px; }
.timeline .tl-item::before { content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--tfs-accent); }
.photo-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.sig-canvas { width: 100%; height: 180px; border: 1px dashed #9ca3af; border-radius: 8px; background: #fff; touch-action: none; }
.fuel-gauge .btn { min-width: 44px; }
.chk-row td { vertical-align: middle; }
.perm-module { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; background: #fff; }
.perm-module .perm-head { background: #f9fafb; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; border-radius: 10px 10px 0 0; }
.perm-module .perm-body { padding: 8px 12px; columns: 2; }
.perm-module .perm-body .form-check { break-inside: avoid; }
@media (max-width: 767px) { .perm-module .perm-body { columns: 1; } }
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #111827 0%, #1e3a8a 60%, #0d6efd 100%); }
.login-card { width: 100%; max-width: 420px; border-radius: 16px; margin: 16px; }
.login-logo { width: 64px; height: 64px; border-radius: 16px; background: #0d6efd; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 10px; }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0; }
.ts-control { min-height: 31px; }
.cursor-pointer { cursor: pointer; }
.text-xs { font-size: .75rem; }
@media (max-width: 991px) {
  .has-sidebar .main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .content { padding: 12px; }
}
@media print { .sidebar, .topbar, .no-print { display: none !important; } .has-sidebar .main { margin: 0; } }
.content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item) { text-decoration: none; }
.content a:not(.btn):hover { text-decoration: underline; }
