/* هم‌ملک v23 — هم‌ترازی پیام خوش‌آمد و نوار اطلاع‌رسانی با پروژه اتوگالری */
html.dashboard-welcome-open,body.dashboard-welcome-open{overflow:hidden!important}
.dashboard-welcome-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px;direction:rtl}
.dashboard-welcome-modal[hidden]{display:none!important}
.dashboard-welcome-backdrop{position:absolute;inset:0;background:rgba(7,24,48,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.dashboard-welcome-dialog{position:relative;width:min(760px,100%);border:1px solid rgba(255,255,255,.72);border-radius:28px;background:linear-gradient(145deg,#fff,#f7fbff 55%,#effcf7);box-shadow:0 30px 90px rgba(3,18,38,.34);padding:28px;animation:dashboardWelcomeIn .28s ease both;overflow:hidden}
.dashboard-welcome-dialog:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;left:-105px;bottom:-125px;background:rgba(16,185,129,.11);pointer-events:none}
.dashboard-welcome-dialog-head{position:relative;display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #e5edf6}
.dashboard-welcome-dialog-icon{width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;border-radius:20px;background:linear-gradient(145deg,#e7fff5,#e6f0ff);font-size:29px;box-shadow:inset 0 0 0 1px #dbeafe}
.dashboard-welcome-dialog .welcome-eyebrow{display:block;color:#0f766e;font-size:11px;font-weight:900;line-height:1.5}
.dashboard-welcome-dialog h3{margin:2px 0 5px;color:#0f2746;font-size:25px;line-height:1.55}
.dashboard-welcome-dialog p{margin:0;color:#5c6f86;line-height:1.8;font-size:13.5px;font-weight:600}
.dashboard-welcome-items{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.dashboard-welcome-items.welcome-count-1{grid-template-columns:1fr}
.dashboard-welcome-items.welcome-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-welcome-items.welcome-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-welcome-item{display:flex;align-items:center;gap:12px;min-height:100px;padding:15px 14px;border:1px solid #dce8f5;border-radius:20px;background:#fff;color:#17365f;text-decoration:none;transition:.18s ease}
.dashboard-welcome-item:hover{transform:translateY(-2px);border-color:#9bc7b0;box-shadow:0 12px 30px rgba(15,81,50,.09)}
.dashboard-welcome-item-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;border-radius:15px;background:#eff6ff;font-size:21px}
.dashboard-welcome-item span:last-child{display:flex;flex-direction:column;gap:3px}.dashboard-welcome-item b{font-size:23px;color:#0f5132}.dashboard-welcome-item small{font-size:11.5px;color:#64748b;font-weight:800;line-height:1.65}
.dashboard-welcome-item.customer-welcome-alert{border-color:#fecaca;background:#fff7f7}.dashboard-welcome-item.customer-welcome-alert b{color:#b91c1c}
.dashboard-welcome-empty{grid-column:1/-1;padding:17px;border:1px dashed #b9d6c5;border-radius:18px;background:#f0fdf4;color:#166534;font-weight:900;text-align:center;line-height:1.8}
.dashboard-welcome-dialog-actions{position:relative;display:flex;justify-content:center}.dashboard-welcome-dialog .welcome-dismiss-btn{min-width:220px;border:0;border-radius:14px;padding:13px 22px;background:#0f613d;color:#fff;font-weight:1000;cursor:pointer;box-shadow:0 10px 24px rgba(15,97,61,.2)}
.dashboard-welcome-modal.is-closing{opacity:0;transition:opacity .22s ease}.dashboard-welcome-modal.is-closing .dashboard-welcome-dialog{transform:translateY(10px) scale(.98);transition:.22s ease}
.customer-daily-welcome-dialog{background:linear-gradient(145deg,#fff,#f8fbff 52%,#fff8ed)}.customer-daily-welcome-dialog:before{background:rgba(245,158,11,.10)}
@keyframes dashboardWelcomeIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:760px){.dashboard-welcome-items.welcome-count-3{grid-template-columns:1fr}.dashboard-welcome-items.welcome-count-3 .dashboard-welcome-item{min-height:78px}}
@media(max-width:640px){.dashboard-welcome-modal{padding:12px}.dashboard-welcome-dialog{border-radius:23px;padding:18px;max-height:calc(100vh - 24px);overflow:auto}.dashboard-welcome-dialog-head{align-items:flex-start}.dashboard-welcome-dialog-icon{width:48px;height:48px;flex-basis:48px;border-radius:16px;font-size:24px}.dashboard-welcome-dialog h3{font-size:20px}.dashboard-welcome-items,.dashboard-welcome-items.welcome-count-1,.dashboard-welcome-items.welcome-count-2,.dashboard-welcome-items.welcome-count-3{grid-template-columns:1fr;gap:9px;margin:14px 0}.dashboard-welcome-item{min-height:76px;padding:12px;border-radius:17px}.dashboard-welcome-dialog-actions{display:block}.dashboard-welcome-dialog .welcome-dismiss-btn{width:100%;min-width:0}}

/* runtime announcement bar — matching AutoSadra behavior */
.site-announcement-runtime{position:fixed;left:0;right:0;z-index:1210;min-height:36px;display:flex;align-items:center;justify-content:center;padding:5px 12px;box-sizing:border-box;box-shadow:0 5px 16px rgba(15,23,42,.14);font-size:12px;font-family:inherit;overflow:hidden}
.site-announcement-runtime[hidden]{display:none!important}.site-announcement-runtime[data-announcement-scope="internal"]{top:64px}.site-announcement-runtime.tone-info{background:#0f4c6e;color:#fff}.site-announcement-runtime.tone-success{background:#0f6b4b;color:#fff}.site-announcement-runtime.tone-warning{background:#a16207;color:#fff}.site-announcement-runtime.tone-mourning{background:#252b33;color:#f8fafc}
.site-announcement-runtime-inner{display:flex;align-items:center;justify-content:center;gap:8px;width:min(1400px,100%);min-width:0;text-align:center;overflow:hidden}.site-announcement-runtime-icon{width:18px;height:18px;display:grid;place-items:center;opacity:.9;flex:0 0 auto}.site-announcement-runtime-copy{position:relative;flex:1 1 auto;min-width:0;max-width:calc(100% - 28px);height:1.75em;line-height:1.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:center}.site-announcement-runtime-copy>span{display:inline-block;max-width:none;white-space:nowrap;vertical-align:top}.site-announcement-runtime-copy.is-marquee{direction:ltr;text-align:left;text-overflow:clip}.site-announcement-runtime-copy.is-marquee>span{position:absolute;left:0;top:0;max-width:none;direction:rtl;text-align:right;will-change:transform;animation:hammelkAnnouncementMarquee var(--announcement-duration,20s) linear infinite}.site-announcement-runtime-copy.is-marquee:hover>span{animation-play-state:paused}
@keyframes hammelkAnnouncementMarquee{from{transform:translateX(-105%)}to{transform:translateX(calc(100vw + 105%))}}
body.site-announcement-internal-visible .app-shell .page-content{padding-top:66px!important}
@media(max-width:700px){.site-announcement-runtime{min-height:40px;padding:6px 8px;font-size:11px}.site-announcement-runtime[data-announcement-scope="internal"]{top:58px}.site-announcement-runtime-inner{gap:5px}.site-announcement-runtime-icon{width:15px;height:15px;font-size:10px}.site-announcement-runtime-copy{max-width:calc(100% - 20px);height:1.8em;line-height:1.8}body.site-announcement-internal-visible .app-shell .page-content{padding-top:59px!important}}
@media(prefers-reduced-motion:reduce){.site-announcement-runtime-copy.is-marquee{direction:rtl;text-align:center;text-overflow:ellipsis}.site-announcement-runtime-copy.is-marquee>span{position:static;max-width:100%;overflow:hidden;text-overflow:ellipsis;animation:none!important;will-change:auto}}
@media print{.site-announcement-runtime{display:none!important}}

/* announcement manager — AutoSadra-derived card layout */
.site-announcements-page{max-width:1200px;margin:0 auto}.announcement-admin-hero{display:flex;align-items:center;gap:16px;padding:23px 25px;border-radius:22px;background:linear-gradient(135deg,rgba(2,132,199,.08),rgba(15,81,50,.08));border:1px solid rgba(148,163,184,.28);margin-bottom:18px}.announcement-admin-hero-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#fff;font-size:25px;box-shadow:0 8px 22px rgba(15,23,42,.06)}.announcement-admin-hero-copy{flex:1}.announcement-admin-hero-copy>span{font-size:11px;color:#0f766e;font-weight:800}.announcement-admin-hero h2{margin:5px 0 7px}.announcement-admin-hero p{margin:0;color:#64748b}.announcement-admin-hero-badge{padding:8px 12px;border-radius:999px;background:#fff;color:#0f766e;font-size:10px;font-weight:900;border:1px solid #dce8e4}
.announcement-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;margin-bottom:18px}.announcement-editor-card,.announcement-help-card,.announcement-history-card{background:#fff;border:1px solid rgba(148,163,184,.28);border-radius:20px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.announcement-editor-card{padding:0;overflow:hidden}.announcement-editor-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e2e8f0}.announcement-editor-title-wrap{display:flex;align-items:center;gap:10px}.announcement-editor-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eefaf5;color:#0f766e}.announcement-editor-title-wrap h3{margin:0}.announcement-editor-title-wrap p{margin:3px 0 0;color:#64748b;font-size:10px}.announcement-reset-btn,.announcement-mobile-reset{border:1px solid #dbe5ee;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:800;color:#42556b}.announcement-mobile-reset{display:none}
.announcement-restored-note{margin:12px 14px 0;padding:10px 12px;display:flex;gap:9px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.announcement-restored-note div{display:grid}.announcement-restored-note small{font-size:10px}
.announcement-form-section{margin:14px 14px 0;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}.announcement-section-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}.announcement-section-head>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#e8f5f0;color:#0f6b4b;font-weight:900}.announcement-section-head>div{display:grid}.announcement-section-head small{color:#64748b;font-size:10px}.announcement-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.announcement-field{font-size:12px;font-weight:800;color:#334155}.announcement-field>span{font-weight:500;color:#94a3b8}.announcement-field>strong{color:#b91c1c;font-size:10px}.announcement-form-grid input,.announcement-form-grid select,.announcement-message-field textarea,.announcement-datetime-group input{width:100%;box-sizing:border-box;margin-top:6px}.announcement-schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.announcement-schedule-card{padding:12px;border:1px solid #dce8f5;border-radius:14px;background:#fff}.announcement-schedule-card.expiry-card{background:#fff8f8;border-color:#f1d4d4}.announcement-schedule-card-head{display:flex;gap:9px;align-items:center;margin-bottom:9px}.announcement-schedule-card-head>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#e8f5f0;color:#0f6b4b}.announcement-schedule-card.expiry-card .announcement-schedule-card-head>span{background:#fff0f0;color:#b91c1c}.announcement-schedule-card-head>div{display:grid}.announcement-schedule-card-head small{font-size:9px;color:#64748b}.announcement-datetime-group{display:grid;grid-template-columns:1.25fr .75fr;gap:8px}.announcement-datetime-group label{font-size:11px;font-weight:800}.announcement-datetime-group strong{font-size:9px;color:#b91c1c}.announcement-message-field{display:block}.announcement-message-field textarea{min-height:118px;resize:none;overflow-y:hidden}.announcement-character-hint{display:block;text-align:left;margin-top:4px;color:#64748b;font-size:9px}.announcement-preview-wrap{margin:14px}.announcement-preview-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#64748b}.site-announcement-preview{margin-top:6px;padding:9px 12px;border-radius:10px;display:flex;justify-content:center;gap:7px;font-size:12px;color:#fff;min-height:37px;align-items:center}.site-announcement-preview.tone-info{background:#0f4c6e}.site-announcement-preview.tone-success{background:#0f6b4b}.site-announcement-preview.tone-warning{background:#a16207}.site-announcement-preview.tone-mourning{background:#252b33}.announcement-form-actions{display:flex;gap:8px;padding:0 14px 16px}.announcement-save-btn{flex:1;min-height:44px}.announcement-help-card{padding:18px;align-self:start}.announcement-help-top{display:flex;align-items:flex-start;gap:11px}.announcement-help-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#e8f5f0;color:#0f6b4b;font-size:19px}.announcement-help-card h3{margin:1px 0 5px;color:#20374b;font-size:14px}.announcement-help-card p{margin:0;color:#56697c;font-size:11px;line-height:1.95}.announcement-help-points{display:grid;gap:7px;margin-top:14px;padding-top:13px;border-top:1px solid #dfe9e6}.announcement-help-points span{display:flex;align-items:center;min-height:34px;padding:7px 9px;border:1px solid #e4ecea;border-radius:10px;background:rgba(255,255,255,.76);color:#40576a;font-size:10px;font-weight:650}.announcement-tone-guide{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #dfe9e6;color:#506579;font-size:9.5px}.tone-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.tone-dot.info{background:#0f4c6e}.tone-dot.success{background:#0f6b4b}.tone-dot.warning{background:#a16207}.tone-dot.mourning{background:#252b33}
.announcement-history-card{overflow:hidden}.announcement-history-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e2e8f0}.announcement-history-head h3{margin:0}.announcement-history-head small,.announcement-history-head span{font-size:11px;color:#64748b}.announcement-history-list{padding:10px}.announcement-history-item{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:8px}.announcement-history-item.is-disabled{opacity:.5}.announcement-history-status span{display:block;width:6px;height:100%;min-height:50px;border-radius:999px;background:#0f4c6e}.announcement-history-item.tone-success .announcement-history-status span{background:#0f6b4b}.announcement-history-item.tone-warning .announcement-history-status span{background:#a16207}.announcement-history-item.tone-mourning .announcement-history-status span{background:#252b33}.announcement-history-title{display:flex;align-items:center;gap:8px}.announcement-history-title h4{margin:0}.announcement-history-title span{font-size:9px;background:#f1f5f9;padding:3px 7px;border-radius:999px}.announcement-history-copy p{margin:6px 0;font-size:12px;color:#475569}.announcement-history-meta{display:flex;flex-wrap:wrap;gap:8px}.announcement-history-meta span{font-size:9px;color:#64748b}.announcement-history-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.announcement-history-actions form{margin:0}.announcement-history-actions .button,.announcement-history-actions .btn{padding:7px 9px;font-size:10px}.announcement-history-empty{text-align:center;padding:28px;color:#64748b}
@media(max-width:1000px){.announcement-admin-grid{grid-template-columns:1fr}.announcement-help-card{order:-1}.announcement-help-points{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.site-announcements-page{padding-inline:0}.announcement-admin-hero{padding:15px;border-radius:17px}.announcement-admin-hero-icon{width:44px;height:44px}.announcement-admin-hero-copy h2{font-size:18px}.announcement-admin-hero-copy p{font-size:10px}.announcement-admin-hero-badge{display:none}.announcement-admin-grid{gap:10px}.announcement-editor-card,.announcement-help-card,.announcement-history-card{border-radius:15px}.announcement-editor-head{padding:12px;align-items:flex-start}.announcement-editor-title-wrap h3{font-size:13px}.announcement-editor-title-wrap p{font-size:9px}.announcement-reset-btn{display:none}.announcement-form-section{margin:9px 9px 0;padding:10px}.announcement-basic-grid{grid-template-columns:1fr}.announcement-schedule-grid{grid-template-columns:1fr}.announcement-datetime-group{grid-template-columns:minmax(0,1.25fr) minmax(100px,.75fr)}.announcement-message-field textarea{min-height:112px}.announcement-preview-wrap{margin:10px 9px}.announcement-form-actions{padding:10px 9px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto}.announcement-mobile-reset{display:inline-flex}.announcement-help-points{grid-template-columns:1fr}.announcement-history-head{padding:11px}.announcement-history-list{padding:6px}.announcement-history-item{grid-template-columns:5px minmax(0,1fr);gap:8px;padding:9px}.announcement-history-actions{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.announcement-history-actions form{width:100%}.announcement-history-actions .button,.announcement-history-actions .btn{width:100%;justify-content:center}.announcement-history-copy p{font-size:10px}}
@media(max-width:430px){.announcement-admin-hero-copy p{display:none}.announcement-datetime-group{grid-template-columns:1fr}.announcement-form-actions{grid-template-columns:1fr}.announcement-mobile-reset{width:100%;justify-content:center}.announcement-history-actions{grid-template-columns:1fr 1fr}.announcement-history-actions>button:first-child{grid-column:1/-1}.announcement-help-card{display:none}}
