@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root { --tt-primary: #626AD4; --tt-dark: #040032; --tt-bg: #EEF0FB; --tt-text: #3E4487; --tt-muted: #8991C4; --tt-border: #E4E6F7; --tt-soft: #D9DCF7; --tt-green: #2FCC98; --tt-rrhh: #4527A0; --tt-white: #ffffff; }

* { box-sizing: border-box; }

body { margin: 0; font-family: 'Poppins', Helvetica, Arial, sans-serif; background: var(--tt-bg); color: var(--tt-text); }
.tt-shell { display: flex; min-height: 100vh; }
.tt-sidebar { width: 220px; background: var(--tt-white); border-right: 1px solid var(--tt-border); padding: 24px 14px; flex-shrink: 0; display: flex; flex-direction: column; }
.tt-logo-row { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 28px; } .tt-logo-badge { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--tt-primary), var(--tt-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; } .tt-logo-text { font-weight: 700; font-size: 14px; color: var(--tt-dark); }
.tt-nav { display: flex; flex-direction: column; gap: 4px; } .tt-nav-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--tt-text); padding: 9px 12px; border-radius: 12px; text-decoration: none; } .tt-nav-item:hover { background: var(--tt-bg); } .tt-nav-item.active { background: var(--tt-bg); color: var(--tt-dark); font-weight: 600; } .tt-nav-item.disabled { color: #B4B2A9; pointer-events: none; } .tt-badge-soon { margin-left: auto; font-size: 9px; font-weight: 600; background: #F1EFE8; color: #888780; padding: 2px 6px; border-radius: 10px; }
.tt-sidebar-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--tt-border); } .tt-user-name { font-size: 12.5px; font-weight: 600; color: var(--tt-dark); padding: 0 12px 8px; } .tt-logout { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent; color: var(--tt-muted); font-family: inherit; font-size: 12.5px; padding: 8px 12px; cursor: pointer; border-radius: 12px; } .tt-logout:hover { background: var(--tt-bg); }
.tt-main { flex: 1; padding: 32px 40px; } .tt-eyebrow { font-size: 13px; color: var(--tt-muted); margin: 0 0 2px; font-weight: 300; } .tt-h1 { font-size: 24px; font-weight: 700; color: var(--tt-dark); margin: 0 0 24px; text-transform: capitalize; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } .tt-card { background: var(--tt-white); border-radius: 20px; padding: 20px; border: 1px solid var(--tt-border); text-decoration: none; color: inherit; display: block; } .tt-card.disabled { opacity: 0.7; pointer-events: none; } .tt-card-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--tt-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--tt-primary); font-weight: 700; } .tt-card-title { font-weight: 600; font-size: 14px; color: var(--tt-dark); margin-bottom: 4px; } .tt-card-status { font-size: 12px; color: var(--tt-muted); }
.tt-login-wrap { min-height: 100vh; background: linear-gradient(140deg, var(--tt-primary), var(--tt-dark)); display: flex; align-items: center; justify-content: center; padding: 48px 20px; } .tt-login-card { background: var(--tt-white); border-radius: 25px; padding: 40px 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(4,0,50,0.25); } .tt-login-head { text-align: center; margin-bottom: 28px; } .tt-login-badge { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg, var(--tt-primary), var(--tt-dark)); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; } .tt-login-title { font-size: 20px; font-weight: 700; color: var(--tt-dark); margin: 0 0 4px; } .tt-login-sub { font-size: 13px; color: var(--tt-muted); margin: 0; font-weight: 300; }
.tt-field { margin-bottom: 14px; } .tt-field label { font-size: 12px; font-weight: 600; color: var(--tt-text); display: block; margin-bottom: 6px; } .tt-field input { width: 100%; padding: 11px 14px; border-radius: 15px; border: 1px solid var(--tt-soft); font-size: 14px; font-family: inherit; color: var(--tt-dark); }
.tt-error-box { background: #FAECE7; color: #993C1D; font-size: 12.5px; padding: 9px 12px; border-radius: 12px; margin-bottom: 14px; display: none; } .tt-error-box.show { display: block; }
.tt-btn-primary { width: 100%; border: none; background: var(--tt-primary); color: #fff; font-family: inherit; font-weight: 600; font-size: 14px; padding: 12px; border-radius: 15px; cursor: pointer; } .tt-btn-primary:disabled { background: #B4B2A9; cursor: default; }
.tt-hint { text-align: center; font-size: 11px; color: #B4B2A9; margin-top: 20px; }

/* ---- Secciones internas (vacaciones, teletrabajo, ...) ---- */
.tt-section { background: var(--tt-white); border: 1px solid var(--tt-border); border-radius: 20px; padding: 20px 22px; margin-bottom: 20px; }
.tt-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tt-section-title { font-size: 15px; font-weight: 600; color: var(--tt-dark); margin: 0; }
.tt-section-sub { font-size: 12px; color: var(--tt-muted); margin: 2px 0 0; font-weight: 300; }

.tt-btn-secondary { border: 1px solid var(--tt-soft); background: var(--tt-white); color: var(--tt-primary); font-family: inherit; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 12px; cursor: pointer; }
.tt-btn-secondary:hover { background: var(--tt-bg); }
.tt-btn-ghost { border: none; background: transparent; color: var(--tt-muted); font-family: inherit; font-size: 18px; line-height: 1; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.tt-btn-ghost:hover { background: var(--tt-bg); color: var(--tt-dark); }

.tt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.tt-form.tt-collapsed { display: none; }
.tt-form .tt-field { margin-bottom: 0; }
.tt-field select, .tt-field textarea { width: 100%; padding: 11px 14px; border-radius: 15px; border: 1px solid var(--tt-soft); font-size: 14px; font-family: inherit; color: var(--tt-dark); background: var(--tt-white); }
.tt-field textarea { resize: vertical; min-height: 44px; }
.tt-form-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }

.tt-table-wrap { overflow-x: auto; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-table th { text-align: left; font-weight: 600; color: var(--tt-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--tt-border); white-space: nowrap; }
.tt-table td { padding: 11px 10px; border-bottom: 1px solid var(--tt-border); color: var(--tt-text); }
.tt-table tr:last-child td { border-bottom: none; }
.tt-empty { text-align: center; color: var(--tt-muted); font-size: 13px; padding: 24px; }
.tt-loading { color: var(--tt-muted); font-size: 13px; padding: 20px; text-align: center; }

.tt-state { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: var(--tt-bg); color: var(--tt-text); }
.tt-state.ok { background: #E4F8F0; color: #1B8F68; }
.tt-state.pending { background: #FEF4E2; color: #A9701A; }
.tt-state.no { background: #FAECE7; color: #993C1D; }
.tt-state.draft { background: #EEF0FB; color: #8991C4; }

.tt-cal-head { display: flex; align-items: center; gap: 8px; }
.tt-cal-month { font-size: 14px; font-weight: 600; color: var(--tt-dark); min-width: 160px; text-align: center; text-transform: capitalize; }
.tt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tt-cal-dow { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--tt-muted); text-align: center; padding: 4px 0; letter-spacing: .04em; }
.tt-cal-day { min-height: 82px; border: 1px solid var(--tt-border); border-radius: 12px; padding: 5px 6px; background: var(--tt-white); overflow: hidden; }
.tt-cal-day.tt-out { background: #FAFBFE; }
.tt-cal-day.tt-weekend { background: #F7F8FD; }
.tt-cal-day.tt-today { border-color: var(--tt-primary); box-shadow: inset 0 0 0 1px var(--tt-primary); }
.tt-cal-num { font-size: 11px; font-weight: 600; color: var(--tt-muted); margin-bottom: 3px; }
.tt-cal-chip { display: block; font-size: 10.5px; line-height: 1.4; background: var(--tt-bg); color: var(--tt-text); border-radius: 7px; padding: 1px 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-cal-more { font-size: 10px; color: var(--tt-muted); font-weight: 600; padding-left: 2px; }

.tt-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--tt-dark); color: #fff; font-size: 13px; padding: 12px 20px; border-radius: 14px; box-shadow: 0 12px 30px rgba(4,0,50,0.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: 90vw; text-align: center; }
.tt-toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.tt-toast.err { background: #993C1D; }
