:root{--blue:#2563eb;--bg:#dfe5ee;--panel:#f8fafc;--text:#111827;--muted:#64748b;--line:#cbd5e1;--dark:#1e293b}*{box-sizing:border-box}body{margin:0;font-family:Arial,"Noto Sans Hebrew",sans-serif;background:var(--bg);color:var(--text)}button,input,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#e8eef6;border-left:1px solid var(--line);padding:28px 20px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center}.logo{width:48px;height:48px;border-radius:16px;background:var(--blue);color:white;display:grid;place-items:center;font-weight:700}.brand h1{margin:0;font-size:26px}.brand p,.muted{color:var(--muted)}.nav{display:grid;gap:14px;margin-top:38px}.nav-item,.family-filter button,.calendar-header button,.top-actions button{border:1px solid var(--line);background:white;border-radius:18px;padding:14px 18px;cursor:pointer}.nav-item.active,.family-filter button.active,.primary-btn{background:var(--blue);color:white;border-color:var(--blue)}.main{padding:0 32px 32px}.topbar{position:sticky;top:0;z-index:5;background:rgba(223,229,238,.95);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:space-between;padding:28px 0 18px}.topbar h2{font-size:32px;margin:0}.top-actions{display:flex;gap:10px;align-items:center;min-width:280px}.top-actions button{white-space:nowrap;min-width:98px}.top-actions .primary-btn{min-width:160px;font-weight:700}.family-filter{position:sticky;top:105px;z-index:4;background:rgba(223,229,238,.95);display:flex;gap:14px;padding:12px 0 18px;overflow:auto}.calendar-card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:28px;padding:24px;margin-top:18px}.calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:22px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.weekdays span{text-align:center;color:var(--muted);font-weight:700}.day{min-height:138px;background:#eef2f7;border:1px solid var(--line);border-radius:18px;padding:10px;position:relative}.day.today{outline:3px solid var(--blue)}.day.empty{opacity:.35}.day-num{font-weight:700}.day-add{position:absolute;left:8px;top:8px;border:0;background:#dbeafe;color:#1d4ed8;border-radius:10px;padding:2px 8px;cursor:pointer}.event{margin-top:8px;background:#1d4ed8;color:white;border-radius:12px;padding:7px 9px;font-size:14px;cursor:pointer}.event small{display:block;opacity:.9}.hidden{display:none!important}.dialog{border:0;border-radius:28px;padding:0;max-width:720px;width:92%;box-shadow:0 20px 80px #0005}.dialog::backdrop{background:#0005}.dialog form{display:grid;gap:14px;padding:28px}.dialog h3{margin:0;font-size:26px}label{display:grid;gap:7px;font-weight:700}input,textarea{border:1px solid var(--line);border-radius:14px;padding:13px;background:white}textarea{resize:vertical}.check{display:flex;gap:10px;align-items:center}.checks{display:flex;flex-wrap:wrap;gap:10px}.checks label{display:flex;gap:6px;border:1px solid var(--line);border-radius:16px;padding:8px 12px;background:#fff}.dialog-actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center}.danger{background:#dc2626;color:white;border:0;border-radius:14px;padding:12px}.list{display:grid;gap:12px}.item,.user-docs{background:white;border:1px solid var(--line);border-radius:18px;padding:14px}.item-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.item-actions button,.delete-doc-btn{border:1px solid var(--line);background:white;border-radius:12px;padding:8px 12px;cursor:pointer}.item-actions .danger,.delete-doc-btn{background:#dc2626;color:white;border-color:#dc2626}.search{width:100%;margin:10px 0 20px}.docs-box a,.doc-link{display:block;color:#1d4ed8;margin-top:5px}.inline-form{display:flex;gap:10px;margin-bottom:16px}.inline-form input{flex:1}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.main{padding:0 14px 24px}.topbar{top:0}.family-filter{top:96px}.day{min-height:112px}.weekdays,.calendar-grid{gap:7px}}

.doc-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border-top:1px dashed var(--line);padding:10px 0}.doc-meta{color:var(--muted);font-size:14px}.doc-thumb{max-width:160px;max-height:90px;border:1px solid var(--line);border-radius:12px;margin-top:8px;display:block}.primary-btn{font-weight:700}
@media(max-width:850px){.topbar{align-items:flex-start;gap:12px}.top-actions{min-width:0;flex-wrap:wrap}.top-actions .primary-btn{min-width:140px}}


/* תיקון כפתור הוספת אירוע כך שלא ייחתך */
#addEventBtn,
.add-event-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:190px !important;
  width:auto !important;
  height:58px;
  padding:0 24px !important;
  overflow:visible !important;
  white-space:nowrap !important;
  text-indent:0 !important;
  font-size:18px;
  font-weight:800;
  color:#ffffff !important;
  background:#2563eb !important;
  border:1px solid #2563eb !important;
  border-radius:22px;
}

#todayBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
  height:58px;
  font-size:18px;
  font-weight:700;
}

.top-actions{
  direction:rtl;
  display:flex !important;
  flex-direction:row;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
  min-width:340px !important;
}

/* מבנה עליון נקי וקבוע */
.topbar{
  min-height:120px;
}

.family-filter button{
  min-width:100px;
  font-size:18px;
  font-weight:700;
}

@media(max-width:850px){
  .topbar{
    min-height:110px;
    padding:16px 0 12px;
  }
  .top-actions{
    min-width:0 !important;
    width:100%;
    justify-content:flex-start;
    gap:10px;
  }
  #addEventBtn,
  .add-event-btn{
    min-width:150px !important;
    height:52px;
    font-size:16px;
    padding:0 16px !important;
  }
  #todayBtn{
    min-width:90px;
    height:52px;
    font-size:16px;
  }
}
select{border:1px solid var(--line);border-radius:14px;padding:13px;background:white;font:inherit}.sep{border:0;border-top:1px solid var(--line);margin:24px 0}.category-form{display:grid;gap:14px;background:white;border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0 18px}#manageCategoriesTop{min-width:120px;height:58px;font-size:18px;font-weight:700}@media(max-width:850px){#manageCategoriesTop{min-width:110px;height:52px;font-size:16px}.top-actions{overflow:auto}}

.category-filter{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;margin:10px 0 24px}
.category-filter button{border:1px solid #c8d3e3;background:#fff;border-radius:20px;padding:10px 18px;font-size:16px;font-weight:700;cursor:pointer}
.category-filter button.active{background:#102a56;color:#fff;border-color:#102a56}
@media(max-width:700px){.category-filter{justify-content:flex-start;overflow:auto;flex-wrap:nowrap;padding-bottom:6px}.category-filter button{white-space:nowrap;font-size:14px;padding:8px 14px}}


/* יישור כללי לימין ושמירת כפתור כל הקטגוריות */
.main,
.panel,
.calendar-card,
.dialog form,
#documentsView,
#settingsView{
  direction:rtl;
  text-align:right;
}

.topbar{
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:flex-start !important;
  gap:18px;
}

.top-actions{
  width:100%;
  justify-content:flex-end !important;
  flex-direction:row !important;
}

.family-filter,
.category-filter{
  direction:rtl;
  justify-content:flex-start !important;
}

.calendar-header{
  direction:rtl;
}

.dialog input,
.dialog textarea,
.dialog select,
.search{
  direction:rtl;
  text-align:right;
}

.dialog-actions{
  direction:rtl;
}

@media(max-width:850px){
  .topbar{align-items:stretch !important;}
  .topbar > div:first-child{text-align:right;}
  .top-actions{justify-content:flex-start !important;}
}

/* Layout v4 - סידור החלק העליון */
.topbar{
  direction:ltr;
  align-items:center;
  gap:24px;
}
.topbar .date-block{
  text-align:right;
  margin-inline-start:auto;
}
.topbar .date-block h2{
  margin:0 0 8px 0;
}
#currentDateTime{
  margin:0;
  color:#334155;
  font-size:18px;
  font-weight:700;
}
.top-actions{
  direction:rtl;
  justify-content:flex-start;
  min-width:0 !important;
  flex:0 0 auto;
}
.family-filter,
.category-filter{
  direction:rtl;
  justify-content:flex-start;
  align-items:center;
  padding-inline-start:0;
  padding-inline-end:0;
}
.category-filter{
  position:sticky;
  top:172px;
  z-index:4;
  background:rgba(223,229,238,.95);
  display:flex;
  gap:14px;
  padding:0 0 18px;
  overflow:auto;
}
.family-filter button,
.category-filter button{
  min-width:120px;
  text-align:center;
  font-weight:800;
}
.category-filter button.active{
  background:#0f2d5c;
  color:white;
  border-color:#0f2d5c;
}
@media(max-width:850px){
  .topbar{direction:rtl;align-items:flex-start;flex-direction:column-reverse;gap:14px;}
  .topbar .date-block{margin-inline-start:0;text-align:right;}
  .top-actions{width:100%;flex-wrap:wrap;}
  .family-filter{top:156px;}
  .category-filter{top:226px;}
  .family-filter button,.category-filter button{min-width:96px;}
}

/* גרסה חדשה: שינוי החלק העליון בלבד */
.clean-topbar{
  position:sticky;
  top:0;
  z-index:6;
  background:rgba(223,229,238,.96);
  backdrop-filter:blur(6px);
  display:block !important;
  min-height:auto !important;
  padding:28px 0 12px !important;
  direction:rtl !important;
}
.top-title{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:28px;
  text-align:right;
}
.top-title-main{
  display:flex;
  align-items:center;
  gap:14px;
}
.small-logo{
  width:46px;
  height:46px;
  border-radius:16px;
  flex:0 0 auto;
}
.top-title h1{
  margin:0;
  font-size:30px;
  font-weight:900;
}
.top-title p{
  margin:6px 0 0;
  color:#64748b;
  font-size:17px;
}
.live-clock{
  margin:0 !important;
  color:#111827 !important;
  font-size:18px !important;
  font-weight:700 !important;
  white-space:nowrap;
}
.family-filter{
  position:sticky;
  top:112px;
  z-index:5;
  background:rgba(223,229,238,.96);
  direction:rtl;
  display:flex;
  justify-content:flex-start !important;
  align-items:center;
  gap:14px;
  padding:14px 0 10px !important;
  overflow:auto;
}
.category-filter{
  position:sticky;
  top:184px;
  z-index:5;
  background:rgba(223,229,238,.96);
  direction:rtl;
  display:flex;
  justify-content:flex-start !important;
  align-items:center;
  gap:14px;
  padding:8px 0 10px !important;
  margin:0 !important;
  overflow:auto;
}
.quick-actions{
  position:sticky;
  top:254px;
  z-index:5;
  background:rgba(223,229,238,.96);
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:14px;
  padding:10px 0 18px;
}
.quick-actions button{
  border:1px solid var(--line);
  background:white;
  border-radius:18px;
  padding:14px 22px;
  cursor:pointer;
  min-width:120px;
  height:58px;
  font-size:18px;
  font-weight:800;
}
.quick-actions .primary-btn{
  background:var(--blue);
  color:white;
  border-color:var(--blue);
  min-width:190px;
}
#documentsView{
  direction:rtl;
  text-align:right;
}
#documentsView .user-docs h4{
  display:none;
}
@media(max-width:850px){
  .top-title{flex-direction:column;align-items:flex-start;gap:10px;}
  .top-title h1{font-size:26px;}
  .live-clock{font-size:16px !important;}
  .family-filter{top:150px;}
  .category-filter{top:220px;}
  .quick-actions{top:290px;overflow:auto;}
  .quick-actions button{height:52px;font-size:16px;min-width:100px;}
  .quick-actions .primary-btn{min-width:150px;}
}


/* Compact fixed version - הקטנת התצוגה ותיקון פריסה */
:root{
  --bg:#dfe5ee;
}
.app-shell{
  grid-template-columns:240px 1fr;
}
.sidebar{
  padding:22px 16px;
}
.logo{
  width:40px;
  height:40px;
  border-radius:14px;
}
.brand h1{
  font-size:24px;
}
.brand p{
  font-size:15px;
  line-height:1.35;
}
.nav{
  gap:12px;
  margin-top:28px;
}
.nav-item{
  padding:12px 14px;
  border-radius:16px;
  font-size:16px;
}
.main{
  padding:0 24px 26px;
}
.clean-topbar{
  padding:18px 0 8px !important;
}
.top-title{
  gap:18px;
}
.small-logo{
  width:42px;
  height:42px;
  border-radius:14px;
}
.top-title h1{
  font-size:28px;
}
.top-title p{
  font-size:15px;
}
.live-clock{
  font-size:17px !important;
}
.family-filter{
  top:86px;
  gap:10px;
  padding:10px 0 8px !important;
}
.category-filter{
  top:148px;
  gap:10px;
  padding:6px 0 8px !important;
}
.quick-actions{
  top:205px;
  gap:12px;
  padding:8px 0 12px;
}
.family-filter button,
.category-filter button{
  min-width:98px;
  height:46px;
  padding:8px 14px;
  font-size:16px;
  border-radius:16px;
}
.quick-actions button,
#todayBtn,
#manageCategoriesTop{
  min-width:105px;
  height:48px;
  padding:8px 16px !important;
  font-size:16px;
  border-radius:16px;
}
#addEventBtn,
.add-event-btn,
.quick-actions .primary-btn{
  min-width:165px !important;
  height:48px;
  font-size:16px;
  border-radius:18px;
}
.calendar-card,
.panel{
  border-radius:22px;
  padding:18px;
  margin-top:14px;
}
.calendar-header{
  margin-bottom:14px;
  font-size:20px;
}
.calendar-header button{
  padding:10px 14px;
  border-radius:14px;
}
.weekdays,
.calendar-grid{
  gap:8px;
}
.day{
  min-height:104px;
  border-radius:16px;
  padding:8px;
}
.day-add{
  left:7px;
  top:7px;
  padding:1px 7px;
}
.event{
  font-size:13px;
  padding:6px 8px;
  border-radius:10px;
}
.dialog form{
  padding:22px;
  gap:12px;
}
.dialog h3{
  font-size:22px;
}
input,textarea,select{
  padding:11px;
  border-radius:12px;
}
.item,.user-docs{
  border-radius:16px;
  padding:12px;
}
@media(max-width:850px){
  .app-shell{grid-template-columns:1fr;}
  .sidebar{height:auto;position:relative;padding:18px 14px;}
  .main{padding:0 12px 20px;}
  .top-title{align-items:flex-start;}
  .top-title h1{font-size:24px;}
  .live-clock{font-size:15px !important;}
  .family-filter{top:132px;}
  .category-filter{top:190px;}
  .quick-actions{top:242px;}
  .family-filter button,.category-filter button{min-width:86px;height:42px;font-size:14px;}
  #addEventBtn,.add-event-btn,.quick-actions .primary-btn{min-width:138px !important;height:44px;font-size:14px;}
  #todayBtn,.quick-actions button{min-width:82px;height:44px;font-size:14px;}
  .day{min-height:88px;}
}

