/* Scoped follow-up UI for Diversão! Extranet 1.2.13. */

/* Personal document inbox/archive: the file and the read confirmation persist. */
.den-wrap .den-member-doc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:14px 0 18px;padding:5px;border-radius:15px;background:#f5edf8}
.den-wrap .den-member-doc-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border:0;border-radius:11px;background:transparent;color:#654e70;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.den-wrap .den-member-doc-tabs button[aria-pressed="true"]{background:#70338d;color:#fff;box-shadow:0 4px 12px #4b23652a}
.den-wrap .den-member-doc-tabs button span{font-size:11px;opacity:.8}
.den-wrap .den-file-list[data-den-doc-view="active"]>.den-member-document-card[data-den-archived="1"],
.den-wrap .den-file-list[data-den-doc-view="archive"]>.den-member-document-card[data-den-archived="0"]{display:none!important}
.den-wrap .den-document-tab-empty{padding:24px 10px;text-align:center;color:#70627b;font-size:13px}
.den-wrap .den-document-read-date,.den-wrap .den-document-receipt{font-size:11px!important;color:#786b81!important;line-height:1.4}
.den-wrap .den-document-ack-checkbox:disabled{opacity:1;accent-color:#2f8057;cursor:default}
.den-wrap .den-document-archive-form[hidden]{display:none!important}
.den-wrap .den-document-archive-button{display:inline-flex;align-items:center;justify-content:center;margin:10px 0 0;padding:9px 15px;border-radius:11px;border:1px solid #a17caf;background:#f8effb;color:#61317a;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.den-wrap .den-document-archive-button:hover{background:#efe1f5}

/* Background choice is an attractive gateway to a proper foreground modal. */
.den-wrap .den-profile-background-picker{position:relative;margin-top:22px;padding:18px!important;border:1px solid #d9bfe5;border-radius:17px;background:linear-gradient(135deg,#fff,#f8effb 100%)}
.den-wrap .den-profile-background-heading{margin:0 0 12px!important;font-size:15px!important;color:#52276d}
.den-wrap .den-profile-background-summary{min-height:96px!important;border:1px solid #ceb0da;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 20px #52266c12;cursor:pointer}
.den-wrap .den-profile-background-summary-copy strong{font-size:17px!important;color:#5c2779!important}
.den-wrap .den-profile-background-summary-chevron{font-size:21px;transform:none!important}
.den-wrap .den-profile-background-modal:not([open]){display:none!important}
.den-wrap .den-profile-background-modal[open]{display:flex;flex-direction:column;box-sizing:border-box;position:fixed;inset:auto;width:min(94vw,680px);max-width:680px;max-height:min(90dvh,850px);margin:auto;padding:0;border:1px solid #decce7;border-radius:22px;background:#fff;box-shadow:0 25px 90px #1e0e2966;overflow:hidden;color:#302238}
.den-wrap .den-profile-background-modal::backdrop{background:#1d1028a8;backdrop-filter:blur(5px)}
.den-wrap .den-profile-modal-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 12px;border-bottom:1px solid #e8dcf0;background:#fff}
.den-wrap .den-profile-modal-head h3{margin:0;font-size:19px;line-height:1.3;color:#4f2668}
.den-wrap .den-profile-modal-close{flex:none;display:grid;place-items:center;width:39px;height:39px;border:1px solid #dcc6e4;border-radius:11px;background:#f8f0fb;color:#5f2c77;font-size:27px;cursor:pointer}
.den-wrap .den-profile-background-modal .den-profile-background-browser-content{display:block!important;min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:17px 20px 24px;background:#fff}
.den-wrap .den-profile-background-modal .den-profile-background-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px}
.den-wrap .den-profile-modal-footer{display:flex;flex:none;flex-direction:column;gap:9px;padding:12px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid #e9ddef;background:#fff;box-shadow:0 -8px 25px #250d3211}
.den-wrap .den-profile-modal-selection{display:block;color:#6e5877;font-size:12px;font-weight:650}
.den-wrap .den-profile-modal-footer .den-button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0!important;border-radius:12px!important;background:#22172b!important;color:#fff!important;font-size:15px!important;box-shadow:0 6px 19px #2e15302e}
.den-wrap .den-profile-modal-footer .den-button[hidden]{display:none!important}
.den-wrap.den-profile-modal-open{overscroll-behavior:contain}

/* One shared presence snapshot updates all visible cards without a refresh. */
.den-wrap .den-directory-card{position:relative}
.den-wrap .den-directory-now-online[hidden]{display:none!important}
.den-wrap .den-directory-now-online{position:absolute;z-index:3;top:10px;right:10px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 20px);padding:4px 8px;border:1px solid #c1e2cd;border-radius:999px;background:#f0fff4;color:#1f7744;font-size:10px;font-weight:850;line-height:1.2;box-shadow:0 2px 9px #00000012}
.den-wrap .den-directory-now-online>span{width:7px;height:7px;flex:none;border-radius:50%;background:#28b46c}
.den-wrap .den-directory-card-themed .den-directory-now-online{background:#f4fff3f0}

/* Birthday decorations appear only on the local birthday and self-disable. */
.den-wrap .den-birthday-celebrating .den-birthday-next{position:relative;overflow:hidden;border-color:#e5c17b;background:linear-gradient(125deg,#f7e8fc,#fff2d9 82%);box-shadow:0 10px 30px #74409120}
.den-wrap .den-birthday-celebrating .den-birthday-next-title{font-size:14px;color:#6b2886;letter-spacing:.05em}
.den-wrap .den-birthday-celebrating .den-birthday-star{position:relative;z-index:1}
.den-wrap .den-birthday-celebrating .den-birthday-today-person .den-birthday-date{border-color:#dfbc6d!important;background:linear-gradient(145deg,#9045b0,#62317e)!important;box-shadow:0 0 0 3px #f7d99765,0 7px 20px #5b2a7530!important}
.den-wrap .den-birthday-today-label{display:block;margin-top:4px;color:#a15e23;font-size:12px;font-weight:800}
.den-wrap .den-birthday-confetti{position:absolute;z-index:0;inset:0;overflow:hidden;pointer-events:none}
.den-wrap .den-birthday-confetti i{--x:calc((var(--i) * 37) * 1% / 18);position:absolute;left:calc((var(--i) * 41) * 1% / 18);top:-8%;width:6px;height:11px;border-radius:2px;background:#a053b0;opacity:0;transform:rotate(15deg);animation:den-birthday-fall 3.2s ease-out calc(var(--i) * 0.12s) 1 both}
.den-wrap .den-birthday-confetti i:nth-child(3n){background:#e5ba5a}
.den-wrap .den-birthday-confetti i:nth-child(4n){background:#e779a9}
@keyframes den-birthday-fall{0%{opacity:0;transform:translateY(-12px) rotate(0)}15%{opacity:.8}85%{opacity:.6}100%{opacity:0;transform:translateY(310px) rotate(450deg)}}

/* Connect: recognizable social icon plus the authentic fading band logo. */
.den-wrap .den-portal-connect{position:relative;isolation:isolate;overflow:hidden;min-height:142px!important;grid-template-columns:66px minmax(0,1fr) 42px!important;gap:16px!important;padding:19px 23px!important;background:linear-gradient(115deg,#281337 0%,#60277b 57%,#8732a0 100%)!important;border-color:#7c3a97!important}
.den-wrap .den-portal-connect::before{content:"";position:absolute;z-index:-1;inset:0 0 0 42%;background:url('diversao-connect-watermark.png') no-repeat 90% 50%;background-size:auto 172%;opacity:.085;pointer-events:none}
.den-wrap .den-portal-connect-brand{top:0!important;width:60px;height:60px;display:grid;place-items:center;border:1px solid #ffffff66;border-radius:18px;background:#ffffff20}
.den-wrap .den-portal-connect-brand svg{width:34px;height:34px;color:#fff}
.den-wrap .den-connect-community-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:850;color:#e7c7f4;line-height:1.1}
.den-wrap .den-portal-connect-copy{top:0!important;gap:5px}
.den-wrap .den-portal-connect-copy strong{font-size:clamp(22px,3vw,27px)!important;letter-spacing:.025em}
.den-wrap .den-portal-connect-copy>span{font-size:12px!important;line-height:1.4;color:#f2e4fa}
.den-wrap .den-connect-latest-text[hidden],.den-wrap .den-connect-latest-badge[hidden]{display:none!important}
.den-wrap .den-connect-latest-text{display:inline-flex!important;align-items:center;max-width:max-content;margin-top:7px;padding:6px 10px;border:1px solid #ffffff4a;border-radius:10px;background:#ffffff20;color:#fff!important;font-size:11px!important;font-weight:740}
.den-wrap .den-portal-connect-arrow{top:0!important;align-self:center;width:38px!important;height:38px!important;border-radius:14px!important;background:#ffffffeb;color:#592570!important;font-size:25px!important}
.den-wrap .den-connect-latest-badge{position:absolute;right:13px;bottom:10px;padding:3px 7px;border-radius:999px;background:#266941;color:#fff;font-size:10px;font-weight:850}
.den-wrap .den-portal-connect:focus-visible{outline:3px solid #d6b6e8;outline-offset:3px}

@media(max-width:600px){
  .den-wrap .den-profile-background-modal[open]{width:100vw;height:min(94dvh,920px);max-height:94dvh;max-width:none;margin:auto 0 0;border-radius:20px 20px 0 0}
  .den-wrap .den-profile-background-modal .den-profile-background-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .den-wrap .den-profile-background-modal .den-profile-background-browser-content{padding:12px 13px 16px}
  .den-wrap .den-profile-modal-head{padding:14px 15px 11px}
  .den-wrap .den-profile-modal-footer{padding:11px 14px max(13px,env(safe-area-inset-bottom))}
  .den-wrap .den-portal-connect{grid-template-columns:45px minmax(0,1fr) 30px!important;gap:10px!important;min-height:150px!important;padding:16px 14px!important}
  .den-wrap .den-portal-connect-brand{width:44px;height:44px;border-radius:13px}
  .den-wrap .den-portal-connect-brand svg{width:27px;height:27px}
  .den-wrap .den-portal-connect-copy strong{font-size:21px!important}
  .den-wrap .den-connect-latest-badge{display:none!important}
  .den-wrap .den-portal-connect-arrow{width:29px!important;height:32px!important;font-size:20px!important}
}
@media(prefers-reduced-motion:reduce){.den-wrap .den-birthday-confetti i{animation:none!important;opacity:0!important}}


/* 1.3.80 — readable dates in all birthday tiles; page-wide celebration. */
.den-wrap .den-birthday-months .den-birthday-date,
.den-wrap .den-birthday-month-panel .den-birthday-date {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f1e8f5;
    color: #603477;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.den-birthday-calendar{position:relative}
.den-birthday-screen-confetti{position:absolute;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;contain:layout style paint}
.den-birthday-screen-confetti i{position:absolute;left:var(--den-bc-x);top:-18px;width:7px;height:12px;border-radius:2px;opacity:0;animation:den-birthday-screen-fall var(--den-bc-duration) var(--den-bc-delay) linear both;will-change:transform,opacity}
@keyframes den-birthday-screen-fall{0%{transform:translate3d(0,-12px,0) rotate(0);opacity:0}6%{opacity:1}100%{transform:translate3d(var(--den-bc-drift,0px),var(--den-bc-fall,110vh),0) rotate(var(--den-bc-spin,450deg));opacity:1}}
@keyframes den-birthday-fall{0%{transform:translate3d(0,-12px,0) rotate(0);opacity:0}6%{opacity:1}88%{opacity:1}100%{transform:translate3d(var(--den-bc-drift,0px),var(--den-bc-fall,110vh),0) rotate(var(--den-bc-spin,450deg));opacity:0}}
@media(prefers-reduced-motion:reduce){.den-birthday-screen-confetti{display:none!important}}

.den-wrap .den-portal-tile .den-birthday-home-badge {
    padding: 0;
    width: 24px;
    background: #f3e9f8;
    font-size: 18px;
    line-height: 1;
}
