/* THORPANEL 2.0 — Visual system
   Framework-independent stylesheet for the approved UI concept.
   Logo/penguin artwork is an external asset, not recreated by CSS.
   Prefix all classes with tp- to reduce collisions.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  --tp-navy:#061b3d; --tp-navy-2:#082b61; --tp-navy-3:#0b397a;
  --tp-primary:#0a62ef; --tp-primary-2:#1487ff; --tp-cyan:#21b8ff;
  --tp-surface:#fff; --tp-bg:#f3f7ff; --tp-bg-alt:#eaf2ff;
  --tp-text:#102044; --tp-muted:#61728f; --tp-line:#dbe6f7;
  --tp-green:#12b65a; --tp-amber:#f3a11b; --tp-red:#ec3e46; --tp-purple:#754cf5;
  --tp-radius:16px; --tp-radius-sm:10px; --tp-shadow:0 6px 22px rgba(16,61,130,.08);
  --tp-sidebar-width:260px; --tp-header-height:72px;
  --tp-font:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--tp-bg);color:var(--tp-text);font:14px/1.5 var(--tp-font);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:var(--tp-primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid rgba(20,135,255,.4);outline-offset:2px}
.tp-app{min-height:100vh;display:flex}
.tp-sidebar{position:fixed;inset:0 auto 0 0;width:var(--tp-sidebar-width);background:linear-gradient(168deg,#061733 0%,#082855 64%,#08418c 100%);color:#fff;display:flex;flex-direction:column;z-index:50;overflow-y:auto;box-shadow:5px 0 22px rgba(5,30,70,.08)}
.tp-sidebar::after{content:'';position:absolute;bottom:75px;left:-50px;width:320px;height:90px;background:linear-gradient(125deg,transparent 18%,rgba(0,145,255,.23) 40%,rgba(0,205,255,.42) 51%,transparent 68%);transform:rotate(-15deg);pointer-events:none}
.tp-brand{display:flex;align-items:center;gap:10px;padding:23px 19px 20px;min-height:100px}
.tp-brand__logo{width:66px;height:66px;object-fit:contain;flex:none}
.tp-brand__name{font-size:20px;font-weight:800;line-height:1.1;letter-spacing:-.7px;white-space:nowrap}
.tp-brand__version{background:var(--tp-primary);border-radius:5px;font-size:12px;padding:3px 5px;vertical-align:middle;letter-spacing:0}
.tp-brand__tagline{font-size:11px;color:#c5ddff;margin-top:5px}
.tp-nav{padding:8px 14px 22px;display:grid;gap:5px;position:relative;z-index:1}
.tp-nav__section{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#80a8db;font-weight:700;margin:18px 12px 5px}
.tp-nav__link{display:flex;align-items:center;gap:13px;min-height:44px;border-radius:11px;padding:10px 13px;color:#eaf2ff;font-weight:500;transition:background .18s,color .18s}
.tp-nav__link:hover{background:rgba(255,255,255,.11);color:#fff;text-decoration:none}
.tp-nav__link.is-active{background:linear-gradient(100deg,#0873ff,#0056e5);color:#fff;box-shadow:0 5px 13px rgba(0,65,180,.22);font-weight:700}
.tp-nav__icon{width:20px;height:20px;flex:none;display:inline-flex;align-items:center;justify-content:center}
.tp-nav__chevron{margin-left:auto;opacity:.8}
.tp-nav__submenu{padding:3px 0 7px 43px;display:grid;gap:3px}
.tp-nav__sublink{color:#bcd4f5;padding:7px 10px;border-radius:8px;font-size:13px}
.tp-nav__sublink:hover,.tp-nav__sublink.is-active{color:#fff;background:rgba(255,255,255,.12);text-decoration:none}
.tp-sidebar__bottom{margin-top:auto;padding:20px 14px;position:relative;z-index:1}
.tp-company{background:rgba(17,104,220,.22);border:1px solid rgba(100,177,255,.25);border-radius:12px;padding:13px 15px;color:#fff;display:flex;align-items:center;gap:11px;width:100%;text-align:left}
.tp-company small{display:block;color:#b7d3fa;font-size:11px}
.tp-company strong{display:block;font-size:13px}
.tp-main{margin-left:var(--tp-sidebar-width);width:calc(100% - var(--tp-sidebar-width));min-width:0}
.tp-topbar{height:var(--tp-header-height);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--tp-line);display:flex;align-items:center;gap:24px;padding:0 28px}
.tp-topbar__search{width:min(620px,100%);margin-right:auto;position:relative}
.tp-topbar__search input{width:100%;height:42px;border:1px solid #cadcf8;border-radius:11px;background:#f5f8ff;padding:0 42px;color:var(--tp-text)}
.tp-topbar__search input::placeholder{color:#7890b2}
.tp-topbar__search-icon{position:absolute;top:12px;left:14px;color:var(--tp-primary)}
.tp-topbar__search input{padding-left:43px}
.tp-topbar__actions{display:flex;align-items:center;gap:17px}
.tp-icon-button{width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#12366e;display:inline-flex;align-items:center;justify-content:center;position:relative}
.tp-icon-button:hover{background:#eaf2ff}
.tp-notification-dot{position:absolute;top:0;right:0;background:#f52235;color:white;border-radius:100px;min-width:17px;height:17px;display:grid;place-items:center;font-size:10px;font-weight:800}
.tp-profile{display:flex;align-items:center;gap:10px;border-left:1px solid var(--tp-line);padding-left:17px;white-space:nowrap}
.tp-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(140deg,#37a3ff,#0658e9);color:#fff;font-weight:800}
.tp-profile strong,.tp-profile small{display:block}.tp-profile small{color:var(--tp-muted);font-size:11px}
.tp-content{max-width:1780px;margin:0 auto;padding:28px 28px 45px}
.tp-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px;flex-wrap:wrap}
.tp-page-heading__intro{display:flex;align-items:center;gap:14px}
.tp-page-heading__icon{width:55px;height:55px;border-radius:50%;background:#e4efff;color:var(--tp-primary);display:grid;place-items:center}
.tp-page-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:0 0 4px;font-weight:800}
.tp-page-heading p{color:#34517e;margin:0}
.tp-page-heading__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tp-card{background:var(--tp-surface);border:1px solid var(--tp-line);border-radius:var(--tp-radius);box-shadow:var(--tp-shadow)}
.tp-card__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 21px}
.tp-card__title{margin:0;font-size:17px;font-weight:800;letter-spacing:-.3px}
.tp-card__body{padding:0 21px 21px}
.tp-grid{display:grid;gap:16px}.tp-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}.tp-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.tp-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tp-kpis{margin-bottom:19px}
.tp-kpi{position:relative;overflow:hidden;min-height:124px;padding:19px 20px;display:flex;gap:14px;align-items:flex-start}
.tp-kpi::after{content:'';position:absolute;right:-30px;bottom:-53px;width:160px;height:100px;border-radius:50%;background:currentColor;opacity:.045}
.tp-kpi--blue{background:linear-gradient(125deg,#fff,#eaf5ff);color:#0b73ec}
.tp-kpi--green{background:linear-gradient(125deg,#fff,#e9fff3);color:#12ae5d}
.tp-kpi--purple{background:linear-gradient(125deg,#fff,#f2edff);color:#754cf5}
.tp-kpi--red{background:linear-gradient(125deg,#fff,#fff0ee);color:#e63b40}
.tp-kpi__icon{flex:none;width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:currentColor}
.tp-kpi__icon>*{color:white}
.tp-kpi__label{font-size:12px;color:var(--tp-text);font-weight:700;margin:1px 0 5px}
.tp-kpi__value{font-size:26px;font-weight:800;line-height:1.2;letter-spacing:-.6px;color:var(--tp-text);font-variant-numeric:tabular-nums}
.tp-kpi--red .tp-kpi__value{color:#b3202c}
.tp-kpi__trend{display:inline-flex;align-items:center;margin-top:9px;background:#d9f9e5;color:#07943f;border-radius:20px;padding:3px 9px;font-size:11px;font-weight:800}
.tp-kpi__trend.is-negative{background:#ffe0e2;color:#d02b38}
.tp-section{margin-bottom:18px}
.tp-chart{width:100%;height:250px;display:flex;align-items:center;justify-content:center;color:var(--tp-muted);background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#e9eff9 49px,#e9eff9 50px);border-radius:9px}
.tp-chart svg{width:100%;height:100%}
.tp-donut{width:210px;height:210px;border-radius:50%;background:conic-gradient(#10b65a 0 80%,#f6b21b 80% 85.3%,#157cff 85.3% 89.1%,#f14b53 89.1% 100%);display:grid;place-items:center;margin:auto}
.tp-donut__center{width:130px;height:130px;border-radius:50%;background:white;display:grid;place-content:center;text-align:center}
.tp-donut__center strong{font-size:27px;line-height:1.2}
.tp-donut__center small{color:var(--tp-muted)}
.tp-legend{display:grid;gap:12px}.tp-legend__item{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}.tp-legend__label{display:flex;align-items:center;gap:7px}.tp-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:var(--tp-primary)}
.tp-dot--green{background:var(--tp-green)}.tp-dot--amber{background:var(--tp-amber)}.tp-dot--red{background:var(--tp-red)}.tp-dot--purple{background:var(--tp-purple)}
.tp-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:17px 18px}
.tp-toolbar__filters{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.tp-input,.tp-select,.tp-textarea{border:1px solid #cedcf2;background:#fff;color:var(--tp-text);border-radius:10px;min-height:40px;padding:9px 13px;outline:none;transition:border-color .15s,box-shadow .15s}
.tp-input:focus,.tp-select:focus,.tp-textarea:focus{border-color:var(--tp-primary-2);box-shadow:0 0 0 3px rgba(20,135,255,.13)}
.tp-input::placeholder{color:#8797b2}.tp-input--search{min-width:245px}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;border:1px solid transparent;min-height:41px;padding:10px 16px;font-weight:700;white-space:nowrap;transition:transform .12s,background .12s,box-shadow .12s}
.tp-btn:active{transform:translateY(1px)}
.tp-btn--primary{background:linear-gradient(120deg,#087cff,#0754e9);color:#fff;box-shadow:0 5px 12px rgba(4,96,230,.16)}
.tp-btn--primary:hover{background:linear-gradient(120deg,#0870eb,#0547d4);color:#fff;text-decoration:none}
.tp-btn--secondary{background:#fff;border-color:#cddcf5;color:#1c3b71;box-shadow:0 2px 5px rgba(20,65,120,.04)}
.tp-btn--secondary:hover{background:#f0f6ff;text-decoration:none}
.tp-btn--ghost{background:transparent;color:var(--tp-primary)}.tp-btn--ghost:hover{background:#eaf2ff}
.tp-btn--danger{background:#e8404a;color:#fff}.tp-btn--sm{min-height:32px;padding:6px 11px;font-size:12px}.tp-btn:disabled{opacity:.5;cursor:not-allowed}
.tp-tabs{display:flex;gap:25px;align-items:center;border-bottom:1px solid var(--tp-line);overflow-x:auto;padding:0 12px}
.tp-tab{background:none;border:0;border-bottom:3px solid transparent;padding:14px 10px;color:#344a72;font-weight:700;white-space:nowrap}
.tp-tab:hover{color:var(--tp-primary)}.tp-tab.is-active{color:var(--tp-primary);border-bottom-color:var(--tp-primary)}
.tp-table-wrap{overflow-x:auto;width:100%}.tp-table{border-collapse:collapse;width:100%;min-width:760px;font-size:12px}
.tp-table thead{background:#eef3fc}.tp-table th{color:#162747;text-align:left;font-weight:800;padding:14px 13px;white-space:nowrap}
.tp-table td{padding:12px 13px;border-bottom:1px solid #e4ecf8;vertical-align:middle}.tp-table tbody tr:hover{background:#f6faff}.tp-table tbody tr:last-child td{border-bottom:0}
.tp-table__link{font-weight:800;color:#0564ee}.tp-table__actions{display:flex;gap:5px;align-items:center}
.tp-status{display:inline-flex;align-items:center;gap:6px;border-radius:100px;padding:5px 12px;font-size:11px;font-weight:700;white-space:nowrap}
.tp-status::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.tp-status--success{background:#ddf8e8;color:#079743}.tp-status--warning{background:#fff2d3;color:#b97704}.tp-status--danger{background:#ffe5e7;color:#d72c39}.tp-status--info{background:#e4efff;color:#0866dd}.tp-status--neutral{background:#edf0f5;color:#62728a}
.tp-pagination{padding:15px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--tp-line);flex-wrap:wrap;color:#5d7090;font-size:12px}
.tp-pages{display:flex;align-items:center;gap:5px}.tp-page{width:34px;height:34px;border:1px solid transparent;background:transparent;border-radius:9px;color:#163b78;font-weight:700}.tp-page:hover{background:#edf4ff}.tp-page.is-active{background:var(--tp-primary);color:#fff}
.tp-activity{list-style:none;margin:0;padding:0}.tp-activity li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e8eff9;font-size:12px}.tp-activity li:last-child{border:0}.tp-activity__icon{flex:none;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#e6f1ff;color:var(--tp-primary)}.tp-activity__text{flex:1;font-weight:600}.tp-activity__time{color:var(--tp-muted);white-space:nowrap}
.tp-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tp-quick-action{min-height:88px;border:1px solid transparent;border-radius:12px;background:#eaf4ff;display:grid;place-content:center;justify-items:center;gap:8px;color:#075ee1;font-weight:700;font-size:12px}.tp-quick-action:nth-child(3n+2){background:#e7f9ee;color:#06974c}.tp-quick-action:nth-child(3n){background:#f1eaff;color:#7647ec}.tp-quick-action:hover{border-color:currentColor}
.tp-report-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tp-report-shortcut{min-height:95px;border:0;border-radius:12px;background:#edf5ff;color:#1466d9;font-weight:800;display:grid;place-content:center;justify-items:center;gap:9px}.tp-report-shortcut:nth-child(6n+2){background:#eafbf1;color:#12a557}.tp-report-shortcut:nth-child(6n+3){background:#f0eaff;color:#7046e6}.tp-report-shortcut:nth-child(6n+4){background:#fff3e3;color:#db8700}.tp-report-shortcut:nth-child(6n+5){background:#ffebef;color:#df3d51}.tp-report-shortcut:nth-child(6n){background:#e5f9fc;color:#059aaa}
.tp-alert{border-radius:11px;padding:12px 15px;display:flex;align-items:center;gap:10px;font-weight:600}.tp-alert--danger{background:#ffedf0;color:#c72c3d}.tp-alert--warning{background:#fff3dc;color:#a96b06}.tp-alert--info{background:#e9f3ff;color:#0a62d2}
.tp-form-group{display:grid;gap:7px;margin-bottom:16px}.tp-label{font-size:12px;font-weight:700;color:#33476d}.tp-help{font-size:11px;color:var(--tp-muted)}.tp-checkbox{accent-color:var(--tp-primary);width:16px;height:16px}.tp-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tp-login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:linear-gradient(135deg,#071d42,#082d65 62%,#0b56a5);color:#fff;overflow:hidden}
.tp-login__brand{padding:7vh 7vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.tp-login__brand::before{content:'';position:absolute;inset:auto -20% -25% -15%;height:65%;border:2px solid rgba(31,166,255,.28);border-radius:50%;transform:rotate(-18deg)}
.tp-login__mascot{width:min(310px,65%);margin:0 auto 24px;filter:drop-shadow(0 15px 20px rgba(0,0,0,.2))}
.tp-login__title{font-size:clamp(30px,4vw,58px);font-weight:800;letter-spacing:-2px;text-align:center;margin:0}
.tp-login__subtitle{text-align:center;color:#c3ddff;font-size:18px;margin-top:5px}
.tp-login__form-side{display:grid;place-items:center;padding:40px}
.tp-login__panel{width:min(460px,100%);padding:35px;background:rgba(255,255,255,.08);border:1px solid rgba(158,205,255,.27);box-shadow:0 20px 60px rgba(0,0,0,.16);border-radius:23px;backdrop-filter:blur(12px)}
.tp-login__panel h1{font-size:30px;line-height:1.2;margin:0 0 8px}.tp-login__panel p{color:#d2e5ff;margin:0 0 25px}.tp-login .tp-label{color:#e4f0ff}.tp-login .tp-input,.tp-login .tp-select{width:100%;min-height:48px;background:rgba(255,255,255,.12);color:#fff;border-color:rgba(175,208,255,.38)}.tp-login .tp-input::placeholder{color:#c2d5ef}.tp-login .tp-select option{color:#102044}.tp-login .tp-btn--primary{width:100%;min-height:49px;margin-top:12px}.tp-login__foot{text-align:center;margin-top:23px;color:#bbd4f5;font-size:11px}
.tp-empty{padding:55px 25px;text-align:center;color:var(--tp-muted)}.tp-empty h3{color:var(--tp-text);margin:10px 0 5px}
.tp-skeleton{background:linear-gradient(90deg,#e8eff8 25%,#f4f8ff 50%,#e8eff8 75%);background-size:200% 100%;animation:tp-shimmer 1.5s infinite;border-radius:7px;min-height:16px}@keyframes tp-shimmer{to{background-position:-200% 0}}
.tp-hidden{display:none!important}.tp-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tp-text-muted{color:var(--tp-muted)}.tp-text-danger{color:var(--tp-red)}.tp-text-success{color:var(--tp-green)}.tp-text-right{text-align:right}.tp-mt-0{margin-top:0}.tp-mt-3{margin-top:16px}.tp-mb-3{margin-bottom:16px}
@media(max-width:1350px){.tp-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-report-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){:root{--tp-sidebar-width:224px}.tp-content{padding:22px}.tp-topbar{padding:0 20px}.tp-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-brand__name{font-size:17px}.tp-brand__logo{width:53px;height:53px}}
@media(max-width:760px){:root{--tp-sidebar-width:0px;--tp-header-height:62px}.tp-sidebar{transform:translateX(-100%);width:260px;transition:transform .2s}.tp-sidebar.is-open{transform:translateX(0)}.tp-main{margin-left:0;width:100%}.tp-topbar{padding:0 14px;gap:10px}.tp-topbar__actions{gap:5px}.tp-profile strong,.tp-profile small{display:none}.tp-profile{padding-left:7px}.tp-content{padding:17px 13px 30px}.tp-page-heading h1{font-size:24px}.tp-page-heading__icon{width:45px;height:45px}.tp-grid--2,.tp-grid--3{grid-template-columns:1fr}.tp-grid--4{gap:10px}.tp-kpi{padding:13px;min-height:112px}.tp-kpi__icon{width:36px;height:36px}.tp-kpi__value{font-size:21px}.tp-kpi__label{font-size:11px}.tp-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-login{grid-template-columns:1fr}.tp-login__brand{padding:30px 20px 10px}.tp-login__mascot{width:120px;margin-bottom:8px}.tp-login__title{font-size:28px}.tp-login__subtitle{font-size:13px}.tp-login__form-side{padding:20px 20px 40px}.tp-login__panel{padding:25px}.tp-field-row{grid-template-columns:1fr}}
@media(max-width:480px){.tp-grid--4{grid-template-columns:1fr 1fr}.tp-kpi{display:block}.tp-kpi__icon{margin-bottom:9px}.tp-kpi__value{font-size:19px}.tp-report-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-topbar__search{min-width:0}.tp-topbar__search input{font-size:12px}.tp-topbar__actions .tp-icon-button:nth-child(2){display:none}.tp-page-heading__actions{width:100%}.tp-page-heading__actions .tp-btn{flex:1}.tp-card__header{padding:15px}.tp-card__body{padding:0 15px 15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
