:root { color-scheme:light; -webkit-text-size-adjust:100%; }
body.crp-team-standalone-page { margin:0; color:var(--tebtok-ink); background:var(--tebtok-bg); }
body.crp-team-standalone-page.admin-bar { margin-top:0; }
.crp-team-standalone-main { min-height:100vh; }
.crp-team-app {
    --team-ink:var(--tebtok-ink);
    --team-muted:var(--tebtok-muted);
    --team-blue:var(--tebtok-blue);
    --team-blue-dark:var(--tebtok-blue-dark);
    --team-aqua:var(--tebtok-aqua);
    --team-line:var(--tebtok-line);
    --team-soft:var(--tebtok-bg);
    --team-surface:#fff;
    min-height:100vh;
    color:var(--team-ink);
    font-family:"Yekan Bakh",Tahoma,Arial,sans-serif;
    font-size:14px;
    line-height:1.8;
    text-align:right;
}
.crp-team-app * { box-sizing:border-box; }
.crp-team-app button,.crp-team-app input,.crp-team-app select,.crp-team-app textarea { font:inherit; }
.crp-team-app a { color:inherit; }

.crp-team-login-shell { display:grid; place-items:center; min-height:100vh; padding:28px 16px; background:radial-gradient(circle at 84% 12%,rgba(29,208,189,.14),transparent 30%),radial-gradient(circle at 15% 90%,rgba(31,103,237,.15),transparent 34%),#f4f7fb; }
.crp-team-login-card { width:min(440px,100%); padding:34px; border:1px solid #d9e3ea; border-top:4px solid #123e7c; border-radius:25px; background:#fff; box-shadow:0 25px 70px rgba(29,62,82,.13); }
.crp-team-login-card>img { display:block; width:150px; height:auto; margin:0 auto 9px; }
.crp-team-login-card>span { display:table; margin:0 auto; padding:3px 10px; border-radius:999px; color:#fff; background:#123e7c; text-align:center; font-size:10px; font-weight:850; }
.crp-team-login-card h1 { margin:12px 0 4px; text-align:center; font-size:25px; line-height:1.5; }
.crp-team-login-card>p { margin:0 0 22px; color:var(--team-muted); text-align:center; font-size:12px; }
.crp-team-login-card form { display:grid; gap:13px; }
.crp-team-login-card form p { margin:0; }
.crp-team-login-card label { display:flex; flex-direction:column; gap:5px; color:#3e5662; font-size:12px; font-weight:800; }
.crp-team-login-card input[type=text],.crp-team-login-card input[type=password] { width:100%; padding:12px 13px; border:1px solid #b9c8d1; border-radius:12px; outline:0; background:#fbfcfe; }
.crp-team-login-card input:focus { border-color:var(--team-blue); background:#fff; box-shadow:0 0 0 3px rgba(31,103,237,.12); }
.crp-team-login-error { margin:0 0 14px; padding:10px 12px; border:1px solid #efb9b3; border-radius:10px; color:#9b2b22; background:#fff2f0; font-size:12px; font-weight:750; }
.crp-team-login-card .login-remember label { flex-direction:row; align-items:center; gap:8px; font-weight:500; }
.crp-team-login-card input[type=checkbox] { width:19px; height:19px; accent-color:var(--team-blue); }
.crp-team-login-card .login-submit input { width:100%; padding:11px 16px; border:1px solid var(--team-blue); border-radius:12px; color:#fff; background:var(--team-blue); cursor:pointer; font-weight:900; }
.crp-team-login-card>a { display:block; margin-top:13px; color:var(--team-blue); text-align:center; text-decoration:none; font-size:12px; font-weight:750; }
.crp-team-login-card>small { display:block; margin-top:20px; padding-top:14px; border-top:1px solid #e7edf1; color:var(--team-muted); text-align:center; font-size:10px; }
.crp-team-access-card .crp-team-primary-link { padding:9px 12px; border-radius:10px; color:#fff; background:var(--team-blue); }

.crp-team-layout { display:grid; grid-template-columns:262px minmax(0,1fr); min-height:100vh; direction:rtl; }
.crp-team-sidebar { position:sticky; top:0; z-index:50; display:flex; flex-direction:column; height:100vh; padding:24px 17px 18px; color:#e9f0ff; background:linear-gradient(180deg,#112c4b 0%,#0b233e 64%,#081c32 100%); box-shadow:-12px 0 40px rgba(7,29,50,.11); }
.crp-team-logo { display:flex; align-items:center; gap:10px; margin:0 7px 30px; text-decoration:none; }
.crp-team-logo img { width:116px; height:auto; padding:6px 9px; border-radius:9px; background:transparent; filter:brightness(0) invert(1); }
.crp-team-logo span { color:#9fb4cc; font-size:11px; font-weight:800; white-space:nowrap; }
.crp-team-sidebar nav { display:grid; gap:7px; }
.crp-team-sidebar nav a { display:flex; align-items:center; gap:12px; min-height:45px; padding:8px 12px; border:1px solid transparent; border-radius:12px; color:#b9c9db; text-decoration:none; transition:.15s ease; }
.crp-team-sidebar nav a:hover { color:#fff; background:rgba(255,255,255,.065); }
.crp-team-sidebar nav a.is-active { color:#fff; border-color:rgba(93,157,255,.23); background:linear-gradient(90deg,rgba(31,103,237,.32),rgba(29,208,189,.08)); box-shadow:inset -3px 0 0 var(--team-aqua); }
.crp-team-sidebar nav b { font-size:14px; }
.crp-team-nav-icon { display:block; width:20px; height:20px; flex:0 0 auto; background:currentColor; opacity:.85; -webkit-mask:center/contain no-repeat; mask:center/contain no-repeat; }
.crp-team-nav-dashboard { -webkit-mask-image:url("icons/dashboard.svg"); mask-image:url("icons/dashboard.svg"); }
.crp-team-nav-cases { -webkit-mask-image:url("icons/cases.svg"); mask-image:url("icons/cases.svg"); }
.crp-team-nav-doctors { -webkit-mask-image:url("icons/doctor.svg"); mask-image:url("icons/doctor.svg"); }
.crp-team-nav-support { -webkit-mask-image:url("icons/support.svg"); mask-image:url("icons/support.svg"); }
.crp-team-nav-settings,.crp-team-nav-form-config { -webkit-mask-image:url("icons/settings.svg"); mask-image:url("icons/settings.svg"); }
.crp-team-sidebar-footer { display:grid; gap:10px; margin-top:auto; padding-top:17px; border-top:1px solid rgba(255,255,255,.09); }
.crp-team-security { position:relative; padding-right:22px; color:#9db0c2; font-size:11px; }
.crp-team-security:before { position:absolute; top:3px; right:1px; width:14px; height:14px; background:var(--team-aqua); content:""; -webkit-mask:center/contain no-repeat url("icons/shield.svg"); mask:center/contain no-repeat url("icons/shield.svg"); }
.crp-team-sidebar-footer form { margin:0; }
.crp-team-sidebar-footer button { width:100%; padding:8px 10px; border:1px solid rgba(255,255,255,.14); border-radius:9px; color:#aec0d3; background:transparent; cursor:pointer; font-size:12px; }
.crp-team-sidebar-footer button:hover { color:#fff; border-color:rgba(255,255,255,.28); }

.crp-team-workspace { min-width:0; }
.crp-team-topbar { position:sticky; top:0; z-index:35; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px; padding:12px 28px; border-bottom:1px solid rgba(215,225,232,.88); background:rgba(255,255,255,.93); box-shadow:0 7px 28px rgba(28,55,71,.045); backdrop-filter:blur(13px); }
.crp-team-topbar>div:first-child { display:flex; align-items:center; gap:11px; }
.crp-team-topbar>div:first-child>div { display:flex; flex-direction:column; }
.crp-team-topbar small { color:var(--team-muted); font-size:11px; }
.crp-team-topbar strong { font-size:17px; }
.crp-team-user { display:flex; align-items:center; gap:10px; }
.crp-team-user>span:first-child { display:flex; flex-direction:column; text-align:left; }
.crp-team-user b { font-size:13px; }
.crp-team-user small { font-size:10px; }
.crp-team-avatar { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color:#fff; background:linear-gradient(145deg,var(--team-blue),#5192ff); font-size:15px; font-weight:900; }
.crp-team-user>a { padding:7px 10px; border:1px solid #d5e0e6; border-radius:9px; color:#637885; text-decoration:none; font-size:11px; font-weight:800; }
.crp-team-menu-button { display:none; width:40px; height:40px; padding:9px; border:1px solid var(--team-line); border-radius:10px; background:#fff; }
.crp-team-menu-button span { display:block; height:2px; margin:4px 0; border-radius:2px; background:#345263; }
.crp-team-overlay { display:none; }
.crp-team-content { width:min(1500px,100%); margin:0 auto; padding:26px 28px 55px; }

.crp-team-welcome { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-bottom:18px; padding:23px 25px; overflow:hidden; border:1px solid #d5e2eb; border-radius:19px; background:linear-gradient(110deg,#fff 0%,#f4f8ff 65%,#eefcf9 100%); box-shadow:0 12px 36px rgba(33,65,86,.055); }
.crp-team-welcome>div:first-child>span { color:var(--team-blue); font-size:11px; font-weight:900; }
.crp-team-welcome h1 { margin:3px 0; font-size:23px; line-height:1.5; }
.crp-team-welcome p { margin:0; color:var(--team-muted); font-size:13px; }
.crp-team-quick-actions { display:flex; gap:8px; flex:0 0 auto; }
.crp-team-quick-actions a { padding:9px 13px; border:1px solid #cbd9e2; border-radius:10px; color:#3e5b6b; background:#fff; text-decoration:none; font-size:12px; font-weight:850; }
.crp-team-quick-actions a:first-child { color:#fff; border-color:var(--team-blue); background:var(--team-blue); }

.crp-team-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:20px; }
.crp-team-metric { display:flex; align-items:center; gap:13px; min-height:92px; padding:14px; border:1px solid var(--team-line); border-radius:15px; background:#fff; box-shadow:0 8px 27px rgba(32,61,78,.045); text-decoration:none; transition:transform .15s ease,box-shadow .15s ease; }
.crp-team-metric:hover { transform:translateY(-2px); box-shadow:0 13px 32px rgba(32,61,78,.09); }
.crp-team-metric>span { display:grid; place-items:center; width:51px; height:51px; flex:0 0 auto; border-radius:15px; color:var(--team-blue); background:#eef4ff; font-size:20px; font-weight:950; }
.crp-team-metric>div { display:flex; flex-direction:column; min-width:0; }
.crp-team-metric b { font-size:13px; }
.crp-team-metric small { overflow:hidden; color:var(--team-muted); text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.crp-team-metric-aqua>span { color:#0e857a; background:#e7faf7; }
.crp-team-metric-amber>span { color:#9a5a08; background:#fff6df; }
.crp-team-metric-red>span { color:#b42318; background:#fff0ee; }
.crp-team-metric-purple>span { color:#6f4bc1; background:#f3efff; }
.crp-team-metric-green>span { color:#19724d; background:#eaf8f1; }

.crp-team-queue { padding:19px; border:1px solid var(--team-line); border-radius:18px; background:#fff; box-shadow:0 11px 34px rgba(32,61,78,.05); }
.crp-team-section-title { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:13px; }
.crp-team-section-title>div { display:flex; flex-direction:column; }
.crp-team-section-title span { color:var(--team-blue); font-size:11px; font-weight:900; }
.crp-team-section-title h2 { margin:0; font-size:17px; }
.crp-team-section-title>a { color:var(--team-blue); text-decoration:none; font-size:12px; font-weight:850; }
.crp-team-queue-list { display:grid; gap:7px; }
.crp-team-queue-list article { display:grid; grid-template-columns:minmax(210px,1.5fr) minmax(150px,.8fr) minmax(125px,.65fr) auto; align-items:center; gap:13px; padding:11px 12px; border:1px solid #e2e9ee; border-radius:12px; background:#fbfcfd; }
.crp-team-case-main { display:flex; align-items:center; gap:10px; min-width:0; }
.crp-team-priority { width:4px; height:39px; flex:0 0 auto; border-radius:4px; background:#a7b6bd; }
.crp-team-priority-urgent { background:#d92d20; }
.crp-team-priority-semi { background:#e69a19; }
.crp-team-priority-normal { background:#22a06b; }
.crp-team-case-main>div { min-width:0; }
.crp-team-case-main a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; font-size:13px; font-weight:900; }
.crp-team-case-main small { display:block; overflow:hidden; color:var(--team-muted); text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.crp-team-case-main code { color:var(--team-blue); background:transparent; font-size:10px; }
.crp-team-case-status,.crp-team-case-progress { display:flex; flex-direction:column; }
.crp-team-case-status b,.crp-team-case-progress span { font-size:11px; }
.crp-team-case-status small,.crp-team-case-progress small { color:var(--team-muted); font-size:10px; }
.crp-team-next-action { min-width:104px; padding:7px 10px; border:1px solid #bdd0ee; border-radius:9px; color:var(--team-blue); background:#f5f8ff; text-align:center; text-decoration:none; font-size:11px; font-weight:900; }
.crp-team-empty { display:flex; align-items:center; flex-direction:column; padding:38px; color:var(--team-muted); text-align:center; }
.crp-team-empty b { color:var(--team-ink); }

/* Shared WordPress management views inside the standalone portal. */
.crp-team-content .crp-admin { width:100%; max-width:none; margin:0; padding:0; --crp-admin-primary:var(--team-blue); --crp-admin-soft:#eef4ff; }
.crp-team-content .crp-admin-titlebar { margin-top:0; }
.crp-team-content .wrap { margin:0; }
.crp-team-content .button { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin:0; padding:6px 12px; border:1px solid #bdccd6; border-radius:8px; color:#3e5968; background:#fff; box-shadow:none; text-decoration:none; cursor:pointer; font-size:12px; font-weight:800; line-height:1.5; }
.crp-team-content .button:hover { color:var(--team-blue); border-color:#9bb9ec; background:#f7f9ff; }
.crp-team-content .button-primary { color:#fff!important; border-color:var(--team-blue)!important; background:var(--team-blue)!important; }
.crp-team-content .button-small { min-height:30px; padding:4px 9px; font-size:11px; }
.crp-team-content .button-large { min-height:40px; padding:7px 16px; }
.crp-team-content .widefat { width:100%; border-collapse:collapse; border-spacing:0; }
.crp-team-content .widefat th,.crp-team-content .widefat td { padding:10px; border-bottom:1px solid #e4ebef; text-align:right; }
.crp-team-content .widefat th { color:#58707c; background:#f5f8fa; font-size:12px; }
.crp-team-content .widefat td { background:#fff; font-size:12px; }
.crp-team-content .striped tbody tr:nth-child(odd) td { background:#fbfcfd; }
.crp-team-content .notice { margin:10px 0 14px; padding:10px 12px; border:1px solid #bbd9c9; border-radius:10px; color:#166443; background:#effaf4; }
.crp-team-content .notice-error { color:#9b2b22; border-color:#efb9b3; background:#fff2f0; }
.crp-team-content .notice-info { color:#295a78; border-color:#bad7e9; background:#f0f8fd; }
.crp-team-content .notice p { margin:0; }
.crp-team-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.crp-team-content select,.crp-team-content textarea { width:100%; max-width:100%; border:1px solid #bacbd4; border-radius:9px; padding:8px 10px; color:var(--team-ink); background:#fbfcfd; outline:0; }
.crp-team-content input:focus,.crp-team-content select:focus,.crp-team-content textarea:focus { border-color:var(--team-blue); background:#fff; box-shadow:0 0 0 3px rgba(31,103,237,.1); }
.crp-team-content input[type=checkbox],.crp-team-content input[type=radio] { width:18px; height:18px; accent-color:var(--team-blue); }
.crp-team-content .screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.crp-team-content .tablenav-pages { margin-top:12px; }
.crp-team-content .page-numbers { display:inline-grid; place-items:center; min-width:31px; min-height:31px; margin-left:4px; border:1px solid #d3dfe6; border-radius:8px; background:#fff; text-decoration:none; }
.crp-team-content .page-numbers.current { color:#fff; border-color:var(--team-blue); background:var(--team-blue); }
.crp-team-content .crp-report-preview { background:#fff; }
.crp-team-content .description { color:var(--team-muted); font-size:11px; }
.crp-team-content hr { height:1px; margin:17px 0; border:0; background:#e4ebef; }

@media (max-width:1180px) {
    .crp-team-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .crp-team-queue-list article { grid-template-columns:minmax(200px,1.4fr) minmax(135px,.8fr) auto; }
    .crp-team-case-progress { display:none; }
}
@media (max-width:900px) {
    .crp-team-layout { display:block; }
    .crp-team-sidebar { position:fixed; right:0; top:0; width:270px; transform:translateX(110%); transition:transform .2s ease; }
    body.crp-team-menu-open { overflow:hidden; }
    body.crp-team-menu-open .crp-team-sidebar { transform:none; }
    .crp-team-overlay { position:fixed; inset:0; z-index:45; border:0; background:rgba(6,24,39,.48); }
    body.crp-team-menu-open .crp-team-overlay { display:block; }
    .crp-team-menu-button { display:block; }
    .crp-team-topbar { min-height:67px; padding:9px 15px; }
    .crp-team-content { padding:17px 14px 45px; }
    .crp-team-welcome { align-items:flex-start; flex-direction:column; padding:19px; }
    .crp-team-welcome h1 { font-size:20px; }
}
@media (max-width:650px) {
    .crp-team-app { font-size:13px; }
    .crp-team-user>span:first-child { display:none; }
    .crp-team-user>a { padding:6px 8px; }
    .crp-team-avatar { width:34px; height:34px; border-radius:10px; }
    .crp-team-metrics { grid-template-columns:1fr 1fr; gap:8px; }
    .crp-team-metric { min-height:82px; padding:10px; }
    .crp-team-metric>span { width:44px; height:44px; font-size:17px; }
    .crp-team-metric small { display:none; }
    .crp-team-quick-actions { width:100%; }
    .crp-team-quick-actions a { flex:1; text-align:center; }
    .crp-team-queue { padding:13px; }
    .crp-team-queue-list article { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
    .crp-team-case-status { display:none; }
    .crp-team-next-action { min-width:90px; padding:7px 8px; }
    .crp-team-content .crp-admin-title-actions,.crp-team-content .crp-header-badges { flex-wrap:wrap; }
    .crp-team-content .widefat { min-width:720px; }
    .crp-team-content .crp-report-preview { min-width:0; }
    .crp-team-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.crp-team-content select,.crp-team-content textarea { font-size:16px; }
    .crp-team-login-card { padding:27px 19px; border-radius:20px; }
}

@media print {
    body.crp-report-printing .crp-team-sidebar,
    body.crp-report-printing .crp-team-topbar,
    body.crp-report-printing .crp-team-overlay { display:none!important; }
    body.crp-report-printing .crp-team-layout,
    body.crp-report-printing .crp-team-workspace,
    body.crp-report-printing .crp-team-content { display:block!important; width:auto!important; min-height:0!important; margin:0!important; padding:0!important; background:#fff!important; }
}

@media (prefers-reduced-motion:reduce) {
    .crp-team-app * { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}
.crp-team-topbar>div:first-child{display:flex;align-items:center;gap:10px}

/* 7.4.31 — کارت شمارش پیش‌نویس‌های پرداخت‌نشده (بدون پیوند و بدون جزئیات) */
.crp-team-metric-slate>span { color:#2f3a45; background:#eef2f6; }
.crp-team-metric.is-static { cursor:default; }
.crp-team-metric.is-static:hover { transform:none; box-shadow:0 8px 27px rgba(32,61,78,.045); }
