/* TradeFlow CRM 1.1 — independent frontend shell. All selectors are private. */
:root{--tf-green:#166f4b;--tf-green-dark:#0f5338;--tf-navy:#10211e;--tf-text:#20302c;--tf-muted:#768883;--tf-bg:#f4f7f5;--tf-line:#e0e9e4}
html{scroll-behavior:smooth}
body.tf-portal-body{margin:0!important;background:var(--tf-bg)!important;color:var(--tf-text)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif!important;font-size:14px;line-height:1.5}
.tf-portal-body *{box-sizing:border-box}
.tf-portal-body a{color:var(--tf-green)}
.tf-portal-body button,.tf-portal-body input,.tf-portal-body textarea,.tf-portal-body select{font-family:inherit}
.tf-portal-body :focus-visible{outline:3px solid #8ec7a8;outline-offset:2px}
/* dashboard */
.tf-app-shell{min-height:100vh;display:grid;grid-template-columns:247px minmax(0,1fr)}
.tf-app-sidebar{background:var(--tf-navy);color:#e9f5ed;padding:32px 18px 20px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}
.tf-brand{display:flex;align-items:center;gap:12px;color:#fff!important;text-decoration:none!important;padding:0 10px 36px}
.tf-mark{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#9bda61;border-radius:12px;color:#1b472b;font-weight:900;font-size:16px;letter-spacing:-1.5px;box-shadow:0 2px 11px #60be6c35}
.tf-mark>span{color:#f8fff5}
.tf-brand strong{display:block;font-size:21px;letter-spacing:-.65px;line-height:1.25}
.tf-brand small{font-size:8px;letter-spacing:2.1px;color:#9daeaa}
.tf-sidebar-heading{padding:0 16px 12px;color:#7d9991;font-size:10px;letter-spacing:.18em;font-weight:750}
.tf-app-nav{display:grid;gap:5px}
.tf-app-nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:10px;color:#b9cdc5;text-decoration:none!important;font-size:13px;font-weight:650;transition:background .14s ease,color .14s ease}
.tf-app-nav a:hover{color:#fff;background:#203a31}
.tf-app-nav a.tf-current{color:#f3ffea;background:#266649;box-shadow:inset 3px 0 #a5e65c}
.tf-nav-symbol{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;border-radius:7px;font-size:17px;font-weight:400}
.tf-sidebar-bottom{margin-top:auto;padding:20px 13px 0;border-top:1px solid #29413a}
.tf-privacy{font-size:11px;color:#b8d0c2;margin-bottom:15px}
.tf-privacy-indicator{display:inline-block;width:7px;height:7px;background:#84d49f;border-radius:50%;margin-right:7px}
.tf-logout{color:#d2e9dc!important;font-size:12px;text-decoration:none!important}
.tf-app-main{min-width:0}
.tf-app-toolbar{background:#fff;border-bottom:1px solid var(--tf-line);min-height:74px;padding:19px 35px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.tf-toolbar-left{display:flex;gap:8px;align-items:center;font-size:13px}
.tf-crumb{font-size:10px;letter-spacing:.14em;font-weight:750;color:#96a7a0}
.tf-toolbar-left strong{font-size:13px;color:#243a32}
.tf-toolbar-user{font-size:12px;color:#62766c;white-space:nowrap}
.tf-user-dot{color:#41a97a;margin-right:8px}
.tf-portal-content{padding:24px 36px 12px;max-width:1800px;margin:auto}
.tf-app-footer{color:#9caea3;padding:5px 36px 28px;font-size:11px;text-align:center}
.tf-portal-body .tf-wrap{max-width:none;margin:0;min-height:calc(100vh - 170px)}
.tf-portal-body .tf-top{margin:6px 0 25px}
.tf-portal-body .tf-top h1{font-size:27px;color:#173127;letter-spacing:-.7px}
.tf-portal-body .tf-top p{color:#70827c}
.tf-portal-body .tf-tabs{display:none}
.tf-portal-body .tf-grid2{grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr)}
.tf-portal-body .tf-panel{box-shadow:0 4px 22px rgba(22,52,42,.035);border-color:#e2eae5}
.tf-portal-body .tf-stat{box-shadow:0 5px 20px rgba(20,44,31,.04)}
.tf-portal-body .tf-lock{background:#e5f3e8;border-color:#d5e8dd}
.tf-portal-body .widefat{width:100%;border-collapse:collapse;background:#fff}
.tf-portal-body .widefat th,.tf-portal-body .widefat td{border-bottom:1px solid #e9eeeb;text-align:left}
.tf-portal-body .striped tbody tr:nth-child(odd){background:#f7faf8}
.tf-portal-body .button{border:1px solid #cbdcd3;background:#fff;color:#1e5b41;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;line-height:1.2;text-decoration:none!important;font-weight:650;cursor:pointer;font-size:12px;white-space:normal;text-align:center}
.tf-portal-body .button:hover{background:#e9f5ee}
.tf-portal-body .button-primary{background:#166c46;border-color:#166c46;color:#fff!important}
.tf-portal-body .button-primary:hover{background:#104e34}
.tf-portal-body .tf-submit{padding:11px 20px!important;line-height:1.4}
.tf-portal-body .tf-table input[type="checkbox"]{width:16px;height:16px}
.tf-portal-body .tf-panel input[type="checkbox"]{accent-color:#16704e}
.tf-portal-body .tf-panel h2{margin-bottom:19px}
.tf-portal-body .notice{padding:13px 16px;border-left:4px solid #24704d;background:#e8f5ee;margin:0 0 18px;border-radius:5px;color:#2e704d}
.tf-portal-body .notice p{margin:0}
.tf-portal-body .tf-field input,.tf-portal-body .tf-field select,.tf-portal-body .tf-field textarea{box-sizing:border-box;color:#20302c!important}
.tf-portal-body .tf-field input:focus,.tf-portal-body .tf-field select:focus,.tf-portal-body .tf-field textarea:focus{outline:2px solid #a9d6bf;outline-offset:0;border-color:#4e9b75}
.tf-portal-body .tf-form-grid{gap:15px}
.tf-portal-body .tf-actions .button{padding:7px 9px}
.tf-portal-body .tf-panel table tr td a:not(.button){color:#16704e}
.tf-portal-body .tf-table-scroll{border:1px solid #e7ede9;border-radius:9px}
.tf-portal-body .tf-table th{font-size:11px;letter-spacing:.015em}
.tf-portal-body .tf-panel>form:not(.tf-inline)>input:not([type="hidden"]){margin:5px}
.tf-portal-body .tf-panel form[method="get"] input{padding:8px;border:1px solid #d9e2dc;border-radius:6px;margin-right:7px}
/* Login */
.tf-login-body{background:linear-gradient(135deg,#ecf3ed 0%,#f7faf5 60%,#e2ede4 100%)!important}
.tf-login-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(400px,.95fr);align-items:center;gap:min(7vw,100px);padding:7vh max(5vw,30px)}
.tf-login-intro{max-width:640px;padding:0 1vw}
.tf-mark-large{width:58px;height:58px;font-size:23px;border-radius:17px;margin-bottom:60px}
.tf-overline{color:#418963;font-weight:800;font-size:11px;letter-spacing:.17em}
.tf-login-intro h1{color:#133d2d;font-size:clamp(32px,3.2vw,55px);line-height:1.2;letter-spacing:-1.8px;margin:20px 0 22px;font-weight:790}
.tf-login-intro>p:not(.tf-overline){font-size:15px;color:#5f7569;line-height:1.8;max-width:540px}
.tf-login-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:42px}
.tf-login-points span{background:#e0ece1;border-radius:30px;padding:9px 12px;color:#416854;font-size:12px;font-weight:650}
.tf-login-card{max-width:490px;width:100%;margin:auto;padding:clamp(26px,4vw,48px);background:#fff;border:1px solid #e3eae5;border-radius:23px;box-shadow:0 30px 90px rgba(21,64,40,.1)}
.tf-mini-lock{width:40px;height:40px;background:#e5f3e8;display:grid;place-items:center;border-radius:12px;font-size:20px}
.tf-login-card-header h2{color:#18362a;font-size:26px;margin:10px 0}
.tf-login-card-header>p:not(.tf-overline){color:#8a9a91;font-size:13px;line-height:1.7;margin-bottom:28px}
.tf-login-card label{display:block;color:#405b4e;font-weight:680;font-size:13px;margin:0 0 8px}
.tf-login-card .login-username,.tf-login-card .login-password{margin:0 0 20px}
.tf-login-card input[type="text"],.tf-login-card input[type="password"]{border:1px solid #d6e4da;border-radius:9px;padding:12px 13px;width:100%;font-size:15px;min-height:48px;background:#fff;color:#152f22}
.tf-login-card input[type="text"]:focus,.tf-login-card input[type="password"]:focus{outline:2px solid #9cceb1;border-color:#3b9465}
.tf-login-card .login-submit{margin:25px 0 8px}
.tf-login-card input[type="submit"]{width:100%;border:0;border-radius:9px;background:#166f4b;color:#fff;min-height:49px;font-size:15px;font-weight:750;cursor:pointer}
.tf-login-card input[type="submit"]:hover{background:#0e5439}
.tf-login-help{text-align:right;font-size:12px;margin:7px 0 24px}
.tf-login-help a{text-decoration:none!important}
.tf-login-note{border-top:1px solid #eef1ed;color:#889991;font-size:11px;line-height:1.8;padding-top:20px;margin-top:22px}
.tf-alert{border:1px solid #f1c4bb;color:#9b3026;background:#fff6f3;padding:12px;border-radius:8px;font-size:12px;margin:16px 0}
.tf-login-exit{padding:12px 18px;background:#e9f5ed;border-radius:10px;display:inline-block;font-weight:650}
@media(max-width:1260px){.tf-app-shell{grid-template-columns:215px minmax(0,1fr)}.tf-portal-content{padding:22px}.tf-app-toolbar{padding:20px 23px}.tf-portal-body .tf-grid2{grid-template-columns:1fr}.tf-app-sidebar{padding-inline:12px}}
@media(max-width:850px){.tf-login-layout{grid-template-columns:1fr;gap:26px;padding:5vh 23px}.tf-login-intro{max-width:none;padding:0}.tf-mark-large{margin-bottom:24px}.tf-login-intro h1{font-size:30px}.tf-login-points{margin-top:22px}.tf-login-card{max-width:none}.tf-app-shell{display:block}.tf-app-sidebar{position:relative;height:auto;min-height:0;padding:15px 14px}.tf-brand{padding:0 4px 12px}.tf-brand small{display:none}.tf-sidebar-heading,.tf-sidebar-bottom{display:none}.tf-app-nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:5px;scrollbar-width:thin}.tf-app-nav a{flex-shrink:0;padding:8px 10px;font-size:12px}.tf-app-toolbar{padding:14px 20px;min-height:54px}.tf-portal-content{padding:15px}.tf-app-footer{padding:10px 18px 20px}.tf-toolbar-suffix{display:none}.tf-portal-body .tf-top h1{font-size:23px}}
@media(max-width:560px){.tf-portal-body .tf-stats{grid-template-columns:1fr 1fr;gap:8px}.tf-portal-body .tf-stat{padding:12px}.tf-portal-body .tf-stat strong{font-size:26px}.tf-app-toolbar{gap:7px}.tf-toolbar-user{font-size:11px}.tf-portal-body .tf-lock{font-size:10px;padding:6px 9px}.tf-portal-body .tf-panel{padding:14px}.tf-login-points{gap:5px}.tf-login-points span{font-size:10px;padding:7px}.tf-login-card{padding:26px 20px}}

/* TradeFlow 1.2.4: route all sign-in through WordPress + Wordfence 2FA. */
.tf-secure-login-explain{border:1px solid #dcebe1;border-radius:11px;background:#f2f8f3;padding:14px 15px;margin:0 0 18px}
.tf-secure-login-explain strong{display:block;color:#245c40;font-size:14px;margin-bottom:6px}
.tf-secure-login-explain p{font-size:12px;line-height:1.75;color:#60766a;margin:0}
.tf-native-login-btn,.tf-native-login-btn:visited{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:51px;background:#166f4b;color:#fff!important;text-decoration:none!important;font-weight:750;border-radius:9px;padding:11px 15px;text-align:center}
.tf-native-login-btn:hover,.tf-native-login-btn:focus{background:#0e5439;color:#fff!important}
.tf-native-login-btn:focus-visible{outline:3px solid #9bceb0;outline-offset:3px}