/* Right aligned top controls - requested version */
body[data-view="settings"] .family-filter,
body[data-view="settings"] .category-filter,
body[data-view="settings"] .quick-actions{
  display:none !important;
}

/* Do not keep the top area fixed while scrolling */
.clean-topbar,
.family-filter,
.category-filter,
.quick-actions,
.topbar{
  position:relative !important;
  top:auto !important;
  z-index:auto !important;
  backdrop-filter:none !important;
}

/* Remove the duplicated branding block in the right sidebar */
.sidebar .brand{
  display:none !important;
}
.sidebar{
  padding-top:44px !important;
}
.nav{
  margin-top:0 !important;
}

/* Compact top title, aligned to the right */
.clean-topbar{
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  direction:rtl !important;
  min-height:auto !important;
  padding:16px 0 8px !important;
  background:transparent !important;
}
.top-title{
  width:100%;
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:22px !important;
  text-align:right !important;
  direction:rtl !important;
}
.top-title-main{
  display:flex !important;
  align-items:flex-start !important;
  gap:10px !important;
  order:1;
}
.live-clock{
  order:2;
  margin-top:8px !important;
  font-size:16px !important;
  font-weight:800 !important;
  white-space:nowrap;
}
.top-title h1{
  font-size:24px !important;
  line-height:1.05 !important;
  margin:0 !important;
}
.top-title p{
  font-size:14px !important;
  line-height:1.25 !important;
  margin:4px 0 0 !important;
}
.small-logo{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
}

/* Align all filter rows to the right */
.family-filter,
.category-filter,
.quick-actions{
  direction:rtl !important;
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
  width:100% !important;
  background:transparent !important;
  overflow:visible !important;
  margin:0 !important;
}
.family-filter{
  gap:10px !important;
  padding:10px 0 6px !important;
}
.category-filter{
  gap:10px !important;
  padding:6px 0 8px !important;
}
.quick-actions{
  gap:10px !important;
  padding:8px 0 12px !important;
}
.family-filter button,
.category-filter button{
  min-width:92px !important;
  height:42px !important;
  padding:6px 12px !important;
  font-size:15px !important;
  border-radius:15px !important;
}
.quick-actions button,
#todayBtn,
#manageCategoriesTop{
  min-width:96px !important;
  height:44px !important;
  padding:6px 14px !important;
  font-size:15px !important;
  border-radius:15px !important;
}
#addEventBtn,
.add-event-btn,
.quick-actions .primary-btn{
  min-width:155px !important;
  height:44px !important;
  padding:6px 16px !important;
  font-size:15px !important;
  border-radius:16px !important;
}

/* When top filters are hidden in settings, lift the settings panel naturally */
body[data-view="settings"] .panel{
  margin-top:10px !important;
}

@media(max-width:850px){
  .sidebar .brand{display:flex !important;}
  body[data-view="settings"] .family-filter,
  body[data-view="settings"] .category-filter,
  body[data-view="settings"] .quick-actions{display:none !important;}
  .top-title{flex-wrap:wrap !important;gap:10px !important;}
  .live-clock{width:100%;margin-top:0 !important;}
  .family-filter,.category-filter,.quick-actions{overflow:auto !important;flex-wrap:nowrap !important;}
  .family-filter button,.category-filter button{min-width:82px !important;height:40px !important;font-size:14px !important;}
  #addEventBtn,.add-event-btn,.quick-actions .primary-btn{min-width:135px !important;height:42px !important;font-size:14px !important;}
  #todayBtn,.quick-actions button{min-width:78px !important;height:42px !important;font-size:14px !important;}
}


/* Full test version updates */
.primary-nav{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;font-weight:900!important}
.medical-nav{color:#065f46;font-weight:900}.nav-item.medical-nav.active{background:#059669;border-color:#059669;color:#fff}.missing-docs-nav{color:#991b1b;font-weight:900}.nav-item.missing-docs-nav.active{background:#dc2626;border-color:#dc2626;color:#fff}
.quick-actions{display:none!important}.today-filter-row{direction:rtl;display:flex;justify-content:flex-start;gap:10px;margin:0;padding:6px 0 10px;background:transparent}.today-filter-row button{border:1px solid var(--line);background:#fff;border-radius:16px;min-width:96px;height:42px;padding:6px 12px;font-size:15px;font-weight:800;cursor:pointer}.dashboard-summary{direction:rtl;display:flex;justify-content:flex-start;align-items:stretch;gap:18px;width:100%;margin:10px 0 18px;background:transparent}.dashboard-summary .summary-card{min-width:260px;height:88px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px 22px;display:grid;align-content:center;justify-items:start;box-shadow:0 10px 24px rgba(15,23,42,.05)}.dashboard-summary .summary-number{color:var(--blue);font-size:32px;font-weight:900;line-height:1}.dashboard-summary .summary-label{margin-top:8px;font-size:17px;font-weight:800;color:#111827}
body[data-view="settings"] .today-filter-row,body[data-view="settings"] .dashboard-summary{display:none!important}.medical-fields{border:1px solid var(--line);border-radius:18px;padding:14px;background:#f8fafc}.medical-fields h4{margin:0 0 8px}.medical-create-btn{margin:10px 0 18px}.medical-status-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.medical-status-chips span{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:14px;font-weight:800}.status-ok{background:#dcfce7;color:#166534}.status-wait{background:#fef3c7;color:#92400e}.status-missing{background:#fee2e2;color:#991b1b}.status-neutral{background:#e5e7eb;color:#374151}.medical-item{border-right:6px solid #059669}
.member-pink{background:#fde2e4!important;color:#111827!important}.member-blue{background:#dbeafe!important;color:#111827!important}.member-green{background:#dcfce7!important;color:#111827!important}.member-yellow{background:#fef3c7!important;color:#111827!important}.member-purple{background:#ede9fe!important;color:#111827!important}.member-default{background:#f3f4f6!important;color:#111827!important}.event.member-pink,.event.member-blue,.event.member-green,.event.member-yellow,.event.member-purple,.event.member-default{color:#111827!important;border:1px solid rgba(15,23,42,.08)}.member-dot{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:900;margin-inline:4px}
@media(max-width:850px){.dashboard-summary{overflow:auto;flex-wrap:nowrap;gap:10px;padding-bottom:6px}.dashboard-summary .summary-card{min-width:170px;height:72px;padding:12px 14px;border-radius:18px}.dashboard-summary .summary-number{font-size:24px}.dashboard-summary .summary-label{font-size:14px}.today-filter-row{overflow:auto;flex-wrap:nowrap}.primary-nav{height:48px!important}}


/* V5 fixed interactions */
.dashboard-summary .summary-card{
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.dashboard-summary .summary-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(15,23,42,.10);
}
.summary-details-panel{
  margin-top:14px !important;
}
.summary-detail-item{
  border-right:6px solid var(--blue);
}
.primary-nav{
  cursor:pointer !important;
}
.today-filter-row button{
  border:1px solid #c8d3e3 !important;
  background:#fff !important;
  border-radius:18px !important;
  min-width:96px !important;
  height:44px !important;
  padding:8px 18px !important;
  font-size:15px !important;
  font-weight:800 !important;
  color:#111827 !important;
}


/* V6 summary table */
.summary-table-panel{
  margin-top:14px !important;
}
.table-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.table-header h3{
  margin:0;
}
#closeSummaryTable{
  border:1px solid var(--line);
  background:white;
  border-radius:14px;
  padding:10px 18px;
  cursor:pointer;
  font-weight:800;
}
.table-wrap{
  width:100%;
  overflow:auto;
}
.events-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 8px;
  min-width:980px;
  direction:rtl;
}
.events-table th{
  text-align:right;
  color:#475569;
  font-size:14px;
  padding:8px 12px;
}
.events-table td{
  background:white;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:12px;
  vertical-align:top;
  font-size:15px;
}
.events-table td:first-child{
  border-right:1px solid var(--line);
  border-radius:0 14px 14px 0;
}
.events-table td:last-child{
  border-left:1px solid var(--line);
  border-radius:14px 0 0 14px;
}
.clickable-row{
  cursor:pointer;
}
.clickable-row:hover td{
  background:#f8fafc;
}
.empty-table{
  text-align:center !important;
  padding:24px !important;
  color:#64748b;
}
.dashboard-summary{
  overflow:auto;
}
.dashboard-summary .summary-card{
  min-width:220px;
}
@media(max-width:850px){
  .dashboard-summary .summary-card{
    min-width:155px;
  }
}


/* V7 compact summary cards */
.dashboard-summary.compact-summary{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(145px, 1fr));
  gap:12px !important;
  margin:10px 0 14px !important;
  align-items:stretch !important;
}
.dashboard-summary.compact-summary .summary-card{
  min-width:0 !important;
  height:74px !important;
  border-radius:18px !important;
  padding:10px 16px !important;
  display:grid !important;
  align-content:center !important;
  justify-items:start !important;
}
.dashboard-summary.compact-summary .summary-number{
  font-size:26px !important;
  line-height:1 !important;
}
.dashboard-summary.compact-summary .summary-label{
  font-size:14px !important;
  margin-top:6px !important;
  line-height:1.1 !important;
}
.dashboard-summary.compact-summary .summary-card[data-summary-kind="week"]{
  border-color:#bfdbfe;
}
.dashboard-summary.compact-summary .summary-card[data-summary-kind="all"]{
  border-color:#bbf7d0;
}
@media(max-width:1100px){
  .dashboard-summary.compact-summary{
    display:flex !important;
    overflow:auto !important;
    flex-wrap:nowrap !important;
  }
  .dashboard-summary.compact-summary .summary-card{
    min-width:150px !important;
  }
}
@media(max-width:700px){
  .dashboard-summary.compact-summary .summary-card{
    min-width:132px !important;
    height:66px !important;
    padding:8px 12px !important;
  }
  .dashboard-summary.compact-summary .summary-number{
    font-size:22px !important;
  }
  .dashboard-summary.compact-summary .summary-label{
    font-size:13px !important;
  }
}


/* V9: purple new event and today under categories */
.primary-nav,
#addEventBtn,
.add-event-btn{
  background:#a78bfa !important;
  border-color:#a78bfa !important;
  color:white !important;
  box-shadow:0 10px 22px rgba(124,58,237,.22);
}
.primary-nav:hover,
#addEventBtn:hover,
.add-event-btn:hover{
  background:#8b5cf6 !important;
  border-color:#8b5cf6 !important;
}
.today-only-row{
  direction:rtl;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  padding:4px 0 12px;
  margin:0;
}
.today-only-row #todayBtn{
  border:1px solid #c8d3e3;
  background:#fff;
  color:#111827;
  border-radius:18px;
  min-width:96px;
  height:44px;
  padding:8px 18px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.today-only-row #todayBtn:hover{
  background:#f8fafc;
}
body:not([data-view="calendar"]) .today-only-row{
  display:none !important;
}


/* V10 move today button to continue category row */
.today-only-row{
  display:inline-flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
  padding:0 !important;
  margin:0 0 0 12px !important;
  vertical-align:middle !important;
}
.category-filter{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:12px !important;
}
.today-only-row #todayBtn{
  height:44px !important;
  min-width:110px !important;
}


/* V11 keep today button inside category row */
.category-filter{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  overflow-x:auto !important;
}

.today-only-row{
  display:flex !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  order:999 !important;
  align-self:center !important;
}

.today-only-row #todayBtn{
  margin:0 !important;
  height:52px !important;
  min-width:120px !important;
  border-radius:18px !important;
}

body:not([data-view="calendar"]) .today-only-row{
  display:none !important;
}


/* V12 inline today + peach event */
#addEventBtn,
.add-event-btn,
.primary-nav{
  background:#f6c7a8 !important;
  border-color:#f6c7a8 !important;
  color:#6b3b1f !important;
}

.category-filter{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:12px !important;
  overflow-x:auto !important;
}

.today-only-row{
  display:inline-flex !important;
  order:999 !important;
  margin:0 !important;
  padding:0 !important;
  align-self:center !important;
}

