*{box-sizing:border-box}body{margin:0;font-family:Tahoma,'Segoe UI',Arial,sans-serif;background:linear-gradient(145deg,#d6efff,#eef9ff 60%,#c5e8ff);color:#09295b}button,input,textarea,select{font:inherit}button{border:0;border-radius:12px;padding:11px 16px;background:#096bcc;color:white;cursor:pointer}button.secondary{background:#e6f1ff;color:#134575}button.danger{background:#fce5e7;color:#ba2632}button.green{background:#d9f8e8;color:#066c42}button.tiny{padding:7px 11px;font-size:12px}button:hover{filter:brightness(.96)}input,textarea,select{width:100%;border:1px solid #d6e4f3;border-radius:10px;padding:11px;margin:6px 0;background:#fff;color:#163459}textarea{min-height:70px;resize:vertical}label{font-size:13px;font-weight:bold}.panel{background:#ffffffeb;border:1px solid #ffffff;border-radius:20px;box-shadow:0 5px 26px #3075ac15}.login{max-width:430px;margin:9vh auto;padding:32px}.login button{width:100%;margin-top:15px}.top{display:flex;align-items:center;justify-content:space-between;gap:14px}.app{padding:18px;max-width:1600px;margin:auto}.clock{font-size:clamp(48px,6vw,83px);font-weight:850;letter-spacing:-3px;line-height:1}.top .clockwrap{min-width:280px}.date{font-size:16px;margin-top:5px}.pantrystrip{display:flex;gap:7px;flex:1;justify-content:center}.pantrystrip button{background:#fff;color:#0d3062;display:flex;gap:7px;flex-direction:column;align-items:center;border:1px solid #d9e7f2;min-width:85px;padding:8px 10px}.pic{height:35px;font-size:27px;object-fit:contain;max-width:80px}.weather{min-width:270px;font-size:14px}.weather strong{font-size:28px}.dua{height:215px;margin:14px 0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(100deg,#d5eaff,#f6faff,#c8e7ff);background-position:center;background-size:cover}.dua:before{content:'';position:absolute;inset:0;background:#fff8}.dua .inside{z-index:1;text-align:center;padding:8px}.dua .verse{font-size:clamp(24px,3vw,45px);font-weight:bold}.dua .caption{font-size:15px;margin-top:10px}.dua .expand{position:absolute;z-index:2;top:12px;left:14px}.appointment-banner{position:absolute;z-index:3;top:6px;left:50%;transform:translateX(-50%);max-width:85%;white-space:nowrap;background:#fff;border:1px solid #f4dadd;color:#b62536;box-shadow:0 5px 20px #4563a333}.three{display:grid;grid-template-columns:1.22fr 1fr 1fr;gap:12px;direction:rtl}.three>section{height:390px;display:flex;flex-direction:column;min-width:0;padding:12px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;font-weight:bold;font-size:19px;padding:5px}.scroller{overflow-y:auto;min-height:0;flex:1;padding:4px}.entry{background:#f9fcff;border:1px solid #e7f0f8;border-radius:13px;padding:11px;margin-bottom:8px;display:flex;gap:9px;align-items:center;justify-content:space-between}.entry b{font-size:14px}.entry small{color:#6b839e;font-size:12px}.datebox{background:#e6f3ff;min-width:62px;text-align:center;border-radius:12px;padding:8px}.datebox strong{font-size:26px}.entry .detail{flex:1;min-width:0}.entry .detail div{overflow-wrap:anywhere}.appointment-alert{border-color:#f1b2b5;background:#fff0f0}.appointment-soon{border-color:#f8d79a;background:#fff9e8}.status{border-radius:9px;padding:8px;color:#0d386a;background:#e2f0ff;min-width:88px;text-align:center;font-size:12px}.status.allow{background:#d9f9e6;color:#0a7045}.status.busy{background:#ffe1e2;color:#b6222d}.status.pending{background:#fff0d8;color:#a65c00}.empty{text-align:center;margin:auto;color:#7892a9}.small-icon{color:#2583ce;font-size:20px}.layer{position:fixed;inset:0;background:#071425dd;display:flex;align-items:center;justify-content:center;z-index:1000;padding:14px}.modal{background:#fff;border-radius:22px;padding:23px;max-width:480px;width:100%;max-height:92vh;overflow-y:auto;box-shadow:0 15px 50px #0005;text-align:center}.modal h2{margin:5px 0 15px}.modalbuttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.dua-modal{position:relative;width:90vw;height:90vh;border-radius:18px;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid white}.dua-modal:before{content:'';position:absolute;inset:0;background:#ffffff5c}.dua-modal .inside{z-index:1;text-align:center}.dua-modal .verse{font-size:clamp(35px,5vw,85px);font-weight:bold}.dua-modal .caption{font-size:22px}.dua-actions{position:absolute;z-index:3;bottom:20px;left:20px;display:flex;gap:10px}.close-x{position:absolute;z-index:4;top:12px;right:15px}.admin-layout{display:grid;grid-template-columns:205px 1fr;gap:15px;min-height:calc(100vh - 80px)}nav{padding:15px;display:flex;flex-direction:column;gap:7px}nav button{text-align:right;background:transparent;color:#14436d}nav button.active{background:#1474c9;color:white}main.admin-content{padding:20px;min-width:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.form-grid .wide{grid-column:1/-1}.admin-table{width:100%;border-collapse:collapse;background:white;font-size:13px}.admin-table td,.admin-table th{border-bottom:1px solid #e6eff6;padding:10px;text-align:right}.admin-table td button{margin:2px}.muted{color:#6c849c}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.admin-content h2{margin-top:0}.note{padding:10px;background:#e6f2ff;border-radius:10px}.toolbar{display:flex;justify-content:space-between;align-items:center}.mini{font-size:12px}.cards{display:flex;gap:10px;flex-wrap:wrap}.card{background:#eaf4ff;border-radius:12px;padding:14px}.hidden{display:none!important}@media(max-width:800px){.top{flex-wrap:wrap}.three{grid-template-columns:1fr 1fr}.three>section{height:340px}.pantrystrip{order:3;flex-basis:100%}.weather{min-width:0}.admin-layout{grid-template-columns:1fr}nav{flex-direction:row;overflow:auto}.form-grid{grid-template-columns:1fr}}@media(max-width:520px){.three{grid-template-columns:1fr}.clock{font-size:52px}.pantrystrip{overflow-x:auto;justify-content:flex-start}.pantrystrip button{min-width:80px}.dua{height:180px}}

/* Executive Office V2 — manager-only visual refinement. Admin untouched. */
:root{--navy:#0b2f68;--sky:#e4f5ff;--line:#d5e9f7;--blue:#1478d8}
body{background:linear-gradient(145deg,#cceeff 0%,#eaf8ff 52%,#d3f0ff 100%);color:var(--navy)}
.app{padding:14px 18px;max-width:1600px}
.panel{border:1px solid #fff;box-shadow:0 12px 26px #2879ad15;border-radius:20px}
.top{gap:12px;min-height:128px}
.clock{font-family:'Segoe UI',Tahoma,sans-serif;font-size:clamp(51px,5.5vw,73px);letter-spacing:-2.5px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.date{font-size:15px;font-weight:500}
.top .clockwrap{min-width:300px;flex:0 0 auto}
.pantrystrip{gap:7px;min-width:0}
.pantrystrip button{min-width:0;flex:1;max-width:110px;min-height:77px;background:#ffffffd9;border:1px solid #cfe5f6;border-radius:14px;padding:8px 5px;box-shadow:0 3px 12px #2177ab0d;gap:2px}
.pantrystrip button small{font-size:11px;font-weight:700;white-space:nowrap}
.pantry-svg{display:flex;width:36px;height:36px;align-items:center;justify-content:center;color:#0d73c5}
.pantry-svg svg{width:31px;height:31px}
.pic{height:37px;max-width:71px;object-fit:contain}
.weather{min-width:285px;max-width:350px;flex:1;padding:10px!important;display:flex;align-items:center;gap:9px;justify-content:space-around;direction:rtl}
.weather-now{display:flex;align-items:center;gap:3px;flex-direction:column;min-width:69px}
.weather-symbol{font-size:26px}.weather-now strong{font-size:29px;line-height:1}.weather-now small{font-size:10px}
.forecast-days{display:flex;align-items:stretch;justify-content:space-around;flex:1}
.forecast-day{border-right:1px solid #d9eaf8;padding:1px 5px;min-width:59px;display:flex;align-items:center;flex-direction:column;gap:1px}
.forecast-day span,.forecast-day small{font-size:10px;white-space:nowrap}.forecast-day strong{font-size:18px;line-height:1.25}.forecast-day b{font-size:13px}
.dua{height:clamp(185px,23vh,235px);margin:10px 0 13px;border-radius:19px;background-color:#d8f1ff}
.dua:before{background:linear-gradient(90deg,#ffffff18 0%,#ffffffe0 42%,#ffffffc7 57%,#ffffff14 100%)}
.dua .inside{max-width:75%;text-shadow:0 2px 18px #ffffffda}
.dua .verse{font-size:clamp(29px,3.6vw,53px);line-height:1.45;color:#071f5a}
.dua .caption{font-size:16px;font-weight:600}
.appointment-banner{top:6px;border:1px solid #eecbd2;border-radius:24px;padding:9px 20px;box-shadow:0 7px 17px #173b5f24;font-size:13px}
.three{grid-template-columns:1.22fr 1fr 1fr;gap:12px}
.three>section{height:clamp(305px,42vh,420px);padding:12px}
.sectiontitle{font-size:18px;padding:5px 3px 10px}
.title-icon{font-size:20px;color:#167bdb;margin-left:5px}
.entry{padding:12px 10px;background:#fbfdff;border:1px solid #e2eef9;box-shadow:0 2px 5px #1b6ba808;min-height:75px}
.entry b{font-size:14px}.entry small{font-size:11px;line-height:1.65}
.entry .detail{line-height:1.45}.datebox{border-radius:11px;min-width:62px}.datebox strong{font-size:23px}
.visitor-entry{cursor:pointer;transition:background .15s}.visitor-entry:hover{background:#eaf5ff}
.visitor-avatar{display:flex;align-items:center;justify-content:center;background:#e7f0f8;border-radius:50%;width:31px;height:31px;font-size:15px;color:#7187a0}
.status{min-width:91px;font-weight:600;font-size:11px}
.call-entry{gap:6px}.call-entry .small-icon{font-size:19px}
.empty{padding-top:40px;font-size:14px}.empty p{margin-top:12px}
.layer{background:rgba(3,13,29,.88);backdrop-filter:blur(3px)}
.dua-modal:before{background:linear-gradient(90deg,#ffffff27,#ffffffb5 45%,#ffffff73 65%,#ffffff2b)}
.success-icon{margin:auto;background:#e0f6e9;color:#16834e;display:grid;place-items:center;border-radius:50%;font-size:33px;width:66px;height:66px}
@media(min-width:801px) and (max-width:1200px){.top .clockwrap{min-width:236px}.clock{font-size:55px}.weather{min-width:247px}.pantrystrip button{padding:5px 2px}.pantrystrip button small{font-size:10px}.forecast-day{min-width:47px;padding:2px}.three>section{height:calc(100vh - 410px);min-height:250px}}
@media(max-width:800px){.top{flex-wrap:wrap}.three{grid-template-columns:1fr 1fr}.pantrystrip{order:3}.weather{flex:1;max-width:unset}}

/* V2.1: readable call/visitor notes and compact three-day forecast */
.visitor-note,.call-notes{font-size:12px;color:#456883;line-height:1.55;overflow-wrap:anywhere;margin-top:4px;white-space:pre-wrap}
.call-hide{flex:none;min-width:37px;width:37px;height:37px;padding:5px;border-radius:10px;background:#edf4fc;color:#22538d;font-size:18px;line-height:1;cursor:pointer}
.call-hide:hover{background:#d6e8fa}
.weather{gap:6px;min-width:290px;max-width:375px;padding:7px!important}
.weather-now{min-width:64px;flex:0 0 64px}
.forecast-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;min-width:0;width:100%;flex:1}
.forecast-day{min-width:0;padding:1px 3px;text-align:center;gap:1px;overflow:hidden}
.forecast-day span,.forecast-day small{font-size:10px;white-space:nowrap;line-height:1.35}
.forecast-day b{font-size:14px}.forecast-day strong{font-size:18px}
@media(min-width:801px) and (max-width:1200px){.weather{min-width:270px;max-width:310px}.forecast-day{min-width:0;padding:1px}.forecast-day span,.forecast-day small{font-size:9px}}

/* V3: HONOR Pad X9a responsive executive view */
@media(min-width:801px){.app{min-height:100dvh;display:flex;flex-direction:column}.three{flex:1;min-height:0}.three>section{height:auto!important;min-height:220px}.scroller{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
.top{min-height:100px}.date{font-size:21px!important;font-weight:800!important}.pantrystrip{display:flex;align-items:center;justify-content:center;flex:1}.pantrystrip .pantry-launch{background:linear-gradient(135deg,#0b77d5,#1551a0);color:white;display:flex;gap:12px;align-items:center;justify-content:center;max-width:230px;width:100%;height:62px;border-radius:17px;font-size:20px;font-weight:800}.bell-symbol{display:inline-flex}
.panrtystrip button{max-width:unset}.pantry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.pantry-choice{background:#f2f8ff;color:#163e70;border:1px solid #d8e7f6;display:flex;min-height:115px;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-weight:700}.pantry-choice .pic{height:54px}.pantry-choice .pantry-svg{width:45px;height:45px}.pantry-choice .pantry-svg svg{height:42px;width:42px}
.dua{position:relative}.dua .inside{padding-bottom:46px}.weather-glass{position:absolute;z-index:5;bottom:7px;right:3%;left:3%;width:94%;border-radius:12px;background:rgba(255,255,255,.76);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 2px 10px #194b7430;padding:5px 10px!important;display:flex;gap:10px;align-items:center;justify-content:center;direction:rtl;min-height:50px}.weather-now{flex-direction:row;gap:5px;min-width:110px}.weather-now strong{font-size:23px}.forecast-days{display:grid;grid-template-columns:repeat(3,1fr);flex:1}.forecast-day{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;border-right:1px solid #c6d8e7}.forecast-day strong{font-size:19px}.forecast-day b{font-size:15px}.forecast-day small{font-size:11px}.weather-day-label{font-size:15px!important;font-weight:800!important;color:#0f4e89}
.entry b{font-size:16px}.visitor-note{font-size:15px!important;font-weight:600;color:#355773}.call-inline{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:5px}.phone-blue{color:#0874cc;font-size:17px;font-weight:800;direction:ltr;unicode-bidi:isolate}.call-notes{display:inline;font-size:15px!important;font-weight:650;color:#36556c}.call-hide{display:grid;place-items:center;min-width:43px;width:43px;height:43px}.call-hide svg{display:block}
.sectiontitle{min-height:37px}.three .scroller .entry{min-height:82px}
.shared-background-config{border:1px solid #bedaf0;background:#f0f8ff;padding:14px;border-radius:15px;margin:14px 0}.shared-background-config .row input[type=file]{width:190px}
@media(min-width:801px) and (max-width:1250px){.dua{height:clamp(170px,24dvh,230px)}.top{min-height:85px}.weather-day-label{font-size:13px!important}.forecast-day{gap:3px}.forecast-day small{font-size:10px}}


/* KGOC V3.1 – HONOR Pad X9a refinement; original color and section order preserved */
@media (min-width:801px) {
 .app{height:100dvh;min-height:0;overflow:hidden;padding-bottom:10px}
 .top{min-height:82px}
 .clockwrap .date{font-size:23px!important;font-weight:800}
 .pantrystrip .pantry-launch{width:66px;max-width:66px;height:57px;border-radius:18px;padding:8px;box-shadow:0 5px 16px #0c69be28}
 .pantrystrip .pantry-launch svg{width:31px;height:31px}
 .dua{height:clamp(186px,27dvh,250px);flex:none}
 .dua .inside{transform:translateY(15px);max-width:66%;padding:10px 15px}
 .dua .caption{display:none}
 .dua .expand{right:10px!important;left:auto!important;z-index:8}
 /* Vertical weather widget on the LEFT inside the prayer image, no overflow */
 .dua .weather-glass{
  position:absolute!important;left:12px!important;right:auto!important;
  top:50%!important;bottom:auto!important;transform:translateY(-50%);
  width:176px!important;max-width:23%!important;min-width:140px!important;
  height:auto!important;max-height:calc(100% - 20px)!important;
  min-height:0!important;padding:7px 9px!important;
  background:rgba(255,255,255,.53)!important;
  border:1px solid rgba(255,255,255,.67);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-radius:15px;box-shadow:0 3px 15px #0c417022;
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:center!important;
  gap:3px!important;direction:rtl;overflow:hidden;
 }
 .weather-glass .weather-now{flex-direction:row!important;justify-content:center;gap:5px!important;min-width:0!important;flex:unset!important}
 .weather-glass .weather-symbol{font-size:19px}
 .weather-glass .weather-now strong{font-size:22px}
 .weather-glass .weather-now small{font-size:11px;font-weight:700}
 .weather-glass .forecast-days{display:flex!important;flex-direction:column!important;gap:0!important;width:100%;min-width:0;flex:unset!important}
 .weather-glass .forecast-day{
  display:flex!important;flex-direction:row!important;
  justify-content:space-between!important;align-items:center!important;
  gap:4px!important;border-right:0!important;border-top:1px solid #ffffffa8;
  padding:2px 1px!important;min-height:25px;min-width:0;overflow:hidden
 }
 .weather-glass .weather-day-label{font-size:12px!important;font-weight:800!important;white-space:nowrap}
 .weather-glass .forecast-day strong{font-size:14px!important;line-height:1}
 .weather-glass .forecast-day b{font-size:13px!important}
 .weather-glass .forecast-day small{font-size:9px!important;white-space:nowrap}
 .dua .appointment-banner{font-size:17px!important;padding:11px 22px!important;background:rgba(255,255,255,.65)!important;backdrop-filter:blur(9px)}
 .three{flex:1;min-height:0;gap:12px}
 .three>section{min-height:0!important;height:auto!important;overflow:hidden;display:flex;flex-direction:column}
 .three .scroller{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}
 .three .scroller .entry{min-height:calc((100dvh - 430px)/3);max-height:125px}
 .sectiontitle{text-align:center;justify-content:center!important;font-weight:800}
 .visitor-note{font-size:16px!important;font-weight:800!important}
 .phone-blue{font-size:18px!important;font-weight:900!important;color:#0874cc!important}
 .call-notes{font-size:16px!important;font-weight:800!important}
}
@media(min-width:801px) and (max-height:670px){
 .dua{height:clamp(165px,25dvh,195px)}
 .top{min-height:75px}
 .weather-glass .forecast-day{min-height:22px;padding:1px!important}
 .three .scroller .entry{min-height:75px}
}

/* V4 executive dashboard — preserve section order, full Kuwait photo background */
body:has(.three){background:#616161;background-image:linear-gradient(90deg,rgba(218,240,251,.35),rgba(230,246,255,.22)),var(--executive-bg,none);background-position:center;background-size:cover;background-attachment:fixed}
body:has(.three) .panel{background:rgba(250,253,255,.79);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body:has(.three) .dua{background:transparent!important;box-shadow:none;border-color:transparent;overflow:visible}
body:has(.three) .dua:before{display:none}
body:has(.three) .dua .inside{background:rgba(255,255,255,.18);border-radius:20px;padding:12px 20px;backdrop-filter:blur(2px);max-width:78%}
body:has(.three) .top{display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,1.05fr) minmax(270px,1.25fr);align-items:center;gap:13px;direction:ltr}
body:has(.three) .clockwrap{grid-column:1;min-width:0!important}
body:has(.three) .v4-reminders{grid-column:2;min-width:0;cursor:pointer;text-align:center;border-radius:18px;padding:13px 12px;background:rgba(255,255,255,.67);border:1px solid #ffffffbf;box-shadow:0 6px 20px #134d7820;backdrop-filter:blur(12px);height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.v4-reminders .reminder-label{font-size:13px;font-weight:700;color:#336998}.v4-reminders strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:#102f5e}
body:has(.three) .v4-weather{grid-column:3;min-width:0;background:rgba(255,255,255,.66);border:1px solid #ffffffc4;box-shadow:0 6px 18px #174e7524;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px;min-height:82px;backdrop-filter:blur(12px)}
.v4-weather .weather-now{min-width:70px!important;flex-direction:column!important;justify-content:center;gap:2px!important}.v4-weather .forecast-days{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.v4-weather .forecast-day{display:flex!important;flex-direction:column!important;gap:0!important;padding:1px 3px!important;border:0!important;min-width:0!important}.v4-weather .weather-day-label{font-weight:800!important;font-size:13px!important}.v4-weather .forecast-day strong{font-size:17px!important}.v4-weather .forecast-day b{font-size:14px!important}.v4-weather .forecast-day small{font-size:10px!important}
body:has(.three) .pantrystrip{display:none!important}
.v4-actions{position:fixed;top:34%;right:22px;display:flex;flex-direction:column;gap:10px;z-index:20}.v4-actions button{width:56px;height:56px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:17px;background:rgba(255,255,255,.86);color:#1462ad;border:1px solid #fff;box-shadow:0 4px 18px #0c4b7830;backdrop-filter:blur(8px)}
.appointment-banner{top:-12px!important;background:rgba(255,255,255,.76)!important;backdrop-filter:blur(12px);font-weight:800;font-size:18px!important;max-width:65%;white-space:normal;text-align:center;z-index:6}
.appointment-yellow{background:#fff6cf!important;border-color:#e9bc2b!important}.appointment-active{background:#e1f7eb!important;border-color:#43a87a!important}
.v4-message-body{white-space:pre-wrap;text-align:right;line-height:1.8;font-size:18px}
.three .scroller{scrollbar-width:thin}
@media(min-width:801px){body:has(.three) .app{height:100dvh;overflow:hidden}body:has(.three) .top{min-height:93px!important}body:has(.three) .dua{height:clamp(180px,26dvh,245px)!important}body:has(.three) .three{min-height:0;flex:1}body:has(.three) .three .scroller .entry{min-height:82px}}
@media(max-width:1050px){body:has(.three) .top{grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) minmax(225px,1.35fr)}.v4-weather .forecast-day small{font-size:9px!important}.v4-reminders strong{font-size:14px}.v4-actions{right:10px}.v4-actions button{width:45px;height:45px}}
@media(max-width:800px){body:has(.three) .top{grid-template-columns:1fr 1fr!important}body:has(.three) .clockwrap{grid-column:1}body:has(.three) .v4-reminders{grid-column:2}body:has(.three) .v4-weather{grid-column:1/-1}body:has(.three) .app{height:auto;overflow:visible}.v4-actions{top:43%}}

/* V4.1: visual refinement - preserve placement of the prayer text */
body:has(.three){background-image:linear-gradient(90deg,rgba(218,240,251,.12),rgba(230,246,255,.08)),var(--executive-bg,none)!important}
body:has(.three) .panel:not(.dua){background:rgba(250,253,255,.64)!important}
body:has(.three) .dua .inside{background:rgba(255,255,255,.10)!important;max-width:fit-content!important;width:auto!important;max-height:90%;padding:9px 15px!important;/* Preserve existing transform and text position */}
body:has(.three) .top{direction:rtl!important}
body:has(.three) .v4-weather{grid-column:1!important;grid-row:1;background:rgba(255,255,255,.50)!important;direction:ltr}
body:has(.three) .v4-reminders{grid-column:2!important;grid-row:1;background:rgba(255,255,255,.52)!important}
body:has(.three) .clockwrap{grid-column:3!important;grid-row:1}
.v4-weather .forecast-days{direction:rtl}.v4-weather .weather-now{direction:rtl}
.v4-actions{top:24%!important;gap:17px!important}.v4-actions button{background:rgba(255,255,255,.60)!important}
.dua .expand{left:12px!important;right:auto!important;top:auto!important;bottom:7px!important}
.visitor-note{font-weight:800!important;font-size:17px!important}
.three .entry .detail>b,.three .entry .detail>div>b{font-size:18px!important}
.three .entry .detail small{font-size:14px!important}
.appointment-notes{font-weight:600;font-size:15px;line-height:1.4;margin-top:5px;color:#173c62}
.three .datebox{border:2px solid #df4554!important;border-radius:12px;padding:4px 7px;background:rgba(255,255,255,.72)}
.message-archive{max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:9px}.archive-row{display:flex;flex-direction:column;text-align:right;gap:6px;background:rgba(218,237,249,.85);color:#173c62;padding:12px;border-radius:12px}.archive-row small{font-size:12px}
body:has(.three) .appointment-banner{background:rgba(255,255,255,.54)!important}

/* V4.2 focused layout refinements */
@media(min-width:801px){
 body:has(.three) .top{direction:ltr!important}
 body:has(.three) .clockwrap{grid-column:3!important;grid-row:1;text-align:right}
 body:has(.three) .v4-weather{grid-column:1!important;grid-row:1;direction:rtl!important;justify-self:stretch}
 body:has(.three) .v4-reminders{grid-column:2!important;grid-row:1}
 body:has(.three) .panel:not(.dua){background:rgba(250,253,255,.48)!important;backdrop-filter:blur(10px)}
 body:has(.three) .three .entry{background:rgba(255,255,255,.62)!important}
 body:has(.three) .v4-weather,body:has(.three) .v4-reminders{background:rgba(255,255,255,.42)!important}
 body:has(.three) .dua .inside{background:rgba(255,255,255,.10)!important;backdrop-filter:none!important;box-shadow:none!important;border:0!important}
 body:has(.three) .dua .inside:before{display:none!important}
 body:has(.three) .v4-weather .forecast-days{direction:ltr!important}
 body:has(.three) .v4-weather .weather-now{order:1;direction:rtl}
 body:has(.three) .v4-weather .forecast-days{order:0}
 body:has(.three) .datebox small{font-size:15px!important;font-weight:800}
 body:has(.three) .datebox strong{font-size:26px!important}
 body:has(.three) .appointment-notes{font-size:17px!important;font-weight:700}
 body:has(.three) .three .entry .detail>div>b{font-size:19px!important}
 .v4-actions{top:21%!important;gap:28px!important}
 .v4-actions button{background:rgba(255,255,255,.50)!important}
}
.v4-reminders.important-reminder .reminder-label{color:#bb1e38!important;font-weight:900!important}
.v4-reminders.important-reminder strong{color:#b01834!important}


/* V4.3: HONOR landscape refinement */
@media (min-width:801px){
 body:has(.three) .panel:not(.dua){background:rgba(250,253,255,.20)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body:has(.three) .three .entry{background:rgba(255,255,255,.30)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body:has(.three) .v4-weather,body:has(.three) .v4-reminders{background:rgba(255,255,255,.20)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body:has(.three) .dua .inside{background:rgba(255,255,255,.20)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body:has(.three) .dua:before{background:rgba(255,255,255,.20)!important;backdrop-filter:none!important}
 body:has(.three) .clockwrap .clock,body:has(.three) .clockwrap .date{color:#fff!important;text-shadow:0 2px 5px rgba(4,29,68,.85),0 0 12px rgba(0,0,0,.45)!important}
 body:has(.three) .v4-weather{direction:ltr!important}
 body:has(.three) .v4-weather .weather-now{order:0!important;direction:rtl!important}
 body:has(.three) .v4-weather .forecast-days{order:1!important;direction:rtl!important}
 body:has(.three) .three .entry .detail small{font-size:16px!important;font-weight:700!important}
 body:has(.three) .datebox small{font-size:17px!important}
 .v4-actions button{background:rgba(255,255,255,.20)!important;backdrop-filter:none!important}
}
.reminder-carousel-line{width:100%;display:flex;gap:8px;align-items:center;justify-content:space-between;direction:ltr;min-width:0}
.reminder-carousel-line strong{flex:1;min-width:0;text-align:center;direction:rtl}
.reminder-arrow{font-size:22px;font-weight:900;color:#155a9a;line-height:1;flex:0 0 auto}
.reminder-visible-list{background:#edf6ff;border:1px solid #bad9f5;border-radius:12px;padding:10px;margin:12px 0 18px}
.reminders-table-wrap{overflow:auto;max-height:230px;border:1px solid #d5e7f7;border-radius:8px;background:white}
.reminders-table-wrap .admin-table th{position:sticky;top:0;background:#e6f2ff;z-index:1}

/* V4.3 approved transparency and manager heading adjustments */
@media (min-width:801px){
 body:has(.three) .three>section.panel{background:rgba(250,253,255,.05)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body:has(.three) .three .entry{background:rgba(255,255,255,.30)!important}
 body:has(.three) .v4-weather, body:has(.three) .v4-reminders{background:rgba(255,255,255,.30)!important}
 body:has(.three) .dua .inside{background:rgba(255,255,255,.20)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
 body:has(.three) .appointment-banner{background:rgba(255,255,255,.30)!important}
 body:has(.three) .v4-actions button{background:rgba(255,255,255,.50)!important}
}
/* Keep section headings readable over a photographic wallpaper. */
body:has(.three) .three .sectiontitle{color:#fff!important;text-shadow:0 2px 5px rgba(0,0,0,.05)!important;justify-content:center!important;text-align:center!important}
/* The prayer background remains one clear photo with no frosted-glass blur. */
body:has(.three) .dua .inside,body:has(.three) .dua:before{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Admin reminder records have their own short scrollbar; form and save button remain reachable. */
body:has(.admin-layout){overflow-y:auto!important;min-height:100vh}
main.admin-content{overflow-y:visible!important;max-height:none!important}
.reminders-table-wrap{max-height:180px!important;overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain}
.reminder-visible-list{max-height:250px;overflow:hidden}
#remDetails{min-height:95px}


/* V4.3 approved black glass. MAIN panels: 90% transparent (10% black opacity). */
body:has(.three) .three > section.panel {
  background: rgba(0,0,0,.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Inner records: 30% black opacity. Preserve appointment urgency colors. */
body:has(.three) .three .entry:not(.appointment-alert):not(.appointment-soon):not(.appointment-active) {
  background: rgba(0,0,0,.30) !important;
}
/* Weather and reminders as selected; other interfaces unchanged. */
body:has(.three) .v4-weather {background:rgba(0,0,0,.40) !important;}
body:has(.three) .v4-reminders {background:rgba(0,0,0,.30) !important;}

/* V4.3 text-only legibility experiment — do not change panel colors or transparency. */
@media (min-width:801px) {
 body:has(.three) .three .entry .detail,
 body:has(.three) .three .entry .detail b,
 body:has(.three) .three .entry .detail small,
 body:has(.three) .three .entry .detail div,
 body:has(.three) .three .entry .visitor-note,
 body:has(.three) .three .entry .call-notes,
 body:has(.three) .three .entry .appointment-notes {
   color:#ffffff !important;
   text-shadow:0 2px 4px rgba(0,0,0,.94),0 0 8px rgba(0,0,0,.75) !important;
 }
 body:has(.three) .three .entry .phone-blue,
 body:has(.three) .three .entry .call-inline .phone-blue {
   color:#b6ecff !important;
   font-weight:900 !important;
   text-shadow:0 2px 4px rgba(0,0,0,.98),0 0 9px rgba(0,0,0,.70) !important;
 }
 body:has(.three) .three .entry .datebox,
 body:has(.three) .three .entry .datebox small,
 body:has(.three) .three .entry .datebox strong {
   color:#12385f !important;
   text-shadow:none !important;
 }
 body:has(.three) .three .sectiontitle {
   color:white !important;
   text-shadow:0 2px 5px rgba(0,0,0,.98),0 0 12px rgba(0,0,0,.65) !important;
 }
}

/* V4.4: user-approved targeted palette, HONOR manager dashboard */
@media (min-width:801px) {
  /* Three outer panels: 5% opaque black. */
  body:has(.three) .three > section.panel {
    background:rgba(0,0,0,.05)!important;
  }
  /* Appointment and visitor entries: 20% opaque black; keep urgency-status backgrounds intact. */
  body:has(.three) .three .entry:not(.call-entry):not(.appointment-alert):not(.appointment-soon):not(.appointment-active) {
    background:rgba(0,0,0,.20)!important;
  }
  /* Calls only: independent white 20% background and near-black writing. */
  body:has(.three) #calls .call-entry {
    background:rgba(255,255,255,.20)!important;
  }
  body:has(.three) #calls .call-entry .detail,
  body:has(.three) #calls .call-entry .detail b,
  body:has(.three) #calls .call-entry .detail div,
  body:has(.three) #calls .call-entry .call-notes,
  body:has(.three) #calls .call-entry .phone-blue {
    color:#101820!important;
    text-shadow:0 1px 2px rgba(255,255,255,.45)!important;
  }
  /* Reminders and weather: white 30% each. */
  body:has(.three) .v4-weather,
  body:has(.three) .v4-reminders {
    background:rgba(255,255,255,.30)!important;
  }
  /* Visitor department: smaller, distinct sky-blue rather than white. */
  body:has(.three) #visits .visitor-entry .detail > small {
    font-size:12px!important;
    font-weight:600!important;
    color:#bbebff!important;
    text-shadow:0 1px 3px rgba(0,0,0,.85)!important;
  }
  /* Reason for visiting: distinct soft warm yellow, readable over dark glass. */
  body:has(.three) #visits .visitor-entry .visitor-note {
    color:#ffe0a1!important;
    font-weight:800!important;
    text-shadow:0 1px 4px rgba(0,0,0,.9)!important;
  }
}


/* KGOC V4.5 — THREE DISTINCT MANAGER CARDS ONLY.
   All styles below are limited to appointments (#appts), visitors (#visits),
   and incoming calls (#calls). Nothing else in the interface is altered. */
@media (min-width:801px) {
  /* Shared outer glass: 5% dark tint, preserving Kuwait panorama. */
  body:has(.three) .three > section.panel {
    background:rgba(0,0,0,.05)!important;
    border:1px solid rgba(255,255,255,.34)!important;
    box-shadow:0 7px 23px rgba(0,26,54,.13)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body:has(.three) .three > section.panel .sectiontitle {
    color:#fff!important;
    font-weight:900!important;
    text-shadow:0 2px 6px rgba(0,15,32,.92)!important;
  }

  /* 1. APPOINTMENTS: blue-tinted executive glass, crisp readable type. */
  body:has(.three) #appts .entry {
    background:rgba(9,43,87,.48)!important;
    border:1px solid rgba(166,213,255,.48)!important;
    box-shadow:0 4px 13px rgba(8,36,76,.21)!important;
    border-radius:15px!important;
  }
  body:has(.three) #appts .entry .detail,
  body:has(.three) #appts .entry .detail b,
  body:has(.three) #appts .entry .detail div,
  body:has(.three) #appts .entry .appointment-notes {
    color:#fff!important;
    text-shadow:0 1px 3px rgba(0,12,35,.8)!important;
  }
  body:has(.three) #appts .entry .detail small {color:#dbedff!important;}
  body:has(.three) #appts .entry .datebox {
    background:rgba(255,255,255,.87)!important;
    border:2px solid #e65b65!important;
    box-shadow:0 2px 8px rgba(0,0,0,.10)!important;
  }
  body:has(.three) #appts .entry .datebox,
  body:has(.three) #appts .entry .datebox * {
    color:#173a67!important;text-shadow:none!important;
  }
  /* Preserve meaningful urgency via colored left edge without losing legibility. */
  body:has(.three) #appts .entry.appointment-soon {border-inline-start:5px solid #f4bd4e!important;}
  body:has(.three) #appts .entry.appointment-alert {border-inline-start:5px solid #f16e73!important;}
  body:has(.three) #appts .entry.appointment-active {border-inline-start:5px solid #4ed79a!important;}

  /* 2. VISITORS: calm dark teal glass, warm-gold notes. */
  body:has(.three) #visits .visitor-entry {
    background:rgba(6,60,72,.39)!important;
    border:1px solid rgba(137,240,231,.46)!important;
    box-shadow:0 4px 13px rgba(1,51,60,.18)!important;
    border-radius:15px!important;
  }
  body:has(.three) #visits .visitor-entry .detail b {
    color:#fff!important;font-weight:900!important;
    text-shadow:0 1px 4px rgba(0,23,27,.9)!important;
  }
  body:has(.three) #visits .visitor-entry .detail > small {
    color:#bcf4ea!important;font-size:13px!important;
    font-weight:700!important;
    text-shadow:0 1px 3px rgba(0,25,33,.8)!important;
  }
  body:has(.three) #visits .visitor-entry .visitor-note {
    color:#ffe8a5!important;font-size:16px!important;font-weight:850!important;
    text-shadow:0 1px 4px rgba(0,23,31,.86)!important;
  }
  body:has(.three) #visits .visitor-entry .status {
    border:1px solid rgba(255,255,255,.4)!important;
    box-shadow:0 2px 8px rgba(0,0,0,.12)!important;
  }

  /* 3. INCOMING CALLS: luminous white glass, ink typography and blue numbers. */
  body:has(.three) #calls .call-entry {
    background:rgba(255,255,255,.65)!important;
    border:1px solid rgba(255,255,255,.9)!important;
    box-shadow:0 4px 14px rgba(10,50,84,.16)!important;
    border-radius:15px!important;
  }
  body:has(.three) #calls .call-entry .detail,
  body:has(.three) #calls .call-entry .detail b,
  body:has(.three) #calls .call-entry .detail div,
  body:has(.three) #calls .call-entry .call-notes {
    color:#142a44!important;text-shadow:none!important;
  }
  body:has(.three) #calls .call-entry .detail b {font-weight:900!important;}
  body:has(.three) #calls .call-entry .phone-blue {
    color:#0866ac!important;font-weight:900!important;text-shadow:none!important;
  }
  body:has(.three) #calls .call-hide {
    background:rgba(12,69,112,.11)!important;
    border:1px solid rgba(12,69,112,.19)!important;
    color:#124f81!important;
  }
}

/* KGOC V4.6 – borderless outer cards, identical title bands.
   Scope: manager dashboard's three primary cards ONLY. */
body:has(.three) .three > section.panel {
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:rgba(0,0,0,.05)!important;
}
body:has(.three) .three > section.panel > .sectiontitle {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:43px!important;
  padding:9px 13px!important;
  margin:0 0 9px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:13px!important;
  background:rgba(8,30,55,.65)!important;
  box-shadow:0 3px 11px rgba(0,0,0,.15)!important;
  color:#fff!important;
  text-align:center!important;
  font-weight:900!important;
  text-shadow:0 1px 4px rgba(0,0,0,.75)!important;
}
body:has(.three) .three > section.panel > .sectiontitle .title-icon {
  color:#e7f4ff!important;
  margin:0!important;
  text-shadow:0 1px 4px rgba(0,0,0,.7)!important;
}

/* KGOC V4.7 — royal blue uniform cards; strictly manager's three sections. */
body:has(.three) .three {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
}
body:has(.three) .three > section.panel {
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0;
}
/* Same royal-blue tinted transparent treatment, preserving Kuwait photo. */
body:has(.three) #appts .entry,
body:has(.three) #visits .visitor-entry,
body:has(.three) #calls .call-entry {
  background:rgba(9,43,87,.48)!important;
  border:1px solid rgba(161,207,255,.42)!important;
  border-radius:15px!important;
  box-shadow:0 4px 13px rgba(8,36,76,.19)!important;
  color:#fff!important;
}
/* Distinct row/field colors consistent across the three cards. */
body:has(.three) #appts .entry .detail,
body:has(.three) #visits .entry .detail,
body:has(.three) #calls .entry .detail {color:#e8f3ff!important;}
body:has(.three) #appts .entry .detail b,
body:has(.three) #visits .entry .detail b,
body:has(.three) #calls .entry .detail b {
  color:#ffffff!important;font-weight:900!important;
  text-shadow:0 1px 3px rgba(0,10,34,.65)!important;
}
body:has(.three) #appts .entry .detail small,
body:has(.three) #visits .visitor-entry .detail > small,
body:has(.three) #calls .entry .phone-blue {
  color:#94e8ff!important;font-weight:800!important;
  text-shadow:0 1px 3px rgba(0,10,34,.6)!important;
}
body:has(.three) #visits .visitor-entry .visitor-note,
body:has(.three) #appts .entry .appointment-notes,
body:has(.three) #calls .entry .call-notes {
  color:#ffe1a0!important;font-weight:800!important;
  text-shadow:0 1px 3px rgba(0,10,34,.66)!important;
}
body:has(.three) #calls .entry .call-inline,
body:has(.three) #calls .entry .call-inline div {color:#eaf5ff!important;}
body:has(.three) #calls .entry .call-hide {
  color:#fff!important;background:rgba(255,255,255,.16)!important;
  border-color:rgba(255,255,255,.4)!important;
}
/* Icon is decorative and can safely be hidden without touching visitor actions. */
body:has(.three) #visits .visitor-avatar {display:none!important;}
@media(max-width:800px){
 body:has(.three) .three {grid-template-columns:1fr 1fr!important;}
}
@media(max-width:520px){
 body:has(.three) .three {grid-template-columns:1fr!important;}
}

/* V4.8 — Dua only: one blurred translucent layer behind verse, no outer layer. */
body:has(.three) .dua {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body:has(.three) .dua::before,
body:has(.three) .dua .inside::before {
  display:none!important;
  content:none!important;
}
body:has(.three) .dua .inside {
  background:rgba(255,255,255,.20)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  border:0!important;
  box-shadow:none!important;
}

/* V4.9 FIX: remove the oversized dua background layer entirely.
   Keep the shared Kuwait photo on <body>, and blur only the text capsule. */
body:has(.three) #dua.dua.panel {
  background: transparent !important;
  background-image: none !important; /* overrides JS inline backgroundImage */
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body:has(.three) #dua.dua.panel::before,
body:has(.three) #dua.dua.panel::after {
  display: none !important;
  content: none !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body:has(.three) #dua.dua.panel > .inside {
  background: rgba(255,255,255,.20) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: none !important;
}

/* V4.10 — Reminders card only. Preserve V4.9 dua and V4.7 royal blue panels. */
body:has(.three) .top .v4-reminders {
  width:75%!important; /* 25% narrower than its available grid column */
  max-width:75%!important;
  justify-self:center!important;
  justify-content:center!important;
  height:82px!important;
  min-height:82px!important;
  max-height:82px!important;
  box-sizing:border-box!important;
  padding:6px 10px!important;
  gap:4px!important;
}
body:has(.three) .v4-reminders .reminder-label,
body:has(.three) .v4-reminders.important-reminder .reminder-label {
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
body:has(.three) .v4-reminders .reminder-carousel-line strong,
body:has(.three) .v4-reminders.important-reminder .reminder-carousel-line strong {
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:850!important;
  min-width:0!important;
}
/* Flip both arrow glyphs in place, preserving carousel behavior and JS. */
body:has(.three) .v4-reminders .reminder-arrow {
  display:inline-block!important;
  transform:scaleX(-1)!important;
  font-size:20px!important;
}

/* V4.11 — Reminder label, importance badge and weather adjacency only. */
body:has(.three) .top .v4-reminders {
  justify-self:start!important; /* nearer to the weather card in grid column 1 */
}
body:has(.three) .v4-reminders .reminder-important-badge {
  color:#c11235!important; background:rgba(255,255,255,.85);
  border:1px solid rgba(193,18,53,.38); border-radius:7px;
  padding:1px 5px; margin-inline-start:6px; font-size:12px!important;
  font-weight:850; vertical-align:middle; white-space:nowrap;
}
body:has(.three) .v4-reminders .reminder-important-badge[hidden] {display:none!important;}


/* V4.12 — Weather typography and modest width reduction ONLY. */
@media (min-width:801px) {
  body:has(.three) .top .v4-weather {
    width:92%!important;
    max-width:92%!important;
    justify-self:end!important;
    box-sizing:border-box!important;
    /* Keep approved existing background opacity unchanged. */
  }
  body:has(.three) .v4-weather .weather-now strong {
    font-size:33px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }
  body:has(.three) .v4-weather .forecast-day b {
    font-size:18px!important;
    line-height:1.15!important;
    font-weight:900!important;
  }
  body:has(.three) .v4-weather .forecast-day small {
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }
  body:has(.three) .v4-weather .forecast-day {
    min-width:0!important;
    padding-inline:1px!important;
  }
}

/* V4.13 — equal-height weather/reminder tiles; larger Kuwait label only. */
@media (min-width:801px) {
  body:has(.three) .top .v4-reminders,
  body:has(.three) .top .v4-weather {
    height:106px!important;
    min-height:106px!important;
    max-height:106px!important;
    box-sizing:border-box!important;
  }
  body:has(.three) .v4-weather .weather-now small {
    font-size:17px!important;
    line-height:1.12!important;
    font-weight:900!important;
    white-space:nowrap!important;
  }
}

/* V4.14 — align weather + reminder tiles towards the left screen edge. */
@media (min-width:801px) {
  body:has(.three) .top {
    column-gap:9px!important;
    grid-template-columns:minmax(260px,1fr) minmax(190px,.85fr) minmax(270px,1.55fr)!important;
  }
  body:has(.three) .top .v4-weather {
    justify-self:start!important;
    margin-left:0!important;
  }
  body:has(.three) .top .v4-reminders {
    justify-self:start!important;
    margin-left:0!important;
  }
}

/* V4.15: compact, adjacent top tiles + soft appointment notification cycle.
   All Royal Blue cards, dua, buttons, weather typography and data untouched. */
@media (min-width:801px) {
  body:has(.three) .top {
    grid-template-columns:minmax(260px,320px) minmax(185px,220px) minmax(260px,1fr)!important;
    column-gap:9px!important;
  }
  body:has(.three) .top .v4-weather {
    width:100%!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
  body:has(.three) .top .v4-reminders {
    width:100%!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
}
body:has(.three) .dua .appointment-banner {
  top:12px!important; /* moved down 24px from the old -12px position */
  animation:kgocAppointmentGentleFade 12s ease-in-out infinite!important;
}
@keyframes kgocAppointmentGentleFade {
  0%,6% {opacity:0;visibility:visible}
  12%,72% {opacity:1;visibility:visible}
  84%,100% {opacity:0;visibility:hidden}
}
@media (prefers-reduced-motion:reduce) {
  body:has(.three) .dua .appointment-banner {animation:none!important;opacity:1!important;visibility:visible!important}
}


/* V4.16 — manager-only: lower pantry and message controls and widen spacing. */
body:has(.three) .v4-actions {
  top: 29% !important;
  gap: 44px !important;
}
@media (max-width:800px) {
  body:has(.three) .v4-actions {top: 38% !important;gap: 32px !important;}
}

/* V4.17 — shift the two floating manager controls upward, clear appointment title. */
body:has(.three) .v4-actions {
  top: 21% !important;
  gap: 24px !important;
}
@media (max-width:800px) {
  body:has(.three) .v4-actions { top: 23% !important; gap: 20px !important; }
}

/* V5 beta — admin scroll, overlay accessibility, empty states, weather */
body:not(:has(.three)){overflow-y:auto!important;height:auto!important;min-height:100dvh!important}
body:not(:has(.three)) .app{height:auto!important;min-height:100dvh!important;overflow:visible!important}
body:not(:has(.three)) .admin-layout{height:auto!important;overflow:visible!important;align-items:start}
body:not(:has(.three)) .admin-content{height:auto!important;max-height:none!important;overflow:visible!important;min-height:80dvh}
body:not(:has(.three)) #content{overflow:visible!important}
body:not(:has(.three)) #nav{position:sticky;top:10px;max-height:calc(100dvh - 20px);overflow-y:auto!important}
.kgoc-admin-table{max-height:58dvh;overflow:auto;overscroll-behavior:contain}
.kgoc-activity-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.kgoc-activity-cards>div{padding:16px;border-radius:14px;background:#dcebf9;color:#173b60;font-size:16px}
.kgoc-activity-cards strong{font-size:27px}
body:has(.three) .kgoc-universal-close{position:absolute;z-index:10005;top:14px;left:16px;background:#263e61;color:white;border:1px solid #fff7;border-radius:50%;font-size:28px;width:44px;height:44px;cursor:pointer}
body:has(.three) .v4-message-body,body:has(.three) .modal p{font-size:clamp(21px,2vw,29px);line-height:1.65}
body:has(.three) .empty,body:has(.three) .empty p{color:#fff!important;font-weight:800!important;text-shadow:0 2px 6px #000,0 1px 2px #000!important;font-size:20px!important}
body:has(.three) .weather-day-label,body:has(.three) .forecast-day small{font-size:17px!important;font-weight:800!important}
.kgoc-unread-badge{display:inline-flex;min-width:22px;justify-content:center;align-items:center;border-radius:999px;background:#e52b3d;color:white;font-size:13px;padding:2px 5px;margin-inline:5px}
.kgoc-unread-badge[hidden]{display:none}
.kgoc-greeting{text-align:center}.kgoc-sun{font-size:48px}.kgoc-greeting-text{font-size:clamp(26px,3vw,38px);font-weight:800;line-height:1.8;color:#173862}

/* V5.1 consolidated fixes — keep approved royal-blue appearance */
@media(min-width:801px){body:has(.three) .three{gap:5px!important;grid-template-columns:minmax(0,1.281fr) minmax(0,1fr) minmax(0,1fr)!important;}body:has(.three) .v4-actions{top:25%!important;gap:20px!important}}
body:has(.three) #visits .status,body:has(.three) #visits .modalbuttons button{font-size:clamp(15px,1.35vw,19px)!important;font-weight:800!important;}
body:has(.three) .modalbuttons button{font-size:clamp(16px,1.35vw,21px);font-weight:700}
body:has(.three) .modal{position:relative;padding-top:65px}
body:has(.three) .kgoc-universal-close{position:absolute!important;top:10px!important;left:12px!important;right:auto!important;z-index:10100!important;background:#233f69!important;color:#fff!important;border:2px solid #ffffffb0!important;border-radius:50%;height:45px;width:45px;font-size:29px;line-height:1;padding:0}
body:has(.three) .empty,body:has(.three) .empty p{font-size:clamp(22px,2vw,28px)!important;color:#fff!important;text-shadow:0 2px 7px #000,0 0 3px #000!important}
body:not(:has(.three)) .admin-layout,body:not(:has(.three)) .admin-content{overflow:visible!important;height:auto!important;max-height:none!important}
body:not(:has(.three)) #content{min-height:700px;overflow:visible!important;padding-bottom:70px}
.kgoc-nav-divider{border-top:2px solid #9fb8d3;margin:12px 8px}
.kgoc-wa-recipient{border:1px solid #bad3ee;background:#f1f7ff;border-radius:15px;padding:16px;margin:12px 0}
.kgoc-wa-head{display:flex;justify-content:space-between;align-items:center}
.kgoc-wa-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.kgoc-wa-options label{display:flex;align-items:center;gap:7px;padding:9px;background:#fff;border-radius:8px;font-size:14px}
.kgoc-wa-options input{width:20px;height:20px;margin:0;accent-color:#096bcc}
@media(max-width:800px){.kgoc-wa-options{grid-template-columns:1fr 1fr}}

/* V5.2 admin navigation and compact WhatsApp-like manager message badge */
@media (min-width:801px){body:has(.admin-layout) .admin-layout{grid-template-columns:260px minmax(0,1fr)!important}body:has(.admin-layout) #nav{width:260px!important;min-width:260px!important}body:has(.admin-layout) #nav button{font-size:15px!important;padding:12px 14px!important}}
body:has(.three) .v4-actions button[onclick*="openManagerMessage"]{position:relative!important;overflow:visible!important}
body:has(.three) .kgoc-unread-badge{position:absolute!important;top:-8px!important;right:-8px!important;z-index:30!important;min-width:23px!important;height:23px!important;padding:1px 5px!important;margin:0!important;border:2px solid #fff!important;border-radius:15px!important;background:#f02038!important;color:#fff!important;font-size:12px!important;font-weight:900!important;line-height:20px!important;box-shadow:0 2px 6px #0005!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:none!important}
body:has(.three) .kgoc-unread-badge[hidden]{display:none!important}

/* V5.4 — unified office control + privacy + premium morning welcome */
.center-section{padding:18px;margin:18px 0;border:1px solid #c4d8ed;border-radius:16px;background:rgba(255,255,255,.72)}
.center-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.center-types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 18px}
.center-types button{font-weight:800;min-height:50px;white-space:normal}
.center-types button.chosen{background:#164d89;color:#fff}
@media(max-width:780px){.center-types{grid-template-columns:repeat(3,1fr)}}
/* Exactly 2 mirrored vertical positions, distributed between the sides */
body:has(.three) .v4-actions{position:fixed!important;right:14px!important;left:auto!important;top:25%!important;gap:20px!important;z-index:120!important;display:flex!important;flex-direction:column!important}
body:has(.three) .privacy-left-actions{position:fixed;left:14px;top:25%;display:flex;flex-direction:column;gap:20px;z-index:120}
body:has(.three) .privacy-left-actions button{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.5);color:#153c66;border:1px solid #fff8;box-shadow:0 4px 15px #0003;font-size:27px;font-weight:800;cursor:pointer}
body:has(.three) .privacy-left-actions button:hover{background:rgba(255,255,255,.72)}
body.kgoc-private:before{content:"";position:fixed;inset:0;z-index:5;pointer-events:none;backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px);background:rgba(7,30,57,.10)}
body.kgoc-private .three,body.kgoc-private .dua,body.kgoc-private .v4-reminders,body.kgoc-private #apptBanner,body.kgoc-private .pantrystrip{visibility:hidden!important;pointer-events:none!important}
body.kgoc-private .clockwrap,body.kgoc-private .v4-weather{position:relative;z-index:20}
body.kgoc-private .privacy-left-actions,body.kgoc-private .v4-actions{z-index:80}
body.kgoc-private .kgoc-unread-badge{display:none!important}
.privacy-incoming{position:fixed;top:18%;left:50%;transform:translateX(-50%);z-index:280;background:rgba(14,47,86,.96);border:1px solid #b6d8ef;border-radius:17px;box-shadow:0 9px 30px #0006;color:#fff;padding:15px 20px;display:flex;align-items:center;gap:14px;font-size:19px;font-weight:800}
.privacy-incoming[hidden]{display:none!important}
.privacy-incoming button{background:#fff;color:#174477;border:none;border-radius:10px;padding:9px;cursor:pointer;font-size:16px}
.kgoc-splash{overflow:hidden!important;position:relative;background:linear-gradient(150deg,rgba(4,35,76,.94),rgba(24,76,115,.92))!important;color:white!important;max-width:680px!important;min-height:440px;text-align:center;animation:kgocWelcomeIn .55s ease both}
.kgoc-splash:before{content:"";position:absolute;inset:0;z-index:0;background-image:var(--executive-bg);background-size:cover;background-position:center;filter:blur(10px);opacity:.30;transform:scale(1.1);pointer-events:none}
.kgoc-splash>*{position:relative;z-index:1}.kgoc-splash .kgoc-greeting-text{color:#fff!important;text-shadow:0 2px 8px #000b;font-size:clamp(26px,3vw,36px)!important;line-height:1.6!important}
.kgoc-fingerprint{font-size:92px;color:#ffdb92;text-shadow:0 0 24px #f3c879a9;position:relative;line-height:1.4;animation:kgocFingerprint 1.1s ease-out both}
.kgoc-fingerprint span{font-size:42px;position:absolute;left:50%;top:45%;transform:translate(-50%,-50%)}
.kgoc-countdown{position:relative;display:inline-flex;align-items:center;justify-content:center;margin:12px auto}.kgoc-countdown strong{position:absolute;font-size:28px;color:white}
.kgoc-splash.kgoc-splash-out{animation:kgocWelcomeOut .5s ease both}
@keyframes kgocWelcomeIn{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes kgocWelcomeOut{to{opacity:0;transform:translateY(-8px) scale(.98)}}
@keyframes kgocFingerprint{from{transform:scale(.87);opacity:.2}to{transform:scale(1);opacity:1}}

/* V5.5 – quiet privacy view: lighter blur, unified paired controls and generic notices */
body.kgoc-private::before{backdrop-filter:blur(2px)!important;-webkit-backdrop-filter:blur(2px)!important;background:rgba(9,24,46,.055)!important}
body:has(.three) .privacy-left-actions,body:has(.three) .v4-actions{top:25%!important;gap:20px!important;align-items:center!important}
body:has(.three) .privacy-left-actions button,body:has(.three) .v4-actions button{width:52px!important;height:52px!important;flex:0 0 52px!important;border-radius:16px!important;background:rgba(255,255,255,.50)!important;color:#1561a4!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 4px 15px #0003!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
body:has(.three) .privacy-left-actions button svg{display:block!important}
body.kgoc-private #duaSideBtn,body.kgoc-private #dua .expand,body.kgoc-private .dua .expand{display:none!important}
body.kgoc-private #privacyToggle{background:rgba(204,234,255,.7)!important}
.privacy-incoming{max-width:min(92vw,570px);text-align:center;flex-wrap:wrap;justify-content:center}
.privacy-notice-title{font-size:19px;color:#fff;text-shadow:0 1px 4px #000b}

/* V5.6: vertically stacked mobile-style notifications, no hidden personal data. */
body:has(.three) .dua .expand{display:none!important}
body.kgoc-private::before{backdrop-filter:blur(1.2px)!important;-webkit-backdrop-filter:blur(1.2px)!important;background:rgba(9,24,46,.04)!important}
body.kgoc-private .kgoc-privacy-stack{display:flex!important}
.kgoc-privacy-stack{position:fixed!important;top:17%!important;right:75px!important;left:auto!important;transform:none!important;width:min(430px,calc(100vw - 160px))!important;max-width:none!important;max-height:62vh!important;flex-direction:column!important;align-items:stretch!important;padding:12px!important;border-radius:20px!important;background:rgba(11,36,67,.92)!important;backdrop-filter:blur(5px)!important;gap:9px!important;z-index:280!important}
.kgoc-privacy-stack[hidden]{display:none!important}
.kgoc-stack-head{display:flex;justify-content:space-between;font-size:15px;font-weight:800;color:#f1f7ff;padding:2px 6px 5px}
.kgoc-stack-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.kgoc-stack-item{display:flex;align-items:center;gap:9px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);padding:10px 8px;color:#fff;flex-shrink:0}
.kgoc-stack-icon{font-size:24px;flex:0 0 32px;text-align:center}
.kgoc-stack-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;text-align:right}
.kgoc-stack-copy strong{font-size:16px;color:#fff}
.kgoc-stack-copy small{font-size:12px;color:#d3e4f9}
.kgoc-privacy-stack .kgoc-stack-view{background:#eaf5ff;color:#144574;font-size:13px;padding:8px 10px;border-radius:9px;flex-shrink:0}
.kgoc-privacy-stack .kgoc-stack-close{background:transparent;color:#fff;border:0;font-size:23px;padding:2px 7px;flex-shrink:0}
.kgoc-manager-wa{margin:12px 0;padding:14px;border:1px solid #b7d6ed;border-radius:13px;background:rgba(50,138,207,.07)}
.kgoc-manager-wa.selected{border-color:#26965c;background:rgba(38,150,92,.08)}
.kgoc-manager-wa label{font-weight:700;display:flex;align-items:center;gap:10px}
.kgoc-manager-wa input{width:20px;height:20px}
.kgoc-manager-wa small{display:block;color:#607a91;padding-top:6px}
@media(max-width:800px){.kgoc-privacy-stack{right:8px!important;left:8px!important;width:auto!important;top:13%!important}}

/* V6 admin management controls */
.office-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:12px 0}
.office-preview-item{display:flex;justify-content:space-between;align-items:center;padding:14px;border-radius:12px;background:rgba(20,100,170,.08);border:1px solid rgba(90,145,190,.2);gap:8px}
.office-preview-item span{font-weight:700;color:#2779ac}
.office-layout-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(100,130,160,.2);padding:10px 4px}
.office-layout-row label{display:flex;align-items:center;gap:9px;margin:0}
.office-backup-link{display:inline-block;padding:12px 20px;background:#1a78b3;color:white;border-radius:10px;text-decoration:none}

/* V6.2 privacy: show the current prayer above a persistent notification inbox. */
body.kgoc-private .privacy-dua-panel{display:flex!important}
.privacy-dua-panel{display:none;position:fixed;z-index:290;top:13%;right:75px;width:min(430px,calc(100vw - 160px));max-height:35vh;box-sizing:border-box;flex-direction:column;align-items:center;gap:10px;text-align:center;overflow-y:auto;padding:18px 22px;background:rgba(248,252,255,.94);color:#163e68;border-radius:18px;border:1px solid rgba(95,160,210,.35);box-shadow:0 8px 24px #0002}
.privacy-dua-title{font-size:14px;font-weight:800;color:#397eaf}
.privacy-dua-text{font-size:clamp(16px,2vw,24px);line-height:1.8;font-weight:750;white-space:pre-wrap}
.privacy-dua-panel button{border:0;border-radius:10px;padding:9px 18px;background:#1977b7;color:white;font-weight:800;cursor:pointer}
body.kgoc-private .kgoc-privacy-stack{top:52%!important;max-height:35vh!important}
.kgoc-stack-empty{padding:14px 8px;text-align:center;color:#e6efff;font-size:14px}
@media(max-width:800px){.privacy-dua-panel{right:8px;left:8px;width:auto;top:13%;max-height:33vh}body.kgoc-private .kgoc-privacy-stack{top:51%!important;max-height:35vh!important}}

/* V6.3 — Private view reuses the EXACT same original dua card and text capsule.
   Never replace it with a different design or move it. */
body.kgoc-private #dua.dua.panel {
 visibility:visible!important;
 pointer-events:auto!important;
 position:relative!important;
 z-index:40!important;
}
body.kgoc-private #dua .inside {visibility:visible!important;}
body.kgoc-private #apptBanner {display:none!important;}
body.kgoc-private #duaSideBtn {display:flex!important;}
body.kgoc-private .privacy-dua-panel {display:none!important;}
/* Notifications appear immediately BELOW the original dua, not over it. */
body.kgoc-private #privacyIncoming.kgoc-privacy-stack {
 top:var(--privacy-inbox-top,350px)!important;
 left:50%!important;
 right:auto!important;
 transform:translateX(-50%)!important;
 width:min(570px,calc(100vw - 155px))!important;
 max-height:var(--privacy-inbox-height,40vh)!important;
}
/* Reminder title is always visible; the 'مهم' badge must not cover it. */
body:has(.three) #reminderCard .reminder-label {
 display:inline-flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:center!important;
 gap:7px!important;
 white-space:nowrap!important;
}
body:has(.three) #reminderImportantBadge {
 position:static!important;
 flex:0 0 auto!important;
 margin:0!important;
 font-size:12px!important;
 line-height:1.3!important;
}
@media(max-width:800px){
 body.kgoc-private #privacyIncoming.kgoc-privacy-stack {
  width:calc(100vw - 24px)!important;
  max-height:var(--privacy-inbox-height,35vh)!important;
 }
}

/* V6.4: singular reminder heading, reminder number with icon, and live section counters. */
.section-count{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;border-radius:999px;padding:0 7px;margin-inline-start:9px;background:#dceeff;color:#0c447b;font-size:16px;font-weight:850;vertical-align:middle;box-sizing:border-box}
.reminder-identity{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:1px;direction:rtl}
.reminder-bell{flex-shrink:0;color:#155a9a}
body:has(.three) .v4-reminders .reminder-identity strong{font-size:18px!important;line-height:1.05!important}
.pantry-multi-heading{margin:16px 0 10px;text-align:center}
.pantry-multi-list{display:flex;flex-direction:column;gap:9px;max-height:43vh;overflow-y:auto;padding:3px}
.pantry-multi-row{border:1px solid #d5e4f4;background:#f6faff;border-radius:12px;padding:9px;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}
.pantry-multi-name{display:flex;gap:7px;align-items:center}.pantry-multi-name .pantry-svg{width:28px;height:28px}.pantry-multi-name svg{width:27px;height:27px}
.pantry-qty{display:flex;gap:9px;align-items:center}.pantry-qty button{min-width:36px;padding:5px 9px}.pantry-qty b{min-width:20px;text-align:center}
.pantry-multi-row input{grid-column:1/-1;width:100%;box-sizing:border-box;margin:0}
.pantry-menu #pantryMultiSend{margin-top:12px;width:100%}
.pantry-choice small{display:block;font-size:11px;color:#326fa2}
.pantry-toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100000;background:#0e6642;color:#fff;border-radius:12px;padding:12px 22px;box-shadow:0 8px 25px #0004;font-size:17px;text-align:center;max-width:85vw}
.pantry-toast-error{background:#a42335}

/* V6.5: executive identification beside clock. Official KGOC artwork from Logo.pdf. */
body:has(.three) .top .clockwrap{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:clamp(10px,1.3vw,24px)!important;direction:rtl!important;min-width:0!important}
body:has(.three) .kgoc-clock-text{flex:0 0 auto;text-align:right;min-width:0}
body:has(.three) .kgoc-director-card{flex:0 1 255px;min-width:0;max-width:255px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px 12px;border:1px solid rgba(255,255,255,.45);border-radius:16px;background:rgba(5,35,82,.33);box-shadow:0 6px 18px rgba(0,28,70,.12);color:#fff}
body:has(.three) .kgoc-director-logo{display:block;width:min(100%,205px);height:53px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(255,255,255,.7));background:rgba(255,255,255,.93);border-radius:7px;padding:5px}
body:has(.three) .kgoc-director-name{font-size:clamp(13px,1.2vw,17px);font-weight:900;line-height:1.4;text-shadow:0 1px 4px #001c48;white-space:nowrap}
body:has(.three) .kgoc-director-role{font-size:clamp(11px,1vw,13px);font-weight:700;line-height:1.35;text-shadow:0 1px 4px #001c48;white-space:nowrap}
@media(min-width:801px){body:has(.three) .top{grid-template-columns:minmax(245px,300px) minmax(170px,210px) minmax(410px,1fr)!important;min-height:138px!important}}
@media(min-width:801px) and (max-width:1080px){body:has(.three) .top{grid-template-columns:minmax(215px,265px) minmax(155px,185px) minmax(365px,1fr)!important;column-gap:6px!important}body:has(.three) .kgoc-director-card{padding:7px 6px;flex-basis:205px}body:has(.three) .kgoc-director-logo{height:42px}body:has(.three) .clock{font-size:clamp(42px,5vw,62px)!important}}
@media(max-width:800px){body:has(.three) .top .clockwrap{grid-column:1/-1!important;grid-row:auto!important;justify-content:center!important;flex-wrap:wrap}body:has(.three) .kgoc-director-card{flex-basis:240px}body:has(.three) .top .v4-reminders{grid-column:1!important;grid-row:auto!important}body:has(.three) .top .v4-weather{grid-column:2!important;grid-row:auto!important}}

/* V6.6 – integrated executive identity: no white logo plaque or separate card. */
body:has(.three) .top .clockwrap{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:clamp(14px,2.1vw,32px)!important;
  direction:rtl!important;min-width:0!important;
}
body:has(.three) .kgoc-clock-text{flex:1 1 auto!important;text-align:center!important;min-width:0!important}
body:has(.three) .kgoc-director-card{
  flex:0 0 clamp(200px,19vw,265px)!important;max-width:265px!important;
  padding:2px 10px!important;margin:0!important;gap:3px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;align-self:center!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;
}
body:has(.three) .kgoc-director-logo{
  width:clamp(175px,17vw,225px)!important;max-width:100%!important;
  height:auto!important;max-height:55px!important;object-fit:contain!important;
  padding:0!important;margin:0 auto 5px!important;background:transparent!important;
  border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 3px rgba(0,15,42,.6))!important;
}
body:has(.three) .kgoc-director-name{
  font-size:clamp(14px,1.24vw,17px)!important;font-weight:900!important;
  line-height:1.45!important;color:#fff!important;white-space:nowrap!important;
  text-shadow:0 2px 5px rgba(0,17,51,.95)!important;
}
body:has(.three) .kgoc-director-role{
  font-size:clamp(11px,.98vw,13px)!important;font-weight:700!important;
  line-height:1.45!important;color:#fff!important;white-space:nowrap!important;
  text-shadow:0 2px 5px rgba(0,17,51,.95)!important;
}
@media(min-width:801px){
  body:has(.three) .top{grid-template-columns:minmax(245px,300px) minmax(170px,210px) minmax(490px,1fr)!important;min-height:122px!important;align-items:center!important}
}
@media(min-width:801px) and (max-width:1080px){
  body:has(.three) .top{grid-template-columns:minmax(210px,265px) minmax(150px,185px) minmax(385px,1fr)!important;column-gap:6px!important}
  body:has(.three) .kgoc-director-card{flex-basis:190px!important;padding:0 3px!important}
  body:has(.three) .kgoc-director-logo{width:175px!important}
  body:has(.three) .kgoc-director-name{font-size:13px!important}
  body:has(.three) .kgoc-director-role{font-size:11px!important}
}
@media(max-width:800px){
  body:has(.three) .top .clockwrap{grid-column:1/-1!important;justify-content:center!important;flex-wrap:wrap!important}
  body:has(.three) .kgoc-director-card{flex-basis:220px!important}
}

/* V6.7 – high contrast company name, genuine KGOC emblem from supplied PDF */
body:has(.three) .kgoc-director-card{gap:2px!important;flex-basis:clamp(215px,19vw,265px)!important;padding:0 3px!important}
body:has(.three) .kgoc-director-logo{width:43px!important;height:43px!important;max-height:43px!important;object-fit:contain!important;margin:0 auto 2px!important;filter:drop-shadow(0 2px 3px rgba(0,20,50,.7))!important}
body:has(.three) .kgoc-company-name{color:#fff;font-size:clamp(14px,1.18vw,17px);font-weight:900;line-height:1.35;white-space:nowrap;text-shadow:0 2px 5px #061a3d,0 0 9px rgba(0,0,0,.85);letter-spacing:0}
body:has(.three) .kgoc-director-name{font-size:clamp(14px,1.2vw,17px)!important;line-height:1.35!important}
body:has(.three) .kgoc-director-role{line-height:1.3!important}
@media(min-width:801px) and (max-width:1080px){body:has(.three) .kgoc-director-card{flex-basis:210px!important}body:has(.three) .kgoc-company-name{font-size:14px!important}}

/* V6.8: original KGOC vector logo supplied by user, transparent PNG */
body:has(.three) .kgoc-director-logo{width:50px!important;height:50px!important;max-height:50px!important;object-fit:contain!important;margin:0 auto 3px!important}

/* V6.9: official emblem on the RIGHT of a readable, three-line executive signature. */
body:has(.three) .kgoc-director-card{
  flex:0 0 clamp(285px,29vw,390px)!important;max-width:390px!important;
  display:flex!important;flex-direction:row!important;direction:rtl!important;
  align-items:center!important;justify-content:center!important;
  gap:clamp(7px,.9vw,14px)!important;padding:0 4px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  text-align:right!important;min-width:0!important;
}
body:has(.three) .kgoc-director-logo{
  flex:0 0 auto!important;width:clamp(50px,5vw,70px)!important;
  height:clamp(56px,5.7vw,78px)!important;max-height:none!important;
  object-fit:contain!important;margin:0!important;padding:0!important;
  background:transparent!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))!important;
}
body:has(.three) .kgoc-director-details{
  min-width:0;display:flex;flex-direction:column;align-items:flex-start;
  gap:3px;text-align:right;direction:rtl;
}
body:has(.three) .kgoc-company-name{
  color:#fff!important;font-size:clamp(16px,1.55vw,22px)!important;
  font-weight:950!important;line-height:1.35!important;white-space:nowrap!important;
  text-shadow:0 3px 4px #000,0 1px 9px #000,0 0 2px #000!important;
}
body:has(.three) .kgoc-director-name{
  color:#061e52!important;font-size:clamp(22px,2.05vw,26px)!important;
  font-weight:900!important;line-height:1.35!important;white-space:nowrap!important;
  text-shadow:0 1px 3px rgba(255,255,255,.8)!important;
}
body:has(.three) .kgoc-director-role{
  color:#090909!important;font-size:clamp(14px,1.19vw,17px)!important;
  font-weight:850!important;line-height:1.35!important;white-space:nowrap!important;
  text-shadow:0 1px 3px rgba(255,255,255,.9)!important;
}
@media(min-width:801px) and (max-width:1080px){
  body:has(.three) .kgoc-director-card{flex-basis:285px!important}
  body:has(.three) .kgoc-director-logo{width:50px!important;height:60px!important}
  body:has(.three) .kgoc-company-name{font-size:16px!important}
  body:has(.three) .kgoc-director-name{font-size:22px!important}
  body:has(.three) .kgoc-director-role{font-size:13px!important}
}
@media(max-width:800px){
  body:has(.three) .kgoc-director-card{flex-basis:310px!important;max-width:100%!important}
}

/* KGOC: Excel preview and reminder carousel */
body:has(.three) .v4-reminders.important-reminder .reminder-carousel-line strong{color:#c11235!important}
body:has(.three) .v4-reminders .reminder-arrow{cursor:pointer;touch-action:manipulation;user-select:none;padding:3px}
.excel-modal{width:min(96vw,1180px)!important;max-width:1180px!important;max-height:90vh!important;overflow-y:auto!important}
.excel-table-wrap{max-height:65vh;overflow:auto;border:1px solid #ccd8e8;border-radius:10px;margin:10px 0;direction:ltr;background:white}
.excel-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:13px;direction:ltr;color:#172a42}
.excel-table td,.excel-table th{border:1px solid #d9e2ed;padding:8px 11px;text-align:left;white-space:nowrap}
.excel-table th{position:sticky;top:0;background:#dfeefe;z-index:1}
.excel-table tr:nth-child(even){background:#f5f9ff}
.excel-warning{color:#a52c2c;font-weight:700}
.kgoc-excel-upload{background:#edf6ff;padding:12px;border-radius:10px;margin:8px 0}
.kgoc-excel-upload input{max-width:100%}

/* V7.2 — KGOC attendance advisory report */
.attendance-modal{width:min(96vw,1250px)!important;max-width:1250px!important;max-height:91vh;overflow:auto}
.attendance-summary{border:1px solid rgba(20,70,125,.22);border-radius:12px;padding:12px;margin:12px 0;background:rgba(235,245,255,.83);color:#102c4d}
.attendance-summary h3{margin:0 0 8px}
.attendance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}
.attendance-metrics>div{background:#fff;border-radius:9px;padding:9px;font-size:12px}
.attendance-metrics strong{display:block;font-size:18px;margin-top:5px}
.attendance-warning{color:#b3261e;font-weight:700;line-height:1.5}
.attendance-modal .excel-table-wrap{max-height:44vh;overflow:auto}
.attendance-modal .excel-table{font-size:12px;white-space:nowrap}
.attendance-modal select{max-width:360px}

/* V7.3 — compact reminder and soft-colour Excel timecard review */
body:has(.three) .v4-reminders .reminder-identity strong{font-size:13px!important;line-height:1.15!important;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
@media(max-width:1050px){body:has(.three) .v4-reminders .reminder-identity strong{font-size:12px!important}}
.excel-modal{width:min(97vw,1280px)!important;max-width:1280px!important;box-sizing:border-box}
.excel-sheet-name{font-size:15px;margin:7px 0!important;color:#193a60}
.excel-meta{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 10px;direction:rtl}
.excel-meta>div{display:flex;flex-direction:column;gap:3px;min-width:140px;flex:1;background:#f3f7fc;border:1px solid #e2eaf3;border-radius:10px;padding:8px 12px}
.excel-meta small{color:#5b708a;font-size:11px}.excel-meta strong{color:#163e69;font-size:14px;overflow-wrap:anywhere}
.excel-filter-row{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start;direction:rtl;margin:8px 0}
.excel-filter-chip{border:1px solid #d9e4ee!important;border-radius:999px!important;background:#f5f8fc!important;color:#24435d!important;padding:6px 11px!important;font-size:12px!important;min-height:30px!important;box-shadow:none!important}
.excel-filter-chip.selected{border-color:#85a8c8!important;background:#e4f1ff!important;font-weight:800!important}
.excel-table-wrap{max-height:54vh!important;margin:8px 0!important}
.excel-table{font-size:12px!important}
.excel-table td,.excel-table th{padding:6px 9px!important}
.excel-table tbody tr.excel-row-complete{background:#e9f7ee!important}
.excel-table tbody tr.excel-row-review{background:#fff0f0!important}
.excel-table tbody tr.excel-row-weekend{background:#edf0f4!important;color:#657182!important}
.excel-table tbody tr.excel-row-exempt{background:#eaf4fd!important}
.excel-table .excel-status-cell{font-weight:700;direction:rtl;text-align:right}
.excel-table .excel-date-cell{font-weight:750;color:#304a67;min-width:55px}
.excel-review-note{font-size:12px;color:#66768b;margin:7px 0!important}
.excel-no-rows{text-align:center!important;color:#66768b}

/* V7.4 — uniform reminder title size regardless of priority. */
body:has(.three) .v4-reminders .reminder-identity strong,
body:has(.three) .v4-reminders.important-reminder .reminder-identity strong {
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
@media(max-width:1050px){
  body:has(.three) .v4-reminders .reminder-identity strong,
  body:has(.three) .v4-reminders.important-reminder .reminder-identity strong {font-size:12px!important;}
}
/* The counter represents current active reminder / total active reminders. */
body:has(.three) .v4-reminders .reminder-label,
body:has(.three) .v4-reminders.important-reminder .reminder-label {font-weight:700!important;}

/* V7.5: Excel review on touch tablets — table owns vertical and horizontal scroll. */
.excel-preview-modal{display:flex!important;flex-direction:column!important;overflow:hidden!important;height:min(92dvh,900px)!important;max-height:92dvh!important;padding:12px 16px!important;text-align:right!important}
.excel-preview-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:4px 26px 8px 4px}
.excel-preview-toolbar button{font-size:12px!important;padding:7px 11px!important}
.excel-preview-modal #excelSheetView{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.excel-preview-modal .excel-meta,.excel-preview-modal .excel-filter-row,.excel-preview-modal .excel-delay-summary,.excel-preview-modal .excel-review-note{flex:none}
.excel-preview-modal .excel-table-wrap{flex:1;min-height:100px;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:auto;position:relative}
.excel-preview-modal .excel-table th{position:sticky;top:0;z-index:3}
.excel-delay-summary{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.excel-delay-summary>div{flex:1;min-width:135px;border:1px solid #dce8f1;background:#f0f7ff;border-radius:9px;padding:7px 10px}
.excel-delay-summary small{display:block;font-size:11px;color:#5a718a}
.excel-delay-summary strong{display:block;font-size:16px;color:#17466d;margin-top:2px}
.excel-delay-summary .excel-delay-excess{background:#fff1ef;border-color:#f3cfca}
.excel-delay-summary .excel-delay-excess strong{color:#a5372c}
.excel-preview-modal .excel-review-note{margin:3px 0!important;padding:2px 0;line-height:1.3}
@media(max-height:650px){.excel-preview-modal .excel-meta>div{padding:5px 8px}.excel-preview-modal .excel-delay-summary>div{padding:4px 8px}}

/* V7.6: Android kiosk overscroll guard and compact two-line English review statuses. */
html:has(.excel-preview-modal),body:has(.excel-preview-modal){overscroll-behavior-y:none!important;overflow:hidden!important}
body:has(.excel-preview-modal) #modalroot,body:has(.excel-preview-modal) #modalroot .layer{overscroll-behavior:none!important}
.excel-preview-modal{overscroll-behavior:none!important;touch-action:pan-x pan-y}
.excel-preview-modal .excel-table-wrap{overscroll-behavior-x:contain!important;overscroll-behavior-y:none!important;touch-action:pan-x pan-y!important}
.excel-preview-modal .excel-status-cell{white-space:normal!important;min-width:175px;max-width:300px;direction:ltr!important;text-align:left!important;font-size:11px;line-height:1.4}
.excel-preview-modal .excel-status-line{display:block;white-space:normal}
.excel-preview-modal .excel-status-line+.excel-status-line{font-weight:500;margin-top:2px;color:#53667a}
.excel-preview-modal .excel-filter-chip[aria-pressed="true"]{outline:1px solid #86a7c4;outline-offset:1px}

/* V7.7: compact Excel review, three-line readable status and safe tablet scrolling. */
html:has(.excel-preview-modal),body:has(.excel-preview-modal){height:100%!important;overflow:hidden!important;overscroll-behavior:none!important}
#modalroot:has(.excel-preview-modal),#modalroot:has(.excel-preview-modal) .layer{touch-action:none;overscroll-behavior:none;overflow:hidden}
.excel-preview-modal{touch-action:none!important;overflow:hidden!important}
.excel-preview-modal #excelSheetView{touch-action:none}
.excel-preview-modal .excel-table-wrap{touch-action:pan-x pan-y!important;overscroll-behavior:none!important;min-height:0!important}
.excel-preview-modal .excel-status-cell{font-size:15px!important;line-height:1.4!important;min-width:240px!important;max-width:340px!important;font-weight:750!important}
.excel-preview-modal .excel-status-line{display:block!important;min-height:21px}
.excel-preview-modal .excel-status-line+.excel-status-line{font-weight:700!important;margin-top:3px!important;color:#43576c}
.excel-preview-modal .excel-table td,.excel-preview-modal .excel-table th{font-weight:700!important;font-size:14px!important}
.excel-preview-modal .excel-meta{align-items:stretch}
.excel-preview-modal .excel-inline-close{align-self:stretch;border-radius:10px!important;background:#f1f5fa!important;color:#254561!important;border:1px solid #dce7f2!important;padding:8px 18px!important;min-width:96px;font-size:14px!important;font-weight:800!important}
.excel-preview-modal .excel-delay-summary>button.excel-metric-card{flex:1;min-width:135px;border:1px solid #dce8f1;background:#f0f7ff;color:#17466d;border-radius:9px;padding:7px 10px;text-align:right;cursor:pointer}
.excel-preview-modal .excel-delay-summary>button.excel-metric-card.active{background:#dceeff;border-color:#6b9fc8;box-shadow:inset 0 0 0 1px #8db5d7}
.excel-preview-modal .excel-delay-summary .excel-metric-card small{display:block;font-size:11px;color:#5a718a}
.excel-preview-modal .excel-delay-summary .excel-metric-card strong{display:block;font-size:16px;margin-top:2px}

/* V7.8 — full viewport Excel review, compact shift headings, centered values. */
#modalroot:has(.excel-preview-modal){position:fixed!important;inset:0!important;z-index:99999!important;overflow:hidden!important;touch-action:none!important}
#modalroot:has(.excel-preview-modal)>.layer{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;margin:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;touch-action:none!important}
#modalroot .excel-preview-modal{position:relative!important;box-sizing:border-box!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;border-radius:0!important;margin:0!important;padding:10px 12px!important;overflow:hidden!important;touch-action:none!important}
#modalroot .excel-preview-modal #excelSheetView{flex:1!important;min-height:0!important;overflow:hidden!important;touch-action:none!important}
#modalroot .excel-preview-modal .excel-table-wrap{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:none!important;touch-action:none!important;-webkit-overflow-scrolling:auto!important}
#modalroot .excel-preview-modal .excel-table td:not(.excel-status-cell),
#modalroot .excel-preview-modal .excel-table th{text-align:center!important;vertical-align:middle!important}
#modalroot .excel-preview-modal .excel-table .excel-status-cell{text-align:left!important;direction:ltr!important;vertical-align:middle!important}

/* V8.1 — Reminder tile: reversed count/title, bell in heading, visible details. */
body:has(.three) .top #reminderCard{justify-content:center!important;gap:2px!important;padding:3px 8px!important;overflow:hidden!important}
body:has(.three) #reminderCard .reminder-label{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;transform:translateY(-3px);line-height:1.1!important}
#reminderCard .reminder-heading{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
#reminderCard .reminder-heading-bell{flex-shrink:0;color:inherit}
body:has(.three) #reminderCard .reminder-carousel-line{min-height:17px;gap:5px;transform:translateY(-3px)}
body:has(.three) #reminderCard .reminder-identity{gap:0;min-width:0}
body:has(.three) #reminderCard .reminder-identity strong{font-size:13px!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:has(.three) #reminderCard .reminder-card-details{width:100%;max-width:100%;min-height:14px;line-height:1.15;font-size:11px;font-weight:650;text-align:center;color:#d9ebff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translateY(-3px)}
@media(max-width:1050px){body:has(.three) #reminderCard .reminder-card-details{font-size:10px}}
/* V8.1 — Timecard: green for valid within-allowance, red for even 1 minute over a limit. */
.excel-preview-modal .excel-table tbody tr.excel-row-allowance{background:#c3e6ce!important}
.excel-preview-modal .excel-table tbody tr.excel-row-over-limit{background:#f6c7cb!important}
.excel-preview-modal .excel-status-suggestion{font-weight:900!important;color:#1d4ed8!important;direction:ltr;unicode-bidi:plaintext}
.excel-preview-modal .excel-status-reason{font-weight:800!important;color:#a31e2a!important}


/* V8.2 — Reminder card: text before bell (RTL), larger title,
   navy details visible on two lines on the main screen. */
body:has(.three) #reminderCard .reminder-heading{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  direction:rtl!important;
}
body:has(.three) #reminderCard .reminder-identity strong,
body:has(.three) #reminderCard.important-reminder .reminder-identity strong{
  font-size:17px!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body:has(.three) #reminderCard .reminder-card-details{
  color:#09295b!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
  min-height:0!important;
  max-height:34px!important;
  transform:translateY(-2px)!important;
}
@media(max-width:1050px){
  body:has(.three) #reminderCard .reminder-identity strong,
  body:has(.three) #reminderCard.important-reminder .reminder-identity strong{font-size:16px!important}
  body:has(.three) #reminderCard .reminder-card-details{font-size:13px!important;max-height:32px!important}
}


/* V8.3: wider reminders / compact weather, keeping weather data and typography. */
@media (min-width:801px){
 body:has(.three) .top{grid-template-columns:minmax(260px,320px) minmax(0,2fr) minmax(0,3fr)!important;column-gap:8px!important}
 body:has(.three) .top .v4-weather,body:has(.three) .top .v4-reminders{width:100%!important;max-width:100%!important;min-width:0!important;justify-self:stretch!important;margin:0!important}
 body:has(.three) .top .v4-weather{padding:4px 6px!important;gap:2px!important}
 body:has(.three) .v4-weather .forecast-day{padding:1px 2px!important;gap:1px!important}
 body:has(.three) .v4-weather .weather-now{gap:2px!important}
}
body:has(.three) #reminderCard .reminder-identity strong,
body:has(.three) #reminderCard.important-reminder .reminder-identity strong{
 font-size:19px!important;line-height:1.1!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:anywhere!important;text-align:center!important;
}
body:has(.three) #reminderCard .reminder-card-details{color:#09295b!important;font-size:15px!important;font-weight:850!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;max-height:38px!important;line-height:1.24!important;transform:translateY(-3px)!important}
body:has(.three) #reminderCard .reminder-heading{direction:rtl!important;display:inline-flex!important;gap:5px!important;align-items:center!important}
body:has(.three) #reminderCard .reminder-label{flex-shrink:0!important}
body:has(.three) .v4-actions{top:19%!important;gap:13px!important}
body:has(.three) .v4-actions .attendance-fab{position:relative!important;overflow:visible!important}
.attendance-badge{position:absolute;top:-9px;right:-9px;min-width:22px;height:22px;padding:0 4px;box-sizing:border-box;border-radius:99px;background:#dc2626;color:#fff;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 2px 7px #0006;line-height:1;z-index:10}
.attendance-badge[hidden]{display:none!important}
/* Standalone full-viewport attendance dashboard */
body.attendance-page{margin:0;min-height:100vh;background:linear-gradient(140deg,#e7f2fb,#f6fbff);color:#163654;overflow:hidden}
.attendance-screen{height:100dvh;box-sizing:border-box;padding:12px 17px;display:flex;flex-direction:column;gap:8px;max-width:none!important}
.attendance-screen-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:14px;background:#103d6b;color:white;padding:11px 16px;flex-shrink:0}
.attendance-screen-header h1{margin:0;font-size:23px;color:white}
.attendance-screen-header p{margin:3px 0 0;font-size:12px;color:#d6eaff}
.attendance-header-buttons{display:flex;align-items:center;gap:8px}
.attendance-header-buttons button,.attendance-back{padding:8px 12px;border-radius:9px;border:1px solid #bad7ef;background:#fff;color:#123d68;text-decoration:none;font-weight:800;white-space:nowrap;cursor:pointer;font-size:13px}
#attendanceContent{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:hidden}
.attendance-disclaimer,.attendance-footer{margin:0;font-size:11px;color:#71531a}
.attendance-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:white;padding:9px;border-radius:11px;flex-shrink:0}
.attendance-controls label{font-size:12px;font-weight:800;display:flex;flex-direction:column;gap:4px;min-width:160px;flex:1}
.attendance-controls select,.attendance-controls input{width:100%;height:37px;box-sizing:border-box;border:1px solid #b9d2e7;border-radius:8px;padding:5px 9px;background:#f8fbff;color:#173654}
.attendance-top-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;flex-shrink:0}
.attendance-top-metrics>div{background:white;border:1px solid #d5e5f2;border-radius:11px;padding:9px 12px;font-size:12px;font-weight:700}
.attendance-top-metrics strong{display:block;color:#134878;font-size:23px}
.attendance-summary{background:white;border:1px solid #d5e5f2;border-radius:11px;padding:8px 12px;flex-shrink:0}
.attendance-summary h3{margin:0 0 7px;font-size:14px}
.attendance-summary .attendance-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.attendance-summary .attendance-metrics>div{background:#eaf3fb;padding:5px;border-radius:7px;font-size:10px}
.attendance-summary .attendance-metrics strong{display:block;font-size:14px}
.attendance-table-scroll{min-height:0;flex:1;overflow:auto;background:white;border:1px solid #bcd4e8;border-radius:11px;overscroll-behavior:contain}
.attendance-grid{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:1050px;white-space:nowrap;text-align:center}
.attendance-grid th{position:sticky;top:0;background:#164a79;color:white;padding:12px 10px;z-index:2}
.attendance-grid td{border-bottom:1px solid #e1e9f2;padding:10px 9px;font-weight:650}
.attendance-grid tr.attendance-row-allowance{background:#b9dfc6!important}
.attendance-grid tr.attendance-row-complete{background:#e0f1e3!important}
.attendance-grid tr.attendance-row-red{background:#f6c5ca!important}
.attendance-grid tr.attendance-row-weekend{background:#e9ebee!important}
.attendance-grid td.attendance-action{color:#174fbb;font-weight:900!important;white-space:normal;min-width:170px;max-width:300px}
.attendance-grid td.attendance-result{font-weight:850}
.attendance-warning{color:#a01826;font-weight:850}
.attendance-loading{padding:35px;text-align:center;background:white;border-radius:12px;font-weight:700}
.attendance-error{color:#b21d30}
.attendance-upload-card{padding:15px;border:1px solid #c9ddec;border-radius:12px;background:#f7fbff;margin:12px 0}
.attendance-upload-card input{margin:8px 0 14px;max-width:100%}
.attendance-preview-link{display:inline-flex;align-items:center;border-radius:8px;padding:9px 14px;background:#e1edfa;color:#164a79;font-weight:800;text-decoration:none}
@media(max-width:800px){body.attendance-page{overflow:auto}.attendance-screen{min-height:100dvh;height:auto}.attendance-screen-header{flex-wrap:wrap}.attendance-table-scroll{min-height:55vh}.attendance-top-metrics strong{font-size:18px}.attendance-summary .attendance-metrics{grid-template-columns:repeat(3,1fr)}}
/* Final grid correction: reminder is column 2, weather column 3 (LTR header). */
@media(min-width:801px){
 body:has(.three) .top{grid-template-columns:minmax(260px,320px) minmax(0,3fr) minmax(0,2fr)!important}
 body:has(.three) .top #reminderCard{height:112px!important;min-height:112px!important;max-height:112px!important;padding:7px 12px!important;gap:4px!important}
 body:has(.three) .top #weather{min-height:112px!important;height:112px!important;max-height:112px!important}
}


/* V8.4: Manager header 30% clock, 40% reminder, 30% weather. */
@media(min-width:801px){
 body:has(.three) .top{grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr)!important;column-gap:8px!important}
 body:has(.three) .top .clockwrap{min-width:0!important;max-width:100%!important}
 body:has(.three) .top .v4-reminders,body:has(.three) .top .v4-weather{min-width:0!important;max-width:100%!important;width:100%!important}
 body:has(.three) .top .v4-weather{padding:3px 5px!important;gap:2px!important}
 /* Bring the three lower panels up, and extend their bottom display area. */
 body:has(.three) .dua{height:clamp(155px,23dvh,218px)!important;margin-bottom:8px!important}
 body:has(.three) .three{flex:1!important;min-height:0!important}
 body:has(.three) .three>section{height:100%!important;min-height:0!important}
 /* Move both floating icon columns back alongside the dua panel. */
 body:has(.three) .v4-actions,body:has(.three) .privacy-left-actions{top:29%!important;gap:17px!important}
}
@media(min-width:801px) and (max-width:1100px){
 body:has(.three) .top .kgoc-director-name{font-size:clamp(17px,2vw,25px)!important}
}
/* Attendance: no large blue header; maximize table area. */
body.attendance-page .attendance-screen{padding:9px 12px 12px!important;gap:5px!important;position:relative}
body.attendance-page .attendance-report-meta{font-size:11px;color:#647b91;text-align:right;padding:2px 8px 2px 90px;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.attendance-page .attendance-back-floating{position:fixed;top:9px;left:12px;z-index:15;background:#fff;color:#164a79;box-shadow:0 2px 8px #18486b22;padding:6px 10px!important;font-size:12px!important;border:1px solid #d2e3f1!important}
body.attendance-page .attendance-table-scroll{flex:1!important;min-height:0!important}
@media(max-width:800px){
 body.attendance-page .attendance-report-meta{padding-left:88px}
 body:has(.three) .v4-actions,body:has(.three) .privacy-left-actions{top:38%!important;gap:18px!important}
}


/* V8.5 — clock 50%, reminder 30%, weather 20%; preserve existing content. */
@media (min-width:801px){
 body:has(.three) .top{grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,2fr)!important;column-gap:7px!important}
 body:has(.three) .top .clockwrap,body:has(.three) .top #reminderCard,body:has(.three) .top #weather{min-width:0!important;max-width:100%!important}
 body:has(.three) .top #weather{padding:3px 4px!important;gap:1px!important}
 body:has(.three) .top #weather .forecast-day{padding:1px!important;gap:1px!important}
 /* Lift the prayer text slightly and give the three panels a little more height,
    keeping a visible gap between panels and the bottom edge. */
 body:has(.three) .dua{height:clamp(145px,21dvh,208px)!important;margin-bottom:6px!important}
 body:has(.three) .dua .inside{transform:translateY(5px)!important}
 body:has(.three) .app{padding-bottom:25px!important}
 body:has(.three) .three{min-height:0!important;flex:1!important}
 body:has(.three) .three>section{min-height:0!important;height:100%!important}
}


/* V8.8: Fixed-size header, DOM order clock / reminder / weather. */
@media (min-width:801px){
 body:has(.three) .top{
   display:grid!important;
   grid-template-columns:515px 300px 400px!important;
   column-gap:5px!important;
   justify-content:start!important;
   align-items:start!important;
   overflow:visible!important;
 }
 body:has(.three) .top .clockwrap{
   grid-column:1!important;grid-row:1!important;
   width:515px!important;min-width:515px!important;max-width:515px!important;
   display:flex!important;gap:5px!important;box-sizing:border-box!important;
 }
 body:has(.three) .top .kgoc-clock-text{
   flex:0 0 250px!important;width:250px!important;min-width:250px!important;max-width:250px!important;
 }
 body:has(.three) .top .kgoc-director-card{
   flex:0 0 260px!important;width:260px!important;min-width:260px!important;max-width:260px!important;box-sizing:border-box!important;
 }
 body:has(.three) .top #reminderCard{
   grid-column:2!important;grid-row:1!important;width:300px!important;
   min-width:300px!important;max-width:300px!important;box-sizing:border-box!important;
 }
 body:has(.three) .top #weather{
   grid-column:3!important;grid-row:1!important;width:400px!important;
   min-width:400px!important;max-width:400px!important;box-sizing:border-box!important;
 }
}
/* On smaller landscape viewports, scale the entire 1225px header together
   so no card changes width independently or overlaps its neighbor. */
@media (min-width:801px) and (max-width:1255px){
 body:has(.three) .top{transform:scale(.80)!important;transform-origin:top left!important;width:1225px!important;max-width:none!important;}
}


/* V8.9 — exact right-to-left header order: clock, manager, reminders, weather.
   Fixed card widths; viewport-fit zoom is applied to the whole header by JS. */
@media (min-width:801px){
 body:has(.three) .top{
  direction:rtl!important;display:grid!important;
  grid-template-columns:515px 300px 400px!important;
  column-gap:5px!important;row-gap:0!important;
  width:1225px!important;min-width:1225px!important;max-width:none!important;
  margin-left:auto!important;margin-right:0!important;
  justify-content:start!important;align-items:center!important;
  transform:none!important;overflow:visible!important;
 }
 body:has(.three) .top .clockwrap{
  grid-column:1!important;grid-row:1!important;
  direction:rtl!important;justify-content:flex-start!important;
  width:515px!important;min-width:515px!important;max-width:515px!important;
  gap:5px!important;flex-wrap:nowrap!important;
 }
 body:has(.three) .top .kgoc-clock-text{
  flex:0 0 250px!important;width:250px!important;min-width:250px!important;max-width:250px!important;
 }
 body:has(.three) .top .kgoc-director-card{
  flex:0 0 260px!important;width:260px!important;min-width:260px!important;max-width:260px!important;
  padding:0 3px!important;gap:5px!important;overflow:hidden!important;
 }
 body:has(.three) .top .kgoc-director-logo{width:45px!important;height:60px!important;flex:0 0 45px!important}
 body:has(.three) .top .kgoc-company-name{font-size:15px!important}
 body:has(.three) .top .kgoc-director-name{font-size:18px!important}
 body:has(.three) .top .kgoc-director-role{font-size:12px!important}
 body:has(.three) .top #reminderCard{
  grid-column:2!important;grid-row:1!important;
  width:300px!important;min-width:300px!important;max-width:300px!important;
 }
 body:has(.three) .top #weather{
  grid-column:3!important;grid-row:1!important;
  width:400px!important;min-width:400px!important;max-width:400px!important;
 }
}
@media (min-width:801px) and (max-width:1255px){
 body:has(.three) .top{transform:none!important;transform-origin:top right!important;
  width:1225px!important;max-width:none!important;}
}

/* V8.10 — balanced top bar, larger manager name, raised side actions. */
@media (min-width:801px){
 body:has(.three) .top{
  grid-template-columns:535px 280px 360px!important;
  width:1185px!important;min-width:1185px!important;column-gap:5px!important;
 }
 body:has(.three) .top .clockwrap{width:535px!important;min-width:535px!important;max-width:535px!important;gap:5px!important}
 body:has(.three) .top .kgoc-director-card{flex:0 0 280px!important;width:280px!important;min-width:280px!important;max-width:280px!important}
 body:has(.three) .top .kgoc-director-name{font-size:20px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:normal!important}
 body:has(.three) .top #reminderCard{width:280px!important;min-width:280px!important;max-width:280px!important}
 body:has(.three) .top #weather{width:360px!important;min-width:360px!important;max-width:360px!important}
}
/* Side action groups: lift above lower appointments panel and tighten spacing. */
body:has(.three) .v4-actions,body:has(.three) .privacy-left-actions{top:22%!important;gap:10px!important}
@media(max-width:800px){body:has(.three) .v4-actions,body:has(.three) .privacy-left-actions{top:24%!important;gap:9px!important}}


/* V8.11 — larger manager identity, compact reminders/weather (no weather font changes). */
@media (min-width:801px){
 body:has(.three) .top{
   grid-template-columns:575px 250px 330px!important;
   width:1165px!important;min-width:1165px!important;
   column-gap:5px!important;
 }
 body:has(.three) .top .clockwrap{
   width:575px!important;min-width:575px!important;max-width:575px!important;gap:5px!important;
 }
 body:has(.three) .top .kgoc-clock-text{
   flex:0 0 250px!important;width:250px!important;min-width:250px!important;max-width:250px!important;
 }
 body:has(.three) .top .kgoc-director-card{
   flex:0 0 320px!important;width:320px!important;min-width:320px!important;max-width:320px!important;
 }
 body:has(.three) .top .kgoc-director-name{
   font-size:24px!important;line-height:1.17!important;
   white-space:normal!important;overflow-wrap:normal!important;
 }
 body:has(.three) .top #reminderCard{
   width:250px!important;min-width:250px!important;max-width:250px!important;
 }
 body:has(.three) .top #weather{
   width:330px!important;min-width:330px!important;max-width:330px!important;
 }
}
/* Lift only the three right-side action buttons; keep their tight spacing. */
body:has(.three) .v4-actions{top:18%!important;gap:9px!important}
/* Earlier appointment notification, without clipping the banner at the prayer card edge. */
body:has(.three) .dua{overflow:visible!important}
body:has(.three) .dua::before{border-radius:inherit!important}
body:has(.three) .dua .appointment-banner{top:-20px!important}
@media(max-width:800px){body:has(.three) .v4-actions{top:20%!important;gap:9px!important}}

/* V8.5.1: requested small layout refinements */
@media (min-width:801px){body:has(.three) .top .kgoc-director-name{font-size:19px!important;white-space:nowrap!important;overflow-wrap:normal!important;letter-spacing:-.25px!important}}
body:has(.three) .dua .appointment-banner{top:-12.5px!important}
body:has(.three) #reminderCard .reminder-label{direction:rtl!important}

/* V8.5.3: Standalone attendance uses the same visual layout as reminder analysis. */
body.attendance-page .attendance-screen{overflow:auto}
body.attendance-page .attendance-reminder-layout{padding:12px 18px;display:flex;flex-direction:column;gap:10px}
body.attendance-page .attendance-reminder-layout h2{font-size:19px;margin:0}
body.attendance-page .attendance-reminder-label{display:flex;align-items:center;gap:12px;font-weight:700}
body.attendance-page .attendance-reminder-label select{min-width:220px}
body.attendance-page .attendance-reminder-layout .excel-table-wrap{overflow:auto;max-height:none}
body.attendance-page .attendance-reminder-layout .excel-table{width:100%}

.attendance-print-button{background:#155a9d!important;color:white!important;padding:8px 14px!important;cursor:pointer}
@media print{@page{size:A4 landscape;margin:9mm}html,body{background:#fff!important;color:#111!important;overflow:visible!important;height:auto!important}.attendance-screen,.attendance-page,.excel-preview-modal,.excel-table-wrap{height:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}.attendance-print-button,.excel-filter-row,.excel-metric-card button,button{display:none!important}.excel-table{width:100%!important;font-size:9px!important}.excel-table tr{break-inside:avoid}.excel-table thead{display:table-header-group}}
@media(prefers-reduced-motion:reduce){body:has(.three) #appts .entry,body:has(.three) .dua .appointment-banner{animation:none!important;opacity:1!important}}


/* V8.6.1 — print every attendance row across landscape pages in full color */
.attendance-screen-actions{display:flex;justify-content:flex-end;gap:12px;flex-shrink:0}
.attendance-screen-actions button{background:#155a9d;color:#fff;padding:8px 18px}
.attendance-screen-actions .attendance-close-button{background:#e8eef5;color:#183d65}
.reminder-modal-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
.reminder-modal-nav h2{text-align:center;margin:0!important}
.reminder-modal-buttons{display:flex;justify-content:space-between;align-items:center;gap:40px;width:100%}
.reminder-modal-buttons button{min-width:105px}
/* Appointments: color the whole border, with a subtle pulse. */
body:has(.three) #appts .entry{border:2px solid var(--appointment-accent,#7295BB)!important;animation:kgocBorderPulse 3s ease-in-out infinite!important}
body:has(.three) #appts .entry.appointment-soon{--appointment-accent:#27B3B0!important}
body:has(.three) #appts .entry.appointment-yellow{--appointment-accent:#D4A72C!important}
body:has(.three) #appts .entry.appointment-alert{--appointment-accent:#E65B65!important}
body:has(.three) #appts .entry.appointment-active{--appointment-accent:#37A878!important;animation:none!important}
/* The banner is outside the dua panel in some layouts: avoid selector dependence. */
body:has(.three) #apptBanner:not(.hidden){display:block!important;visibility:visible!important;z-index:100!important;opacity:1;top:12px!important;border:2px solid var(--appointment-accent,#27B3B0)!important;animation:kgocNotificationCycle 6s ease-in-out infinite!important;background:rgba(255,255,255,.95)!important;max-width:90%;overflow:hidden;text-overflow:ellipsis}
body:has(.three) #dua{overflow:visible!important}
@media print{
 @page{size:A4 landscape;margin:10mm}
 html,body,body.attendance-page{width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 .attendance-screen-actions,.attendance-print-button,.excel-filter-row,.attendance-report-meta,button{display:none!important}
 body.attendance-page .attendance-screen,body.attendance-page #attendanceContent,body.attendance-page .excel-preview-modal,body.attendance-page #excelSheetView,body.attendance-page .excel-table-wrap{display:block!important;position:static!important;float:none!important;transform:none!important;contain:none!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
 body.attendance-page .excel-table{width:100%!important;table-layout:auto!important;border-collapse:collapse!important;font-size:9px!important;break-inside:auto!important}
 body.attendance-page .excel-table thead{display:table-header-group!important}
 body.attendance-page .excel-table tbody{display:table-row-group!important}
 body.attendance-page .excel-table tr{break-inside:avoid!important;page-break-inside:avoid!important}
 body.attendance-page .excel-table td,body.attendance-page .excel-table th{white-space:normal!important;overflow:visible!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
 body.attendance-page .excel-metric-card,body.attendance-page .excel-status-line{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
}


/* V8.6.2: visible appointment state borders and reliable notification animation */
body:has(.three) #appts .entry{border-style:solid!important;border-width:2px!important;border-color:var(--appointment-accent,#7295BB)!important;animation:kgocVisibleBorderPulse 3s ease-in-out infinite!important}
body:has(.three) #appts .entry.appointment-soon{--appointment-accent:#27B3B0!important}
body:has(.three) #appts .entry.appointment-yellow{--appointment-accent:#D4A72C!important}
body:has(.three) #appts .entry.appointment-alert{--appointment-accent:#E65B65!important}
body:has(.three) #appts .entry.appointment-active{--appointment-accent:#37A878!important;animation:none!important}
@keyframes kgocVisibleBorderPulse{0%,100%{border-color:var(--appointment-accent);box-shadow:0 0 0 0 transparent}50%{border-color:var(--appointment-accent);box-shadow:0 0 13px 2px var(--appointment-accent)}}
body:has(.three) #apptBanner:not(.hidden){display:block!important;visibility:visible!important;position:absolute!important;top:12px!important;left:50%!important;z-index:100!important;border:2px solid var(--appointment-accent,#27B3B0)!important;background:rgba(255,255,255,.96)!important;animation:kgocVisibleBannerCycle 6s linear infinite!important}
@keyframes kgocVisibleBannerCycle{0%,82%{opacity:1}90%,99%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){body:has(.three) #appts .entry,body:has(.three) #apptBanner:not(.hidden){animation:none!important;opacity:1!important}}

/* V8.6.3: keep active appointment accents and notification colors visible. */
body:has(.three) #appts .entry.appointment-active{--appointment-accent:#37A878!important}
body:has(.three) #apptBanner:not(.hidden){color:var(--appointment-accent,#27B3B0)!important}

/* V8.6.4: approved executive display refinements */
body:has(.three) #clock{display:inline-flex!important;flex-direction:row!important;direction:ltr!important;align-items:baseline!important;justify-content:center!important;gap:9px!important;unicode-bidi:isolate!important}
body:has(.three) #clock .kgoc-clock-period{order:1!important;font-size:.48em!important;font-weight:700!important;letter-spacing:0!important}
body:has(.three) #clock .kgoc-clock-digits{order:0!important;font-size:1em!important;font-weight:inherit!important;letter-spacing:inherit!important}
body:has(.three) #apptBanner:not(.hidden){background:#173C61!important;color:#fff!important;border-color:var(--appointment-accent,#27B3B0)!important;box-shadow:0 0 12px color-mix(in srgb,var(--appointment-accent,#27B3B0) 35%,transparent)!important}
body:has(.three) .section-count{background:#fff!important;color:#173C61!important;border:1px solid #e1eaf4!important}
body:has(.three) #appts .entry.appointment-soon{--appointment-accent:#27B3B0!important}


/* KGOC V2 TEST — appointment banner colors, placement and size (2026-10-22). */
body:has(.three) #dua #apptBanner:not(.hidden){
  top:-20px!important;
  min-height:58px!important;
  padding:14px 26px!important;
  min-width:min(420px,80%)!important;
  max-width:90%!important;
  border-radius:19px!important;
  border:3px solid var(--appointment-accent,#27B3B0)!important;
  background:color-mix(in srgb,var(--appointment-accent,#27B3B0) 23%,white)!important;
  color:#173C61!important;
  font-size:19px!important;
  font-weight:800!important;
  line-height:1.5!important;
  white-space:normal!important;
  text-overflow:clip!important;
  overflow:visible!important;
  text-align:center!important;
  box-shadow:0 6px 22px color-mix(in srgb,var(--appointment-accent,#27B3B0) 30%,transparent)!important;
}
@media(max-width:800px){
 body:has(.three) #dua #apptBanner:not(.hidden){min-width:0!important;max-width:94%!important;font-size:16px!important;padding:11px 15px!important;top:-14px!important}
}

/* V2 TEST: quick messages */
.quick-manager-list{margin:14px 0;display:flex;flex-wrap:wrap;gap:9px}.quick-manager-list h3{width:100%;margin:5px 0}.quick-manager-list .quick-send{white-space:normal;text-align:center;max-width:100%;overflow-wrap:anywhere}.quick-edit-row{margin:8px 0}.quick-edit-row input{flex:1;min-width:180px}.kgoc-quick-toast{position:fixed;z-index:99999;bottom:95px;left:50%;transform:translateX(-50%);background:#183f6d;color:#fff;border-radius:12px;padding:14px 22px;box-shadow:0 5px 25px #0004;font-weight:700}

.kgoc-route-details{border:1px solid #a8d1e4;border-radius:12px;padding:12px;margin:12px 0;line-height:1.9;font-size:16px}.kgoc-route-details strong{font-weight:600}

/* V2 TEST ONLY — executive appointment notification, 15-second rotation. */
body:has(.three) .appointment-banner{
 top:-12px!important;left:50%;transform:translateX(-50%);width:min(720px,80vw);max-width:min(720px,80vw)!important;
 padding:15px 19px!important;cursor:pointer;direction:rtl;text-align:right!important;
 border:1px solid rgba(255,255,255,.88)!important;border-radius:24px!important;
 background:rgba(245,250,255,.94)!important;color:#0b2f68!important;
 box-shadow:0 12px 35px rgba(21,60,106,.21)!important;
 white-space:normal!important;line-height:1.4;backdrop-filter:blur(15px)
}
.kgoc-alert-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.kgoc-alert-heading{min-width:0;display:flex;flex-direction:column;gap:1px}
.kgoc-alert-heading strong{font-size:19px;overflow-wrap:anywhere}
.kgoc-alert-kicker{font-size:11px;color:#69819f}
.kgoc-alert-countdown{border-radius:14px;padding:7px 11px;background:color-mix(in srgb,var(--appointment-accent),white 85%);color:var(--appointment-accent);font-size:13px;white-space:nowrap;font-weight:800}
.kgoc-alert-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.kgoc-alert-stats>div{padding:8px 12px;border:1px solid #e0ebf8;border-radius:13px;background:#ffffff9c;display:flex;flex-direction:column;gap:3px}
.kgoc-alert-stats small,.kgoc-alert-depart small{font-size:11px;color:#637d9c}
.kgoc-alert-stats strong{font-size:19px;color:#092b62}
.kgoc-route-duration.traffic-clear{color:#17804d!important}
.kgoc-route-duration.traffic-moderate{color:#b97105!important}
.kgoc-route-duration.traffic-heavy{color:#cb2a38!important}
.kgoc-route-duration.traffic-unknown{color:#092b62!important}
.kgoc-alert-depart{margin-top:9px;padding:9px 14px;border-radius:14px;background:#def8ec;display:flex;justify-content:space-between;align-items:center;gap:12px}
.kgoc-alert-depart strong{font-size:23px;color:#08644b}
.kgoc-alert-route{font-size:13px;font-weight:700;padding:10px 3px 4px;overflow-wrap:anywhere}
.kgoc-alert-foot{font-size:10px;color:#637d9c;margin-top:4px;padding-top:7px;border-top:1px solid #d7e3ef}
.kgoc-alert-unavailable{font-size:12px;color:#637d9c;margin-top:6px}

/* V2 TEST FIX 2026-10-22: do not fade the appointment card on the old 6-second CSS loop.
   JavaScript controls appointment rotation (15000 ms). */
body:has(.three) #apptBanner:not(.hidden),
body:has(.three) #dua #apptBanner:not(.hidden) {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* KGOC V2 TEST: meeting alert legibility and smart dismiss */
body:has(.three) #apptBanner{position:absolute!important;overflow:visible!important;max-width:min(680px,92vw)!important;min-width:min(550px,85vw);padding:18px 22px!important;animation:none!important;opacity:1!important;visibility:visible!important;cursor:pointer}
body:has(.three) #apptBanner .kgoc-alert-heading strong{font-size:24px!important}
body:has(.three) #apptBanner .kgoc-alert-kicker{font-size:16px!important;font-weight:700}
body:has(.three) #apptBanner .kgoc-alert-countdown{font-size:16px!important;margin-left:36px}
body:has(.three) #apptBanner .kgoc-alert-stats small,body:has(.three) #apptBanner .kgoc-alert-depart small{font-size:15px!important}
body:has(.three) #apptBanner .kgoc-alert-stats strong{font-size:24px!important}
body:has(.three) #apptBanner .kgoc-alert-depart strong{font-size:29px!important;font-variant-numeric:tabular-nums}
body:has(.three) #apptBanner .kgoc-alert-route{font-size:16px!important;display:flex;gap:9px;align-items:baseline;line-height:1.5}
body:has(.three) #apptBanner .kgoc-alert-route strong{font-size:19px!important}
body:has(.three) #apptBanner .kgoc-alert-foot{font-size:15px!important;font-weight:700}
body:has(.three) #apptBanner .kgoc-traffic-label{font-size:12px;color:#5f738c;font-weight:700}
body:has(.three) #apptBanner .kgoc-alert-close{position:absolute;top:9px;left:9px;z-index:10;width:32px;height:32px;border-radius:50%;padding:0;background:#edf1f6;color:#264b6e;font-size:24px;line-height:30px;cursor:pointer;box-shadow:0 2px 6px #0001}
body:has(.three) #apptBanner .kgoc-alert-close:hover{background:#dce9f7}
body:has(.three) #apptBanner .kgoc-depart-now{background:#fff0ec!important;border:2px solid #e65b65!important}
body:has(.three) #apptBanner .kgoc-depart-now small,body:has(.three) #apptBanner .kgoc-depart-now strong{color:#bc2337!important}
@media(max-width:800px){body:has(.three) #apptBanner{min-width:0!important;width:92vw!important;max-width:92vw!important;padding:12px!important}body:has(.three) #apptBanner .kgoc-alert-heading strong{font-size:20px!important}}

/* KGOC V2 TEST v3 — visual priority, traffic only on travel duration */
body:has(.three) #apptBanner{width:min(760px,91vw)!important;max-width:min(760px,91vw)!important;background:rgba(244,253,247,.97)!important;border:2px solid #8dccaa!important;max-height:min(77vh,640px);overflow-y:auto!important;scrollbar-width:thin;box-shadow:0 13px 42px #193b632d!important;}
body:has(.three) #apptBanner[data-urgency="yellow"]{background:rgba(255,251,231,.97)!important;border-color:#e5c775!important;}
body:has(.three) #apptBanner[data-urgency="red"]{background:rgba(255,241,242,.98)!important;border-color:#e69da5!important;}
body:has(.three) #apptBanner .kgoc-alert-kicker{font-size:18px!important}
body:has(.three) #apptBanner .kgoc-alert-heading strong{font-size:27px!important}
body:has(.three) #apptBanner .kgoc-alert-countdown{font-size:23px!important;white-space:normal!important;line-height:1.3;padding:9px 13px;margin-left:37px}
body:has(.three) #apptBanner .kgoc-alert-stats small{font-size:18px!important;color:#395873}
body:has(.three) #apptBanner .kgoc-alert-stats strong{font-size:27px!important}
body:has(.three) #apptBanner .kgoc-traffic-state{font-size:18px;margin-top:8px;font-weight:700;color:#36536e}
body:has(.three) #apptBanner .kgoc-alert-depart{gap:10px;background:#e9f5fa;align-items:center}
body:has(.three) #apptBanner .kgoc-alert-depart>div{display:flex;flex-direction:column;gap:4px;min-width:0}
body:has(.three) #apptBanner .kgoc-alert-depart small{font-size:18px!important}
body:has(.three) #apptBanner .kgoc-alert-depart strong{font-size:26px!important;line-height:1.25}
body:has(.three) #apptBanner .kgoc-depart-clock{font-size:26px;font-weight:850;color:#0a4784;white-space:nowrap;font-variant-numeric:tabular-nums}
body:has(.three) #apptBanner .kgoc-alert-margin{font-size:15px;font-weight:700;color:#526c82}
body:has(.three) #apptBanner .kgoc-route-options{border-top:1px solid #cbd9e9;margin-top:10px;padding-top:8px}
body:has(.three) #apptBanner .kgoc-route-options-title{font-weight:800;font-size:19px;margin-bottom:4px}
body:has(.three) #apptBanner .kgoc-route-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 3px;border-top:1px solid #dfe9f2}
body:has(.three) #apptBanner .kgoc-route-option>div{display:flex;flex-direction:column;gap:2px;min-width:0}
body:has(.three) #apptBanner .kgoc-route-option span{font-size:14px;color:#4f708b}
body:has(.three) #apptBanner .kgoc-route-option strong{font-size:20px;overflow-wrap:anywhere}
body:has(.three) #apptBanner .kgoc-route-option b{white-space:nowrap;font-size:20px;color:#173d6d}
body:has(.three) #apptBanner .kgoc-route-alt-note{font-size:14px;color:#627c94;padding:8px 2px}
body:has(.three) #apptBanner .kgoc-alert-foot{font-size:17px!important;margin-top:8px}
body:has(.three) #apptBanner .kgoc-route-duration.traffic-clear{color:#17804d!important}
body:has(.three) #apptBanner .kgoc-route-duration.traffic-moderate{color:#b97105!important}
body:has(.three) #apptBanner .kgoc-route-duration.traffic-heavy{color:#cb2a38!important}
body:has(.three) #apptBanner .kgoc-route-duration.traffic-unknown{color:#092b62!important}
@media(max-width:800px){body:has(.three) #apptBanner{min-width:0!important;width:94vw!important;max-width:94vw!important}body:has(.three) #apptBanner .kgoc-alert-heading strong{font-size:22px!important}body:has(.three) #apptBanner .kgoc-alert-countdown{font-size:18px!important}body:has(.three) #apptBanner .kgoc-alert-depart strong{font-size:19px!important}body:has(.three) #apptBanner .kgoc-depart-clock{font-size:20px!important}}

/* KGOC V2 TEST v4 — side map, departure-relative urgency, traffic label */
body:has(.three) #apptBanner{width:min(920px,94vw)!important;max-width:min(920px,94vw)!important;max-height:min(78vh,680px)}
body:has(.three) #apptBanner[data-urgency="unknown"]{background:rgba(245,247,250,.98)!important;border-color:#b5c4d3!important}
body:has(.three) #apptBanner .kgoc-alert-main{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:14px;align-items:stretch;direction:rtl}
body:has(.three) #apptBanner .kgoc-alert-content{min-width:0;text-align:right}
body:has(.three) #apptBanner .kgoc-mini-map{align-self:stretch;min-height:220px;max-height:350px;position:relative;overflow:hidden;border:1px solid #c4d6e6;border-radius:16px;padding:0;background:#e4f0f7;color:#20527c}
body:has(.three) #apptBanner .kgoc-mini-map img{height:100%;width:100%;object-fit:cover;display:block}
body:has(.three) #apptBanner .kgoc-map-fallback{font-size:19px;font-weight:800;line-height:2;position:absolute;inset:25% 3%}
body:has(.three) #apptBanner .kgoc-map-zoom{position:absolute;bottom:7px;right:6px;left:6px;background:#fffefaee;color:#144b82;border-radius:8px;padding:7px;font-size:15px;font-weight:800}
body:has(.three) #apptBanner .kgoc-traffic-state{font-size:20px!important;font-weight:900!important}
body:has(.three) #apptBanner .kgoc-traffic-state.traffic-clear{color:#17804d!important}
body:has(.three) #apptBanner .kgoc-traffic-state.traffic-moderate{color:#b97105!important}
body:has(.three) #apptBanner .kgoc-traffic-state.traffic-heavy{color:#cb2a38!important}
body:has(.three) #apptBanner .kgoc-traffic-state.traffic-unknown{color:#547086!important}
body:has(.three) #apptBanner .kgoc-depart-clock{font-size:31px!important;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
body:has(.three) #apptBanner .kgoc-route-options{border-top:0!important;padding-top:2px!important}
.kgoc-map-modal{max-width:min(900px,95vw)!important;width:100%!important}
.kgoc-map-big{width:100%;max-height:53vh;object-fit:contain;background:#eef5fa;border-radius:12px}
.kgoc-map-directions{display:inline-block;padding:12px 18px;margin-top:10px;background:#1679c7;color:white;border-radius:12px;text-decoration:none;font-weight:800}
.kgoc-modal-routes{margin:12px 0;text-align:right}
@media(max-width:820px){body:has(.three) #apptBanner .kgoc-alert-main{grid-template-columns:minmax(0,1fr) 130px;gap:8px}body:has(.three) #apptBanner .kgoc-mini-map{min-height:160px}body:has(.three) #apptBanner .kgoc-depart-clock{font-size:23px!important}}

/* KGOC V2 TEST: meeting with no usable route — compact, centered layout only. */
body:has(.three) #apptBanner[data-layout="no-route"]{width:min(720px,92vw)!important;max-width:min(720px,92vw)!important;min-width:0!important;max-height:none!important;overflow:hidden!important;padding:22px 44px 22px!important}
body:has(.three) #apptBanner .kgoc-internal-alert{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;direction:rtl;width:100%;min-width:0}
body:has(.three) #apptBanner .kgoc-internal-kicker{font-size:21px;font-weight:750;color:#516982;line-height:1.25}
body:has(.three) #apptBanner .kgoc-internal-title{font-size:clamp(24px,2.6vw,34px);font-weight:850;color:#15395f;line-height:1.25;overflow-wrap:anywhere}
body:has(.three) #apptBanner .kgoc-internal-meta{font-size:clamp(17px,1.9vw,23px);font-weight:750;color:#245479;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;unicode-bidi:plaintext}
body:has(.three) #apptBanner .kgoc-meta-divider{padding:0 7px;color:#7d91a4}
body:has(.three) #apptBanner .kgoc-internal-countdown{display:inline-block;border-radius:12px;background:rgba(255,255,255,.78);padding:8px 17px;font-size:clamp(20px,2.2vw,27px);font-weight:850;color:#176a64}
body:has(.three) #apptBanner .kgoc-internal-time{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 20px;width:min(100%,540px);background:rgba(255,255,255,.85);border-radius:14px;font-size:21px;font-weight:800;color:#244e72}
body:has(.three) #apptBanner .kgoc-internal-time strong{font-size:29px;letter-spacing:.3px;color:#0b3268;font-variant-numeric:tabular-nums}
@media(max-width:800px){body:has(.three) #apptBanner[data-layout="no-route"]{padding:18px 35px!important}body:has(.three) #apptBanner .kgoc-internal-meta{font-size:17px}body:has(.three) #apptBanner .kgoc-internal-time{font-size:18px}}


/* V2 TEST V6: urgency background must override legacy #apptBanner:not(.hidden)
   rules with higher specificity. Existing notification layouts remain unchanged. */
body:has(.three) #apptBanner:not(.hidden)[data-urgency="green"] {
 background:rgba(244,253,247,.97)!important;
 border-color:#8dccaa!important;
}
body:has(.three) #apptBanner:not(.hidden)[data-urgency="yellow"] {
 background:rgba(255,251,231,.97)!important;
 border-color:#e5c775!important;
}
body:has(.three) #apptBanner:not(.hidden)[data-urgency="red"] {
 background:rgba(255,241,242,.98)!important;
 border-color:#e69da5!important;
}
body:has(.three) #apptBanner:not(.hidden)[data-urgency="unknown"] {
 background:rgba(245,247,250,.98)!important;
 border-color:#b5c4d3!important;
}
body:has(.three) #apptBanner:not(.hidden) {
 animation:none!important;
 opacity:1!important;
 visibility:visible!important;
}
/* External meeting only: user-entered location/notes in two separate rows. */
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-details{
 display:flex;flex-direction:column;gap:4px;padding:3px 0 10px;
 text-align:right;direction:rtl;min-width:0;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-place{
 font-size:21px;font-weight:850;color:#173b66;overflow-wrap:anywhere;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-place:before{
 content:"📍 ";font-size:.82em;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-notes{
 font-size:18px;font-weight:650;color:#4c6178;white-space:pre-wrap;overflow-wrap:anywhere;
}


/* V7 TEST: preserve card designs; correct legacy #dua specificity (including old background shorthand). */
body:has(.three) #dua #apptBanner:not(.hidden)[data-urgency="green"]{
  background:rgba(237,250,241,.98)!important;border-color:#65ad86!important;
}
body:has(.three) #dua #apptBanner:not(.hidden)[data-urgency="yellow"]{
  background:rgba(255,247,213,.98)!important;border-color:#dfb24f!important;
}
body:has(.three) #dua #apptBanner:not(.hidden)[data-urgency="red"]{
  background:rgba(255,226,230,.98)!important;border-color:#d7747d!important;
}
body:has(.three) #dua #apptBanner:not(.hidden)[data-urgency="unknown"]{
  background:rgba(242,245,249,.98)!important;border-color:#adbcca!important;
}
/* V7 TEST: two independent columns above route departure details: manual Admin place/notes + meeting and travel. */
body:has(.three) #apptBanner[data-layout="route"] .kgoc-alert-summary{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:12px;align-items:stretch;direction:rtl;margin:9px 0 12px;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-details{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  min-height:105px;padding:13px 15px!important;margin:0!important;
  background:rgba(255,255,255,.79);border:1px solid rgba(133,166,190,.37);
  border-radius:14px;text-align:right;gap:7px;overflow:hidden;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-place{
  font-size:21px!important;line-height:1.35;font-weight:850;max-width:100%;overflow-wrap:anywhere;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-notes{
  font-size:17px!important;line-height:1.45;max-width:100%;overflow-wrap:anywhere;
}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-alert-summary>.kgoc-alert-stats{
  min-width:0;margin:0!important;align-self:stretch;
}
@media(max-width:900px){
 body:has(.three) #apptBanner[data-layout="route"] .kgoc-alert-summary{gap:7px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-details{padding:8px!important}
 body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-place{font-size:17px!important}
 body:has(.three) #apptBanner[data-layout="route"] .kgoc-external-notes{font-size:15px!important}
}

/* V8 TEST: put traffic description below the small map; permit two-line wrapping. */
body:has(.three) #apptBanner[data-layout="route"] .kgoc-side-map-stack{display:flex;flex-direction:column;gap:8px;min-width:0;align-self:stretch;}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-side-map-stack .kgoc-mini-map{display:block;width:100%;min-height:185px;flex:1 1 auto;}
body:has(.three) #apptBanner[data-layout="route"] .kgoc-traffic-under-map{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.35;max-height:2.7em;font-size:20px!important;font-weight:900;margin:0!important;padding:6px 4px;flex:0 0 auto;}
@media(max-width:820px){body:has(.three) #apptBanner[data-layout="route"] .kgoc-side-map-stack .kgoc-mini-map{min-height:145px;}body:has(.three) #apptBanner[data-layout="route"] .kgoc-traffic-under-map{font-size:16px!important;}}

/* Hide meeting map zoom button only */
#apptBanner .kgoc-map-zoom,
#apptBanner .kgoc-map-zoom-action {
    display: none !important;
}


/* KGOC_ALERT_TEXT_CONTRAST_V1 */
body:has(.three) #apptBanner .kgoc-alert-heading strong {
    color: #173C61 !important;
}
body:has(.three) #apptBanner .kgoc-meeting-after-card .kgoc-alert-countdown {
    color: #174A78 !important;
}
body:has(.three) #apptBanner .kgoc-route-option > div > strong {
    color: #173C61 !important;
}


/* KGOC_LEFT_ICONS_UP_30PX_V1 */
body:has(.three) .privacy-left-actions {
    transform: translateY(-30px) !important;
}

/* KGOC_LEFT_ICONS_MATCH_TEST_V1 */
body:has(.three) .privacy-left-actions {
    position: fixed !important;
    left: 14px !important;
    top: 132px !important;
    transform: translateY(-30px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 1100 !important;
}

/* KGOC_LEFT_ICONS_TEST_SYNC_V2 */
body:has(.three) .privacy-left-actions {
    position: fixed !important;
    left: 14px !important;
    top: 132px !important;
    z-index: 1100 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* KGOC_LEFT_ICONS_FINAL_POSITION_V3 */
html body:has(.three) .privacy-left-actions {
    position: fixed !important;
    top: 102px !important;
    left: 14px !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 1100 !important;
}

/* KGOC_LEFT_POSITION_OVERRIDE_V4 */
html body:has(.three) .privacy-left-actions.privacy-left-actions {
    top: 126px !important;
    transform: none !important;
}
