/* Retter-Portal v1.3.13 – Launch-/Organisationsverwaltung and mobile card cleanup. */

/* Notifications are available in the sidebar and as a compact dashboard strip, not in the header. */
.dashboard-notification-strip{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line-soft));
  border-radius:16px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 10%,var(--surface)),color-mix(in srgb,#2563eb 6%,var(--surface)));
  box-shadow:0 12px 30px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.34);
  color:var(--text);
}
.dashboard-notification-strip__icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:13px;
  background:linear-gradient(135deg,#e11d48,#be123c);color:#fff;font-weight:950;
  box-shadow:0 10px 25px rgba(225,29,72,.22);
}
.dashboard-notification-strip__copy{display:block;min-width:0}
.dashboard-notification-strip__copy strong,.dashboard-notification-strip__copy small{display:block;min-width:0}
.dashboard-notification-strip__copy strong{font-size:.92rem}
.dashboard-notification-strip__copy small{margin-top:3px;color:var(--muted);font-size:.78rem}
.dashboard-notification-strip__action{padding:7px 10px;border:1px solid var(--line-soft);border-radius:10px;background:rgba(148,163,184,.06);font-size:.78rem;font-weight:900}

/* Launch operator overview. */
.launch-page-hero{align-items:center}
.launch-kpi-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;
}
.launch-kpi-grid article{
  min-width:0;padding:17px 18px;border:1px solid var(--line-soft);border-radius:18px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 78%,transparent),color-mix(in srgb,var(--surface) 90%,transparent));
  box-shadow:0 12px 34px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.30);
}
.launch-kpi-grid span,.launch-kpi-grid strong,.launch-kpi-grid small{display:block;min-width:0}
.launch-kpi-grid span{color:var(--muted);font-size:.68rem;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.launch-kpi-grid strong{margin-top:7px;font-size:1.65rem;line-height:1;font-variant-numeric:tabular-nums}
.launch-kpi-grid small{margin-top:7px;color:var(--muted);font-size:.75rem;line-height:1.35}
.launch-kpi-grid .tone-warning{border-color:rgba(245,158,11,.28);background:linear-gradient(145deg,rgba(245,158,11,.10),color-mix(in srgb,var(--surface) 90%,transparent))}
.launch-kpi-grid .tone-danger{border-color:rgba(225,29,72,.30);background:linear-gradient(145deg,rgba(225,29,72,.10),color-mix(in srgb,var(--surface) 90%,transparent))}
.launch-filter-card{margin-bottom:14px}
.launch-filter-form{display:grid;grid-template-columns:minmax(280px,1.3fr) minmax(180px,.55fr) auto auto;gap:10px;align-items:end}
.launch-filter-form>*{min-width:0;margin:0}.launch-filter-form .btn{min-height:46px}
.launch-requests-card{margin-bottom:14px}
.launch-request-list{display:grid;gap:10px}
.launch-request-item{overflow:hidden;border:1px solid var(--line-soft);border-radius:16px;background:rgba(148,163,184,.035)}
.launch-request-item>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 15px;cursor:pointer;list-style:none}
.launch-request-item>summary::-webkit-details-marker{display:none}
.launch-request-item>summary div{min-width:0}.launch-request-item>summary strong,.launch-request-item>summary small{display:block;min-width:0}
.launch-request-item>summary small{margin-top:4px;color:var(--muted);font-size:.78rem}
.launch-request-body{padding:0 15px 15px;border-top:1px solid var(--line-soft)}
.launch-request-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.launch-request-details>div{min-width:0;padding:12px;border:1px solid var(--line-soft);border-radius:13px;background:rgba(148,163,184,.035)}
.launch-request-details span,.launch-request-details strong,.launch-request-details small{display:block;min-width:0}
.launch-request-details span{color:var(--muted);font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.launch-request-details strong{margin-top:5px}.launch-request-details small{margin-top:3px;color:var(--muted);font-size:.75rem;overflow-wrap:anywhere}
.launch-request-reason{margin:12px 0 0;padding:12px;border-left:3px solid rgba(37,99,235,.50);border-radius:0 12px 12px 0;background:rgba(37,99,235,.055);color:var(--muted)}
.launch-approval-form{margin-top:13px}
.launch-organization-list{display:grid;gap:12px}
.launch-organization-card{scroll-margin-top:105px;overflow:hidden;padding:0!important}
.launch-organization-card>summary{
  display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:17px 19px;cursor:pointer;list-style:none;
}
.launch-organization-card>summary::-webkit-details-marker{display:none}
.launch-org-identity{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:center;gap:12px;min-width:0}
.launch-org-identity>div{min-width:0}.launch-org-identity strong,.launch-org-identity small{display:block;min-width:0}
.launch-org-identity strong{font-size:1.05rem}.launch-org-identity small{margin-top:4px;color:var(--muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.launch-health-dot{width:12px;height:12px;border-radius:50%;background:#10b981;box-shadow:0 0 0 6px rgba(16,185,129,.10)}
.launch-health-dot.tone-warning{background:#f59e0b;box-shadow:0 0 0 6px rgba(245,158,11,.11)}
.launch-health-dot.tone-danger{background:#e11d48;box-shadow:0 0 0 6px rgba(225,29,72,.11)}
.launch-org-summary{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0}
.pill.tone-ok{border-color:rgba(16,185,129,.22)!important;color:#059669!important}.pill.tone-warning{border-color:rgba(245,158,11,.26)!important;color:#d97706!important}.pill.tone-danger{border-color:rgba(225,29,72,.28)!important;color:#e11d48!important}
.launch-org-body{padding:0 19px 19px;border-top:1px solid var(--line-soft)}
.launch-org-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}
.launch-org-metrics article{min-width:0;padding:13px;border:1px solid var(--line-soft);border-radius:14px;background:rgba(148,163,184,.035)}
.launch-org-metrics span,.launch-org-metrics strong,.launch-org-metrics small{display:block;min-width:0}
.launch-org-metrics span{color:var(--muted);font-size:.65rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.launch-org-metrics strong{margin-top:6px;font-size:1.22rem;font-variant-numeric:tabular-nums}
.launch-org-metrics small{margin-top:5px;color:var(--muted);font-size:.72rem;line-height:1.35}
.launch-org-metrics .tone-danger{border-color:rgba(225,29,72,.26);background:rgba(225,29,72,.055)}
.launch-date-value{font-size:.92rem!important;line-height:1.22!important;white-space:normal!important}
.launch-storage-line{margin-top:12px;padding:13px 14px;border:1px solid var(--line-soft);border-radius:14px;background:rgba(148,163,184,.03)}
.launch-storage-line>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:.76rem}.launch-storage-line .v138-storage-meter{margin:0}
.launch-org-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:12px;margin-top:12px}
.launch-org-panel{min-width:0;padding:16px;border:1px solid var(--line-soft);border-radius:16px;background:rgba(148,163,184,.025)}
.launch-org-panel .card-head{margin-bottom:12px}.launch-org-panel h3{margin:0}
.launch-org-form{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.launch-org-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.launch-org-detail-list>div{min-width:0;padding:11px;border:1px solid var(--line-soft);border-radius:12px;background:rgba(148,163,184,.035)}
.launch-org-detail-list dt{color:var(--muted);font-size:.65rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.launch-org-detail-list dd{margin:5px 0 0;font-weight:850;overflow-wrap:anywhere}
.launch-org-links{margin-top:13px}.launch-org-links .btn{flex:1 1 150px}

@media(max-width:1280px){
  .launch-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .launch-org-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .launch-org-columns{grid-template-columns:1fr}
}
@media(max-width:900px){
  .launch-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-filter-form .btn{width:100%}
  .launch-request-details{grid-template-columns:1fr}
}

/* One visible mobile record card – no outer card plus inner card. */
@media(max-width:760px){
  .rp-mobile-header__bottom{grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important}
  .rp-mobile-header__theme{min-width:0!important}.rp-mobile-header__account{min-width:0!important}
  .dashboard-notification-strip{grid-template-columns:38px minmax(0,1fr);padding:11px 12px}.dashboard-notification-strip__icon{width:38px;height:38px}.dashboard-notification-strip__action{display:none}

  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap):not(:has(> .card-head)):has(> table){
    padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;overflow:visible!important;
  }
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table,
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody{
    width:100%!important;max-width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important;
  }
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr{
    margin:0!important;padding:0!important;border:1px solid var(--line-soft)!important;border-radius:18px!important;
    background:linear-gradient(180deg,color-mix(in srgb,var(--surface-2) 88%,transparent),color-mix(in srgb,var(--surface) 94%,transparent))!important;
    box-shadow:0 10px 28px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.22)!important;overflow:hidden!important;
  }
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr>td{
    margin:0!important;padding:12px 15px!important;border:0!important;border-bottom:1px solid var(--line-soft)!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;outline:0!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr>td:last-child{border-bottom:0!important}
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr>td:focus,
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr>td:focus-within{
    background:transparent!important;box-shadow:none!important;outline:0!important;transform:none!important;
  }
  html body .content :is(.card.table-wrap,.table-wrap,.data-table-card,.checks-table-wrap) > table tbody tr>td::before{
    margin:0 0 4px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;
  }
  .launch-kpi-grid,.launch-org-metrics,.launch-filter-form,.launch-org-detail-list{grid-template-columns:1fr}
  .launch-organization-card>summary{align-items:flex-start;flex-direction:column;padding:15px}.launch-org-summary{justify-content:flex-start}.launch-org-identity small{white-space:normal;overflow-wrap:anywhere}
  .launch-org-body{padding:0 15px 15px}.launch-org-panel{padding:13px}.launch-request-item>summary{align-items:flex-start}.launch-request-body{padding-inline:12px}
}
