/* ═══════════════════════════════════════════════════
   TD Dashboard — CSS اصلی داشبورد
   نسخه 2.0 — کارت سایدبار با آرم هیئت
   ═══════════════════════════════════════════════════ */

/* ═══ Layout اصلی ═══ */
.td-app {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background: #f1f5f9;
    font-family: Tahoma, Arial, sans-serif;
}

.td-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.td-main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   کارت آرم هیئت در سایدبار — نسخه جدید
   ═══════════════════════════════════════════════════ */
.td-brand-hq {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin: 0 0 8px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* آرم — بدون دایره، پر کن کل کارت */
.td-brand-logo {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.td-brand-logo img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* بخش متن — عکس نستعلیق + «دبیر کارگروه تخصصی» */
.td-brand-text {
    width: 100%;
    padding: 8px 12px 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

/* عکس نستعلیق (header-title.png) */
.td-brand-text h1 {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.td-brand-text h1 img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* «دبیر کارگروه تخصصی» */
.td-brand-text p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0;
}

/* تاریخ و ساعت */
.td-brand-datetime {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.td-dt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #334155;
    font-weight: 600;
}

.td-dt-icon {
    font-size: 12px;
}

.td-dt-jalali {
    color: #1e40af;
    font-weight: 700;
}

.td-dt-gregorian {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    color: #64748b;
    direction: ltr;
}

.td-dt-time {
    color: #dc2626;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    direction: ltr;
}

/* ═══ انتخابگر کارگروه ═══ */
.td-wg-selector {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-selector label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.td-wg-selector select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.td-wg-single {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-single-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.td-wg-single-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

/* ═══ منو ═══ */
.td-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
}

.td-menu-item:hover {
    background: #334155;
    color: #fff;
}

.td-menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

.td-menu-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-menu-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.td-badge-yellow { background: #f59e0b !important; color: #78350f !important; }
.td-badge-green  { background: #10b981 !important; }
.td-badge-blue   { background: #3b82f6 !important; }
.td-badge-red    { background: #ef4444 !important; }

.td-menu-sep {
    font-size: 10px;
    color: #64748b;
    padding: 12px 12px 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ دکمه خروج ═══ */
.td-logout {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.15s;
}

.td-logout:hover {
    background: #b91c1c;
}

/* ═══ هدر اصلی ═══ */
.td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.td-header h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
    font-weight: 800;
}

.td-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.td-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
}

/* ═══ پنل اصلی ═══ */
.td-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-panel-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-count {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ خالی ═══ */
.td-empty {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
}

.td-empty h3 {
    color: #92400e;
    margin: 0 0 8px 0;
}

.td-empty p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
}

/* ═══ لاگین ═══ */
.td-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
    padding: 20px;
    direction: rtl;
}

.td-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.td-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.td-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.td-login-card h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
}

.td-login-card p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.td-login-card label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin: 12px 0 4px;
    font-weight: 700;
}

.td-login-card input[type="text"],
.td-login-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.td-login-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.td-login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.td-login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.35);
}

.td-login-help {
    text-align: center;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 11px;
}

.td-login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border-right: 4px solid #dc2626;
}

/* ═══ جدول ادمین ═══ */
.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.td-table th {
    background: #1e40af;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 700;
}

.td-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.td-table tr:hover td {
    background: #f8fafc;
}

.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.td-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.td-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.td-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.td-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
    .td-app {
        flex-direction: column;
    }
    .td-sidebar {
        width: 100%;
        max-height: none;
    }
    .td-main {
        padding: 16px;
    }
    .td-brand-logo img {
        max-width: 180px;
    }
    .td-brand-text h1 img {
        max-width: 160px;
    }
}
/* ═══════════════════════════════════════════════════
   TD Dashboard — CSS اصلی داشبورد
   نسخه 2.1 — آرم استاندارد سایدبار
   ═══════════════════════════════════════════════════ */

/* ═══ Layout اصلی ═══ */
.td-app {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background: #f1f5f9;
    font-family: Tahoma, Arial, sans-serif;
}

.td-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.td-main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   کارت آرم هیئت در سایدبار
   ═══════════════════════════════════════════════════ */
