/* PersonalOS 25 — profile consolidation and shared budget dashboard presentation. */
.p25-profile-card{overflow:hidden;border-radius:18px;}
.p25-profile-hero{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px 28px;background:linear-gradient(110deg,var(--surface-card,#fff) 0%,var(--surface-soft,#f5faff) 100%);border-bottom:1px solid var(--border-subtle,#e5ebf2);}
.p25-avatar-wrap{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px;}
.p25-profile-hero .p2-profile-avatar{width:82px;height:82px;}
.p25-profile-identity{min-width:0;align-self:center;}
.p25-profile-identity .page-kicker{display:block;margin-bottom:5px;}
.p25-profile-identity h2{margin:0 0 5px;font-size:21px;line-height:1.25;color:var(--text-primary,#17324d);}
.p25-profile-identity p{margin:0;color:var(--text-secondary,#718096);font-size:12px;}
.p25-profile-identity .p2-inline-status{margin-top:9px;}
.p25-profile-actions{align-self:start;justify-self:end;}
.p25-profile-actions .primary-button{min-height:36px;padding-inline:16px;white-space:nowrap;}
.p25-profile-sections{display:flex;flex-direction:column;gap:0;padding:22px 28px 28px;background:var(--surface-card,#fff);}
.p25-detail-group{min-width:0;margin:0;padding:17px 0 19px;border:0;border-bottom:1px solid var(--border-subtle,#e8edf3);background:transparent;box-shadow:none;border-radius:0;}
/* Repair 1: explicitly outrank legacy P8/P23 card selectors. The profile detail area is ONE container; groups inside it are sections, never cards. */
.p2-profile-sections.p25-profile-sections>.p25-detail-group{box-sizing:border-box;min-width:0;margin:0;padding:17px 0 19px;border:0;border-bottom:1px solid var(--border-subtle,#e8edf3);border-radius:0;background:transparent;box-shadow:none;}
.p2-profile-sections.p25-profile-sections>.p25-detail-group:first-child{padding-top:0;}
.p2-profile-sections.p25-profile-sections>.p25-detail-group:last-child{padding-bottom:0;border-bottom:0;}
.p2-profile-sections.p25-profile-sections>.p25-detail-group>.p25-detail-grid>.p25-detail-field{min-width:0;min-height:0;margin:0;padding:2px 0 8px;border:0;border-radius:0;background:transparent;box-shadow:none;}
.p25-contact-values{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;color:var(--text-primary,#183450);font-size:12px;font-weight:700;line-height:1.55;overflow-wrap:anywhere;}
.p25-contact-values>span{display:block;max-width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow-wrap:anywhere;}
.p25-contact-values>.is-empty{color:var(--text-secondary,#718096);font-weight:500;}

.p25-detail-group:first-child{padding-top:0;}
.p25-detail-group:last-child{padding-bottom:0;border-bottom:0;}
.p25-detail-group h3{margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid var(--border-subtle,#e8edf3);color:var(--text-primary,#24435f);font-size:13px;font-weight:760;}
.p25-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 24px;}
.p25-detail-field{min-width:0;min-height:0;padding:2px 0 8px;border:0;border-radius:0;background:transparent;box-shadow:none;}
.p25-detail-field>span{display:block;margin:0 0 5px;color:var(--text-secondary,#7b8999);font-size:10px;font-weight:550;}
.p25-detail-field>strong{display:block;color:var(--text-primary,#183450);font-size:12px;font-weight:700;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap;}
.p25-profile-contact-list{display:flex;flex-wrap:wrap;gap:5px 14px;min-width:0;}
.p25-profile-contact-item,.p25-profile-contact-item.is-empty{display:inline-flex!important;max-width:100%;padding:0!important;margin:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--text-primary,#183450);}
.p25-profile-contact-item strong{font-size:12px;font-weight:700;line-height:1.55;overflow-wrap:anywhere;}
.p25-bank-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 22px;}
.p25-bank-account-row{display:grid!important;grid-template-columns:1fr;gap:4px!important;min-width:0;padding:9px 0 11px!important;border:0!important;border-bottom:1px solid var(--border-subtle,#e8edf3)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.p25-bank-account-row:last-child{border-bottom:0!important;}
.p25-bank-account-row .p2-bank-account-type{margin:0;color:var(--text-secondary,#7b8999);font-size:9px;letter-spacing:.06em;text-transform:uppercase;}
.p25-bank-account-row strong{color:var(--text-primary,#183450);font-size:12px;overflow-wrap:anywhere;}
.p25-bank-account-row>span:not(.p2-bank-account-type){color:var(--text-secondary,#718096);font-size:10px;overflow-wrap:anywhere;}
.p25-bank-account-row code{padding:0;background:transparent;color:var(--text-secondary,#718096);font-size:10px;overflow-wrap:anywhere;}
.p25-profile-bank-accounts .p2-bank-heading p{margin:4px 0 0;color:var(--text-secondary,#8795a6);font-size:10px;}
.p25-budget-overview .p4-budget-summary{display:flex;flex-direction:column;gap:13px;}
.p25-budget-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--border-subtle,#e3eaf2);border-radius:12px;background:var(--surface-soft,#f8fbff);}
.p25-budget-kpis>div{display:flex;flex-direction:column;gap:5px;min-width:0;}
.p25-budget-kpis span,.p25-budget-progress span{color:var(--text-secondary,#718096);font-size:10px;}
.p25-budget-kpis strong{color:var(--text-primary,#183450);font-size:13px;font-weight:780;overflow-wrap:anywhere;}
.p25-budget-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;}
.p25-budget-progress>div:first-child strong{color:var(--text-primary,#183450);font-size:11px;}
.p25-budget-inline-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--border-subtle,#e3eaf2);border-radius:10px;background:var(--surface-soft,#f8fbff);}
.p25-budget-inline-summary span{color:var(--text-secondary,#718096);font-size:10px;}
.p25-budget-inline-summary strong{color:var(--text-primary,#183450);font-size:12px;}
.p25-budget-inline-summary small{color:var(--text-secondary,#718096);font-size:10px;}
.p25-budget-empty{min-height:140px;}
.p25-budget-unavailable{padding:14px;border:1px dashed var(--border-subtle,#ccd8e5);border-radius:12px;background:var(--surface-soft,#f8fbff);}
.p25-budget-unavailable strong{font-size:12px;color:var(--text-primary,#183450);}
.p25-budget-unavailable p{margin:5px 0 0;color:var(--text-secondary,#718096);font-size:11px;}
@media(max-width:900px){.p25-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.p25-bank-account-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){
  .p25-profile-hero{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:16px;}
  .p25-profile-hero .p2-profile-avatar{width:66px;height:66px;}
  .p25-profile-actions{grid-column:1/-1;justify-self:end;align-self:center;width:auto;margin:0;}
  .p25-profile-actions .primary-button{width:auto;}
  .p25-profile-identity h2{font-size:17px;}
  .p25-profile-sections{padding:14px 16px 18px;}
  .p25-detail-grid,.p25-bank-account-grid{grid-template-columns:1fr;gap:10px;}
  .p25-detail-group{padding:13px 0 15px;}
  .p25-budget-kpis{grid-template-columns:1fr;}
}

/* P25 Repair 2 — Tổng quan student information card, matching the supplied reference. */
.p25-overview-student-card{
  box-sizing:border-box;overflow:hidden;margin:0 0 18px;border:1px solid #36b96a!important;border-radius:11px!important;
  background:var(--surface-card,#fff)!important;box-shadow:0 1px 3px rgba(20,65,40,.07)!important;
}
.p25-overview-student-heading{display:flex;align-items:center;min-height:35px;padding:7px 16px;border-bottom:1px solid #36b96a;background:transparent;}
.p25-overview-student-heading h3{display:flex;align-items:center;gap:8px;margin:0;color:var(--text-primary,#183450);font-size:12px;font-weight:650;}
.p25-overview-student-heading-icon{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;color:#25a85a;}
.p25-overview-student-heading-icon svg{width:15px;height:15px;fill:currentColor;}
.p25-overview-student-body{display:grid;grid-template-columns:76px repeat(3,minmax(0,1fr));gap:0;align-items:stretch;padding:14px 14px 12px;}
.p25-overview-student-avatar{display:flex;align-items:flex-start;justify-content:flex-start;padding:2px 10px 0 0;min-width:0;}
.p25-overview-student-avatar-image,.p25-overview-student-avatar-fallback{display:flex;align-items:center;justify-content:center;width:70px;height:88px;max-width:100%;border-radius:7px;object-fit:cover;overflow:hidden;}
.p25-overview-student-avatar-fallback{background:linear-gradient(145deg,#e6f0ff,#dce7fa);color:#375d91;font-size:21px;font-weight:750;}
.p25-overview-student-column{display:flex;flex-direction:column;gap:6px;min-width:0;padding:1px 12px 0;}
.p25-overview-student-column+.p25-overview-student-column{border-left:1px solid #36b96a;}
.p25-overview-student-row{display:grid;grid-template-columns:minmax(82px,auto) minmax(0,1fr);gap:7px;align-items:start;min-width:0;color:var(--text-primary,#172b3a);font-size:11.5px;line-height:1.48;}
.p25-overview-student-row>span{white-space:nowrap;color:var(--text-primary,#263746);font-weight:450;}
.p25-overview-student-row>strong{min-width:0;color:var(--text-primary,#111f2d);font-size:11.5px;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap;}
@media(max-width:900px){
  .p25-overview-student-body{grid-template-columns:70px repeat(2,minmax(0,1fr));row-gap:10px;}
  .p25-overview-student-column-3{grid-column:2/-1;border-left:0!important;border-top:1px solid #a8dfbc;padding-top:10px;}
}
@media(max-width:640px){
  .p25-overview-student-body{grid-template-columns:62px minmax(0,1fr);gap:8px 0;padding:12px 10px;}
  .p25-overview-student-avatar{grid-column:1;grid-row:1;}
  .p25-overview-student-avatar-image,.p25-overview-student-avatar-fallback{width:54px;height:66px;}
  .p25-overview-student-column{grid-column:1/-1;padding:9px 2px 0;border-left:0!important;border-top:1px solid #b8e4c7;}
  .p25-overview-student-column-1{grid-row:2;}
  .p25-overview-student-column-2{grid-row:3;}
  .p25-overview-student-column-3{grid-row:4;}
  .p25-overview-student-row{grid-template-columns:minmax(100px,35%) minmax(0,1fr);font-size:11px;}
}
.p25-overview-page-header{align-items:flex-start;}
.p25-overview-page-header .page-title{margin:0;color:var(--text-primary,#183450);font-size:21px;font-weight:760;line-height:1.3;}
.p25-overview-page-header .page-description{margin:7px 0 0;color:var(--text-secondary,#718096);font-size:12px;}
@media(max-width:640px){.p25-overview-page-header .page-title{font-size:18px;}}


/* PersonalOS 25 Repair 3 — dashboard layout stabilization. Scoped to Tổng quan only. */
.p25-overview-page-header,.p25-overview-page-header *{box-sizing:border-box}
.p25-overview-page-header{width:100%;max-width:100%;min-width:0}
.p25-overview-page-header .page-actions{min-width:0;max-width:100%;flex-wrap:wrap}
.p25-overview-student-card,.p25-overview-student-body,.p25-overview-student-column,.p25-overview-student-row{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.p25-overview-student-row>span{white-space:normal}
.p25-overview-student-row>strong{overflow-wrap:anywhere;word-break:normal}
.p2-dashboard-grid,.p2-dashboard-grid>.dashboard-column,.p2-dashboard-grid .surface-card,.p2-dashboard-grid .surface-card-body{box-sizing:border-box;min-width:0;max-width:100%}
.p2-dashboard-grid{width:100%;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.p2-dashboard-grid>.dashboard-column{width:100%}
.p2-dashboard-grid .surface-card-header{min-width:0}
.p2-dashboard-grid .surface-card-header>div{min-width:0;flex:1 1 auto}
.p2-dashboard-grid .surface-card-header>button{flex:0 1 auto;max-width:45%;white-space:normal}
.p2-dashboard-grid .surface-card-body{overflow:hidden}
.p2-mini-list{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%}
.p2-mini-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-width:0;max-width:100%;padding:9px 10px;border:1px solid var(--border-subtle,#e5ebf2);border-radius:11px;background:var(--surface-card,#fff);box-sizing:border-box}
.p2-mini-row>*{min-width:0}
.p2-mini-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.p2-mini-copy>strong{display:block;min-width:0;color:var(--text-primary,#183450);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.p2-mini-copy>small{display:block;min-width:0;color:var(--text-secondary,#718096);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.p2-mini-row .p2-mini-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf5ff;color:#286eb5;font-weight:800}
.p2-mini-row .p2-mini-avatar{width:32px;height:32px;flex:0 0 32px}
.p2-mini-row .p25-row-action{justify-self:end;align-self:center;min-height:30px;padding:5px 10px;border:1px solid var(--border-subtle,#d8e4f0);border-radius:8px;background:var(--surface-soft,#f5f9fd);white-space:nowrap}
.p25-task-row .p25-task-status{background:#eef7f1;color:#23834c}
@media(max-width:900px){.p2-dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){
 .p25-overview-student-body{grid-template-columns:58px minmax(0,1fr)}
 .p25-overview-student-row{grid-template-columns:minmax(86px,34%) minmax(0,1fr)}
 .p2-dashboard-grid .surface-card-header{flex-wrap:wrap}
 .p2-dashboard-grid .surface-card-header>button{max-width:100%}
 .p2-mini-row{grid-template-columns:30px minmax(0,1fr) auto;gap:8px;padding:8px}
 .p2-mini-row .p25-row-action{padding:5px 8px}
}
html,body,#app,.app-shell,.main-content,.page-content{max-width:100%}
body{overflow-x:hidden}

/* PersonalOS 26 */
.p26-contact-name-left{display:flex!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;width:100%;gap:10px}.p2-table td:first-child{text-align:left}.p26-timeline-panel .surface-card-body{display:grid;gap:24px}.p26-timeline-scope{min-width:0}.p26-timeline-scope-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 8px}.p26-timeline-scope-head h3{font-size:15px;margin:0}.p26-timeline-scope-head span{font-size:12px;color:var(--text-muted,#64748b);white-space:nowrap}.p26-timeline-scope .p21-axis-card small{line-height:1.45}.p26-timeline-scope .p21-axis-card{min-height:136px}

/* PersonalOS 26 */
.p26-contact-name-left{display:flex!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;width:100%;gap:10px}.p2-table td:first-child{text-align:left}.p26-timeline-panel .surface-card-body{display:grid;gap:24px}.p26-timeline-scope{min-width:0}.p26-timeline-scope-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 8px}.p26-timeline-scope-head h3{font-size:15px;margin:0}.p26-timeline-scope-head span{font-size:12px;color:var(--text-muted,#64748b);white-space:nowrap}.p26-timeline-scope .p21-axis-card small{line-height:1.45}.p26-timeline-scope .p21-axis-card{min-height:136px}.p26-doc-toolbar{align-items:center}.p26-doc-view-select{max-width:180px}.p26-doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:8px 2px}.p26-doc-tile{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;min-height:130px;padding:14px 10px;border:1px solid var(--border-color,rgba(148,163,184,.28));border-radius:12px;background:var(--card-bg,#fff);color:var(--text-primary,#1f2937);text-align:center}.p26-doc-tile strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.p26-doc-tile small{font-size:10px;color:var(--text-muted,#64748b)}.p26-doc-icon{display:grid;place-items:center;font-size:36px;min-height:48px}.p26-doc-xl .p26-doc-icon{font-size:64px;min-height:72px}.p26-doc-large .p26-doc-icon{font-size:52px;min-height:60px}.p26-doc-small{min-height:88px;flex-direction:row;justify-content:flex-start;text-align:left}.p26-doc-small .p26-doc-icon{font-size:22px;min-height:0}.p26-doc-list{display:grid;gap:2px}.p26-doc-list-row{display:grid;grid-template-columns:30px minmax(140px,1fr) 110px 180px;gap:10px;align-items:center;text-align:left;padding:9px 12px;border:0;border-bottom:1px solid var(--border-color,rgba(148,163,184,.2));background:transparent;color:inherit}.p26-doc-list-row strong{font-size:13px;overflow-wrap:anywhere}.p26-doc-list-row small,.p26-doc-content-row small{font-size:11px;color:var(--text-muted,#64748b)}.p26-doc-content{display:grid;gap:6px}.p26-doc-content-row button{display:flex;align-items:center;gap:14px;width:100%;padding:12px;border:1px solid var(--border-color,rgba(148,163,184,.2));border-radius:10px;background:transparent;color:inherit;text-align:left}.p26-doc-content-row button>span:last-child{display:grid;gap:5px}@media(max-width:640px){.p26-doc-list-row{grid-template-columns:28px minmax(0,1fr) 70px}.p26-doc-list-row small:last-child{display:none}.p26-doc-view-select{max-width:100%;width:100%}}

.p26-doc-browser{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,30%);gap:14px;align-items:start}.p26-doc-browser-main{min-width:0;overflow:auto}.p26-doc-sidepane{position:sticky;top:12px;min-width:0;padding:14px;border:1px solid var(--border-color,rgba(148,163,184,.28));border-radius:12px;background:var(--card-bg,#fff)}.p26-doc-sidepane h3{margin:0 0 12px;font-size:14px}.p26-doc-sidepane dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;margin:14px 0 0;font-size:12px}.p26-doc-sidepane dt{color:var(--text-muted,#64748b)}.p26-doc-sidepane dd{margin:0;overflow-wrap:anywhere}.p26-doc-preview-pane iframe{width:100%;height:460px;border:0;border-radius:8px;background:#f1f5f9}.p26-doc-pane-select{max-width:170px}@media(max-width:850px){.p26-doc-browser{grid-template-columns:1fr}.p26-doc-sidepane{position:static}.p26-doc-preview-pane iframe{height:360px}}

.p26-doc-selected-select{max-width:220px}
