.pdsc-shell{--green:#176c4d;--ink:#142957;--muted:#74819a;display:block;width:100%;color:var(--ink)}
.pdsc-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;margin-bottom:18px;border:1px solid #dfe8e5;border-radius:24px;background:linear-gradient(135deg,#e8f3ef,#fff)}
.pdsc-hero small{font-weight:900;letter-spacing:.12em;color:#34755f}.pdsc-hero h2{font-size:30px;margin:5px 0}.pdsc-hero p{margin:0;color:var(--muted)}
.pdsc-new,.pdsc-modal-actions .primary{border:0;border-radius:13px;background:var(--green);color:#fff;font-weight:900;padding:14px 18px;cursor:pointer}
.pdsc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.pdsc-kpis article{background:#fff;border:1px solid #e2e8f1;border-radius:18px;padding:17px 18px}.pdsc-kpis small{display:block;color:var(--muted)}.pdsc-kpis b{display:block;font-size:21px;margin-top:7px}.pdsc-kpis .income{color:#12955a}.pdsc-kpis .expense{color:#dc4e5a}
.pdsc-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.pdsc-nav,.pdsc-filters{display:flex;align-items:center;gap:8px}.pdsc-nav h3{min-width:190px;text-align:center;text-transform:capitalize}.pdsc-nav button,.pdsc-filters input,.pdsc-filters select{height:40px;border:1px solid #dfe5ed;border-radius:11px;background:#fff;padding:0 12px;color:var(--ink)}
.pdsc-week,.pdsc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.pdsc-week span{text-align:center;padding:9px;color:#78859a;font-size:11px;font-weight:900;text-transform:uppercase}.pdsc-day{min-height:128px;border:1px solid #e7ebf1;border-radius:15px;background:#fff;padding:8px;overflow:hidden;transition:.15s}.pdsc-day:not(.empty):hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(28,47,80,.08)}.pdsc-day.empty{visibility:hidden}.pdsc-day.today{border-color:#18845b;box-shadow:inset 0 0 0 1px #18845b}.pdsc-day.selected{background:#f1f8f5;border-color:#176c4d}.pdsc-day header{display:flex;align-items:center;justify-content:space-between}.pdsc-day header>b{display:grid;place-items:center;width:27px;height:27px;border-radius:9px}.pdsc-day.today header>b{background:#176c4d;color:#fff}.pdsc-day header button{width:25px;height:25px;border:0;border-radius:8px;background:#edf5f1;color:#176c4d;font-weight:900;cursor:pointer;opacity:.35}.pdsc-day:hover header button,.pdsc-day.selected header button{opacity:1}
.pdsc-events{display:grid;gap:5px;margin-top:6px}.pdsc-event,.pdsc-more{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;align-items:center;width:100%;border:0;border-radius:8px;padding:5px 6px;text-align:left;font-size:10px;cursor:pointer}.pdsc-event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdsc-event strong{font-size:9px}.pdsc-event.expense{background:#fff0f1;color:#c83d4d}.pdsc-event.income{background:#eaf8ef;color:#087d45}.pdsc-event.card{background:#edf3ff;color:#315dba}.pdsc-event.subscription{background:#f5efff;color:#7850ae}.pdsc-event.paid{opacity:.48;text-decoration:line-through}.pdsc-more{display:block;background:#f2f4f7;color:#536078;text-align:center}.pdsc-day footer{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px;font-size:8px}.pdsc-day footer span{padding:2px 4px;border-radius:5px}.pdsc-day footer .income{background:#eaf8ef;color:#087d45}.pdsc-day footer .expense{background:#fff0f1;color:#c83d4d}
.pdsc-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;background:rgba(10,22,45,.48);backdrop-filter:blur(5px)}.pdsc-sheet{position:relative;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 30px 80px rgba(5,18,39,.28)}.pdsc-close{position:absolute;right:15px;top:12px;border:0;background:#eef2f6;width:34px;height:34px;border-radius:50%;font-size:22px}.pdsc-sheet h3{margin:0 40px 4px 0;font-size:24px}.pdsc-sheet>p{color:#78849a}.pdsc-sheet form>label,.pdsc-form-grid label{display:grid;gap:6px;margin-top:13px;font-size:12px;font-weight:800;color:#59677d}.pdsc-sheet input,.pdsc-sheet select{height:44px;border:1px solid #dce3ec;border-radius:11px;padding:0 12px;font:inherit}.pdsc-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 12px}.pdsc-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.pdsc-modal-actions button{border:1px solid #dce3ec;border-radius:11px;background:#fff;padding:11px 14px;font-weight:800}.pdsc-modal-actions .danger{margin-right:auto;color:#c73b49}.pdsc-detail>b{font-size:30px}.pdsc-kind{display:inline-flex;padding:5px 9px;border-radius:8px;background:#eef3f7;margin-bottom:10px}
.pdsc-app-head{display:flex;align-items:center;gap:12px;padding:15px 18px;background:#fff;border-bottom:1px solid #e7ebf1}.pdsc-app-head button{border:0;background:#eef2f6;border-radius:10px;width:38px;height:38px;font-size:24px}.pdsc-app-head h2{margin:0;font-size:20px}#sharedCalendarApp{padding:14px}
@media(max-width:900px){.pdsc-kpis{grid-template-columns:repeat(2,1fr)}.pdsc-tools{align-items:stretch;flex-direction:column}.pdsc-filters input{min-width:0;flex:1}.pdsc-filters{width:100%}.pdsc-grid{gap:4px}.pdsc-day{min-height:105px;padding:5px}.pdsc-event strong{display:none}}
@media(max-width:600px){.pdsc-hero{padding:18px;align-items:flex-start;flex-direction:column}.pdsc-hero h2{font-size:24px}.pdsc-new{width:100%}.pdsc-kpis{gap:8px}.pdsc-kpis article{padding:12px}.pdsc-kpis b{font-size:16px}.pdsc-week,.pdsc-grid{gap:2px}.pdsc-week span{font-size:9px;padding:6px 0}.pdsc-day{min-height:82px;border-radius:9px;padding:3px}.pdsc-day header>b{width:23px;height:23px;font-size:11px}.pdsc-day header button{width:22px;height:22px}.pdsc-event{grid-template-columns:auto minmax(0,1fr);padding:3px;font-size:8px}.pdsc-event i{display:none}.pdsc-events{gap:2px}.pdsc-day footer{display:none}.pdsc-nav{width:100%;justify-content:space-between}.pdsc-nav h3{min-width:0;font-size:15px}.pdsc-form-grid{grid-template-columns:1fr}.pdsc-sheet{border-radius:20px 20px 0 0;align-self:end}.pdsc-modal{place-items:end center;padding:0}.pdsc-modal-actions{flex-wrap:wrap}.pdsc-modal-actions button{flex:1}.pdsc-modal-actions .danger{flex-basis:100%}}

/* ETAPA 7.6.2 — lista completa do dia selecionado */
.pdsc-selected-panel{margin-top:18px;border:1px solid #dfe7e4;border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 10px 28px rgba(27,48,78,.06)}
.pdsc-selected-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;background:linear-gradient(135deg,#edf7f3,#fff);border-bottom:1px solid #e6ecea}
.pdsc-selected-head small{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#34755f}.pdsc-selected-head h3{margin:4px 0 0;font-size:19px;color:#142957}.pdsc-selected-head button{border:0;border-radius:11px;background:#176c4d;color:#fff;font-weight:900;padding:11px 14px;cursor:pointer}
.pdsc-selected-list{display:grid;gap:8px;padding:14px}.pdsc-selected-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;border:1px solid #e5eaf0;border-radius:14px;background:#fff;padding:12px 14px;text-align:left;color:#142957;cursor:pointer}.pdsc-selected-item:hover{border-color:#b9d5ca;background:#f9fcfb}.pdsc-selected-item.paid{opacity:.58}.pdsc-selected-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:18px;background:#eef3f7}.pdsc-selected-item.income .pdsc-selected-icon{background:#eaf8ef;color:#087d45}.pdsc-selected-item.expense .pdsc-selected-icon{background:#fff0f1;color:#c83d4d}.pdsc-selected-item.card .pdsc-selected-icon{background:#edf3ff;color:#315dba}.pdsc-selected-item.subscription .pdsc-selected-icon{background:#f5efff;color:#7850ae}.pdsc-selected-copy{display:grid;gap:3px;min-width:0}.pdsc-selected-copy b,.pdsc-selected-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdsc-selected-copy small{color:#758198}.pdsc-selected-item strong{font-size:15px}.pdsc-selected-item em{font-style:normal;font-size:10px;font-weight:900;text-transform:uppercase;padding:5px 8px;border-radius:999px;background:#fff3dd;color:#9a6400}.pdsc-selected-item.paid em{background:#eaf8ef;color:#087d45}.pdsc-empty-day{display:grid;gap:4px;text-align:center;padding:26px;color:#738099}.pdsc-empty-day b{color:#142957}
@media(max-width:600px){.pdsc-selected-head{align-items:flex-start;padding:15px;flex-direction:column}.pdsc-selected-head button{width:100%}.pdsc-selected-list{padding:9px}.pdsc-selected-item{grid-template-columns:34px minmax(0,1fr) auto;padding:10px;gap:8px}.pdsc-selected-item em{grid-column:2/4;justify-self:start}.pdsc-selected-item strong{font-size:13px}.pdsc-selected-copy small{white-space:normal}}

/* ETAPA 9.3 — acabamento final do Calendário Premium */
.pdsc-kpis article{position:relative;overflow:hidden}.pdsc-kpis article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#dbe7e2}.pdsc-kpis article:nth-child(1):before{background:#12955a}.pdsc-kpis article:nth-child(2):before{background:#dc4e5a}.pdsc-kpis article:nth-child(3):before{background:#315dba}.pdsc-kpis article:nth-child(4):before{background:#f0a51b}.pdsc-kpis b em{display:block;margin-top:4px;font-size:10px;font-style:normal;font-weight:900;color:#c77a00;text-transform:uppercase}
.pdsc-tools{flex-wrap:wrap}.pdsc-view-switch{display:flex;gap:4px;padding:4px;border:1px solid #dfe5ed;border-radius:12px;background:#f4f7fa}.pdsc-view-switch button{height:32px;border:0;border-radius:8px;background:transparent;padding:0 13px;color:#67758c;font-weight:900;cursor:pointer}.pdsc-view-switch button.active{background:#176c4d;color:#fff;box-shadow:0 4px 10px rgba(23,108,77,.18)}.pdsc-filters select{min-width:145px}
.pdsc-day.drag-over,.pdsc-week-day.drag-over{border-color:#176c4d!important;background:#e9f6f0!important;box-shadow:inset 0 0 0 2px #176c4d}.pdsc-event[draggable="true"]{cursor:grab}.pdsc-event[draggable="true"]:active{cursor:grabbing}
.pdsc-week-board{display:grid;grid-template-columns:repeat(7,minmax(155px,1fr));gap:10px;overflow-x:auto;padding:2px 2px 10px}.pdsc-week-day{min-height:360px;border:1px solid #e3e9ef;border-radius:17px;background:#fff;padding:10px;transition:.15s}.pdsc-week-day.today{border-color:#18845b;box-shadow:inset 0 0 0 1px #18845b}.pdsc-week-day.selected{background:#f1f8f5;border-color:#176c4d}.pdsc-week-day>header{display:flex;align-items:center;justify-content:space-between;padding-bottom:9px;border-bottom:1px solid #edf1f4}.pdsc-week-day>header div{display:flex;align-items:center;gap:8px}.pdsc-week-day>header small{text-transform:capitalize;color:#7b879a;font-weight:900}.pdsc-week-day>header b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0f4f7;font-size:16px}.pdsc-week-day.today>header b{background:#176c4d;color:#fff}.pdsc-week-day>header button{width:30px;height:30px;border:0;border-radius:9px;background:#edf5f1;color:#176c4d;font-size:17px;font-weight:900;cursor:pointer}.pdsc-week-events{display:grid;align-content:start;gap:7px;min-height:255px;padding:10px 0}.pdsc-week-events .pdsc-event{grid-template-columns:auto minmax(0,1fr);padding:8px}.pdsc-week-events .pdsc-event strong{grid-column:2;font-size:10px}.pdsc-no-events{display:grid;place-items:center;min-height:100px;color:#a0a9b7;font-size:11px;text-align:center}.pdsc-week-day>footer{display:grid;gap:4px;padding-top:8px;border-top:1px solid #edf1f4;font-size:10px}.pdsc-week-day>footer span{padding:5px 7px;border-radius:7px}.pdsc-week-day>footer .income{background:#eaf8ef;color:#087d45}.pdsc-week-day>footer .expense{background:#fff0f1;color:#c83d4d}
@media(max-width:1050px){.pdsc-view-switch{order:3}.pdsc-filters{order:4;flex:1}.pdsc-week-board{grid-template-columns:repeat(7,minmax(145px,1fr))}}
@media(max-width:600px){.pdsc-tools{gap:9px}.pdsc-view-switch{width:100%;order:2}.pdsc-view-switch button{flex:1}.pdsc-filters{display:grid;grid-template-columns:1fr 1fr;width:100%;order:3}.pdsc-filters input{grid-column:1/3;width:100%}.pdsc-filters select{width:100%;min-width:0}.pdsc-week-board{grid-template-columns:repeat(7,minmax(140px,1fr));scroll-snap-type:x mandatory}.pdsc-week-day{min-height:325px;scroll-snap-align:start}.pdsc-week-events{min-height:220px}.pdsc-kpis b em{font-size:8px}}