.td-brand-hq {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin: 0 0 8px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* آرم — استاندارد */
.td-brand-logo {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px 6px;
    box-sizing: border-box;
}

.td-brand-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* بخش متن — عکس نستعلیق + «دبیر کارگروه تخصصی» */
.td-brand-text {
    width: 100%;
    padding: 6px 12px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

/* عکس نستعلیق (header-title.png) */
.td-brand-text h1 {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.td-brand-text h1 img {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* «دبیر کارگروه تخصصی» */
.td-brand-text p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0;
}

/* تاریخ و ساعت */
.td-brand-datetime {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.td-dt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #334155;
    font-weight: 600;
}

.td-dt-icon {
    font-size: 12px;
}

.td-dt-jalali {
    color: #1e40af;
    font-weight: 700;
}

.td-dt-gregorian {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    color: #64748b;
    direction: ltr;
}

.td-dt-time {
    color: #dc2626;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    direction: ltr;
}

/* ═══ انتخابگر کارگروه ═══ */
.td-wg-selector {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-selector label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.td-wg-selector select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.td-wg-single {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-single-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.td-wg-single-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

/* ═══ منو ═══ */
.td-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
}

.td-menu-item:hover {
    background: #334155;
    color: #fff;
}

.td-menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

.td-menu-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-menu-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.td-badge-yellow { background: #f59e0b !important; color: #78350f !important; }
.td-badge-green  { background: #10b981 !important; }
.td-badge-blue   { background: #3b82f6 !important; }
.td-badge-red    { background: #ef4444 !important; }

.td-menu-sep {
    font-size: 10px;
    color: #64748b;
    padding: 12px 12px 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ دکمه خروج ═══ */
.td-logout {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.15s;
}

.td-logout:hover {
    background: #b91c1c;
}

/* ═══ هدر اصلی ═══ */
.td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.td-header h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
    font-weight: 800;
}

.td-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.td-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
}

/* ═══ پنل اصلی ═══ */
.td-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-panel-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-count {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ خالی ═══ */
.td-empty {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
}

.td-empty h3 {
    color: #92400e;
    margin: 0 0 8px 0;
}

.td-empty p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
}

/* ═══ لاگین ═══ */
.td-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
    padding: 20px;
    direction: rtl;
}

.td-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.td-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.td-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.td-login-card h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
}

.td-login-card p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.td-login-card label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin: 12px 0 4px;
    font-weight: 700;
}

.td-login-card input[type="text"],
.td-login-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.td-login-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.td-login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.td-login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.35);
}

.td-login-help {
    text-align: center;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 11px;
}

.td-login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border-right: 4px solid #dc2626;
}

/* ═══ جدول ادمین ═══ */
.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.td-table th {
    background: #1e40af;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 700;
}

.td-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.td-table tr:hover td {
    background: #f8fafc;
}

.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.td-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.td-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.td-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.td-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
    .td-app {
        flex-direction: column;
    }
    .td-sidebar {
        width: 100%;
        max-height: none;
    }
    .td-main {
        padding: 16px;
    }
    .td-brand-logo img {
        width: 80px;
        height: 80px;
    }
    .td-brand-text h1 img {
        width: 140px;
    }
}
/* ═══════════════════════════════════════════════════
   تب نمای کلی (Overview) — v2.0
   ═══════════════════════════════════════════════════ */

/* ═══ کارت‌های آماری بالای صفحه ═══ */
.td-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.td-ov-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    border: 2px solid #f1f5f9;
}

.td-ov-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.td-ov-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.td-ov-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f8fafc;
    flex-shrink: 0;
}

.td-ov-info {
    flex: 1;
    min-width: 0;
}