.today-only-row #todayBtn{
  height:44px !important;
  min-width:100px !important;
  margin:0 !important;
}

body:not([data-view="calendar"]) .today-only-row{
  display:none !important;
}


/* V13: Today button is created inside #categoryFilter, same row */
#categoryFilter{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
}

#categoryFilter .today-inline-btn{
  flex:0 0 auto !important;
  height:44px !important;
  min-width:105px !important;
  margin:0 !important;
  border:1px solid #c8d3e3 !important;
  background:#fff !important;
  color:#111827 !important;
  border-radius:18px !important;
  padding:8px 18px !important;
  font-size:15px !important;
  font-weight:800 !important;
  cursor:pointer !important;
}

.today-only-row{
  display:none !important;
}

#addEventBtn,
.add-event-btn,
.primary-nav{
  background:#f6c7a8 !important;
  border-color:#f6c7a8 !important;
  color:#6b3b1f !important;
}


/* V14 appointment details when appointment is set */
.appointment-details{
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:14px;
  margin:8px 0 14px;
  background:#ffffff;
}
.appointment-details h4{
  margin:0 0 10px;
  font-size:18px;
}
.appointment-details-line{
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
  background:#eef2ff;
  color:#1e3a8a;
  font-weight:700;
  font-size:14px;
}

/* V15 document reader */
.doc-reader-nav{color:#7c2d12;font-weight:900}
.nav-item.doc-reader-nav.active{background:#f6c7a8;border-color:#f6c7a8;color:#6b3b1f}
.upload-box{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;display:grid;gap:14px}
.doc-preview{margin-top:18px;background:#f8fafc;border:1px solid var(--line);border-radius:20px;padding:18px}
.doc-preview h4{margin:0 0 14px;font-size:20px}
.detected-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:900px){.detected-grid{grid-template-columns:1fr}}

/* V16 file flow */
.file-status{
  border:1px solid #cbd5e1;
  background:#f8fafc;
  border-radius:16px;
  padding:12px;
  line-height:1.7;
  color:#334155;
}
.file-status button{
  margin-top:8px;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:12px;
  padding:8px 14px;
  font-weight:800;
  cursor:pointer;
}

/* V17 browser OCR */
.ocr-status{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  line-height:1.6;
}

/* V18 paste and drag-drop */
.paste-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.paste-actions button{
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:14px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
}
.drop-zone{
  border:2px dashed #93c5fd;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:18px;
  padding:22px;
  text-align:center;
  font-weight:900;
}
.drop-zone.drag-over{
  background:#dbeafe;
  border-color:#2563eb;
}
.pasted-file-preview{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
  border-radius:14px;
  padding:10px 12px;
  line-height:1.6;
}

/* V24 */
.ocr-status{white-space:pre-wrap}

/* Current files v1 - paste/drop inside event dialog */
.event-paste-drop-zone{
  border:2px dashed #f6c7a8;
  background:#fff7ed;
  border-radius:18px;
  padding:18px;
  text-align:center;
  display:grid;
  gap:8px;
  cursor:pointer;
  outline:none;
}
.event-paste-drop-zone:focus,
.event-paste-drop-zone.drag-over{
  border-color:#fb923c;
  background:#ffedd5;
}
.event-paste-drop-zone strong{
  color:#7c2d12;
  font-size:18px;
}
.event-paste-drop-zone span{
  color:#64748b;
}
.event-pasted-preview{
  margin-top:8px;
  border:1px solid #fed7aa;
  background:#fff;
  border-radius:14px;
  padding:10px;
  line-height:1.6;
}

/* Stage 4 active smart reminders */
.smart-reminders-nav{
  color:#7c2d12;
  font-weight:900;
}
.nav-item.smart-reminders-nav.active{
  background:#f97316;
  border-color:#f97316;
  color:#fff;
}
.reminder-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 18px;
}
.reminder-tabs button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px 16px;
  cursor:pointer;
  font-weight:800;
}
.reminder-tabs button.active{
  background:#f97316;
  border-color:#f97316;
  color:white;
}
.reminder-item{
  border-right:6px solid #94a3b8;
}
.reminder-danger{
  border-right-color:#dc2626;
  background:#fff7f7;
}
.reminder-warn{
  border-right-color:#f59e0b;
  background:#fffbeb;
}
.reminder-info{
  border-right-color:#2563eb;
}
.reminder-ok{
  border-right-color:#16a34a;
  background:#f0fdf4;
}

/* Stage 5.1 mobile OCR */
.mobile-ocr-tools{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.mobile-ocr-btn{
  position:relative;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#7c2d12;
  border-radius:16px;
  padding:14px 12px;
  text-align:center;
  font-weight:900;
  cursor:pointer;
}
.mobile-ocr-btn input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.mobile-selected-file{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
  border-radius:14px;
  padding:12px;
  line-height:1.7;
}
.mobile-selected-file button{
  margin-top:8px;
  border:1px solid #86efac;
  background:#fff;
  border-radius:12px;
  padding:8px 14px;
  font-weight:800;
  cursor:pointer;
}
@media(max-width:700px){
  .mobile-ocr-tools{
    grid-template-columns:1fr;
  }
  .mobile-ocr-btn{
    min-height:54px;
    display:grid;
    place-items:center;
  }
}

/* Stage 6 Google Calendar auto sync */
.calendar-sync-nav{color:#1d4ed8;font-weight:900}
.nav-item.calendar-sync-nav.active{background:#2563eb;border-color:#2563eb;color:#fff}
.sync-status-card{display:flex;justify-content:space-between;align-items:center;gap:16px;background:white;border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0 18px}
.sync-check{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.calendar-mapping-list{display:grid;gap:10px;margin:12px 0 22px}
.calendar-map-row{display:grid;grid-template-columns:180px 1fr;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.google-sync-options{border:1px solid #bfdbfe;background:#eff6ff;border-radius:18px;padding:14px;display:grid;gap:10px}
.google-sync-status{background:#fff;border:1px solid #bfdbfe;border-radius:14px;padding:10px;color:#1e3a8a;font-weight:800}
@media(max-width:700px){.sync-status-card{display:grid}.calendar-map-row{grid-template-columns:1fr}}

/* Stage 6.1 fix: keep all sidebar buttons visible */
.sidebar{
  overflow-y:auto !important;
  max-height:100vh !important;
}
.nav{
  padding-bottom:24px !important;
}
.nav-item{
  width:100% !important;
  text-align:center !important;
}
@media(max-width:850px){
  .sidebar{
    overflow:visible !important;
    max-height:none !important;
  }
}

/* Setup mode notice for Google connection */
.calendar-sync-panel::before{
  content:"חיבור Google אמיתי - אשר הרשאות בחלון Google";
  display:block;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#7c2d12;
  border-radius:16px;
  padding:12px;
  margin-bottom:14px;
  font-weight:900;
}

/* Stage 6.2 real Google OAuth */
.calendar-sync-panel::before{content:"חיבור Google אמיתי - לחץ חבר Google ואשר הרשאות בחלון Google" !important;}

/* Stage 6.3 mobile full month calendar */
.mobile-calendar-mode-bar{
  display:none;
  justify-content:flex-start;
  margin-bottom:10px;
}
.mobile-calendar-mode-bar button{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:14px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
}
@media(max-width:700px){
  .mobile-calendar-mode-bar{
    display:flex;
  }
  body.mobile-full-calendar #calendarView{
    overflow-x:auto;
  }
  body.mobile-full-calendar .calendar-card{
    min-width:760px;
  }
  body.mobile-full-calendar .calendar-grid{
    grid-template-columns:repeat(7, minmax(92px,1fr)) !important;
  }
  body.mobile-full-calendar .day-cell{
    min-height:92px !important;
    padding:6px !important;
  }
  body.mobile-full-calendar .day-number{
    font-size:14px !important;
  }
  body.mobile-full-calendar .event-pill{
    font-size:11px !important;
    padding:5px 6px !important;
  }
}

/* Stage 6.4 stronger mobile month mode */
html.mobile-full-calendar body,
body.mobile-full-calendar{
  min-width:0;
}
@media(max-width:900px){
  .mobile-calendar-mode-bar{
    display:flex !important;
  }
  html.mobile-full-calendar .main,
  body.mobile-full-calendar .main{
    overflow-x:auto !important;
  }
  html.mobile-full-calendar #calendarView,
  body.mobile-full-calendar #calendarView{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  html.mobile-full-calendar .calendar-card,
  body.mobile-full-calendar .calendar-card{
    min-width:760px !important;
    width:760px !important;
  }
  html.mobile-full-calendar .calendar-grid,
  body.mobile-full-calendar .calendar-grid{
    grid-template-columns:repeat(7, 1fr) !important;
  }
  html.mobile-full-calendar .day-cell,
  body.mobile-full-calendar .day-cell{
    min-height:92px !important;
    padding:6px !important;
  }
}

/* Stage 7 server sync */
.server-sync-box{
  margin-top:18px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:18px;
  padding:14px;
}
.server-sync-box button{
  border:1px solid #86efac;
  background:#fff;
  border-radius:12px;
  padding:8px 14px;
  font-weight:900;
  cursor:pointer;
}
.server-sync-status{
  margin-top:10px;
  color:#166534;
  font-weight:900;
}

/* Stage 7.1 safe sync */
.server-sync-box button + button{margin-inline-start:8px;}


/* Stage 7.9 Mobile calendar UI fix */
@media (max-width: 760px){
  html, body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body{
    direction:rtl;
  }

  .app,
  .container,
  .main,
  main,
  .content,
  .page,
  .calendar-wrap,
  .calendar-container,
  .calendar-section{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .calendar,
  .month-grid,
  .calendar-grid,
  #calendar,
  #monthCalendar{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(42px, 1fr)) !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  .day-cell,
  .calendar-day,
  .month-day,
  .calendar-cell,
  [data-date]{
    min-width:0 !important;
    min-height:82px !important;
    height:auto !important;
    overflow:visible !important;
    padding:6px 4px !important;
    box-sizing:border-box !important;
    position:relative !important;
  }

  .event-card,
  .calendar-event,
  .event-item,
  .appointment-card,
  [data-event-id]{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:28px !important;
    overflow:visible !important;
    white-space:normal !important;
    text-overflow:clip !important;
    word-break:break-word !important;
    font-size:11px !important;
    line-height:1.25 !important;
    padding:5px 4px !important;
    margin-top:4px !important;
    border-radius:8px !important;
    box-sizing:border-box !important;
    z-index:5 !important;
  }

  .stats,
  .stats-grid,
  .counters,
  .summary-cards{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }

  .filters,
  .members-row,
  .categories-row,
  .chips,
  .top-filters{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    justify-content:center !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .side-menu,
  .right-menu,
  .sidebar{
    max-width:100% !important;
    width:100% !important;
  }

  #mobileServerEventsFallback{
    display:block !important;
    width:100% !important;
    box-sizing:border-box !important;
  }
}

@media (max-width: 430px){
  .calendar,
  .month-grid,
  .calendar-grid,
  #calendar,
  #monthCalendar{
    grid-template-columns:repeat(7, minmax(36px, 1fr)) !important;
    gap:4px !important;
  }

  .day-cell,
  .calendar-day,
  .month-day,
  .calendar-cell,
  [data-date]{
    min-height:74px !important;
    padding:5px 3px !important;
  }

  .event-card,
  .calendar-event,
  .event-item,
  .appointment-card,
  [data-event-id]{
    font-size:10px !important;
    padding:4px 3px !important;
  }
}


/* Stage 7.10 reset button mobile */
#torimLocalResetBtn{font-family:inherit;}
@media (max-width:760px){
  #torimLocalResetBtn{
    left:8px !important;
    bottom:8px !important;
    font-size:12px !important;
    padding:8px 10px !important;
  }
}


/* Stage 7.11 badge */
#torimBuildBadge{font-family:inherit}
@media(max-width:760px){
  #torimBuildBadge{right:8px!important;bottom:8px!important;font-size:10px!important}
}






/* v7.25 DIRECT TARGET ONLY */
#torim725Home{
  display:none;
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:#e8eef7;
  direction:rtl;
  overflow:auto;
  padding:92px 18px 28px;
  box-sizing:border-box;
}

#torim725Home.open{
  display:block !important;
}

.torim725-card{
  width:min(820px,100%);
  margin:0 auto;
  box-sizing:border-box;
}

.torim725-title{
  text-align:center;
  font-size:28px;
  font-weight:900;
  color:#0f172a;
  margin:0 0 4px;
}

.torim725-subtitle{
  text-align:center;
  font-size:15px;
  font-weight:800;
  color:#64748b;
  margin:0 0 24px;
}

.torim725-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.torim725-grid button{
  min-height:66px;
  border:1px solid #cbd5e1;
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  font-size:18px;
  font-weight:900;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
  cursor:pointer;
}

.torim725-grid button.torim725-add{
  grid-column:1 / -1;
  background:#fdc7a6;
}

#torim725FloatingHome{
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:2147482999;
  border:0;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-weight:900;
  font-size:14px;
  padding:11px 16px;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
}

#torim725Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

body.torim725-home-open #torim725FloatingHome{
  display:none !important;
}

/* Hide old leftovers */
#torimHome,#torimMobileHome,#torim84Section,#torimSectionHost,#torim85Section,#torim88ContentHost,
#torimHomeBtn,#torim84HomeBtn,#torim85HomeBtn,#torim720HomeBtn,#torim721HomeBtn,#torim722HomeBtn,#torim723HomeBtn,#torim724Home,#torim724FloatingHome,
#torim86Badge,#torim87Badge,#torim88Badge,#torim712Badge,#torim713Badge,#torim714Badge,#torim715Badge,#torim716Badge,#torim717Badge,#torim718Badge,#torim719Badge,#torim720Badge,#torim721Badge,#torim722Badge,#torim723Badge,#torim724Badge{
  display:none !important;
}

