/* v21.10.2.56 — دو محیط محمد زارعی، داشبورد هماهنگ و طرح منتخب ارتباط داخلی */

/* محیط مدیریت کل با همان زبان بصری کارتابل کارکنان */
.staff52-system-dashboard .staff47-header{background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 55%,#f7fbff 100%);border-color:#d8e6f7}
.staff52-system-dashboard .staff47-header>div:first-child>span{color:#1d5fae}
.staff52-owner-wp{border:1px solid #c8d9ee!important;background:#fff!important;color:#143f70!important;border-radius:12px!important;padding:10px 14px!important;font-weight:800!important;cursor:pointer}
.staff52-workspace-switch{border:1px solid #d2e1f1!important;background:#eef6ff!important;color:#155c9f!important;border-radius:12px!important;padding:10px 14px!important;font-weight:800!important;cursor:pointer}
.staff52-manager-tools{gap:16px}
.staff52-manager-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.staff52-manager-grid button{display:flex;align-items:center;gap:11px;width:100%;min-height:76px;padding:12px;border:1px solid #dfe8f3;border-radius:16px;background:#fff;text-align:right;cursor:pointer;transition:.2s}
.staff52-manager-grid button:hover{transform:translateY(-2px);border-color:#8ab6e7;box-shadow:0 9px 22px rgba(28,79,133,.1)}
.staff52-manager-grid button i{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#edf5ff;font-style:normal;font-size:20px}
.staff52-manager-grid button span{min-width:0}.staff52-manager-grid button b,.staff52-manager-grid button small{display:block}.staff52-manager-grid button b{color:#173b63}.staff52-manager-grid button small{margin-top:4px;color:#7a8b9d;font-size:11px;line-height:1.6}
@media(max-width:760px){.staff52-manager-grid{grid-template-columns:1fr}.staff52-system-dashboard .staff47-header-side{align-items:stretch}.staff52-owner-wp,.staff52-workspace-switch{width:100%}}

/* طرح منتخب ارتباط داخلی: رسمی، خلوت و گفتگو محور */
.account-panel[data-account-panel="internal-chat"]{background:#f4f7fb!important;padding:0!important;border-radius:26px!important;overflow:hidden}
.internal-chat-dashboard{gap:0!important;padding:18px!important;background:linear-gradient(145deg,#f8fbff,#f1f5fb)!important;border:1px solid #d9e4f1;border-radius:26px;box-shadow:0 18px 50px rgba(20,55,94,.08)}
.internal-chat-summary{min-height:78px!important;padding:16px 20px!important;border:0!important;border-radius:20px!important;background:linear-gradient(135deg,#082d61,#0b4a8d)!important;box-shadow:0 12px 28px rgba(8,45,97,.22)!important;color:#fff!important;margin-bottom:14px}
.internal-chat-summary h2{color:#fff!important;font-size:23px!important}.internal-chat-summary p{color:#d9e9fb!important}
.internal-chat-summary .chat-stat{min-width:92px!important;padding:8px 12px!important;border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.1)!important;backdrop-filter:blur(8px)}
.internal-chat-summary .chat-stat b,.internal-chat-summary .chat-stat.unread b,.internal-chat-summary .chat-stat.closed b{color:#fff!important;font-size:20px!important}.internal-chat-summary .chat-stat span{color:#dcecff!important}
.internal-chat-layout{grid-template-columns:minmax(0,1.75fr) minmax(300px,.82fr)!important;grid-template-areas:"main sidebar";gap:14px!important;direction:ltr!important}
.internal-chat-main{grid-area:main;direction:rtl;min-height:680px!important;border:1px solid #dbe6f2!important;border-radius:20px!important;box-shadow:0 10px 28px rgba(21,63,105,.07)!important}
.internal-chat-sidebar{grid-area:sidebar;direction:rtl;padding:14px!important;border:1px solid #dbe6f2!important;border-radius:20px!important;box-shadow:0 10px 28px rgba(21,63,105,.07)!important;background:#fff!important}
.active-chat-header{padding:17px 19px!important;background:#fff!important;border-bottom:1px solid #e4ebf3!important}
.active-chat-title i{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eaf3ff;color:#1c69b9}
.active-chat-title h3{font-size:20px!important;color:#102f52!important}.active-chat-header p{font-size:13px!important}
.chat-thread-actions button{border-radius:10px!important;background:#f8fbff!important}
.internal-chat-messages{padding:22px!important;background-color:#f7faff!important;background-image:radial-gradient(circle at 1px 1px,rgba(31,89,145,.07) 1px,transparent 0)!important;background-size:20px 20px!important}
.internal-message{max-width:72%!important;border-radius:18px!important;box-shadow:0 7px 17px rgba(27,68,110,.06)!important}
.internal-message.mine{background:linear-gradient(135deg,#1769d2,#2e7ce0)!important;border-color:#1769d2!important;color:#fff!important}
.internal-message.mine .message-author b,.internal-message.mine .message-author small,.internal-message.mine p,.internal-message.mine footer{color:#fff!important}
.internal-message.other{background:#fff!important;border-color:#dde7f1!important}
.modern-chat-composer,.new-internal-thread{padding:14px 16px!important;background:#fff!important;border-top:1px solid #e3ebf4!important}
.modern-chat-composer textarea,.new-internal-thread textarea,.new-internal-thread input,.new-internal-thread select{border-radius:13px!important;background:#f8fbff!important}
.composer-actions .primary-action,.new-internal-thread .primary-action{border-radius:12px!important;background:linear-gradient(135deg,#1769d2,#2c7de1)!important;box-shadow:0 8px 18px rgba(23,105,210,.2)!important}
.chat-attach-button{border-style:solid!important;border-color:#c9dbee!important;background:#f3f8ff!important;color:#195fa9!important}
.chat-list-head{padding:2px 2px 10px;margin:0!important}.chat-list-head h3{font-size:18px!important}.chat-list-head button{background:#1769d2!important;color:#fff!important;font-weight:800!important;border-radius:11px!important}
.chat-search input{margin-bottom:10px!important;background:#f7faff!important;border-color:#dbe5f0!important}
.internal-thread-list{gap:8px!important;max-height:590px!important}
.internal-thread-card{border-radius:15px!important;padding:12px!important;border-color:#e1e9f2!important;background:#fff!important}
.internal-thread-card:hover,.internal-thread-card.active{border-color:#68a2df!important;background:linear-gradient(135deg,#f2f7ff,#eaf3ff)!important;box-shadow:0 7px 17px rgba(25,91,157,.09)!important}
.internal-thread-card footer em{background:#1769d2!important}
.chat-recipient-picker{border:1px solid #dce7f2!important;border-radius:17px!important;background:#f8fbff!important;padding:14px!important}
.chat-recipient-list{max-height:260px;overflow:auto;border-radius:13px;background:#fff;padding:6px}
.chat-recipient-list label{border-bottom:1px solid #edf1f6;padding:9px 8px!important}
.chat-selected-summary{border-radius:12px;background:#edf5ff;padding:9px 11px;color:#174f88}
.voice-recorder{border-radius:15px!important}
@media(max-width:1100px){.internal-chat-layout{grid-template-columns:1fr!important;grid-template-areas:"sidebar" "main"!important}.internal-chat-sidebar{max-height:none}.internal-thread-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:340px!important}}
@media(max-width:720px){.internal-chat-dashboard{padding:8px!important;border-radius:18px}.internal-chat-summary{border-radius:15px!important}.internal-chat-summary .chat-stat{display:none}.internal-thread-list{grid-template-columns:1fr!important}.internal-chat-main,.internal-chat-sidebar{border-radius:16px!important}.internal-message{max-width:90%!important}.internal-chat-messages{padding:13px!important}}