.td-ov-info p {
    margin: 0 0 3px 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.td-ov-info h3 {
    margin: 0;
    font-size: 17px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ پنل اطلاعات کارگروه ═══ */
.td-overview-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.td-ov-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-ov-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

/* جدول اطلاعات */
.td-ov-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.td-ov-table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.td-ov-table tr:last-child {
    border-bottom: none;
}

.td-ov-table tr:hover {
    background: #f8fafc;
}

.td-ov-table th {
    width: 180px;
    padding: 12px 16px;
    text-align: right;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    vertical-align: middle;
    border: none;
}

.td-ov-table td {
    padding: 12px 16px;
    text-align: right;
    color: #1e293b;
    font-weight: 600;
    vertical-align: middle;
    border: none;
}

/* برچسب وضعیت */
.td-ov-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.td-badge-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.td-badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ═══ توضیحات ═══ */
.td-ov-description {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 4px solid #3b82f6;
}

.td-ov-description h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #1e40af;
    font-weight: 800;
}

.td-ov-content {
    font-size: 13px;
    color: #334155;
    line-height: 1.9;
}

.td-ov-content p {
    margin: 0 0 8px 0;
}

/* ═══ دسترسی سریع ═══ */
.td-overview-quick {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-overview-quick h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.td-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.td-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.td-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.td-quick-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
    .td-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-ov-table th {
        width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-ov-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .td-overview-stats {
        grid-template-columns: 1fr;
    }
    .td-ov-table th {
        width: 100px;
    }
    .td-quick-grid {
        grid-template-columns: 1fr;
    }
}
/* ═══════════════════════════════════════════════════
   هدر جدید با عکس دبیر + تاریخ (v2.1)
   ═══════════════════════════════════════════════════ */

.td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    gap: 16px;
}

.td-header-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

/* آواتار دبیر — عکس یا حرف اول */
.td-header .td-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #fff;
}

.td-header .td-avatar.td-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.td-header-text {
    min-width: 0;
    flex: 1;
}