.torim86-panel,.torim87-panel,.torim712-panel,.torim713-panel,.torim714-slot,.torim715-panel,.torim716-panel,.torim717-panel,.torim718-panel{
  display:none !important;
}

@media(max-width:760px){
  #torim725Home{padding:76px 12px 24px;}
  .torim725-title{font-size:24px;}
  .torim725-grid{grid-template-columns:1fr;gap:12px;}
  .torim725-grid button{min-height:58px;font-size:16px;border-radius:16px;}
  #torim725FloatingHome{left:10px;bottom:10px;font-size:13px;padding:10px 14px;}
  #torim725Badge{right:10px;bottom:10px;font-size:11px;padding:8px 11px;}
}


/* v7.26 GOOGLE UPDATE DELETE + CENTER HOME */

/* Center floating Home button */
#torim725FloatingHome,
#torim724FloatingHome,
#torim723HomeBtn,
#torim722HomeBtn,
#torim721HomeBtn,
#torim720HomeBtn{
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  bottom:14px !important;
}

/* Version badge */
#torim726Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim725Badge{
  display:none !important;
}

@media(max-width:760px){
  #torim725FloatingHome,
  #torim724FloatingHome,
  #torim723HomeBtn,
  #torim722HomeBtn,
  #torim721HomeBtn,
  #torim720HomeBtn{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    bottom:10px !important;
  }

  #torim726Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.27 SIDEBAR + APPOINTMENT DATE FIX */

/* Keep floating Home button centered */
#torim725FloatingHome,
#torim724FloatingHome,
#torim723HomeBtn,
#torim722HomeBtn,
#torim721HomeBtn,
#torim720HomeBtn{
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  bottom:14px !important;
}

/* Make sidebar/menu clickable above content */
.sidebar,
.nav,
.sidebar button,
.nav button{
  pointer-events:auto !important;
}

#torim727Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim725Badge,
#torim726Badge{
  display:none !important;
}

@media(max-width:760px){
  #torim725FloatingHome,
  #torim724FloatingHome,
  #torim723HomeBtn,
  #torim722HomeBtn,
  #torim721HomeBtn,
  #torim720HomeBtn{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    bottom:10px !important;
  }

  #torim727Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.40 MEDICAL STATUS SAVE AND FORM */
#medicalStatusManager{
  margin:22px 0;
  padding:18px;
  border:3px solid #2563eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,42,.10);
  clear:both;
  pointer-events:auto !important;
  direction:rtl;
}

#medicalStatusManager h3{
  margin:0 0 8px;
  font-size:26px;
  font-weight:900;
  color:#0f172a;
}

.msm-add-type,
.msm-group-title,
.msm-status-row,
.msm-add-status{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}

.msm-add-type,
.msm-add-status{
  grid-template-columns:1fr auto;
}

.msm-groups{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.msm-group{
  padding:14px;
  border:1px solid #dbe3ee;
  border-radius:16px;
  background:#f8fafc;
}

.msm-statuses{
  display:grid;
  gap:8px;
  margin:10px 0;
}

#medicalStatusManager input,
#medicalStatusManager select,
.msm-custom-medical select{
  min-height:44px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:8px 12px;
  font-weight:800;
  background:#fff;
  box-sizing:border-box;
  pointer-events:auto !important;
  user-select:text !important;
  -webkit-user-select:text !important;
  cursor:text !important;
}

#medicalStatusManager button{
  min-height:44px;
  border:0;
  border-radius:12px;
  padding:0 14px;
  font-weight:900;
  background:#2563eb;
  color:#fff;
  cursor:pointer;
  pointer-events:auto !important;
}

#medicalStatusManager button.danger{
  background:#ef4444;
}

.msm-fixed{
  background:#e2e8f0;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  color:#334155;
}

.msm-custom-medical{
  margin:0;
  padding:0;
}

.msm-form-row{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px;
  align-items:center;
  margin:12px 0;
  font-weight:900;
}

.msm-form-row span{
  font-weight:900;
  color:#0f172a;
}

#torim740Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge,#torim729Badge,#torim728Badge,#torim727Badge,#torim726Badge,#torim725Badge,
#torim729FloatingStatuses,#torim730FloatingStatuses,#torim731FloatingStatuses{
  display:none !important;
}

@media(max-width:760px){
  .msm-add-type,
  .msm-group-title,
  .msm-status-row,
  .msm-add-status,
  .msm-form-row{
    grid-template-columns:1fr;
  }

  #torim740Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.41 SHOPPING SHORTCUT */
#shoppingAppShortcutBtn,
.shopping-shortcut-btn{
  color:#0f766e !important;
  font-weight:900 !important;
}

#shoppingAppHomeShortcutBtn,
.torim-shopping-home-btn{
  min-height:54px;
  border:0;
  border-radius:16px;
  background:#0f766e;
  color:#fff;
  font-weight:900;
  font-size:16px;
  padding:12px 18px;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(15,23,42,.12);
}

#torim741Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim740Badge,#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge,#torim729Badge,#torim728Badge,#torim727Badge,#torim726Badge,#torim725Badge{
  display:none !important;
}

@media(max-width:760px){
  #shoppingAppHomeShortcutBtn,
  .torim-shopping-home-btn{
    width:100%;
    font-size:15px;
  }

  #torim741Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.42 SHOPPING SHORTCUT MAIN MENU */
#shoppingAppShortcutBtn,
.shopping-shortcut-btn{
  width:100%;
  min-height:54px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  background:#ecfdf5 !important;
  color:#047857 !important;
  font-weight:900 !important;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}

#shoppingAppHomeShortcutBtn,
.torim-shopping-home-btn{
  min-height:54px;
  border:0;
  border-radius:16px;
  background:#0f766e;
  color:#fff;
  font-weight:900;
  font-size:16px;
  padding:12px 18px;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(15,23,42,.12);
}

#torim742Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim741Badge,#torim740Badge,#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge,#torim729Badge,#torim728Badge,#torim727Badge,#torim726Badge,#torim725Badge{
  display:none !important;
}

@media(max-width:760px){
  #shoppingAppShortcutBtn,
  .shopping-shortcut-btn,
  #shoppingAppHomeShortcutBtn,
  .torim-shopping-home-btn{
    width:100%;
    font-size:15px;
  }

  #torim742Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.43 SHOPPING UNDER SMART ALERTS */
#shoppingAppShortcutBtn,
.shopping-shortcut-btn{
  width:100%;
  min-height:54px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  background:#ecfdf5 !important;
  color:#047857 !important;
  font-weight:900 !important;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}

#torim743Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim742Badge,#torim741Badge,#torim740Badge,#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge,#torim729Badge,#torim728Badge,#torim727Badge,#torim726Badge,#torim725Badge{
  display:none !important;
}

@media(max-width:760px){
  #shoppingAppShortcutBtn,
  .shopping-shortcut-btn{
    width:100%;
    font-size:15px;
  }

  #torim743Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.44 SAVE BEFORE GOOGLE AUTH */
#torim744Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147482999;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim743Badge,#torim742Badge,#torim741Badge,#torim740Badge,#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge,#torim729Badge,#torim728Badge,#torim727Badge,#torim726Badge,#torim725Badge{
  display:none !important;
}

@media(max-width:760px){
  #torim744Badge{
    right:10px;
    bottom:10px;
    font-size:11px;
    padding:8px 11px;
  }
}


/* v7.51 CLEAN STABLE HOME SETTINGS */
body.torim751-home-open .app-shell{
  display:none !important;
}

#torim751Home{
  position:fixed;
  inset:0;
  z-index:2147483600;
  direction:rtl;
  color:#1c3568;
}

#torim751Home[hidden]{
  display:none !important;
}

.torim751-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.95), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #e9f1fb 100%);
}

.torim751-shell{
  position:relative;
  z-index:2;
  width:min(1120px, calc(100vw - 22px));
  height:calc(100vh - 16px);
  margin:8px auto;
  padding:14px 18px 20px;
  overflow:auto;
  box-sizing:border-box;
}

.torim751-top{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.78);
  border:1px solid #e3ebf5;
  border-radius:22px;
  padding:10px 16px;
  box-shadow:0 8px 20px rgba(30,58,109,.08);
  margin-bottom:20px;
}

.torim751-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.torim751-logo{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ffffff,#e8f0ff);
  box-shadow:0 6px 18px rgba(30,58,109,.11);
  font-size:30px;
}

.torim751-brand h1{
  margin:0;
  font-size:30px;
  line-height:1.1;
  font-weight:900;
  color:#1c3568;
}

.torim751-brand p{
  margin:4px 0 0;
  font-size:14px;
  font-weight:700;
  color:#6b7d99;
}

.torim751-meta{
  font-size:14px;
  font-weight:800;
  color:#53657f;
}

