/* Speed Track ERP — the full-screen app shell at /erp.
   Also gives the screens the few WordPress-style classes they use
   (buttons, tables, form tables, notices) so nothing depends on wp-admin. */

@font-face {
	font-family: "Inter";
	src: url("fonts/inter.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
	--brand: #0b3d91;
	--brand2: #1452c4;
	--side: #0d1a3a;
	--side2: #16264a;
	--bg: #f3f5f9;
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--ok: #16a34a;
	--bad: #dc2626;
	--warn: #d97706;
	--side-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.stl-erp {
	background: var(--bg);
	color: var(--ink);
	font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}
.stl-erp a { color: var(--brand); }
.stl-erp img { max-width: 100%; }
[hidden] { display: none !important; }

/* ------------------------------ Side menu ------------------------------ */
.erp-side {
	position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w);
	background: var(--side); color: #cbd5e1;
	display: flex; flex-direction: column; z-index: 50;
	padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.erp-brand { display: flex; gap: 11px; align-items: center; padding: 18px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.erp-logo { flex: 0 0 auto; width: 50px; height: 58px; display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.erp-logo img { max-width: 100%; max-height: 100%; display: block; }
.erp-top-logo { display: grid; place-items: center; width: 34px; height: 38px; background: #fff; border-radius: 9px; padding: 2px; flex: 0 0 auto; }
.erp-top-logo img { max-width: 100%; max-height: 100%; display: block; }
.erp-ios-steps { margin: 4px 10px 8px; padding: 10px 12px; background: var(--side2); border-radius: 9px; color: #e2e8f0; font-size: 13px; line-height: 1.5; }
.erp-ios-steps strong { color: #fff; }
.erp-brand div strong { display: block; color: #fff; font-size: 14.5px; line-height: 1.25; }
.erp-brand div span { display: block; font-size: 11.5px; color: #94a3b8; }
.erp-mark {
	display: inline-grid; place-items: center; flex: 0 0 auto;
	width: 38px; height: 38px; border-radius: 10px;
	background: linear-gradient(160deg, #1d5fd6, var(--brand)); color: #fff; font-weight: 800; letter-spacing: .5px;
}
.erp-mark-lg { width: 68px; height: 68px; border-radius: 18px; font-size: 26px; }

.erp-nav { flex: 1; overflow-y: auto; padding: 6px 10px 14px; -webkit-overflow-scrolling: touch; }
.erp-gl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #64748b; margin: 16px 10px 6px; font-weight: 600; }
.stl-erp .erp-nav a {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 10px; margin: 1px 0; border-radius: 9px;
	color: #cbd5e1; text-decoration: none; font-size: 14px;
}
.stl-erp .erp-nav a:hover { background: var(--side2); color: #fff; }
.stl-erp .erp-nav a.on { background: var(--brand2); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(20,82,196,.35); }
.erp-nav .i { width: 22px; text-align: center; font-size: 15px; }
.erp-nav .t { flex: 1; }
.erp-nav .b { background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }

.erp-me { border-top: 1px solid rgba(255,255,255,.07); padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stl-erp .erp-me-name { display: flex; gap: 9px; align-items: center; color: #fff; text-decoration: none; min-width: 0; font-size: 13.5px; }
.erp-me-name small { display: block; color: #94a3b8; font-size: 11px; }
.erp-avatar { width: 34px; height: 34px; border-radius: 50%; background: #334155; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.stl-erp .erp-out { color: #fecaca; font-size: 12.5px; text-decoration: none; border: 1px solid rgba(254,202,202,.3); border-radius: 7px; padding: 5px 10px; white-space: nowrap; }

/* ------------------------------ Main area ------------------------------ */
.erp-main { margin-left: var(--side-w); min-height: 100vh; }
.erp-top { display: none; }
.erp-content { padding: 24px 30px 70px; max-width: 1500px; }
.erp-scrim { display: none; }
.erp-ptitle { font-size: 22px; font-weight: 700; margin: 2px 0 14px; color: var(--ink); }

@media (max-width: 900px) {
	.erp-side { transform: translateX(-100%); transition: transform .22s ease; width: 284px; visibility: hidden; }
	body.erp-open .erp-side { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
	body.erp-open .erp-scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; }
	body.erp-open { overflow: hidden; }
	.erp-main { margin-left: 0; }
	.erp-top {
		display: flex; position: sticky; top: 0; z-index: 30;
		background: var(--brand); color: #fff; align-items: center; gap: 8px;
		padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top));
		box-shadow: 0 2px 10px rgba(0,0,0,.12);
	}
	.erp-burger { background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 21px; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
	.erp-title { font-size: 17px; margin: 0; flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.erp-content { padding: 14px 12px 90px; }
}

/* ------------------- WordPress-style pieces the screens use ------------------- */
.stl-erp .wrap { margin: 0; }
.stl-erp .wrap > h1, .stl-erp h1.wp-heading-inline {
	font-size: 23px; font-weight: 700; margin: 2px 0 14px; line-height: 1.3;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.stl-erp h2 { font-size: 17px; margin: 22px 0 10px; }
.stl-erp h3 { font-size: 15px; }
.stl-erp .wp-header-end { display: none; }
.stl-erp code { background: #eef2f7; border-radius: 5px; padding: 1px 6px; font-size: 12.5px; word-break: break-all; }

.stl-erp .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 34px; padding: 0 14px; margin: 2px 0;
	border: 1px solid #c7d2e3; border-radius: 8px; background: #fff; color: var(--brand);
	font: 500 13.5px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
	vertical-align: middle; white-space: nowrap;
}
.stl-erp .button:hover { border-color: var(--brand); background: #f5f8ff; }
.stl-erp .button-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.stl-erp .button-primary:hover { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.stl-erp .button-small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.stl-erp .button-hero { min-height: 44px; padding: 0 22px; font-size: 15px; }
.stl-erp .button-link { background: none; border: 0; color: var(--brand); padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.stl-erp .page-title-action {
	font-size: 13px; font-weight: 500; border: 1px solid #c7d2e3; border-radius: 8px;
	padding: 5px 12px; text-decoration: none; background: #fff;
}

.stl-erp input[type=text], .stl-erp input[type=email], .stl-erp input[type=number], .stl-erp input[type=date],
.stl-erp input[type=time], .stl-erp input[type=url], .stl-erp input[type=password], .stl-erp input[type=tel],
.stl-erp input[type=search], .stl-erp select, .stl-erp textarea {
	font: inherit; font-size: 14px; color: var(--ink);
	border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; min-height: 36px;
	background: #fff; max-width: 100%;
}
.stl-erp textarea { min-height: 70px; }
.stl-erp input:focus, .stl-erp select:focus, .stl-erp textarea:focus { outline: 3px solid #bfdbfe; outline-offset: 0; border-color: var(--brand); }
.stl-erp input[type=checkbox], .stl-erp input[type=radio] { width: 17px; height: 17px; accent-color: var(--brand); vertical-align: middle; }
.stl-erp .regular-text { width: 26em; }
.stl-erp .large-text { width: 100%; }
.stl-erp .description { color: var(--muted); font-size: 12.5px; margin: 5px 0; }

.stl-erp .form-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 22px; }
.stl-erp .form-table th { width: 220px; text-align: left; vertical-align: top; padding: 15px 16px; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.stl-erp .form-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.stl-erp .form-table tr:last-child th, .stl-erp .form-table tr:last-child td { border-bottom: 0; }

.stl-erp .widefat { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stl-erp .widefat th { background: #f8fafc; text-align: left; font-weight: 600; font-size: 12.5px; color: #475569; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.stl-erp .widefat td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.stl-erp .widefat tbody tr:last-child td { border-bottom: 0; }
.stl-erp .widefat tbody tr:hover td { background: #fafcff; }

.stl-erp .notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid #3b82f6; border-radius: 10px; padding: 2px 14px; margin: 0 0 14px; }
.stl-erp .notice p { margin: 9px 0; }
.stl-erp .notice-success { border-left-color: var(--ok); }
.stl-erp .notice-error { border-left-color: var(--bad); }
.stl-erp .notice-warning { border-left-color: #f59e0b; }
.erp-flash { box-shadow: 0 4px 14px rgba(0,0,0,.06); }

.stl-erp .nav-tab-wrapper { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: inherit; padding: 0; }
.stl-erp .nav-tab { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; margin-bottom: -1px; }
.stl-erp .nav-tab-active { color: var(--brand); border-bottom-color: var(--brand); }
.stl-erp .tablenav { margin: 12px 0; }
.stl-erp .tablenav-pages a, .stl-erp .tablenav-pages span { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; margin: 2px; background: #fff; text-decoration: none; }

/* Cards and the plugin's own blocks look a little softer inside the app. */
.stl-erp .stl-card, .stl-erp .stl-stat, .stl-erp .stl-sec, .stl-erp .stl-task { border-radius: 12px; }
.stl-erp .stl-stat { box-shadow: 0 1px 2px rgba(0,0,0,.03); }

/* Clients and agents: their portal sits inside the same frame. */
.stl-erp .stlp-erp { max-width: 1100px; padding: 0; margin: 0; }
.stl-erp .stlp-erp .stlp-lead { margin-top: 0; }

/* Account form */
.erp-form label { display: block; margin: 0 0 12px; font-weight: 600; font-size: 13.5px; }
.erp-form input { display: block; width: 100%; margin-top: 5px; }

@media (max-width: 900px) {
	.stl-erp .widefat { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.stl-erp .stlp-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.stl-erp .stlp-table td, .stl-erp .stlp-table th, .stl-erp .widefat td { white-space: nowrap; }
	.stl-erp .stlp-table td .stlp-sub { white-space: normal; }
	.stl-erp .wrap > h1 { font-size: 20px; }
}
@media (max-width: 782px) {
	.stl-erp .form-table th, .stl-erp .form-table td { display: block; width: auto; }
	.stl-erp .form-table th { padding-bottom: 0; border: 0; }
	.stl-erp .regular-text { width: 100%; }
	.stl-erp input[type=text], .stl-erp input[type=number], .stl-erp input[type=email], .stl-erp select { font-size: 16px; }  /* stops iPhone zooming in */
}

/* ------------------------------ Sign in ------------------------------ */
body.erp-login-body { background: linear-gradient(160deg, #0b3d91 0%, #0d1a33 100%); min-height: 100vh; }
.erp-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; padding-top: calc(24px + env(safe-area-inset-top)); }
.erp-login-card { background: #fff; border-radius: 20px; padding: 30px 24px 24px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.erp-login-brand { text-align: center; margin-bottom: 20px; }
.erp-login-brand img { height: 130px; width: auto; max-width: 220px; filter: drop-shadow(0 6px 14px rgba(13,31,77,.25)); }
.erp-login-brand h1 { font-size: 21px; margin: 12px 0 2px; color: var(--brand); }
.erp-login-brand p { margin: 0; color: var(--muted); font-size: 13.5px; }
.erp-login form label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 14px; color: #374151; }
.erp-login form input[type=text], .erp-login form input[type=password] {
	display: block; width: 100%; margin-top: 6px; min-height: 48px; font-size: 16px; border-radius: 11px;
	border: 1px solid #cbd5e1; padding: 10px 12px; background: #f9fafb;
}
.erp-login form input:focus { outline: 3px solid #bfdbfe; border-color: var(--brand); background: #fff; }
.erp-pw { position: relative; display: block; }
.erp-pw input { padding-right: 64px !important; }
.erp-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px; background: #eef2ff; color: var(--brand); border: 0; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.erp-login .erp-check { display: flex; gap: 9px; align-items: center; font-weight: 400; color: #4b5563; }
.erp-btn { display: block; width: 100%; text-align: center; background: var(--brand); color: #fff !important; border: 0; border-radius: 12px; min-height: 50px; line-height: 50px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.erp-btn:hover { background: var(--brand2); }
.erp-login-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 11px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.erp-login-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 11px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.erp-login-help { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.erp-login-foot { color: rgba(255,255,255,.72); font-size: 12.5px; margin-top: 18px; }

@media print {
	.erp-side, .erp-top, .erp-scrim { display: none !important; }
	.erp-main { margin: 0; }
	.erp-content { padding: 0; }
	body.stl-erp { background: #fff; }
}

/* ------------------------------ WhatsApp composer ------------------------------ */
.erp-wa { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.erp-wa[hidden] { display: none !important; }
body.erp-wa-open { overflow: hidden; }
.erp-wa-box { background: #fff; border-radius: 18px; width: 100%; max-width: 480px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: calc(100vh - 32px); overflow-y: auto; }
.erp-wa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; }
.erp-wa-logo { width: 34px; height: 34px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 17px; }
.erp-wa-x { margin-left: auto; background: #f3f4f6; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.erp-wa-box label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 10px; }
.erp-wa-box input, .erp-wa-box textarea { display: block; width: 100%; margin-top: 5px; font-size: 16px !important; border-radius: 10px !important; }
.erp-wa-box textarea { min-height: 170px; line-height: 1.45; }
.erp-wa-sugg { border: 1px solid var(--line); border-radius: 10px; margin: -4px 0 10px; max-height: 210px; overflow-y: auto; }
.erp-wa-sugg button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f1f5f9; padding: 9px 12px; cursor: pointer; font: inherit; }
.erp-wa-sugg button:hover { background: #f0fdf4; }
.erp-wa-sugg strong { display: block; font-size: 14px; }
.erp-wa-sugg span { font-size: 12px; color: var(--muted); }
.erp-wa-none { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.erp-wa-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.erp-wa-send { flex: 1 1 160px; background: #25d366; color: #fff; border: 0; border-radius: 11px; min-height: 46px; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.erp-wa-send:hover { background: #1ebe5a; }
.erp-wa-send:disabled { opacity: .6; }
.erp-wa-alt { flex: 0 1 auto; background: #fff; color: #128c7e; border: 1px solid #b7e4c7; border-radius: 11px; min-height: 46px; padding: 0 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.erp-wa-status { min-height: 20px; font-size: 13.5px; margin: 4px 0 8px; }
.erp-wa-status.ok { color: #166534; font-weight: 600; }
.erp-wa-status.bad { color: #b91c1c; font-weight: 600; }
.erp-wa-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 600px) {
	.erp-wa { align-items: flex-end; padding: 0; }
	.erp-wa-box { border-radius: 18px 18px 0 0; max-width: none; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
/* WhatsApp screen */
.stl-erp .stl-wa-btn, .stl-erp .stl-wa { color: #128c7e; font-weight: 600; }
.stl-erp a.button.stl-wa-btn { border-color: #b7e4c7; }
.stl-wa-in td { background: #f0fdf4; }
.stl-wa-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.stl-wa-sent { background: #e0e7ff; color: #3730a3; }
.stl-wa-delivered { background: #dcfce7; color: #166534; }
.stl-wa-read { background: #cffafe; color: #155e75; }
.stl-wa-failed { background: #fee2e2; color: #991b1b; }
.stl-wa-received { background: #dcfce7; color: #166534; }

/* ============================ Premium look ============================ */
:root {
	--bg: #f4f6fb;
	--line: #e6eaf2;
	--card-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px -18px rgba(15,23,42,.28);
}
body.stl-erp { background: radial-gradient(1200px 500px at 70% -200px, #e9effb 0%, rgba(233,239,251,0) 70%), var(--bg); background-attachment: fixed; }

/* Side menu */
.erp-side { background: linear-gradient(180deg, #0e1d42 0%, #0a1530 100%); box-shadow: 1px 0 0 rgba(255,255,255,.04); }
.stl-erp .erp-nav a { transition: background .15s, color .15s; font-weight: 500; }
.stl-erp .erp-nav a.on { background: linear-gradient(90deg, #1d5fd6, #1452c4); box-shadow: 0 6px 16px -6px rgba(29,95,214,.7); }
.erp-nav .b { box-shadow: 0 0 0 2px #0e1d42; }
.erp-avatar { background: linear-gradient(160deg, #1d5fd6, #0b3d91); color: #fff; }

/* Headings */
.stl-erp .wrap > h1, .stl-erp h1.wp-heading-inline { font-size: 26px; font-weight: 750; font-weight: 700; letter-spacing: -.02em; color: #0b1220; }
.stl-erp .stl-lead { color: #475569; font-size: 14.5px; max-width: 760px; }
.stl-erp h2 { letter-spacing: -.01em; }

/* Buttons */
.stl-erp .button { border-radius: 10px; min-height: 36px; font-weight: 600; transition: all .15s; border-color: #d6deea; }
.stl-erp .button-primary, .stl-erp .stl-cta { background: linear-gradient(180deg, #1a5bd0, #0b3d91); border-color: #0b3d91; color: #fff; box-shadow: 0 6px 14px -8px rgba(11,61,145,.8), inset 0 1px 0 rgba(255,255,255,.12); }
.stl-erp .button-primary:hover, .stl-erp .stl-cta:hover { background: #0b3d91; color: #fff; transform: translateY(-1px); }
.stl-erp .button-hero { border-radius: 12px; min-height: 46px; }
.stl-erp .page-title-action { border-radius: 10px; padding: 7px 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.05); }

/* Inputs */
.stl-erp input[type=text], .stl-erp input[type=email], .stl-erp input[type=number], .stl-erp input[type=date],
.stl-erp input[type=time], .stl-erp input[type=url], .stl-erp input[type=password], .stl-erp input[type=tel],
.stl-erp input[type=search], .stl-erp select, .stl-erp textarea { border-color: #d6deea; border-radius: 10px; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
.stl-erp input:focus, .stl-erp select:focus, .stl-erp textarea:focus { outline: none; border-color: #1452c4; box-shadow: 0 0 0 4px rgba(20,82,196,.14); }

/* Surfaces */
.stl-erp .widefat, .stl-erp .form-table { border-radius: 16px; border-color: var(--line); box-shadow: var(--card-shadow); }
.stl-erp .widefat th { background: #f8fafd; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.stl-erp .widefat td { padding: 12px 14px; }
.stl-erp .stl-card, .stl-erp .stl-stat, .stl-erp .stl-sec, .stl-erp .stl-task { border-radius: 16px; border-color: var(--line); box-shadow: var(--card-shadow); }
.stl-erp .stl-card h3 { letter-spacing: .06em; font-size: 12.5px; color: #475569; }
.stl-erp .notice { border-radius: 12px; box-shadow: var(--card-shadow); }
.stl-erp .nav-tab { font-weight: 600; }
.stl-erp .nav-tab-active { border-bottom-width: 3px; }
.stl-erp .tablenav-pages a, .stl-erp .tablenav-pages span { border-radius: 9px; padding: 6px 12px; font-weight: 600; }
.stl-erp .tablenav-pages .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.stl-erp .stl-pill { border-radius: 999px; font-weight: 600; letter-spacing: .01em; }

/* Phone top bar */
@media (max-width: 900px) {
	.erp-top { background: linear-gradient(135deg, #1452c4 0%, #0b3d91 60%, #0a2f73 100%); }
	.stl-erp .wrap > h1, .stl-erp h1.wp-heading-inline { font-size: 22px; }
}

/* ============================ Faster to work ============================ */
/* Parcel search */
.erp-search { position: relative; margin: 12px 12px 2px; }
.erp-search span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .6; pointer-events: none; }
.stl-erp .erp-search input[type=search] { width: 100%; min-height: 38px; padding: 7px 10px 7px 33px; border-radius: 10px; font-size: 13.5px; }
.stl-erp .erp-side .erp-search input[type=search] { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.stl-erp .erp-side .erp-search input[type=search]::placeholder { color: #94a3b8; }
.stl-erp .erp-side .erp-search input[type=search]:focus { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 4px rgba(29,95,214,.35); }
.erp-topsearch { display: none; }

/* Foldable menu groups */
.stl-erp .erp-nav .erp-gl { display: flex; width: calc(100% - 20px); align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; text-align: left; }
.erp-gl:hover { color: #cbd5e1; }
.erp-fold { font-size: 11px; transition: transform .15s; opacity: .7; }
.erp-group.closed .erp-links { display: none; }
.erp-group.closed .erp-fold { transform: rotate(-90deg); }

/* Phone bottom bar */
.erp-bottom { display: none; }
@media (max-width: 900px) {
	.erp-find { margin-left: auto; font-size: 17px !important; }
	.erp-topsearch { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 29; margin: 0; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(15,23,42,.3); }
	.erp-topsearch.show { display: block; }
	.erp-topsearch span { left: 23px; }
	.stl-erp .erp-topsearch input[type=search] { font-size: 16px; min-height: 44px; }
	.erp-side .erp-search { display: none; }

	.erp-bottom {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
		background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
		border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		box-shadow: 0 -8px 24px -16px rgba(15,23,42,.35);
	}
	.stl-erp .erp-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; text-decoration: none; color: #64748b; font-size: 11px; font-weight: 600; border-radius: 10px; }
	.erp-bottom .bi { font-size: 19px; line-height: 1.2; }
	.stl-erp .erp-bottom a.on { color: var(--brand); background: #eef3fd; }
	.stl-erp .erp-bottom a.erp-bn-book .bi { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -18px; border-radius: 50%; background: linear-gradient(160deg, #1d5fd6, #0b3d91); color: #fff; font-size: 22px; box-shadow: 0 8px 18px -6px rgba(11,61,145,.7); border: 3px solid #fff; }
	.erp-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	body.erp-open .erp-bottom { display: none; }
}
@media print { .erp-bottom, .erp-search { display: none !important; } }
