/* TRIỀU DÂN — approved bright-blue ERP appearance, 02 Nov 2026.
   Visual-only. Data logic, accounting, print layouts, API, storage untouched.
   Logo is the existing original transparent assets/td-chat-logo.png file,
   not a crop from the supplied city banner. */
:root{--primary:#145ff0;--primary-700:#0b51dc;--primary-800:#073b9e;--primary-50:#eef5ff;--primary-100:#e1edff;--navy:#101e42;--ink:#17243d;--ink-2:#4b5871;--muted:#77859b;--line:#e2e8f3;--soft:#f7faff;--v6-bg:#f6f9ff;--v6-line:#e2e8f3}
@media screen{
 html,body{background:#f6f9ff;color:#18263e}
 body :where(.btn-primary){background:#1767f2;border-color:#1767f2}
 body :where(.btn-primary):hover{background:#0b50d6;border-color:#0b50d6}
 body :where(a,button,input,select,textarea):focus-visible{outline-color:rgba(27,108,244,.38)}
 body :where(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:#75a7f4;box-shadow:0 0 0 3px rgba(33,109,246,.12)}
 #appShell.app-shell{background:#f6f9ff}
 #appShell .sidebar{background:#fff!important;border-right:1px solid #e6ebf4!important;color:#243351!important;box-shadow:none!important}
 #appShell .brand{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:83px;height:83px;padding:10px 13px;background:#fff!important;border-bottom:1px solid #e6ebf4!important;box-shadow:none!important}
 #appShell .brand-logo{width:66px;height:57px;flex:0 0 66px;max-width:66px;object-fit:contain;object-position:center;border:0;background:transparent;padding:0;filter:none;box-shadow:none;border-radius:0}
 #appShell .brand-copy{min-width:0;display:flex;flex-direction:column;gap:2px;justify-content:center;border-left:1px solid #b9c9e7;padding-left:9px}
 #appShell .brand-title{font-size:16px!important;line-height:1.16;font-weight:850!important;color:#0b2d80!important;letter-spacing:-.035em!important;white-space:nowrap;text-shadow:none!important}
 #appShell .brand-sub{margin:0;color:#1e3e8b!important;font-size:8px!important;line-height:1.2;letter-spacing:.015em!important;font-weight:800!important;white-space:nowrap}
 #appShell .nav{padding:15px 10px 22px;background:#fff!important}
 #appShell .nav-section{font-size:10px;color:#8796ad!important;letter-spacing:.065em}
 #appShell .nav-item{border:1px solid transparent!important;background:transparent!important;color:#33425f!important;border-radius:11px!important;min-height:41px;font-weight:540}
 #appShell .nav-item:hover{background:#f0f5ff!important;color:#0e54c9!important}
 #appShell .nav-item.active{background:#e0edff!important;border-color:#d7e6ff!important;color:#075bd9!important;font-weight:750}
 #appShell .nav-item .nav-icon{color:inherit!important}
 #appShell .main{background:#f6f9ff!important}
 #appShell .topbar{background:#fff!important;border-bottom:1px solid #e5ebf4!important;box-shadow:0 1px 2px rgba(25,55,100,.035)!important}
 #appShell .global-search-wrap{border-radius:12px;background:#fff;border-color:#e3e9f3}
 #appShell .global-search{background:#fff;color:#263a57}
 #appShell .menu-toggle{background:#fff;color:#183e7b;border:0!important;font-size:21px}
 #appShell .top-square-btn{color:#2b436e}
 #appShell .top-square-btn:hover{background:#eaf2ff;color:#1259d2}
 #appShell .avatar{background:#dbeaff;color:#1156c9}
 #appShell .page-heading{background:transparent!important;border:0!important;box-shadow:none!important;padding-top:22px}
 #appShell .page-heading h1{font-size:clamp(21px,2vw,27px);color:#15233c;font-weight:800;letter-spacing:-.03em}
 #appShell .page-heading p{color:#72819a;font-size:13px}
 #appShell #content{max-width:1700px}
 #appShell :where(.card,.metric,.executive-card,.module-card,.v9-panel,.v9-kpi,.v11-debt-row){border-color:#e4eaf4!important;box-shadow:0 2px 9px rgba(25,54,105,.045);border-radius:15px}
 #appShell :where(.v9-kpi,.v9-panel){background:#fff;color:#17243d}
 #appShell .v11-commandbar{background:transparent!important;box-shadow:none!important;border:0!important}
 #appShell .v11-commandbar b{color:#162744}
 #appShell .v9-kpi-grid .v9-kpi{overflow:hidden;min-width:0}
 #appShell .v9-kpi-copy b{color:#17253d;letter-spacing:-.03em}
 #appShell .v9-kpi-icon{border-radius:12px}
 #appShell :where(.v9-panel h3,.v11-commandbar b){font-weight:750;letter-spacing:-.018em}
 #appShell :where(.v9-detail-btn,.v9-panel-period){color:#135fe2}
 #appShell .date-filter{border-radius:10px}
 #appShell :where(.v11-debt-track i,.v11-finance-indicators .good){color:#1263de}
 /* UI accent on forms and tabs, without modifying business data */
 #appShell :where(.tab.active,.tabs .active,[aria-selected="true"]){border-color:#3777eb;color:#0d5cd8}
 #appShell :where(.badge.blue,.status-blue){background:#e8f1ff;color:#0b59ce}
 /* Standalone pages: keep their PHP layout while sharing the approved blue accent */
 body :where(.tdr-primary,.td-btn-primary){background:#1767ed;border-color:#1767ed;color:#fff}
 body :where(.tdr-nav a[aria-current="page"]){color:#0a59d6}
}
/* On tablet, show the standalone TD emblem rather than squeeze/mangle the wordmark. */
@media screen and (min-width:681px) and (max-width:940px){
 #appShell .brand{height:68px;min-height:68px;padding:6px;justify-content:center}
 #appShell .brand-logo{width:55px;height:52px;flex-basis:55px}
 #appShell .brand-copy{display:none!important}
}
@media screen and (max-width:680px){
 #appShell .brand{height:66px;min-height:66px;padding:7px 12px}
 #appShell .brand-logo{width:52px;height:49px;flex-basis:52px}
 #appShell .brand-copy{display:flex!important}
 #appShell .brand-title{font-size:15px!important}
 #appShell .brand-sub{font-size:8px!important}
 #appShell .nav{background:#fff!important}
 #appShell .page-heading{padding-top:12px}
 #appShell .v9-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:390px){#appShell .brand{padding:7px 8px}#appShell .brand-title{font-size:14px!important}#appShell .brand-logo{width:47px;flex-basis:47px}}
/* Original printed business templates are not restyled. */