.torim751-hero{
  width:100%;
  min-height:102px;
  border:0;
  border-radius:26px;
  background:linear-gradient(135deg,#6f75ff,#4d8cff);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  box-shadow:0 16px 32px rgba(86,112,255,.25);
  cursor:pointer;
  margin-bottom:16px;
}

.torim751-hero-circle{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#fff;
  color:#5e75ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}

.torim751-hero-text{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  flex:1;
}

.torim751-hero-text strong{
  font-size:36px;
  font-weight:900;
  line-height:1;
}

.torim751-hero-text small{
  font-size:15px;
  font-weight:700;
  opacity:.96;
}

.torim751-hero-faded{
  font-size:54px;
  opacity:.18;
}

.torim751-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.torim751-card{
  min-height:96px;
  border:1px solid #e5edf7;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 18px rgba(16,42,76,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  text-align:right;
  cursor:pointer;
}

.torim751-card-text{
  display:flex;
  flex-direction:column;
  gap:5px;
  flex:1;
}

.torim751-card-text strong{
  font-size:23px;
  font-weight:900;
  color:#203b6a;
  line-height:1.1;
}

.torim751-card-text small{
  font-size:12px;
  font-weight:700;
  color:#7b8ca8;
  line-height:1.35;
}

.torim751-card-icon{
  width:54px;
  height:54px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eef4ff,#e8efff);
  font-size:30px;
  flex:0 0 54px;
}

.torim751-card[data-key="documents"] .torim751-card-icon{background:linear-gradient(135deg,#e6f7ea,#d7f2dd);}
.torim751-card[data-key="upcoming"] .torim751-card-icon{background:linear-gradient(135deg,#fff0e5,#ffe0ca);}
.torim751-card[data-key="docReader"] .torim751-card-icon{background:linear-gradient(135deg,#efe8ff,#e5dbff);}
.torim751-card[data-key="medical"] .torim751-card-icon{background:linear-gradient(135deg,#ffe8ef,#ffd9e5);}
.torim751-card[data-key="missingDocs"] .torim751-card-icon{background:linear-gradient(135deg,#fff5dd,#ffe9ba);}
.torim751-card[data-key="smartReminders"] .torim751-card-icon{background:linear-gradient(135deg,#e6f0ff,#dae7ff);}
.torim751-card[data-key="settingsHub"] .torim751-card-icon{background:linear-gradient(135deg,#e9fbf6,#d4f6eb);}

.torim751-shopping{
  width:100%;
  min-height:72px;
  margin-top:14px;
  border-radius:20px;
  border:1px solid #d6eadb;
  background:linear-gradient(135deg,#eefcf2,#e6f8ea);
  box-shadow:0 8px 18px rgba(25,135,84,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 20px;
  cursor:pointer;
  text-align:right;
}

.torim751-shopping-icon{
  width:52px;
  height:52px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#d9f6df;
  font-size:30px;
}

.torim751-shopping strong{
  display:block;
  font-size:25px;
  font-weight:900;
  color:#1f7b5d;
}

.torim751-shopping small{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:#56836f;
  font-weight:700;
}

.torim751-chevron{
  font-size:34px;
  color:#3b8f72;
}

.torim751-footer{
  margin-top:14px;
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:#788aa6;
}

.torim751-modal{
  position:fixed;
  inset:0;
  z-index:2147483700;
  display:flex;
  align-items:center;
  justify-content:center;
}

.torim751-modal[hidden]{
  display:none !important;
}

.torim751-modal-bg{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.28);
}

.torim751-modal-card{
  position:relative;
  z-index:2;
  width:min(520px, calc(100vw - 26px));
  background:#fff;
  border-radius:26px;
  box-shadow:0 22px 55px rgba(15,23,42,.28);
  padding:22px 20px;
}

.torim751-modal-card h3{
  margin:0 0 6px;
  font-size:30px;
  color:#1f3a69;
}

.torim751-modal-card p{
  margin:0 0 16px;
  color:#6a7d9c;
  font-weight:700;
}

.torim751-modal-card button[data-settings-target]{
  width:100%;
  min-height:74px;
  border:1px solid #e4edf8;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#f8fbff);
  display:grid;
  grid-template-columns:46px 1fr;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  text-align:right;
  cursor:pointer;
  margin-bottom:10px;
}

.torim751-modal-card button[data-settings-target] span{
  width:46px;
  height:46px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ecefff,#dfe7ff);
  font-size:24px;
}

.torim751-modal-card button[data-settings-target] strong{
  font-size:19px;
  color:#203b6a;
  font-weight:900;
}

.torim751-modal-card button[data-settings-target] small{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:#7a8daa;
  font-weight:700;
}

.torim751-close{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:16px;
  background:#eef3fb;
  color:#203b6a;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}

.torim751-hide-old-settings{
  display:none !important;
}

#torim751SidebarSettings{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.torim751-side-settings-main{
  width:100%;
  min-height:54px;
  border:1px solid #e4edf8;
  border-radius:16px;
  background:linear-gradient(135deg,#f4f7ff,#eef4ff);
  color:#223d6a;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 7px 14px rgba(30,58,109,.09);
}

.torim751-side-settings-sub{
  display:grid;
  gap:8px;
}

.torim751-side-settings-sub[hidden]{
  display:none !important;
}

.torim751-side-settings-sub button{
  width:100%;
  min-height:46px;
  border:1px solid #e5edf8;
  border-radius:14px;
  background:#fff;
  color:#203b6a;
  padding:10px 12px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  text-align:right;
}

#torim751Badge{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:2147483800;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}

#torim750Badge,#torim749Badge,#torim748Badge,#torim747Badge,#torim746Badge,#torim745Badge,#torim744Badge,#torim743Badge,#torim742Badge,#torim741Badge,#torim740Badge,#torim739Badge,#torim738Badge,#torim737Badge,#torim736Badge,#torim735Badge,#torim734Badge,#torim733Badge,#torim732Badge,#torim731Badge,#torim730Badge{
  display:none !important;
}

@media(max-width:900px){
  .torim751-shell{
    width:calc(100vw - 10px);
    height:calc(100vh - 8px);
    margin:4px auto;
    padding:10px 8px 14px;
  }

  .torim751-top{
    min-height:58px;
    padding:8px 10px;
    border-radius:18px;
    margin-bottom:12px;
  }

  .torim751-logo{
    width:46px;
    height:46px;
    border-radius:15px;
    font-size:24px;
  }

  .torim751-brand h1{
    font-size:24px;
  }

  .torim751-brand p{
    font-size:12px;
  }

  .torim751-meta{
    display:none;
  }

  .torim751-hero{
    min-height:70px;
    padding:10px 12px;
    border-radius:18px;
    margin-bottom:10px;
  }

  .torim751-hero-circle{
    width:42px;
    height:42px;
    font-size:30px;
  }

  .torim751-hero-text strong{
    font-size:23px;
  }

  .torim751-hero-text small{
    font-size:11px;
  }

  .torim751-hero-faded{
    font-size:32px;
  }

  .torim751-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .torim751-card{
    min-height:68px;
    border-radius:16px;
    padding:10px 12px;
  }

  .torim751-card-text strong{
    font-size:17px;
  }

  .torim751-card-text small{
    font-size:10.5px;
  }

  .torim751-card-icon{
    width:42px;
    height:42px;
    border-radius:13px;
    font-size:23px;
    flex-basis:42px;
  }

  .torim751-shopping{
    min-height:62px;
    border-radius:16px;
    padding:10px 12px;
    margin-top:10px;
  }

  .torim751-shopping-icon{
    width:42px;
    height:42px;
    border-radius:13px;
    font-size:24px;
  }

  .torim751-shopping strong{
    font-size:19px;
  }

  .torim751-shopping small{
    font-size:10.5px;
  }

  .torim751-footer{
    font-size:11px;
  }

  #torim751Badge{
    right:8px;
    bottom:8px;
    font-size:11px;
    padding:7px 10px;
  }
}

@media(min-width:901px) and (max-height:760px){
  .torim751-top{
    min-height:62px;
    margin-bottom:12px;
  }

  .torim751-logo{
    width:48px;
    height:48px;
    font-size:25px;
  }

  .torim751-brand h1{
    font-size:25px;
  }

  .torim751-brand p{
    font-size:12px;
  }

  .torim751-hero{
    min-height:78px;
    margin-bottom:12px;
  }

  .torim751-hero-text strong{
    font-size:28px;
  }

  .torim751-grid{
    gap:10px;
  }

  .torim751-card{
    min-height:76px;
    padding:12px 14px;
  }

  .torim751-card-text strong{
    font-size:18px;
  }

  .torim751-card-text small{
    font-size:11px;
  }

  .torim751-card-icon{
    width:44px;
    height:44px;
    font-size:24px;
    flex-basis:44px;
  }

  .torim751-shopping{
    min-height:62px;
  }

  .torim751-shopping strong{
    font-size:20px;
  }
}


/* v7.52 HOME SETTINGS FIX */
#torim725Home,#torim745MainMenu,#torim748HomeDashboard,#torim749HomeDashboard,#torim750HomeDashboard{display:none !important;}
#torim751Home,#torim751SidebarSettings,#torim751Badge{display:none !important;}
body.torim752-home-open .app-shell,
body.torim752-home-open .sidebar,
body.torim752-home-open aside,
body.torim752-home-open nav,
body.torim752-home-open .topbar,
body.torim752-home-open .main{display:none !important;}
#torim752Home{position:fixed; inset:0; z-index:2147483640; direction:rtl; color:#1c3568;}
#torim752Home[hidden]{display:none !important;}
.torim752-bg{position:absolute; inset:0; background:radial-gradient(circle at 12% 8%, rgba(255,255,255,.92), transparent 30%), linear-gradient(180deg,#f6fbff 0%, #eaf2fb 100%);} 
.torim752-shell{position:relative; z-index:2; width:min(1120px, calc(100vw - 14px)); height:calc(100vh - 12px); margin:6px auto; padding:10px 14px 14px; overflow:auto; box-sizing:border-box;}
.torim752-top{display:flex; align-items:center; justify-content:space-between; gap:12px; background:rgba(255,255,255,.78); border:1px solid #e6edf7; box-shadow:0 8px 18px rgba(16,42,76,.08); border-radius:22px; padding:10px 14px; margin-bottom:12px;}
.torim752-brand{display:flex; align-items:center; gap:12px;}
.torim752-logo{width:52px; height:52px; border-radius:16px; background:linear-gradient(135deg,#fff,#eaf1ff); display:flex; align-items:center; justify-content:center; font-size:29px; box-shadow:0 8px 18px rgba(30,58,109,.09);}
.torim752-brand h1{margin:0; font-size:29px; line-height:1.06; font-weight:900; color:#1d3769;}
.torim752-brand p{margin:4px 0 0; font-size:13px; color:#7384a0; font-weight:700;}
.torim752-clock{font-size:13px; font-weight:900; color:#6a7b97; white-space:nowrap;}
.torim752-hero{width:100%; min-height:80px; margin-bottom:12px; border:0; cursor:pointer; border-radius:24px; padding:12px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#fff; background:linear-gradient(135deg,#6973ff,#4f90ff); box-shadow:0 14px 28px rgba(84,108,255,.24);}
.torim752-plus{width:54px; height:54px; border-radius:50%; background:#fff; color:#5f74ff; display:flex; align-items:center; justify-content:center; font-size:34px; flex:0 0 54px;}
.torim752-hero-text{display:flex; flex-direction:column; gap:4px; align-items:center; flex:1;}
.torim752-hero-text strong{font-size:32px; line-height:1; font-weight:900;}
.torim752-hero-text small{font-size:14px; font-weight:700; opacity:.95;}
.torim752-fade{font-size:48px; opacity:.18;}
.torim752-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px;}
.torim752-card{min-height:88px; border-radius:20px; border:1px solid #e6edf7; background:#fff; box-shadow:0 8px 16px rgba(16,42,76,.08); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; text-align:right; cursor:pointer;}
.torim752-text{display:flex; flex-direction:column; gap:5px; flex:1;}
.torim752-text strong{font-size:21px; line-height:1.1; font-weight:900; color:#223b6b;}
.torim752-text small{font-size:11.5px; line-height:1.35; color:#7889a5; font-weight:700;}
.torim752-icon{width:48px; height:48px; border-radius:15px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#edf3ff,#e3ecff); font-size:27px; flex:0 0 48px;}
.torim752-card[data-key="documents"] .torim752-icon{background:linear-gradient(135deg,#e5f7ea,#d9f4df);} 
.torim752-card[data-key="upcoming"] .torim752-icon{background:linear-gradient(135deg,#fff1e6,#ffe2cf);} 
.torim752-card[data-key="docReader"] .torim752-icon{background:linear-gradient(135deg,#f0eaff,#e6dcff);} 
.torim752-card[data-key="medical"] .torim752-icon{background:linear-gradient(135deg,#ffeaf0,#ffdbe5);} 
.torim752-card[data-key="missingDocs"] .torim752-icon{background:linear-gradient(135deg,#fff6e1,#ffecc4);} 
.torim752-card[data-key="smartReminders"] .torim752-icon{background:linear-gradient(135deg,#e8f0ff,#dde7ff);} 
.torim752-card[data-key="settingsHub"] .torim752-icon{background:linear-gradient(135deg,#e8faf3,#d7f5ea);} 
.torim752-card[data-key="shopping"] .torim752-icon{background:linear-gradient(135deg,#eefcf2,#dff6e5);} 
.torim752-modal{position:fixed; inset:0; z-index:2147483646; display:flex; align-items:center; justify-content:center;}
.torim752-modal[hidden]{display:none !important;}
.torim752-modal-bg{position:absolute; inset:0; background:rgba(15,23,42,.28);} 
.torim752-modal-card{position:relative; z-index:2; width:min(520px, calc(100vw - 24px)); background:#fff; border-radius:24px; box-shadow:0 24px 56px rgba(15,23,42,.28); padding:22px 20px;}
.torim752-modal-card h3{margin:0 0 6px; font-size:28px; color:#203b6b;}
.torim752-modal-card p{margin:0 0 16px; color:#7384a0; font-weight:700;}
.torim752-modal-card button[data-settings-target]{width:100%; min-height:72px; display:grid; grid-template-columns:44px 1fr; align-items:center; gap:12px; border:1px solid #e6edf7; background:#fff; border-radius:18px; text-align:right; padding:12px 14px; margin-bottom:10px; cursor:pointer;}
.torim752-modal-card button[data-settings-target] span{width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#ecefff,#dfe7ff); font-size:23px;}
.torim752-modal-card button[data-settings-target] b{font-size:18px; color:#213b6b;}
.torim752-modal-card button[data-settings-target] small{display:block; margin-top:3px; font-size:12px; color:#7a8daa; font-weight:700;}
.torim752-close{width:100%; min-height:44px; border:0; border-radius:16px; background:#eef3fb; color:#203b6a; font-weight:900; cursor:pointer;}
#torim752Badge{position:fixed; right:12px; bottom:12px; z-index:2147483650; background:#1e293b; color:#fff; border-radius:999px; padding:9px 13px; font-size:12px; font-weight:900; box-shadow:0 5px 16px rgba(0,0,0,.18);} 
@media (max-width:900px){
  .torim752-shell{width:calc(100vw - 8px); height:calc(100vh - 8px); margin:4px auto; padding:8px 6px 12px;}
  .torim752-top{padding:8px 10px; border-radius:18px; margin-bottom:10px;}
  .torim752-logo{width:42px; height:42px; border-radius:14px; font-size:22px;}
  .torim752-brand h1{font-size:23px;}
  .torim752-brand p,.torim752-clock{font-size:11px;}
  .torim752-hero{min-height:62px; border-radius:18px; padding:10px 12px; margin-bottom:10px;}
  .torim752-plus{width:40px; height:40px; font-size:28px; flex-basis:40px;}
  .torim752-hero-text strong{font-size:22px;}
  .torim752-hero-text small{font-size:10.5px;}
  .torim752-fade{font-size:30px;}
  .torim752-grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;}
  .torim752-card{min-height:72px; border-radius:16px; padding:10px 11px;}
  .torim752-text strong{font-size:16px;}
  .torim752-text small{font-size:10px;}
  .torim752-icon{width:38px; height:38px; border-radius:12px; font-size:21px; flex-basis:38px;}
  .torim752-modal-card{width:min(520px, calc(100vw - 14px)); padding:18px 14px;}
  .torim752-modal-card h3{font-size:24px;}
  #torim752Badge{font-size:11px; padding:7px 10px; right:8px; bottom:8px;}
}


/* v7.53 RETURN TO NEW HOME AFTER EVENT DIALOG */
#torim725Home,
#torim745MainMenu,
#torim748HomeDashboard,
#torim749HomeDashboard,
#torim750HomeDashboard,
#torim751Home{
  display:none !important;
}

#torim753Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147483900;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 5px 16px rgba(0,0,0,.18);
}

#torim752Badge,
#torim751Badge,
#torim750Badge,
#torim749Badge,
#torim748Badge,
#torim747Badge,
#torim746Badge,
#torim745Badge,
#torim744Badge,
#torim743Badge,
#torim742Badge{
  display:none !important;
}


/* v7.54 FRIENDLY INTERNAL SCREENS DESIGN */
body.torim754-friendly-design{
  background:#eef4fb;
}

body.torim754-friendly-design:not(.torim752-home-open):not(.torim751-home-open) .app-shell{
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.9), transparent 30%),
    linear-gradient(180deg,#f7fbff 0%,#eaf2fb 100%);
}

body.torim754-friendly-design:not(.torim752-home-open):not(.torim751-home-open) .main{
  padding-top:18px;
}

body.torim754-friendly-design .topbar,
body.torim754-friendly-design .clean-topbar{
  border-radius:22px;
  background:rgba(255,255,255,.86);
  border:1px solid #e5edf7;
  box-shadow:0 8px 20px rgba(16,42,76,.08);
}

body.torim754-friendly-design .sidebar{
  background:rgba(255,255,255,.82);
  border-inline-start:1px solid #e5edf7;
  box-shadow:0 10px 24px rgba(16,42,76,.08);
}

body.torim754-friendly-design .nav-item,
body.torim754-friendly-design .torim751-side-settings-main,
body.torim754-friendly-design .torim752-side-settings-main{
  border-radius:17px !important;
  border:1px solid #e5edf7 !important;
  background:#fff !important;
  box-shadow:0 6px 14px rgba(16,42,76,.06);
  font-weight:800;
}

body.torim754-friendly-design .nav-item.active,
body.torim754-friendly-design .primary-nav,
body.torim754-friendly-design .add-event-btn{
  background:linear-gradient(135deg,#6f75ff,#4e8cff) !important;
  color:#fff !important;
  border-color:transparent !important;
}

.torim754-friendly-screen,
body.torim754-friendly-design .panel,
body.torim754-friendly-design .calendar-card{
  border-radius:26px !important;
  border:1px solid #e5edf7 !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 12px 28px rgba(16,42,76,.08) !important;
  padding:22px !important;
}

.torim754-screen-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:4px 0 18px;
  margin-bottom:12px;
  border-bottom:1px solid #edf3fb;
}

.torim754-screen-title{
  display:flex;
  align-items:center;
  gap:14px;
}

.torim754-screen-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#edf3ff,#e3ecff);
  box-shadow:0 8px 18px rgba(30,58,109,.09);
  font-size:30px;
}

.torim754-screen-title h2{
  margin:0;
  color:#1d3769;
  font-size:30px;
  line-height:1.1;
  font-weight:900;
}

.torim754-screen-title p{
  margin:6px 0 0;
  color:#7384a0;
  font-size:14px;
  font-weight:700;
}

.torim754-original-title{
  display:none !important;
}

.torim754-upload-card,
body.torim754-friendly-design .upload-box{
  background:linear-gradient(180deg,#ffffff,#f8fbff) !important;
  border:1px solid #e5edf7 !important;
  border-radius:24px !important;
  padding:18px !important;
  box-shadow:0 10px 22px rgba(16,42,76,.06);
}

body.torim754-friendly-design .drop-zone,
#dropZone{
  border:2px dashed #b7ccff !important;
  background:linear-gradient(135deg,#f5f8ff,#eef4ff) !important;
  border-radius:24px !important;
  min-height:190px !important;
  display:flex !important;
  flex-direction:column;
  align-items:center !important;
  justify-content:center !important;
  gap:8px;
  color:#23406f;
  text-align:center;
}

.torim754-drop-icon{
  width:72px;
  height:72px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#6f75ff,#4e8cff);
  color:#fff;
  font-size:36px;
  box-shadow:0 12px 26px rgba(86,112,255,.23);
}

#dropZone strong{
  font-size:24px;
  font-weight:900;
}

#dropZone span{
  font-size:14px;
  color:#6b7d99;
  font-weight:700;
}

body.torim754-friendly-design input,
body.torim754-friendly-design select,
body.torim754-friendly-design textarea{
  border-radius:16px !important;
  border:1px solid #dfe8f5 !important;
  background:#fff !important;
  box-shadow:0 4px 10px rgba(16,42,76,.04);
}

.torim754-primary-button,
body.torim754-friendly-design .primary-btn{
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#6f75ff,#4e8cff) !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:0 10px 22px rgba(86,112,255,.22) !important;
}

.torim754-soft-card,
body.torim754-friendly-design .sync-status-card,
body.torim754-friendly-design .medical-list > *,
body.torim754-friendly-design .smart-reminders-list > *,
body.torim754-friendly-design .missing-docs-list > *,
body.torim754-friendly-design .list > *{
  border:1px solid #e5edf7 !important;
  border-radius:20px !important;
  background:#fff !important;
  box-shadow:0 8px 18px rgba(16,42,76,.06) !important;
}

body.torim754-friendly-design .reminder-tabs{
  background:#f5f8ff;
  border:1px solid #e5edf7;
  border-radius:18px;
  padding:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

body.torim754-friendly-design .reminder-tabs button{
  border-radius:14px !important;
  border:1px solid #dfe8f5 !important;
  background:#fff !important;
  font-weight:800;
}

body.torim754-friendly-design .reminder-tabs button.active{
  background:linear-gradient(135deg,#ff9b52,#ff7a1a) !important;
  color:#fff !important;
  border-color:transparent !important;
}

body.torim754-friendly-design .documents-list,
body.torim754-friendly-design #documentsList{
  display:grid;
  gap:12px;
}

#torim754Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147483950;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 5px 16px rgba(0,0,0,.18);
}

#torim753Badge,
#torim752Badge,
#torim751Badge,
#torim750Badge,
#torim749Badge,
#torim748Badge,
#torim747Badge,
#torim746Badge,
#torim745Badge,
#torim744Badge{
  display:none !important;
}

@media(max-width:900px){
  body.torim754-friendly-design .main{
    padding:10px !important;
  }

  .torim754-friendly-screen,
  body.torim754-friendly-design .panel,
  body.torim754-friendly-design .calendar-card{
    padding:16px !important;
    border-radius:22px !important;
  }

  .torim754-screen-header{
    padding-bottom:12px;
  }

  .torim754-screen-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    font-size:25px;
  }

  .torim754-screen-title h2{
    font-size:24px;
  }

  .torim754-screen-title p{
    font-size:12px;
  }

  body.torim754-friendly-design .drop-zone,
  #dropZone{
    min-height:150px !important;
  }

  .torim754-drop-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    font-size:30px;
  }
}


/* v7.55 MODERN EVENT FORM AND UPCOMING CARDS */
body.torim755-modern-design{
  --torim-blue:#4e8cff;
  --torim-deep:#1d3769;
  --torim-soft:#f7fbff;
  --torim-border:#e2ebf7;
  --torim-muted:#7384a0;
}

#eventDialog.torim755-event-dialog{
  width:min(760px, calc(100vw - 18px));
  max-height:calc(100vh - 16px);
  border:0;
  border-radius:30px;
  padding:0;
  background:linear-gradient(180deg,#f7fbff 0%,#ffffff 34%,#ffffff 100%);
  box-shadow:0 28px 70px rgba(15,23,42,.28);
  overflow:auto;
  direction:rtl;
}

#eventDialog.torim755-event-dialog::backdrop{
  background:rgba(15,23,42,.28);
  backdrop-filter:blur(5px);
}

.torim755-event-form{
  padding:0 24px 24px !important;
}

.torim755-dialog-hero{
  position:sticky;
  top:0;
  z-index:5;
  margin:0 -24px 20px;
  padding:26px 24px 18px;
  min-height:170px;
  display:grid;
  grid-template-columns:90px 1fr 108px;
  align-items:start;
  gap:14px;
  background:
    radial-gradient(circle at 14% 25%, rgba(255,255,255,.9), transparent 22%),
    linear-gradient(180deg,#eaf5ff 0%,#f8fbff 100%);
  border-bottom:1px solid #e3ecf7;
  overflow:hidden;
}

.torim755-dialog-hero::after{
  content:"";
  position:absolute;
  left:22px;
  bottom:-28px;
  width:190px;
  height:110px;
  border-radius:55% 45% 0 0;
  background:rgba(111,117,255,.08);
  pointer-events:none;
}

.torim755-dialog-back{
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#1d3769;
  font-size:40px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(16,42,76,.10);
}

.torim755-dialog-illustration{
  position:absolute;
  right:36px;
  bottom:24px;
  width:96px;
  height:96px;
  border-radius:26px;
  background:linear-gradient(135deg,#ffffff,#e8f0ff);
  box-shadow:0 10px 24px rgba(16,42,76,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:54px;
}

.torim755-dialog-title-wrap{
  grid-column:2;
  text-align:center;
  padding-top:26px;
}

.torim755-dialog-title-wrap h3,
.torim755-dialog-title-wrap #dialogTitle{
  margin:0;
  color:var(--torim-deep);
  font-size:38px;
  font-weight:900;
  line-height:1.08;
}

.torim755-dialog-subtitle{
  margin:8px 0 0;
  color:#657896;
  font-size:16px;
  font-weight:800;
}

.torim755-dialog-save-top{
  justify-self:end;
  width:104px;
  height:50px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#5e9df7,#2877e4);
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(46,119,228,.24);
}

.torim755-field-card{
  position:relative;
  display:block;
  margin:0 0 14px !important;
  padding:18px 74px 16px 18px !important;
  border:1px solid var(--torim-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 8px 18px rgba(16,42,76,.06);
  font-size:20px;
  font-weight:900;
  color:var(--torim-deep);
}

.torim755-field-card .torim755-field-icon{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eef5ff,#e4eeff);
  font-size:23px;
}

.torim755-field-card input,
.torim755-field-card select,
.torim755-field-card textarea{
  margin-top:10px !important;
  width:100% !important;
  min-height:48px !important;
  border-radius:18px !important;
  border:1px solid #e1eaf5 !important;
  background:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  font-size:18px !important;
  font-weight:700;
  color:#1f2f4f;
}

.torim755-switch-card{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  padding:14px 18px !important;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--torim-border);
  box-shadow:0 6px 14px rgba(16,42,76,.05);
  font-weight:900;
  color:var(--torim-deep);
}

.torim755-chip-group{
  display:flex !important;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 0 18px;
}

.torim755-chip{
  display:flex !important;
  align-items:center;
  gap:8px;
  border:1px solid #e1eaf5;
  border-radius:999px;
  background:#f8fbff;
  padding:10px 14px !important;
  box-shadow:0 5px 12px rgba(16,42,76,.05);
  font-weight:800;
  color:#233e6b;
}

.torim755-docs-box{
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #e3ecf7;
  padding:10px;
}

.torim755-dialog-actions{
  position:sticky;
  bottom:0;
  margin:18px -24px -24px !important;
  padding:16px 24px 20px !important;
  background:rgba(255,255,255,.92);
  border-top:1px solid #e3ecf7;
  backdrop-filter:blur(8px);
  display:flex !important;
  gap:12px !important;
  align-items:center;
}

.torim755-save-main{
  min-height:58px;
  border-radius:22px !important;
  border:0 !important;
  background:linear-gradient(135deg,#ff9b72,#ff7f5f) !important;
  color:#fff !important;
  font-size:22px !important;
  font-weight:900 !important;
  box-shadow:0 12px 26px rgba(255,127,95,.26) !important;
}

.torim755-cancel-btn{
  min-height:52px;
  border-radius:18px !important;
  border:1px solid #d8e3f0 !important;
  background:#fff !important;
  color:#1d3769 !important;
  font-weight:900 !important;
}

.torim755-delete-btn{
  min-height:52px;
  border-radius:18px !important;
  border:0 !important;
  background:linear-gradient(135deg,#ee3030,#d81924) !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:0 10px 22px rgba(216,25,36,.24) !important;
}

.torim755-upcoming-view{
  background:linear-gradient(180deg,#fff,#f9fbff) !important;
}

.torim755-modern-event-card{
  position:relative;
  overflow:hidden;
  min-height:170px;
  padding:32px 116px 28px 30px !important;
  border-radius:28px !important;
  border:1px solid #e3ecf7 !important;
  background:linear-gradient(135deg,#ffffff 0%,#ffffff 68%,#f8fbff 100%) !important;
  box-shadow:0 16px 34px rgba(16,42,76,.08) !important;
  margin-bottom:16px !important;
}

.torim755-event-card-icon{
  position:absolute;
  right:30px;
  top:30px;
  width:68px;
  height:68px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#efeaff,#e3dcff);
  color:#6f55e8;
  font-size:35px;
  box-shadow:0 10px 22px rgba(111,85,232,.12);
}

.torim755-event-card-glow{
  position:absolute;
  left:-80px;
  bottom:-80px;
  width:240px;
  height:190px;
  border-radius:55%;
  background:rgba(111,117,255,.06);
  pointer-events:none;
}

.torim755-modern-event-card h4,
.torim755-modern-event-card strong,
.torim755-modern-event-card b{
  color:#1d3769;
  font-size:28px;
  font-weight:900;
}

.torim755-modern-event-card p,
.torim755-modern-event-card small,
.torim755-modern-event-card span{
  color:#51637f;
  font-weight:700;
}

.torim755-status-pill{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  border-radius:999px;
  padding:8px 16px !important;
  background:#dff8e8 !important;
  color:#13803a !important;
  margin:4px 5px !important;
  font-weight:900 !important;
}

.torim755-modern-event-card .torim755-card-edit,
.torim755-modern-event-card button:has(+ .torim755-card-delete){
  min-height:50px;
  border-radius:18px !important;
  border:1px solid #cfdbea !important;
  background:#fff !important;
  color:#1d3769 !important;
  font-size:18px !important;
  font-weight:900 !important;
  padding:10px 22px !important;
}

.torim755-modern-event-card .torim755-card-delete{
  min-height:50px;
  border-radius:18px !important;
  border:0 !important;
  background:linear-gradient(135deg,#ee3030,#d81924) !important;
  color:#fff !important;
  font-size:18px !important;
  font-weight:900 !important;
  padding:10px 22px !important;
  box-shadow:0 10px 22px rgba(216,25,36,.24) !important;
}

#torim755Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484000;
  background:#1e293b;
  color:#fff;
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 5px 16px rgba(0,0,0,.18);
}

#torim754Badge,
#torim753Badge,
#torim752Badge,
#torim751Badge,
#torim750Badge,
#torim749Badge,
#torim748Badge,
#torim747Badge{
  display:none !important;
}

@media(max-width:800px){
  #eventDialog.torim755-event-dialog{
    width:100vw;
    max-height:100vh;
    height:100vh;
    border-radius:0;
  }

  .torim755-event-form{
    padding:0 14px 18px !important;
  }

  .torim755-dialog-hero{
    margin:0 -14px 16px;
    padding:18px 14px 14px;
    min-height:150px;
    grid-template-columns:56px 1fr 82px;
  }

  .torim755-dialog-illustration{
    right:20px;
    bottom:20px;
    width:74px;
    height:74px;
    border-radius:22px;
    font-size:42px;
  }

  .torim755-dialog-back{
    width:46px;
    height:46px;
    font-size:32px;
  }

  .torim755-dialog-title-wrap h3,
  .torim755-dialog-title-wrap #dialogTitle{
    font-size:30px;
  }

  .torim755-dialog-subtitle{
    font-size:13px;
  }

  .torim755-dialog-save-top{
    width:78px;
    height:44px;
    font-size:16px;
  }

  .torim755-field-card{
    padding:14px 62px 13px 12px !important;
    border-radius:20px;
    font-size:18px;
  }

  .torim755-field-card .torim755-field-icon{
    width:38px;
    height:38px;
    right:14px;
    border-radius:13px;
    font-size:20px;
  }

  .torim755-field-card input,
  .torim755-field-card select,
  .torim755-field-card textarea{
    min-height:44px !important;
    font-size:16px !important;
  }

  .torim755-modern-event-card{
    padding:24px 86px 22px 16px !important;
    min-height:150px;
    border-radius:24px !important;
  }

  .torim755-event-card-icon{
    right:18px;
    top:22px;
    width:54px;
    height:54px;
    border-radius:18px;
    font-size:28px;
  }

  .torim755-modern-event-card h4,
  .torim755-modern-event-card strong,
  .torim755-modern-event-card b{
    font-size:22px;
  }
}


/* v7.74 STABLE DIRECT HOME BUTTONS */
body.torim774-direct-screen .app-shell{
  grid-template-columns:1fr !important;
}

body.torim774-direct-screen .sidebar{
  display:none !important;
  visibility:hidden !important;
}

body.torim774-direct-screen .main{
  width:100% !important;
  max-width:none !important;
  padding-inline:32px !important;
}

body.torim774-direct-screen #torim752Home,
body.torim774-direct-screen #torim751Home,
body.torim774-direct-screen #torim725Home,
body.torim774-direct-screen #torim745MainMenu,
body.torim774-direct-screen #torim748HomeDashboard,
body.torim774-direct-screen #torim749HomeDashboard,
body.torim774-direct-screen #torim750HomeDashboard{
  display:none !important;
  visibility:hidden !important;
}

#medicalStatusManager.torim774-focus-section{
  box-shadow:0 0 0 8px rgba(78,140,255,.18), 0 18px 42px rgba(16,42,76,.10) !important;
}

#torim774Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484075;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge,
#torim753Badge,
#torim752Badge,
#torim751Badge{
  display:none !important;
}

@media(max-width:760px){
  body.torim774-direct-screen .main{
    padding-inline:12px !important;
  }
}


/* v7.75 CREATE NEW EVENT FROM SCHEDULED MEDICAL APPOINTMENT */
.torim775-create-from-appointment,
.torim775-dialog-copy-btn{
  background:#e8f1ff !important;
  color:#1d5fd1 !important;
  border:1px solid #b9d2ff !important;
  font-weight:900 !important;
}

.torim775-create-from-appointment:hover,
.torim775-dialog-copy-btn:hover{
  background:#dbeaff !important;
}

.torim775-copied-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef8f0;
  color:#176533;
  border:1px solid #bfe7c8;
  font-weight:800;
  line-height:1.45;
}

#torim775Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484080;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge,
#torim753Badge,
#torim752Badge,
#torim751Badge{
  display:none !important;
}


/* v7.76 HOME + MEDICAL STATUS SAVE + CREATE EVENT FROM APPOINTMENT FIX */
#torim776HomeButton{
  position:fixed;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:2147484085;
  width:66px;
  height:66px;
  border:0;
  border-radius:50%;
  background:rgba(15,39,79,.82);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(10,24,47,.22), 0 0 0 4px rgba(255,255,255,.52);
  cursor:pointer;
}

#torim776HomeButton span{
  font-size:20px;
  line-height:1;
}

#torim776HomeButton b{
  font-size:12px;
  line-height:1;
}

.torim776-new-from-appt,
.torim776-list-new-from-appt{
  background:#e8f1ff !important;
  color:#1d5fd1 !important;
  border:1px solid #b9d2ff !important;
  font-weight:900 !important;
}

.torim776-copy-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef8f0;
  color:#176533;
  border:1px solid #bfe7c8;
  font-weight:800;
  line-height:1.45;
}

#torim776Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484090;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge,
#torim753Badge,
#torim752Badge,
#torim751Badge{
  display:none !important;
}

@media(max-width:760px){
  #torim776HomeButton{
    width:60px;
    height:60px;
    bottom:10px;
  }
}


/* v7.77 SMART ALERTS FOR ALL MEDICAL STATUSES + FOLLOW-UP APPOINTMENT */
.torim777-smart-title{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:18px;
  background:#eef6ff;
  border:1px solid #cfe0f7;
  display:grid;
  gap:4px;
  color:#1d3769;
}

.torim777-smart-title b{
  font-size:18px;
  font-weight:900;
}

.torim777-smart-title span{
  color:#6c7f98;
  font-size:14px;
}

.torim777-smart-alert{
  margin:0 0 12px;
  padding:14px 16px;
  border-radius:18px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid #d9e4f2;
  background:#fff;
  box-shadow:0 12px 28px rgba(16,42,76,.06);
}

.torim777-smart-alert.danger{
  background:#fff3e8;
  border-color:#f3bd80;
}

.torim777-smart-alert.warning{
  background:#fffaf0;
  border-color:#efd28f;
}

.torim777-alert-main{
  display:grid;
  gap:5px;
}

.torim777-alert-main b{
  color:#1d3769;
  font-weight:900;
}

.torim777-alert-main p{
  margin:0;
  color:#41536b;
  line-height:1.45;
}

.torim777-status-pill{
  width:max-content;
  max-width:100%;
  border-radius:999px;
  background:#fff;
  color:#944500;
  border:1px solid #efc18e;
  padding:6px 10px;
  font-size:13px;
  font-weight:900;
}

.torim777-alert-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-start;
}

.torim777-open-event,
.torim777-set-appointment{
  border:0 !important;
  border-radius:999px !important;
  padding:9px 13px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.torim777-open-event{
  background:#eef6ff !important;
  color:#1d5fd1 !important;
}

.torim777-set-appointment{
  background:#1d6be3 !important;
  color:#fff !important;
}

.torim777-medical-alerts-inline{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff4e5;
  border:1px solid #efc18e;
  display:grid;
  gap:6px;
}

.torim777-medical-alerts-inline div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.torim777-medical-alerts-inline b{
  color:#7a3e00;
}

.torim777-medical-alerts-inline span{
  border-radius:999px;
  background:#fff;
  color:#944500;
  border:1px solid #efc18e;
  padding:4px 8px;
  font-size:12px;
  font-weight:900;
}

.torim777-followup-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef8f0;
  color:#176533;
  border:1px solid #bfe7c8;
  font-weight:800;
  line-height:1.45;
}

#torim777Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484095;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge,
#torim753Badge,
#torim752Badge{
  display:none !important;
}

@media(max-width:760px){
  .torim777-smart-alert{
    grid-template-columns:1fr;
  }

  .torim777-alert-actions{
    justify-content:stretch;
  }

  .torim777-alert-actions button{
    flex:1;
  }
}


/* v7.78 SAVE FOLLOW-UP STATUS FIX */
.torim778-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef8f0;
  color:#176533;
  border:1px solid #bfe7c8;
  font-weight:800;
  line-height:1.45;
}

#torim778Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484100;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge,
#torim753Badge{
  display:none !important;
}


/* v7.79 SINGLE NEW EVENT FROM APPOINTMENT BUTTON + EDIT OPENS AT TOP */
#torim779NewFromAppointmentBtn{
  background:#e8f1ff !important;
  color:#1d5fd1 !important;
  border:1px solid #b9d2ff !important;
  font-weight:900 !important;
  border-radius:14px !important;
}

.torim779-new-from-appointment-info{
  margin:10px 0 12px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef6ff;
  color:#27476f;
  border:1px solid #cfe0f7;
  font-size:14px;
  line-height:1.55;
  font-weight:700;
}

.torim779-new-from-appointment-info b{
  color:#1d3769;
  font-weight:900;
}

#torim779Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484110;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim778Badge,
#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge,
#torim754Badge{
  display:none !important;
}


/* v7.80 FOLLOW-UP NEW APPOINTMENT DATE FIX */
.torim780-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff8e8;
  color:#7a4a00;
  border:1px solid #f1cf87;
  font-weight:800;
  line-height:1.5;
}

.torim780-notice b{
  color:#5f3600;
}

#torim780Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484115;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim779Badge,
#torim778Badge,
#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge,
#torim755Badge{
  display:none !important;
}


/* v7.81 SYNC MEDICAL STATUS GROUPS BETWEEN DEVICES */
.torim781-sync-info{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#eef6ff;
  border:1px solid #cfe0f7;
  color:#27476f;
  display:grid;
  gap:4px;
}

.torim781-sync-info b{
  color:#1d3769;
  font-weight:900;
}

.torim781-sync-info span{
  font-size:13px;
  line-height:1.45;
}

.torim781-sync-notice{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background:#eef8f0;
  border:1px solid #bfe7c8;
  color:#176533;
  font-weight:900;
}

#torim781Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484120;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim780Badge,
#torim779Badge,
#torim778Badge,
#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge,
#torim756Badge{
  display:none !important;
}


/* v7.82 STAY IN CALENDAR + DOCUMENT MEMBER FALLBACK */
.torim782-member-fallback-notice{
  margin:8px 0 14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff8e8;
  color:#7a4a00;
  border:1px solid #f1cf87;
  font-weight:800;
  line-height:1.5;
}

#torim782Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484125;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim781Badge,
#torim780Badge,
#torim779Badge,
#torim778Badge,
#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge,
#torim757Badge{
  display:none !important;
}


/* v7.83 STRONG MEDICAL STATUS SYNC */
.torim783-sync-panel{
  margin:0 0 14px;
  padding:14px;
  border-radius:18px;
  background:#eef6ff;
  border:1px solid #cfe0f7;
  color:#27476f;
  display:grid;
  gap:7px;
}

.torim783-sync-panel b{
  color:#1d3769;
  font-weight:900;
}

.torim783-sync-panel span,
.torim783-sync-panel small{
  font-size:13px;
  line-height:1.45;
}

.torim783-sync-panel div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.torim783-sync-panel button{
  border:0;
  border-radius:999px;
  padding:9px 13px;
  background:#1d6be3;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

#torim783PullStatuses{
  background:#e8f1ff;
  color:#1d5fd1;
  border:1px solid #b9d2ff;
}

#torim783Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484130;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim782Badge,
#torim781Badge,
#torim780Badge,
#torim779Badge,
#torim778Badge,
#torim777Badge,
#torim776Badge,
#torim775Badge,
#torim774Badge,
#torim773Badge,
#torim772Badge,
#torim771Badge,
#torim770Badge,
#torim769Badge,
#torim768Badge,
#torim767Badge,
#torim766Badge,
#torim765Badge,
#torim764Badge,
#torim763Badge,
#torim762Badge,
#torim761Badge,
#torim760Badge,
#torim759Badge,
#torim758Badge{
  display:none !important;
}




/* v7.94 STABLE MEDICAL STATUS MODULE - NO FLICKER */
#msmCustomMedicalStatuses,
.msm-custom-medical,
.torim787-custom-statuses,
.torim788-custom-statuses,
.torim789-custom-statuses,
.torim790-custom-statuses,
.torim791-custom-statuses,
#torim792MedicalCustomStatuses,
#torim793MedicalCustomStatuses{
  display:none !important;
}

#eventDialog .torim787-status-row,
#eventDialog .torim788-status-row,
#eventDialog .torim789-status-row,
#eventDialog .torim790-status-row,
#eventDialog .torim791-status-card,
#eventDialog .torim792-status-card,
#eventDialog .torim793-status-card{
  display:none !important;
}

#torim794MedicalCustomStatuses{
  display:grid !important;
  gap:16px;
  margin:16px 0;
}

.torim794-status-card{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:16px;
  align-items:center;
  width:100%;
  padding:18px 20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #dbe7f6;
  box-shadow:0 14px 32px rgba(16,42,76,.06);
  direction:rtl;
}

.torim794-status-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  background:#edf4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.torim794-status-content{
  display:grid;
  gap:8px;
}

.torim794-status-title{
  color:#1d3769;
  font-weight:900;
  font-size:17px;
  text-align:right;
}

.torim794-status-card select{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid #d6e3f4;
  padding:10px 14px;
  font-weight:800;
  color:#1d2f4f;
  background:#fff;
  pointer-events:auto !important;
}

#torim794Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484185;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim793Badge,
#torim792Badge,
#torim791Badge,
#torim790Badge,
#torim789Badge,
#torim788Badge,
#torim787Badge,
#torim786Badge,
#torim785Badge,
#torim784Badge{
  display:none !important;
}

@media(max-width:760px){
  .torim794-status-card{
    grid-template-columns:48px 1fr;
    padding:14px;
    gap:12px;
  }
  .torim794-status-icon{
    width:46px;
    height:46px;
    border-radius:15px;
  }
}


/* v8.0 MEDICAL STATUS REFACTOR */
#msmCustomMedicalStatuses,#torim792MedicalCustomStatuses,#torim793MedicalCustomStatuses,#torim794MedicalCustomStatuses,.msm-custom-medical,.torim787-custom-statuses,.torim788-custom-statuses,.torim789-custom-statuses,.torim790-custom-statuses,.torim791-custom-statuses{display:none!important}
#eventDialog .torim787-status-row,#eventDialog .torim788-status-row,#eventDialog .torim789-status-row,#eventDialog .torim790-status-row,#eventDialog .torim791-status-card,#eventDialog .torim792-status-card,#eventDialog .torim793-status-card,#eventDialog .torim794-status-card{display:none!important}
.v800-medical-status-fields{display:grid;gap:16px;margin:16px 0}.v800-status-card{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;width:100%;padding:18px 20px;border-radius:22px;background:#fff;border:1px solid #dbe7f6;box-shadow:0 14px 32px rgba(16,42,76,.06);direction:rtl}.v800-status-icon{width:58px;height:58px;border-radius:18px;background:#edf4ff;display:flex;align-items:center;justify-content:center;font-size:24px}.v800-status-body{display:grid;gap:8px}.v800-status-title{color:#1d3769;font-weight:900;font-size:17px;text-align:right}.v800-status-card select{width:100%;min-height:48px;border-radius:14px;border:1px solid #d6e3f4;padding:10px 14px;font-weight:800;color:#1d2f4f;background:#fff}.v800-status-manager{display:grid;gap:16px;margin:16px 0;padding:16px;border-radius:24px;background:#f8fbff;border:1px solid #dbe7f6}.v800-manager-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.v800-manager-head h3{margin:0 0 6px;color:#1d3769}.v800-manager-head p{margin:0;color:#607089}.v800-manager-head button,#v800SaveStatusTypes,.v800-add-option{border:0;border-radius:999px;padding:10px 15px;background:#1d6be3;color:#fff;font-weight:900;cursor:pointer}.v800-manager-list{display:grid;gap:14px}.v800-manager-card{display:grid;gap:10px;padding:14px;border-radius:20px;background:#fff;border:1px solid #dbe7f6}.v800-manager-card label{font-weight:900;color:#1d3769}.v800-manager-card input{min-height:42px;border-radius:12px;border:1px solid #d6e3f4;padding:8px 12px}.v800-options{display:grid;gap:8px}.v800-option-row{display:grid;grid-template-columns:1fr auto;gap:8px}.v800-remove-option,.v800-delete-type{border:1px solid #f2c1c1;background:#fff2f2;color:#aa3030;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.v800-card-actions,.v800-save-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.v800-system-note{color:#607089;font-weight:800}#torim800Badge{position:fixed;right:12px;bottom:12px;z-index:2147484190;background:#0f172a;color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.18)}#torim794Badge,#torim793Badge,#torim792Badge,#torim791Badge,#torim790Badge,#torim789Badge,#torim788Badge,#torim787Badge,#torim786Badge,#torim785Badge,#torim784Badge,#torim783Badge{display:none!important}@media(max-width:760px){.v800-status-card{grid-template-columns:48px 1fr;padding:14px;gap:12px}.v800-status-icon{width:46px;height:46px;border-radius:15px}}


/* v8.1 badge */
#torim810Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484200;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
#torim800Badge,#torim794Badge,#torim793Badge,#torim792Badge,#torim791Badge,#torim790Badge{
  display:none !important;
}


/* v8.3 HOME RESTORED + CLEAN MEDICAL STATUS TYPES */
#msmCustomMedicalStatuses,
#torim792MedicalCustomStatuses,
#torim793MedicalCustomStatuses,
#torim794MedicalCustomStatuses,
.msm-custom-medical,
.torim787-custom-statuses,
.torim788-custom-statuses,
.torim789-custom-statuses,
.torim790-custom-statuses,
.torim791-custom-statuses{
  display:none !important;
}

#eventDialog .torim787-status-row,
#eventDialog .torim788-status-row,
#eventDialog .torim789-status-row,
#eventDialog .torim790-status-row,
#eventDialog .torim791-status-card,
#eventDialog .torim792-status-card,
#eventDialog .torim793-status-card,
#eventDialog .torim794-status-card{
  display:none !important;
}

/* hide old sidebar only if it is the old fixed side navigation */
.v830-modern-home-preserved aside.sidebar,
.v830-modern-home-preserved .side-nav.old,
.v830-modern-home-preserved .legacy-sidebar{
  display:none !important;
}

.v830-medical-status-fields{
  display:grid;
  gap:16px;
  margin:16px 0;
}

.v830-status-card{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:16px;
  align-items:center;
  width:100%;
  padding:18px 20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #dbe7f6;
  box-shadow:0 14px 32px rgba(16,42,76,.06);
  direction:rtl;
}

.v830-status-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  background:#edf4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.v830-status-body{
  display:grid;
  gap:8px;
}

.v830-status-title{
  color:#1d3769;
  font-weight:900;
  font-size:17px;
  text-align:right;
}

.v830-status-card select{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid #d6e3f4;
  padding:10px 14px;
  font-weight:800;
  color:#1d2f4f;
  background:#fff;
}

.v830-status-manager{
  display:grid;
  gap:16px;
  margin:16px 0;
  padding:16px;
  border-radius:24px;
  background:#f8fbff;
  border:1px solid #dbe7f6;
}

.v830-manager-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.v830-manager-head h3{
  margin:0 0 6px;
  color:#1d3769;
}

.v830-manager-head p{
  margin:0;
  color:#607089;
}

.v830-manager-head button,
#v830SaveTypes,
.v830-add-option{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  background:#1d6be3;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.v830-manager-list{
  display:grid;
  gap:14px;
}

.v830-manager-card{
  display:grid;
  gap:10px;
  padding:14px;
  border-radius:20px;
  background:#fff;
  border:1px solid #dbe7f6;
}

.v830-manager-card label{
  font-weight:900;
  color:#1d3769;
}

.v830-manager-card input{
  min-height:42px;
  border-radius:12px;
  border:1px solid #d6e3f4;
  padding:8px 12px;
}

.v830-options{
  display:grid;
  gap:8px;
}

.v830-option-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.v830-remove-option,
.v830-delete-type{
  border:1px solid #f2c1c1;
  background:#fff2f2;
  color:#aa3030;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}

.v830-card-actions,
.v830-save-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.v830-system-note{
  color:#607089;
  font-weight:800;
}

#torim830Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484220;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim820Badge,#torim810Badge,#torim800Badge,#torim794Badge,#torim793Badge,#torim792Badge,#torim791Badge,#torim790Badge{
  display:none !important;
}

@media(max-width:760px){
  .v830-status-card{
    grid-template-columns:48px 1fr;
    padding:14px;
    gap:12px;
  }
  .v830-status-icon{
    width:46px;
    height:46px;
    border-radius:15px;
  }
}


/* v8.4 ADD MEDICAL STATUS BUTTON FIX */
.v840-status-manager{
  display:grid;
  gap:16px;
  margin:16px 0;
  padding:16px;
  border-radius:24px;
  background:#f8fbff;
  border:1px solid #dbe7f6;
}

.v840-manager-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.v840-manager-head h3{ margin:0 0 6px; color:#1d3769; }
.v840-manager-head p{ margin:0; color:#607089; }

#v840AddType,
#v840SaveTypes,
.v840-add-option{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  background:#1d6be3;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.v840-manager-list{
  display:grid;
  gap:14px;
}

.v840-manager-card{
  display:grid;
  gap:10px;
  padding:14px;
  border-radius:20px;
  background:#fff;
  border:1px solid #dbe7f6;
}

.v840-manager-card label{
  font-weight:900;
  color:#1d3769;
}

.v840-manager-card input{
  min-height:42px;
  border-radius:12px;
  border:1px solid #d6e3f4;
  padding:8px 12px;
}

.v840-options{
  display:grid;
  gap:8px;
}

.v840-option-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.v840-remove-option,
.v840-delete-type{
  border:1px solid #f2c1c1;
  background:#fff2f2;
  color:#aa3030;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}

.v840-card-actions,
.v840-save-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.v840-system-note{
  color:#607089;
  font-weight:800;
}

#torim840Badge{
  position:fixed;
  right:12px;
  bottom:12px;
  z-index:2147484230;
  background:#0f172a;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

#torim830Badge,#torim820Badge,#torim810Badge,#torim800Badge{
  display:none !important;
}

/* v8.5 CUSTOM MEDICAL STATUS IN ALERTS + MISSING DOCS */
#msmCustomMedicalStatuses,#torim792MedicalCustomStatuses,#torim793MedicalCustomStatuses,#torim794MedicalCustomStatuses,.msm-custom-medical,.torim787-custom-statuses,.torim788-custom-statuses,.torim789-custom-statuses,.torim790-custom-statuses,.torim791-custom-statuses{display:none!important}

.v850-medical-status-fields{display:grid;gap:16px;margin:16px 0}
.v850-status-card{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;width:100%;padding:18px 20px;border-radius:22px;background:#fff;border:1px solid #dbe7f6;box-shadow:0 14px 32px rgba(16,42,76,.06);direction:rtl}
.v850-status-icon{width:58px;height:58px;border-radius:18px;background:#edf4ff;display:flex;align-items:center;justify-content:center;font-size:24px}
.v850-status-body{display:grid;gap:8px}
.v850-status-title{color:#1d3769;font-weight:900;font-size:17px;text-align:right}
.v850-status-card select{width:100%;min-height:48px;border-radius:14px;border:1px solid #d6e3f4;padding:10px 14px;font-weight:800;color:#1d2f4f;background:#fff}

.v850-status-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;justify-content:flex-start;direction:rtl}
.v850-status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900}
.v850-status-badge.ok{background:#dcfce7;color:#166534}
.v850-status-badge.need{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}

.v850-custom-alerts{margin-top:18px;padding:16px;border-radius:22px;background:#fff;border:1px solid #dbe7f6}
.v850-custom-alerts h3{margin:0 0 12px;color:#1d3769}
.v850-custom-alerts-list{display:grid;gap:10px}
.v850-alert-row{display:grid;gap:4px;padding:12px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.v850-empty{color:#607089;font-weight:800}

#torim850Badge{position:fixed;right:12px;bottom:12px;z-index:2147484240;background:#0f172a;color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.18)}
#torim840Badge,#torim830Badge,#torim820Badge,#torim810Badge,#torim800Badge{display:none!important}
@media(max-width:760px){.v850-status-card{grid-template-columns:48px 1fr;padding:14px;gap:12px}.v850-status-icon{width:46px;height:46px;border-radius:15px}}

/* v8.6 CUSTOM STATUS VISIBLE + REMOVE APPOINTMENT STATUS */
#msmCustomMedicalStatuses,#torim792MedicalCustomStatuses,#torim793MedicalCustomStatuses,#torim794MedicalCustomStatuses,.msm-custom-medical,.torim787-custom-statuses,.torim788-custom-statuses,.torim789-custom-statuses,.torim790-custom-statuses,.torim791-custom-statuses{display:none!important}
.v860-hide-appointment-status,#medicalStatusTypesFields [data-type-id="appointment"],.v850-status-card[data-type-id="appointment"],.v830-status-card[data-type-id="appointment"],.v840-status-card[data-type-id="appointment"]{display:none!important}
.v860-medical-status-fields{display:grid;gap:16px;margin:16px 0}
.v860-status-card{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;width:100%;padding:18px 20px;border-radius:22px;background:#fff;border:1px solid #dbe7f6;box-shadow:0 14px 32px rgba(16,42,76,.06);direction:rtl}
.v860-status-icon{width:58px;height:58px;border-radius:18px;background:#edf4ff;display:flex;align-items:center;justify-content:center;font-size:24px}
.v860-status-body{display:grid;gap:8px}
.v860-status-title{color:#1d3769;font-weight:900;font-size:17px;text-align:right}
.v860-status-card select{width:100%;min-height:48px;border-radius:14px;border:1px solid #d6e3f4;padding:10px 14px;font-weight:800;color:#1d2f4f;background:#fff}
.v860-status-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;justify-content:flex-start;direction:rtl}
.v860-status-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:900}
.v860-status-badge.ok{background:#dcfce7;color:#166534}
.v860-status-badge.need{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.v860-custom-alerts{margin-top:18px;padding:16px;border-radius:22px;background:#fff;border:1px solid #dbe7f6}
.v860-custom-alerts h3{margin:0 0 12px;color:#1d3769}
.v860-custom-alerts-list{display:grid;gap:10px}
.v860-alert-row{display:grid;gap:4px;padding:12px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.v860-empty{color:#607089;font-weight:800}
#torim860Badge{position:fixed;right:12px;bottom:12px;z-index:2147484250;background:#0f172a;color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.18)}
#torim850Badge,#torim840Badge,#torim830Badge,#torim820Badge,#torim810Badge,#torim800Badge{display:none!important}
@media(max-width:760px){.v860-status-card{grid-template-columns:48px 1fr;padding:14px;gap:12px}.v860-status-icon{width:46px;height:46px;border-radius:15px}}