.td-header-text h2 {
    margin: 0 0 3px 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-header-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تاریخ شمسی هدر */
.td-header-date {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 640px) {
    .td-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .td-header-date {
        align-self: flex-end;
        font-size: 11px;
        padding: 6px 10px;
    }
    .td-header .td-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .td-header-text h2 {
        font-size: 15px;
    }
    .td-header-text p {
        font-size: 11px;
    }
}
/* ═══════════════════════════════════════════════════
   TD Dashboard — CSS اصلی داشبورد
   نسخه 2.2 — آواتار مربع گرد
   ═══════════════════════════════════════════════════ */

/* ═══ Layout اصلی ═══ */
.td-app {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background: #f1f5f9;
    font-family: Tahoma, Arial, sans-serif;
}

.td-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.td-main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   کارت آرم هیئت در سایدبار
   ═══════════════════════════════════════════════════ */
.td-brand-hq {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin: 0 0 8px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.td-brand-logo {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px 6px;
    box-sizing: border-box;
}

.td-brand-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.td-brand-text {
    width: 100%;
    padding: 6px 12px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.td-brand-text h1 {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.td-brand-text h1 img {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

.td-brand-text p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0;
}

.td-brand-datetime {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.td-dt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #334155;
    font-weight: 600;
}

.td-dt-icon {
    font-size: 12px;
}

.td-dt-jalali {
    color: #1e40af;
    font-weight: 700;
}

.td-dt-gregorian {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    color: #64748b;
    direction: ltr;
}

.td-dt-time {
    color: #dc2626;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    direction: ltr;
}

/* ═══ انتخابگر کارگروه ═══ */
.td-wg-selector {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-selector label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.td-wg-selector select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.td-wg-single {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-single-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.td-wg-single-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

/* ═══ منو ═══ */
.td-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
}

.td-menu-item:hover {
    background: #334155;
    color: #fff;
}

.td-menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

.td-menu-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-menu-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.td-badge-yellow { background: #f59e0b !important; color: #78350f !important; }
.td-badge-green  { background: #10b981 !important; }
.td-badge-blue   { background: #3b82f6 !important; }
.td-badge-red    { background: #ef4444 !important; }

.td-menu-sep {
    font-size: 10px;
    color: #64748b;
    padding: 12px 12px 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ دکمه خروج ═══ */
.td-logout {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.15s;
}

.td-logout:hover {
    background: #b91c1c;
}

/* ═══════════════════════════════════════════════════
   هدر داشبورد — با عکس دبیر + تاریخ
   ═══════════════════════════════════════════════════ */
.td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    gap: 16px;
}

.td-header-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

/* 🆕 آواتار مربع با گوشه‌های گرد */
.td-header .td-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.td-header .td-avatar.td-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.td-header-text {
    min-width: 0;
    flex: 1;
}

.td-header-text h2 {
    margin: 0 0 3px 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-header-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-header-date {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ═══ پنل اصلی ═══ */
.td-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-panel-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-count {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ خالی ═══ */
.td-empty {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
}

.td-empty h3 {
    color: #92400e;
    margin: 0 0 8px 0;
}

.td-empty p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
}

/* ═══ لاگین ═══ */
.td-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
    padding: 20px;
    direction: rtl;
}

.td-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.td-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.td-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.td-login-card h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
}

.td-login-card p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.td-login-card label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin: 12px 0 4px;
    font-weight: 700;
}

.td-login-card input[type="text"],
.td-login-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.td-login-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.td-login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.td-login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.35);
}

.td-login-help {
    text-align: center;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 11px;
}

.td-login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border-right: 4px solid #dc2626;
}

/* ═══ جدول ادمین ═══ */
.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.td-table th {
    background: #1e40af;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 700;
}

.td-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.td-table tr:hover td {
    background: #f8fafc;
}

.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.td-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.td-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.td-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.td-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* ═══════════════════════════════════════════════════
   تب نمای کلی (Overview)
   ═══════════════════════════════════════════════════ */
.td-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.td-ov-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    border: 2px solid #f1f5f9;
}

.td-ov-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.td-ov-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.td-ov-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f8fafc;
    flex-shrink: 0;
}

.td-ov-info {
    flex: 1;
    min-width: 0;
}

.td-ov-info p {
    margin: 0 0 3px 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.td-ov-info h3 {
    margin: 0;
    font-size: 17px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-overview-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.td-ov-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-ov-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-ov-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.td-ov-table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.td-ov-table tr:last-child {
    border-bottom: none;
}

.td-ov-table tr:hover {
    background: #f8fafc;
}

.td-ov-table th {
    width: 180px;
    padding: 12px 16px;
    text-align: right;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    vertical-align: middle;
    border: none;
}

.td-ov-table td {
    padding: 12px 16px;
    text-align: right;
    color: #1e293b;
    font-weight: 600;
    vertical-align: middle;
    border: none;
}

.td-ov-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.td-badge-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.td-badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.td-ov-description {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 4px solid #3b82f6;
}

.td-ov-description h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #1e40af;
    font-weight: 800;
}

.td-ov-content {
    font-size: 13px;
    color: #334155;
    line-height: 1.9;
}

.td-overview-quick {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-overview-quick h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.td-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.td-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.td-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.td-quick-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
    .td-app {
        flex-direction: column;
    }
    .td-sidebar {
        width: 100%;
        max-height: none;
    }
    .td-main {
        padding: 16px;
    }
    .td-brand-logo img {
        width: 80px;
        height: 80px;
    }
    .td-brand-text h1 img {
        width: 140px;
    }
    .td-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .td-header-date {
        align-self: flex-end;
    }
    .td-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-ov-table th {
        width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-ov-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .td-overview-stats {
        grid-template-columns: 1fr;
    }
    .td-ov-table th {
        width: 100px;
    }
    .td-quick-grid {
        grid-template-columns: 1fr;
    }
}/* ═══════════════════════════════════════════════════
   TD Dashboard — CSS اصلی داشبورد
   نسخه 2.3 — آواتار بزرگ‌تر (68×68)
   ═══════════════════════════════════════════════════ */

/* ═══ Layout اصلی ═══ */
.td-app {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background: #f1f5f9;
    font-family: Tahoma, Arial, sans-serif;
}

.td-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    overflow-y: auto;
    flex-shrink: 0;
}

.td-main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   کارت آرم هیئت در سایدبار
   ═══════════════════════════════════════════════════ */
.td-brand-hq {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin: 0 0 8px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.td-brand-logo {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px 6px;
    box-sizing: border-box;
}

.td-brand-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.td-brand-text {
    width: 100%;
    padding: 6px 12px 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.td-brand-text h1 {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.td-brand-text h1 img {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

.td-brand-text p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.td-brand-datetime {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.td-dt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #334155;
    font-weight: 600;
}

.td-dt-icon {
    font-size: 12px;
}

.td-dt-jalali {
    color: #1e40af;
    font-weight: 700;
}

.td-dt-gregorian {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    color: #64748b;
    direction: ltr;
}

.td-dt-time {
    color: #dc2626;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    direction: ltr;
}

/* ═══ انتخابگر کارگروه ═══ */
.td-wg-selector {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-selector label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.td-wg-selector select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.td-wg-single {
    padding: 12px;
    background: #1e293b;
    border-radius: 10px;
    border: 1px solid #334155;
}

.td-wg-single-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.td-wg-single-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

/* ═══ منو ═══ */
.td-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
}

.td-menu-item:hover {
    background: #334155;
    color: #fff;
}

.td-menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

.td-menu-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-menu-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.td-badge-yellow { background: #f59e0b !important; color: #78350f !important; }
.td-badge-green  { background: #10b981 !important; }
.td-badge-blue   { background: #3b82f6 !important; }
.td-badge-red    { background: #ef4444 !important; }

.td-menu-sep {
    font-size: 10px;
    color: #64748b;
    padding: 12px 12px 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ دکمه خروج ═══ */
.td-logout {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.15s;
}

.td-logout:hover {
    background: #b91c1c;
}

/* ═══════════════════════════════════════════════════
   هدر داشبورد — با عکس دبیر + تاریخ
   ═══════════════════════════════════════════════════ */
.td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    gap: 16px;
}

.td-header-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* 🆕 آواتار بزرگ‌تر — مربع گرد */
.td-header .td-avatar {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.td-header .td-avatar.td-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.td-header-text {
    min-width: 0;
    flex: 1;
}

.td-header-text h2 {
    margin: 0 0 4px 0;
    font-size: 19px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-header-text p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-header-date {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ═══ پنل اصلی ═══ */
.td-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-panel-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-count {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ خالی ═══ */
.td-empty {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
}

.td-empty h3 {
    color: #92400e;
    margin: 0 0 8px 0;
}

.td-empty p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
}

/* ═══ لاگین ═══ */
.td-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
    padding: 20px;
    direction: rtl;
}

.td-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.td-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.td-login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.td-login-card h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #1e293b;
}

.td-login-card p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.td-login-card label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin: 12px 0 4px;
    font-weight: 700;
}

.td-login-card input[type="text"],
.td-login-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.td-login-card input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.td-login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.td-login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.35);
}

.td-login-help {
    text-align: center;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 11px;
}

.td-login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border-right: 4px solid #dc2626;
}

/* ═══ جدول ادمین ═══ */
.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.td-table th {
    background: #1e40af;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-weight: 700;
}

.td-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.td-table tr:hover td {
    background: #f8fafc;
}

.td-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.td-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.td-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.td-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}

.td-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* ═══════════════════════════════════════════════════
   تب نمای کلی (Overview)
   ═══════════════════════════════════════════════════ */
.td-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.td-ov-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    border: 2px solid #f1f5f9;
}

.td-ov-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.td-ov-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}

.td-ov-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #f8fafc;
    flex-shrink: 0;
}

.td-ov-info {
    flex: 1;
    min-width: 0;
}

.td-ov-info p {
    margin: 0 0 3px 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.td-ov-info h3 {
    margin: 0;
    font-size: 17px;
    color: #1e293b;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-overview-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.td-ov-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-ov-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
}

.td-ov-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.td-ov-table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.td-ov-table tr:last-child {
    border-bottom: none;
}

.td-ov-table tr:hover {
    background: #f8fafc;
}

.td-ov-table th {
    width: 180px;
    padding: 12px 16px;
    text-align: right;
    background: transparent;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    vertical-align: middle;
    border: none;
}

.td-ov-table td {
    padding: 12px 16px;
    text-align: right;
    color: #1e293b;
    font-weight: 600;
    vertical-align: middle;
    border: none;
}

.td-ov-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.td-badge-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.td-badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.td-ov-description {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 4px solid #3b82f6;
}

.td-ov-description h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #1e40af;
    font-weight: 800;
}

.td-ov-content {
    font-size: 13px;
    color: #334155;
    line-height: 1.9;
}

.td-overview-quick {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.td-overview-quick h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.td-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.td-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.td-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.td-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.td-quick-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 768px) {
    .td-app {
        flex-direction: column;
    }
    .td-sidebar {
        width: 100%;
        max-height: none;
    }
    .td-main {
        padding: 16px;
    }
    .td-brand-logo img {
        width: 80px;
        height: 80px;
    }
    .td-brand-text h1 img {
        width: 140px;
    }
    .td-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .td-header-date {
        align-self: flex-end;
    }
    .td-header .td-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .td-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-ov-table th {
        width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-ov-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    .td-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .td-overview-stats {
        grid-template-columns: 1fr;
    }
    .td-ov-table th {
        width: 100px;
    }
    .td-quick-grid {
        grid-template-columns: 1fr;
    }
}