:root { --td-navy:#172c55; --td-blue:#1b84ff; --td-bg:#f5f8fa; }
body { font-family: Poppins, Arial, sans-serif; background:var(--td-bg); }
.login-page { min-height:100vh; }.login-artwork { min-height:100vh; background:var(--td-bg) url('assets/media/illustrations/sigma-1/14.bcf37bb9f61c52d0ca81.png') bottom center/contain no-repeat fixed; }
.brand { display:inline-flex; gap:.65rem; align-items:center; color:#172c55; font-size:1.45rem; font-weight:700; text-decoration:none; letter-spacing:-.4px; }.brand-mark { display:grid; place-items:center; width:2.1rem; height:2.1rem; border-radius:.6rem; background:#1b84ff; color:white; font-size:1.3rem; }
.app-shell { display:flex; min-height:100vh; }.app-aside { width:270px; flex-shrink:0; display:flex; flex-direction:column; background:var(--td-navy); padding:28px 18px 20px; }.brand-light { color:#fff; padding:0 12px 28px; }.brand-light .brand-mark { background:#fff; color:var(--td-blue); }.aside-label { color:#8394b5; font-size:.7rem; font-weight:700; letter-spacing:.08em; padding:10px 12px; }.aside-nav { display:flex; flex-direction:column; gap:4px; }.aside-nav .nav-link { display:flex; align-items:center; gap:14px; padding:11px 12px; color:#b4c0d4; border-radius:7px; font-weight:600; text-decoration:none; }.aside-nav .nav-link span { width:18px; text-align:center; color:#91bfff; }.aside-nav .nav-link:hover,.aside-nav .nav-link.active { background:rgba(255,255,255,.10); color:#fff; }.aside-nav .nav-link.active span { color:#fff; }
.app-main { flex:1; min-width:0; }.app-header { height:74px; background:white; border-bottom:1px solid #eff2f5; display:flex; align-items:center; justify-content:space-between; padding:0 32px; gap:16px; position:sticky; top:0; z-index:4; }.header-search { min-width:280px; max-width:460px; flex:1; display:flex; gap:10px; align-items:center; border-radius:8px; background:#f5f8fa; padding:9px 13px; color:#7e8299; }.header-search input { border:0; outline:0; background:transparent; width:100%; }.header-actions { display:flex; align-items:center; gap:12px; }.user-chip { display:flex; align-items:center; gap:9px; text-decoration:none; color:#3f4254; }.user-chip small { display:block; color:#a1a5b7; font-size:.72rem; }.avatar { display:grid; place-items:center; flex-shrink:0; width:38px; height:38px; border-radius:50%; color:#1b84ff; background:#e1f0ff; font-size:.75rem; font-weight:700; }.app-content { padding:32px; max-width:1500px; margin:auto; }.page-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:26px; }.page-heading h1 { font-size:1.55rem; margin:0 0 5px; }.page-heading p { margin:0; color:#7e8299; }.stat-card,.content-card { background:white; border:1px solid #eff2f5; border-radius:10px; box-shadow:0 0 20px rgba(76,87,125,.03); }.stat-card { padding:22px; height:100%; }.stat-label { color:#7e8299; font-weight:600; font-size:.84rem; }.stat-number { display:block; font-size:1.65rem; font-weight:700; margin:8px 0; color:#181c32; }.trend { font-size:.78rem; font-weight:600; }.trend.up { color:#50cd89; }.trend.warn { color:#f6c000; }.content-card { padding:24px; margin-bottom:24px; }.card-title { font-weight:700; font-size:1.1rem; color:#181c32; }.card-subtitle { font-size:.82rem; color:#a1a5b7; }.table { --bs-table-bg:transparent; }.table thead th { color:#a1a5b7; text-transform:uppercase; font-size:.7rem; letter-spacing:.04em; border:0; }.table tbody td { padding:15px 8px; vertical-align:middle; border-color:#eff2f5; }.entity { display:flex; gap:11px; align-items:center; }.entity .avatar { width:34px; height:34px; }.entity b { display:block; font-size:.88rem; }.entity small { color:#a1a5b7; }.badge-soft-primary { background:#e1f0ff; color:#1b84ff; }.badge-soft-success { background:#e8fff3; color:#50cd89; }.badge-soft-warning { background:#fff8dd; color:#f1bc00; }.badge-soft-muted { background:#f1f1f2; color:#7e8299; }.progress { height:7px; background:#eff2f5; }.list-row { padding:15px 0; border-bottom:1px solid #eff2f5; }.list-row:last-child { border:0; }.timeline-dot { width:10px; height:10px; border-radius:50%; background:#1b84ff; margin:7px 14px 0 2px; flex:none; }.detail-hero { background:linear-gradient(110deg,#172c55,#275ea7); border-radius:10px; padding:28px; color:#fff; margin-bottom:24px; }.detail-hero p { color:#d3e6ff; margin:5px 0 0; }.detail-hero .avatar { width:62px; height:62px; background:rgba(255,255,255,.18); color:#fff; font-size:1rem; }.kv dt { color:#a1a5b7; font-size:.77rem; text-transform:uppercase; margin-bottom:4px; }.kv dd { font-weight:600; margin-bottom:20px; }.empty-note { border:1px dashed #d9e1e9; border-radius:8px; color:#7e8299; padding:22px; text-align:center; }.mobile-backdrop { display:none; }
@media (max-width:991px) { .app-aside { position:fixed; z-index:10; left:-280px; height:100vh; transition:left .2s; }.app-shell.menu-open .app-aside { left:0; }.app-shell.menu-open .mobile-backdrop { display:block; position:fixed; inset:0; z-index:9; background:rgba(0,0,0,.3); }.app-header { padding:0 18px; }.app-content { padding:24px 18px; }.header-search { min-width:0; }.page-heading { flex-direction:column; } }

/* Composicion del dashboard demo2: cabecera horizontal, fondo de patron y mosaico superpuesto. */
.intranet-body { background:#f5f8fa; }
.intranet-top { height:355px; background-image:url('assets/media/patterns/header-bg.bcf37bb9f61c52d0ca81.jpg'); background-position:center top; background-size:100% 350px; background-repeat:no-repeat; }
@media (max-width:991.98px) { .intranet-top { background-size:100% 200px; } }
.intranet-header { height:84px; }
.intranet-header .container-xxl { gap:34px; }.top-brand { display:flex; align-items:center; gap:10px; color:white; font-size:18px; font-weight:700; text-decoration:none; }.top-brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; background:white; color:#157be8; font-size:19px; font-weight:800; }
.top-nav { display:flex; align-items:center; gap:5px; height:100%; }.top-nav a { color:rgba(255,255,255,.94); text-decoration:none; font-weight:600; padding:12px 14px; border-radius:7px; }.top-nav a:hover,.top-nav a.active { background:rgba(255,255,255,.15); color:#fff; }
.top-nav a[data-view="dashboard"] { order:1; }.top-nav a[data-view="recruitment"] { order:2; }.top-nav a[data-view="collaborators"] { order:3; }.top-nav a[data-view="clients"] { order:4; }.top-nav a[data-view="projects"] { order:5; }.top-nav a[data-view="assignments"] { order:6; }.top-nav a[data-view="times"] { order:7; }.top-nav a[data-view="absences"] { order:8; }
.top-tools { display:flex; align-items:center; gap:12px; }.top-icon { border:0; background:transparent; color:white; font-size:19px; line-height:1; padding:8px; }.top-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:6px; background:#f5c258; color:#24376b; font-size:10px; font-weight:800; text-decoration:none; }
.user-menu-wrap { position:relative; }.user-menu-toggle { width:40px; height:40px; padding:0; overflow:hidden; border:0; border-radius:6px; background:#f4cb5e; box-shadow:0 0 0 5px rgba(245,194,88,.18); }.user-menu-toggle { display:inline-flex; align-items:center; justify-content:center; color:#3f4254; }.user-menu-toggle .user-initials { font-size:15px; font-weight:700; line-height:1; letter-spacing:.02em; color:#3f4254; }.user-menu-toggle .user-initials-icon { font-size:20px; line-height:1; }.user-menu .avatar.user-initials { width:50px; height:50px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:.475rem; background:#f4cb5e; color:#3f4254; font-size:17px; font-weight:700; }.user-menu .avatar.user-initials .user-initials-icon { font-size:22px; }.user-menu { position:absolute; right:0; top:calc(100% + 10px); z-index:30; width:275px; padding:1rem 0; border-radius:.475rem; background:#fff; box-shadow:0 0 50px 0 rgba(82,63,105,.18); color:#3f4254; }.user-menu .symbol img { width:50px; height:50px; border-radius:.475rem; object-fit:cover; }.user-menu .menu-link { width:100%; min-height:41px; display:flex; align-items:center; gap:.5rem; border:0; background:transparent; color:#3f4254; font-family:inherit; font-size:14px; font-weight:600; text-decoration:none; text-align:left; cursor:pointer; }.user-menu .menu-link:hover,.user-menu .menu-link:focus { color:#009ef7; background:#f5f8fa; outline:0; }.user-menu .menu-badge { margin-left:auto; }.user-menu .menu-dark-mode { display:flex; align-items:center; min-height:34px; cursor:pointer; }.user-menu .menu-dark-mode .form-check-input { flex:none; }.intranet-body.dark-mode { --td-bg:#151521; background:#151521; }.intranet-body.dark-mode .intranet-content { background:#151521; }.intranet-body.dark-mode .card,.intranet-body.dark-mode .content-card { background:#1e1e2d; color:#fff; }.intranet-body.dark-mode .text-gray-800,.intranet-body.dark-mode .card-title { color:#fff!important; }
.intranet-hero { height:271px; }.intranet-hero .container-xxl { padding-top:54px; padding-bottom:30px; }.intranet-hero h1 { color:#fff; font-size:1.55rem; font-weight:700; margin:0 0 7px; }.hero-crumb { color:rgba(255,255,255,.72); font-size:.88rem; font-weight:600; }.hero-crumb span { padding:0 7px; }.hero-crumb b { color:#fff; }.btn-hero { background:rgba(255,255,255,.12); color:#fff; font-weight:700; }.btn-hero:hover { background:#fff; color:#147de8; }
.intranet-content { margin-top:-120px; padding-bottom:56px; }.intranet-content > .container-xxl { min-height:650px; }.intranet-content .page-heading { display:none; }.intranet-content .content-card,.intranet-content .stat-card { border:0; box-shadow:0 12px 30px rgba(42,69,112,.06); }.dashboard-grid .card { border:0; box-shadow:0 12px 30px rgba(42,69,112,.06); }.mosaic-card { min-height:175px; }.mosaic-tall { min-height:364px; }.mosaic-mini { min-height:165px; }.mosaic-report { min-height:364px; background:url('assets/media/misc/bg-2.bcf37bb9f61c52d0ca81.jpg') center/cover; }.mosaic-pattern { background:#663259 url('assets/media/svg/misc/taieri.bcf37bb9f61c52d0ca81.svg') right bottom/85% auto no-repeat; }.mosaic-property { background:url('assets/media/stock/600x400/img-75.bcf37bb9f61c52d0ca81.jpg') center/cover; }.chart-area { height:142px; position:relative; overflow:hidden; background:linear-gradient(to bottom,transparent 48%,#fff 48%); }.chart-area:before { content:""; position:absolute; inset:15px 0 0; background:#e5fff1; clip-path:polygon(0 52%,18% 52%,31% 52%,41% 10%,48% 0,56% 8%,68% 62%,84% 62%,92% 38%,100% 30%,100% 100%,0 100%); }.chart-area:after { content:""; position:absolute; left:0; right:0; top:69px; height:3px; background:#50cd89; clip-path:polygon(0 0,18% 0,31% 0,41% 0,48% 0,56% 0,68% 0,84% 0,92% 0,100% 0); }.quick-row { border-bottom:1px solid #eff2f5; padding:14px 0; }.quick-row:last-child { border-bottom:0; }.quick-icon { width:44px; height:44px; display:grid; place-items:center; background:#f1f7ff; color:#1b84ff; border-radius:7px; font-weight:800; }.metric-value { font-size:1.85rem; font-weight:700; }.nav-drawer { display:none; }
@media (max-width:991px) { .intranet-top { height:230px; }.intranet-header { height:74px; }.intranet-header .container-xxl { gap:12px; }.top-nav { display:none; }.intranet-hero { height:156px; }.intranet-hero .container-xxl { padding-top:42px; }.intranet-content { margin-top:-70px; padding:0 14px 40px; }.intranet-content .container-xxl { padding:0; }.top-tools .top-icon:not(:first-child) { display:none; } }

/* Patron reutilizable de listados tomado de apps/user-management/users/list.html. */
.record-list-card { position:relative; }.record-list-card .card-toolbar { position:relative; }.record-list-card .record-filter-panel { position:absolute; right:0; top:calc(100% + .5rem); z-index:10; width:325px; border-radius:.475rem; background:#fff; }.record-list-card .record-sort { cursor:pointer; user-select:none; white-space:nowrap; }.record-list-card .record-sort:hover { color:#1b84ff; }.record-list-card .pagination { margin-bottom:0; }.record-list-card .page-link { border:0; border-radius:.475rem; margin-left:.25rem; font-weight:600; }.record-list-card .table > :not(caption) > * > * { padding-top:1.15rem; padding-bottom:1.15rem; }.record-list-card .symbol-label { display:grid; place-items:center; }.record-list-card .modal-content { border:0; border-radius:.625rem; }.record-list-card .modal-header { padding:1.75rem 2rem; }.record-list-card .modal-footer { padding:1.25rem 2rem 1.75rem; }
@media (max-width:767px) { .record-list-card .card-header { flex-wrap:wrap; gap:1rem; }.record-list-card .card-toolbar,.record-list-card [data-record-toolbar] { width:100%; }.record-list-card [data-record-toolbar] { justify-content:flex-start!important; flex-wrap:wrap; gap:.5rem; }.record-list-card [data-record-toolbar] .me-3 { margin-right:0!important; }.record-list-card .record-filter-panel { left:0; right:auto; max-width:100%; }.record-list-card .table-responsive { overflow-x:auto; } }

/* Fichas basadas respectivamente en user-management/users/view y pages/projects/project. */
.employee-view .card,.project-view .card { border:0; box-shadow:0 0 28px 0 rgba(82,63,105,.05); }.employee-view .nav-link,.project-view .nav-link { cursor:pointer; white-space:nowrap; }.employee-view .symbol-label,.project-view .symbol-label { display:grid; place-items:center; }.employee-view .progress,.project-view .progress { background:#eff2f5; }.employee-view .card-body,.project-view .card-body { min-width:0; }
@media (max-width:991px) { .employee-view .flex-lg-row-fluid { margin-left:0!important; }.employee-view .w-lg-300px,.employee-view .w-xl-350px { width:100%!important; }.employee-view .symbol-lg-160px { width:100px!important; height:100px!important; } }

/* Paneles de herramientas de la cabecera, siguiendo los menus y drawers de demo2. */
.header-overlay { position:fixed; inset:0; z-index:39; background:rgba(0,0,0,.18); }.header-panel { z-index:40; background:#fff; color:#3f4254; box-shadow:0 0 50px 0 rgba(82,63,105,.18); }.header-popover { position:fixed; top:74px; right:max(20px,calc((100vw - 1320px) / 2)); width:375px; padding:1.75rem; border-radius:.475rem; }.header-popover.w-325px { width:325px; padding:0; }.quick-links-panel { width:325px; padding:0; overflow:hidden; }.quick-links-head { display:flex; flex-direction:column; align-items:center; padding:2rem; background:url('assets/media/misc/pattern-1.bcf37bb9f61c52d0ca81.jpg') center/cover; }.quick-link { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:132px; padding:1.2rem; border-right:1px solid #eff2f5; border-bottom:1px solid #eff2f5; color:#3f4254; text-decoration:none; text-align:center; }.quick-link:nth-child(2n) { border-right:0; }.quick-link:nth-last-child(-n+2) { border-bottom:0; }.quick-link:hover { background:#f5f8fa; color:#009ef7; }.quick-link i { color:#009ef7; font-size:2rem; margin-bottom:.45rem; }.quick-link small,.header-search-result small { display:block; color:#a1a5b7; font-size:.74rem; }.header-search-result { display:flex; align-items:center; padding:.65rem 0; color:#3f4254; text-decoration:none; }.header-search-result:hover { color:#009ef7; }.header-search-result .symbol-label { display:grid; place-items:center; width:40px; height:40px; border-radius:.475rem; }.header-drawer { position:fixed; top:0; right:0; bottom:0; width:min(500px,100vw); overflow-y:auto; }.drawer-title { display:flex; align-items:center; justify-content:space-between; padding:1.5rem 1.75rem; border-bottom:1px solid #eff2f5; }.drawer-tabs { display:flex; gap:1.5rem; padding:0 1.75rem; border-bottom:1px solid #eff2f5; }.drawer-tabs button { padding:1rem 0; background:transparent; border:0; border-bottom:2px solid transparent; color:#7e8299; font:inherit; font-weight:600; }.drawer-tabs button.active { border-color:#009ef7; color:#009ef7; }.header-chat { display:flex; flex-direction:column; }.chat-messages { flex:1; padding:1.75rem; overflow-y:auto; }.chat-bubble { max-width:75%; padding:.85rem 1rem; border-radius:.475rem .475rem .475rem 0; background:#f1faff; color:#3f4254; font-weight:500; }.chat-bubble.mine { border-radius:.475rem .475rem 0 .475rem; background:#009ef7; color:white; }.chat-bubble small { display:block; margin-top:.35rem; opacity:.65; font-size:.7rem; }.chat-form { display:flex; gap:.75rem; padding:1.25rem 1.75rem; border-top:1px solid #eff2f5; }.chat-form input { min-width:0; }.intranet-body.dark-mode .header-panel { background:#1e1e2d; color:#fff; }.intranet-body.dark-mode .header-search-result,.intranet-body.dark-mode .quick-link { color:#fff; }.intranet-body.dark-mode .quick-link:hover { background:#2b2b40; }.intranet-body.dark-mode .drawer-title,.intranet-body.dark-mode .drawer-tabs,.intranet-body.dark-mode .chat-form { border-color:#323248; }

/* Keep dismissal inside its own Metronic alert without covering wrapped text. */
.notice-dismissible { position:relative; }
.notice-dismissible:has(> .notice-dismiss:not([hidden])) { padding-inline-end:3.75rem; overflow-wrap:anywhere; }
.notice-dismissible > .btn.notice-dismiss { position:absolute; inset-block-start:.5rem; inset-inline-end:.5rem; width:2.5rem; height:2.5rem; padding:0; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; font-size:1.5rem; line-height:1; }
.notice-dismissible > .notice-dismiss[hidden] { display:none!important; }
.notice-dismissible > .btn.notice-dismiss:focus-visible { outline:2px solid currentColor!important; outline-offset:2px; }

/* Shared dismiss affordance; preserve footer controls and room for long titles. */
.modal-close-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; width:100%; min-width:0; }
.modal-close-heading > :first-child { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.modal-close-heading > .modal-close-button { flex:0 0 auto; min-width:2.5rem; min-height:2.5rem; font-size:1.5rem; line-height:1; }
.modal-close-heading > .btn.modal-close-button:focus-visible { outline:3px solid var(--td-blue,#1b84ff)!important; outline-offset:2px; }

/* Shared operational workspace uses the same cards and controls as record pages. */
.workspace-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:1rem;align-items:end;margin-block:1.5rem}
.workspace-filters .form-label{margin:0;min-width:0}
.workspace-items,.workspace-calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}
.workspace-view,.workspace-view .card-body,.workspace-items>*,.workspace-calendar>*{min-width:0;overflow-wrap:anywhere}
.workspace-view .detail-tabs{flex-wrap:wrap;gap:.5rem}
.workspace-view .detail-tabs button{border:0;border-radius:.475rem;padding:.75rem 1rem;background:var(--bs-gray-100,#f5f8fa);color:inherit}
.workspace-view .detail-tabs button.active{background:var(--bs-primary,#009ef7);color:white}
.workspace-view .btn{white-space:normal;text-align:start}
.workspace-view .table-responsive{max-width:100%}
@media(max-width:575px){.workspace-view .card-body{padding:1.25rem}.workspace-home nav a{flex:1 1 45%}.workspace-view .detail-tabs button{flex:1 1 40%}}
