/* ============================================================================
   FISIP UHT • Consolidated adaptive viewport layer (2026-10-08)
   UI-only. Official letters, data, permissions and database remain unchanged.
   Loaded AFTER page CSS. Designed for 320px → widescreen, zoom and tablets.
   ============================================================================ */
@media screen {
  body.fisip-ui { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
  body.fisip-ui, body.fisip-ui * { box-sizing: border-box; }
  body.fisip-ui img, body.fisip-ui video, body.fisip-ui svg { max-width: 100%; }
  body.fisip-ui :is(.main-panel,.content,.container-fluid,.as-shell,.ms-shell,.sp-shell,.sm-main,.sm-content,.mahasiswa-admin-page,.student-dashboard-page,.admin-submission-page,.master-service-page,.staff-page) { min-width: 0; }
  body.fisip-ui :is(.as-card,.ms-card,.sp-card,.sm-card,.wd-panel,.card,.panel,.table-card,.detail-card) { max-width: 100%; }
  body.fisip-ui :is(.as-hero,.ms-hero,.sp-hero,.wd-hero,.sm-hero,.student-2g2-hero,.table-card-header,.detail-card-header,.as-card-head,.ms-card-head,.sp-card-head) > * { min-width: 0; }
  body.fisip-ui :is(.as-hero,.ms-hero,.sp-hero,.wd-hero,.sm-hero) :is(h1,h2,h3,p) { overflow-wrap: break-word; }
  body.fisip-ui :is(.as-info-grid,.ms-info-grid,.sp-info-grid,.sm-info-grid,.wd-main-grid,.wd-stat-grid,.student-2g2-service-grid) > * { min-width: 0; }
  body.fisip-ui :is(input,select,textarea) { max-width: 100%; }
  body.fisip-ui :is(input[type="file"],.as-code,.ms-code,.sm-code,.archive-number-box strong) { overflow-wrap: anywhere; }
  body.fisip-ui :is(button,.btn,.as-btn,.ms-primary,.ms-secondary,.sp-btn,.sm-btn) { white-space: normal; }
  body.fisip-ui :is(.modal-dialog,.swal2-popup,.sweet-alert) { max-width: calc(100vw - 24px) !important; }
  body.fisip-ui :is(.modal-body,.swal2-html-container,.sweet-alert) { overflow-wrap: anywhere; }
  body.fisip-ui .modal-body { max-height: min(70dvh,680px); overflow-y: auto; }
  body.fisip-ui :is(a,button,input,textarea,select):focus-visible { outline: 3px solid rgba(242,140,40,.68); outline-offset: 2px; }
  body.fisip-ui .fisip-adaptive-table [data-label] { overflow-wrap: anywhere; }
}

/* Laptop with compact viewport: modern cards, not a forced 900px-wide table.
   Only tables explicitly labeled by the safe DOM adapter receive this mode. */
@media screen and (max-width: 1540px) {
  body.fisip-admin-ui .main-panel > .content { min-width: 0 !important; }
  body.fisip-admin-ui .main-panel > .content > .container-fluid { min-width: 0 !important; max-width: 100%; }
  body.fisip-admin-ui .fisip-adaptive-table,
  body.fisip-admin-ui .fisip-adaptive-table tbody,
  body.fisip-admin-ui .fisip-adaptive-table tr,
  body.fisip-admin-ui .fisip-adaptive-table td { min-width: 0 !important; }
  body.fisip-admin-ui table.fisip-adaptive-table {
    display: block !important; width: 100% !important; border-collapse: separate !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > thead { display: none !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody {
    display: grid !important;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,390px),1fr));
    gap: 12px !important; padding: 12px !important;
    background: #F5F8FA;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr {
    display: block !important; padding: 6px 0 !important; border: 1px solid #DCE7ED !important;
    border-radius: 13px !important; background: #FFF !important;
    box-shadow: 0 4px 14px rgba(22,75,109,.045);
    overflow: hidden !important; height: auto !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td {
    display: block !important; position: relative !important;
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 9px 12px 9px max(36%,125px) !important;
    min-height: 38px !important; border: 0 !important;
    border-bottom: 1px solid #EFF3F6 !important;
    text-align: left !important; font-size: 13.5px !important;
    line-height: 1.5 !important; overflow-wrap: anywhere;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td:last-child { border-bottom: 0 !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td::before {
    content: attr(data-label); position: absolute; left: 12px; top: 10px;
    width: calc(max(36%,125px) - 24px); max-width: 39%;
    font-size: 11px; font-weight: 750; line-height: 1.45; color: #607789;
    text-transform: uppercase; letter-spacing: .025em; overflow-wrap: anywhere;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td :is(.as-code,.ms-code,.sp-badge,.as-status,.status-badge) { white-space: normal; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td :is(.student-cell,.as-row-actions,.ms-row-actions,.sp-actions) { min-width: 0; flex-wrap: wrap; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td:last-child :is(a,button) { margin: 2px 4px 2px 0; }
}
@media screen and (max-width: 850px) {
  body.fisip-student-ui table.fisip-adaptive-table { display: block !important; width: 100% !important; min-width: 0 !important; }
  body.fisip-student-ui table.fisip-adaptive-table > thead { display: none !important; }
  body.fisip-student-ui table.fisip-adaptive-table > tbody { display: grid !important; grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  body.fisip-student-ui table.fisip-adaptive-table > tbody > tr { display: block !important; border: 1px solid #DCE7ED; border-radius: 12px; background: white; overflow: hidden; }
  body.fisip-student-ui table.fisip-adaptive-table > tbody > tr > td { display: block !important; position: relative; width: 100% !important; padding: 10px 12px 10px max(35%,115px) !important; border-bottom: 1px solid #E8EFF3 !important; }
  body.fisip-student-ui table.fisip-adaptive-table > tbody > tr > td::before { content: attr(data-label); position:absolute; top:11px; left:12px; width:calc(max(35%,115px) - 20px); font-size:11px; font-weight:700; color:#5F7888; line-height:1.4; overflow-wrap:anywhere; }
}
/* Space matters vertically as well as horizontally on 13-inch laptops. */
@media screen and (min-width: 981px) and (max-width: 1600px) {
  body.fisip-auth-ui .page-shell { width: min(1320px,calc(100% - 36px)); }
  body.fisip-auth-ui .topbar { min-height: 78px; padding: 10px 0; }
  body.fisip-auth-ui .content { gap: clamp(24px,3vw,54px); padding: 16px 0 28px; }
  body.fisip-auth-ui .intro h1 { font-size: clamp(32px,3.7vw,55px); line-height: 1.13; }
  body.fisip-auth-ui .card { padding: clamp(22px,2.1vw,32px); }
  body.fisip-auth-ui .brand-logo { width: 115px; }
  body.fisip-auth-ui .brand-logo-wrap { min-width: 0; padding: 7px 10px; }
}
@media screen and (min-width:981px) and (max-height: 850px) {
  body.fisip-auth-ui .content { align-items: start; }
  body.fisip-auth-ui .intro { padding-top: 25px; }
  body.fisip-auth-ui .intro-lead { margin-top: 16px; }
  body.fisip-auth-ui .feature-row { margin-top: 16px; }
  body.fisip-auth-ui .service-note { margin-top: 18px; }
  body.fisip-auth-ui .card-topline { margin-bottom: 14px; }
  body.fisip-auth-ui .subtitle { margin-bottom: 13px; }
}
@media screen and (max-width: 991.98px) {
  body.fisip-admin-ui .main-panel .navbar .navbar-brand { max-width: min(62vw,530px) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.fisip-admin-ui .main-panel > .content > .container-fluid { padding-left: clamp(10px,3vw,22px); padding-right: clamp(10px,3vw,22px); }
  body.fisip-ui :is(.as-filter-grid,.ms-filter-grid,.sp-filter-grid,.sm-filter-grid) { max-width: 100%; }
  body.fisip-ui :is(.as-page-head,.ms-page-head,.sp-page-head,.sm-card-head) { flex-wrap: wrap; }
}
@media screen and (max-width: 680px) {
  body.fisip-ui :is(.as-card-head,.ms-card-head,.sp-card-head,.table-card-header,.detail-card-header) { flex-wrap: wrap; gap: 10px; }
  body.fisip-ui :is(.as-card-body,.ms-card-body,.sp-card-body,.detail-card-body) { max-width:100%; }
  body.fisip-ui .footer,body.fisip-ui .copyright { text-align:center; float:none !important; }
  body.fisip-ui :is(.as-hero,.ms-hero,.sp-hero,.wd-hero,.sm-hero) { padding: clamp(16px,4vw,28px); }
  body.fisip-ui :is(.as-hero,.ms-hero,.sp-hero,.wd-hero,.sm-hero) :is(h1,h2) { font-size: clamp(22px,6vw,31px); }
  body.fisip-ui :is(.btn,.as-btn,.ms-primary,.ms-secondary,.sp-btn,.sm-btn) { min-height: 40px; }
  body.fisip-auth-ui .page-shell { width: calc(100% - 24px); }
  body.fisip-auth-ui .topbar { min-height: 64px; }
  body.fisip-auth-ui .intro h1 { font-size: clamp(25px,7vw,34px); }
  body.fisip-auth-ui .content { gap: 12px; }
  body.fisip-auth-ui .card { border-radius: 16px; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody { grid-template-columns: 1fr; padding: 8px !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td { padding-left: max(36%,120px) !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td::before { width: calc(max(36%,120px) - 24px); }
}
@media screen and (max-width: 380px) {
  body.fisip-ui .modal-dialog { margin: 6px !important; max-width: calc(100% - 12px) !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td { padding: 9px 9px 9px 117px !important; }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td::before { left: 9px; width: 100px; }
}
@media (prefers-reduced-motion: reduce) { body.fisip-ui *,body.fisip-ui *::before,body.fisip-ui *::after { scroll-behavior: auto !important; } }
/* ===========================================================================
   FISIP UHT — Layout convergence 2.0 (2026-10-09)
   Global UI only; retains letter print templates, business rules and data.
   Breakpoints account for the SIDEBAR and usable content width.
   =========================================================================== */

/* Admin sidebar is three FLEX regions (brand / navigable menu / logout),
   not three independently estimated heights. No footer-on-menu overlap. */
@media screen {
  body.fisip-admin-ui .sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.fisip-admin-ui .sidebar > .logo.fisip-brand {
    flex: 0 0 auto !important;
    height: auto !important;
  }
  body.fisip-admin-ui .sidebar > .sidebar-wrapper {
    position: relative !important;
    top: auto !important;
    flex: 1 1 0% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
    padding-bottom: 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
  }
  body.fisip-admin-ui .sidebar > .sidebar-fixed-logout {
    position: relative !important;
    flex: 0 0 auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    width: 100% !important;
    min-height: 60px;
    z-index: 2;
  }
  body.fisip-admin-ui .sidebar > .sidebar-fixed-logout a {
    min-height: 44px;
    height: auto;
  }
  body.fisip-admin-ui .main-panel,
  body.fisip-admin-ui .main-panel .content,
  body.fisip-admin-ui .main-panel > .content > .container-fluid {
    min-width: 0 !important;
    max-width: 100%;
  }
  body.fisip-ui :is(.filter-card,.archive-filter-grid,.filter-grid,.archive-filter-field,.filter-field) {
    min-width: 0;
  }
}

/* FIX VERIFIED: Six rigid columns in the archive and student search forms
   exceeded the available admin content area even on a 13-inch laptop. */
@media screen and (max-width: 1800px) {
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    align-items: end;
    gap: 12px !important;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .search-field {
    grid-column: span 2 !important;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions {
    grid-column: span 2 !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions > * {
    min-width: 0;
  }
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid > .wide {
    grid-column: span 2 !important;
  }
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid input,
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid select,
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid input,
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Desktop cards were technically width-safe but disproportionately tall. */
  body.fisip-admin-ui table.fisip-adaptive-table > tbody {
    gap: 10px !important;
    padding: 10px !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr {
    padding: 3px 0 !important;
    border-radius: 12px !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td {
    min-height: 32px !important;
    padding: 6px 10px 6px max(36%,120px) !important;
    line-height: 1.35 !important;
    font-size: 13px !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td::before {
    left: 10px !important;
    top: 7px !important;
    width: calc(max(36%,120px) - 18px) !important;
    font-size: 10.25px !important;
  }
}

@media screen and (max-width: 1200px) {
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid,
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .search-field,
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid > .wide,
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions {
    grid-column: 1 / -1 !important;
  }
}

@media screen and (max-width: 680px) {
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid,
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .search-field,
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions,
  body.fisip-admin-ui .admin-submission-page .archive-filter-grid > .wide {
    grid-column: 1 !important;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions,
  body.fisip-admin-ui .admin-submission-page .archive-filter-actions {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    width: 100%;
  }
  body.fisip-admin-ui .mahasiswa-admin-page:not(.detail-page) .filter-grid > .filter-actions > *,
  body.fisip-admin-ui .admin-submission-page .archive-filter-actions > * {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
}

/* REGISTRATION: Keep full form width on compact notebooks; collapse the
   decorative sticky column into a small, non-sticky institutional masthead.
   This prevents the same screen from always showing a 36% unused rail. */
@media screen and (max-width: 1750px) {
  body.register-page .register-shell {
    display: block !important;
    min-height: 100dvh;
  }
  body.register-page .register-brand {
    position: relative !important;
    top: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 17px clamp(16px,4vw,42px) !important;
  }
  body.register-page .register-brand__content {
    display: grid !important;
    grid-template-columns: 70px minmax(0,1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 15px;
    max-width: 1050px;
    width: 100%;
  }
  body.register-page .register-brand__logo {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0 !important;
    width: 64px !important;
    max-width: 100%;
  }
  body.register-page .register-brand__eyebrow { grid-column: 2; margin: 0 !important; font-size: 10.5px; }
  body.register-page .register-brand h1 {
    grid-column: 2;
    margin: 0 !important;
    max-width: none;
    font-size: clamp(19px,2vw,27px) !important;
    line-height: 1.22;
  }
  body.register-page .register-brand h1 br { display: none; }
  body.register-page .register-brand h1 span::before { content: ' '; }
  body.register-page .register-brand__lead,
  body.register-page .register-brand__features,
  body.register-page .register-brand__note { display: none !important; }
  body.register-page .register-main {
    width: 100%;
    padding: 24px clamp(14px,3vw,46px) 32px !important;
  }
  body.register-page .register-main__inner { width: min(1100px,100%) !important; }
}
@media screen and (max-width: 620px) {
  body.register-page .register-brand { padding: 12px 14px !important; }
  body.register-page .register-brand__content { grid-template-columns: 52px minmax(0,1fr); gap: 3px 10px; text-align: left; justify-items: start; }
  body.register-page .register-brand__logo { width: 50px !important; }
  body.register-page .register-brand__eyebrow { font-size: 9px !important; }
  body.register-page .register-brand h1 { font-size: clamp(16px,4.6vw,21px) !important; }
  body.register-page .register-main { padding: 17px 12px 26px !important; }
  body.register-page .register-heading { margin-bottom: 14px !important; }
  body.register-page .register-heading h2 { font-size: clamp(23px,6vw,30px) !important; }
}

/* LOGIN FINAL: proporsi area sambutan : formulir = 56 : 44.
   Berlaku pada seluruh desktop termasuk laptop dengan layar rendah;
   tablet/HP tetap mengikuti breakpoint satu kolom <= 980px. */
@media screen and (min-width: 981px) {
  body.fisip-auth-ui:not(.register-page) .content {
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr) !important;
  }
  body.fisip-auth-ui:not(.register-page) .login-column { min-width: 0; }
}

/* AUTH LOGIN: compact-height viewport (13-inch notebook); the login form
   starts close to the header and keeps all security/validation messages. */
@media screen and (min-width: 981px) and (max-height: 950px) {
  body.fisip-auth-ui:not(.register-page) .topbar { min-height: 66px !important; padding: 9px 0 !important; }
  body.fisip-auth-ui:not(.register-page) .brand-logo { width: 86px !important; }
  body.fisip-auth-ui:not(.register-page) .content {
    align-items: start !important;
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr) !important;
    gap: clamp(24px,3vw,50px) !important;
    padding: 10px 0 20px !important;
  }
  body.fisip-auth-ui:not(.register-page) .intro { padding: 15px 0 0 !important; }
  body.fisip-auth-ui:not(.register-page) .intro h1 { font-size: clamp(30px,3.1vw,46px) !important; line-height: 1.14; }
  body.fisip-auth-ui:not(.register-page) .intro-lead { font-size: 14px !important; margin-top: 12px !important; line-height: 1.52; }
  body.fisip-auth-ui:not(.register-page) .feature-row { margin-top: 12px !important; }
  body.fisip-auth-ui:not(.register-page) .service-note { margin-top: 14px !important; }
  body.fisip-auth-ui:not(.register-page) .card { padding: 22px 26px !important; }
  body.fisip-auth-ui:not(.register-page) .card-topline { margin-bottom: 12px !important; }
  body.fisip-auth-ui:not(.register-page) .card h2 { font-size: 26px !important; }
  body.fisip-auth-ui:not(.register-page) .subtitle { margin-bottom: 12px !important; }
  body.fisip-auth-ui:not(.register-page) .login-info { margin-bottom: 12px !important; padding: 9px 11px !important; }
}
@media screen and (max-width: 980px) {
  body.fisip-auth-ui:not(.register-page) .content { grid-template-columns: 1fr !important; }
  body.fisip-auth-ui:not(.register-page) .intro { max-width: none; }
  body.fisip-auth-ui:not(.register-page)::after { display: none !important; }
  html:has(body.fisip-auth-ui:not(.register-page)) { overflow-x: clip !important; }
  body.fisip-auth-ui:not(.register-page) { overflow-x: clip !important; }
  body.fisip-auth-ui:not(.register-page) .intro h1 { font-size: clamp(25px,5vw,39px) !important; }
  body.fisip-auth-ui:not(.register-page) .feature-row, body.fisip-auth-ui:not(.register-page) .service-note { display: none !important; }
}
@media screen and (max-width: 600px) {
  body.fisip-auth-ui:not(.register-page) .card { padding: 18px 16px !important; }
  body.fisip-auth-ui:not(.register-page) .login-info { padding: 10px !important; }
  body.fisip-auth-ui:not(.register-page) .intro h1 { font-size: clamp(24px,7vw,32px) !important; }
  body.fisip-auth-ui:not(.register-page) .intro-lead { font-size: 13px !important; }
}

/* A11y: do not animate things for users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  body.fisip-ui .sidebar,
  body.fisip-ui .sidebar-wrapper,
  body.fisip-ui .register-brand { transition: none !important; }
}


/* ==========================================================================
   FISIP UHT / UI LINTAS PERANGKAT — PATCH 3.0 (09 OKTOBER 2026)
   Sasaran: header, sidebar, grid/filter/tabel serta keterbacaan responsif.
   Dipasang paling akhir: seluruh aturan sebelumnya tetap dipertahankan.
   KHUSUS LAYAR: tidak mengubah dokumen A4 atau pengaturan @media print.
   ========================================================================== */
@media screen {
  /* Hindari item flex/grid mendorong seluruh halaman melebar. */
  body.fisip-ui :is(.main-panel,.container-fluid,.row,.card,.card-body,
    .as-page-head,.ms-page-head,.sp-page-head,.sm-page-head,
    .as-card,.ms-card,.sp-card,.ap-hero,.dashboard-hero,
    .as-filter-grid,.ms-filter-grid,.sp-filter-grid,
    .filter-grid,.archive-filter-grid) > * { min-width: 0; }

  /* Teks panjang bisa turun baris, bukan mendorong tombol dan kolom. */
  body.fisip-ui :is(.as-card,.ms-card,.sp-card,.ap-card,.card,
    .as-info-grid,.ms-info-grid,.sp-info-grid,.detail-card,
    .student-cell,.mahasiswa-admin-page,.admin-submission-page,
    .master-service-page,.staff-page) :is(p,dd,strong,a,span) {
    overflow-wrap: break-word;
  }
  body.fisip-ui :is(input,select,textarea) { min-width: 0; }

  /* Ruang popover tidak harus melampaui lebar perangkat. */
  body.fisip-admin-ui .fisip-notification-navbar { flex: 0 0 auto; }
  body.fisip-admin-ui .notification-popover {
    max-width: min(390px, calc(100vw - 24px));
  }
}

/* Header administrasi: menghilangkan akumulasi min-height dan padding bawaan
   Material Dashboard yang membuat kepala halaman setinggi kira-kira 120px. */
@media screen and (min-width: 992px) {
  body.fisip-admin-ui { --fisip-v5-header-height: 68px; }
  body.fisip-admin-ui .main-panel > nav.navbar.navbar-absolute {
    padding: 0 !important;
    min-height: 68px !important;
    height: auto !important;
  }
  body.fisip-admin-ui .main-panel > nav.navbar > .container-fluid {
    min-height: 68px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-header {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0 !important;
    min-width: 0;
    width: auto;
    float: none;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-brand {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: normal;
    overflow-wrap: break-word;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-minimize,
  body.fisip-admin-ui .main-panel > .navbar .fisip-notification-navbar {
    margin: 0 !important;
    flex: 0 0 auto;
  }
  body.fisip-admin-ui .main-panel > .navbar #minimizeSidebar {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.fisip-admin-ui .main-panel > .navbar .notification-bell-button {
    width: 42px;
    height: 42px;
  }
  body.fisip-admin-ui .main-panel > .content {
    padding-top: 20px !important;
  }
  /* Ringkaskan panel merek; menu tetap dapat digulir secara mandiri. */
  body.fisip-admin-ui .sidebar > .logo.fisip-brand {
    padding: 9px 14px 10px !important;
  }
  body.fisip-admin-ui .sidebar .fisip-brand-logo {
    height: 67px !important;
    width: 158px !important;
    margin-bottom: 5px !important;
  }
  body.fisip-admin-ui .sidebar .fisip-brand-title {
    line-height: 1.4 !important;
  }
}

/* Laptop kecil dan tablet lebar: pertahankan jarak baca tanpa kolom sempit. */
@media screen and (min-width: 992px) and (max-width: 1399px) {
  body.fisip-admin-ui .main-panel > .content > .container-fluid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-brand {
    font-size: 18px !important;
  }
  body.fisip-admin-ui :is(.as-hero,.ms-hero,.sp-hero,.dashboard-hero) {
    max-width: 100%;
  }
}

/* Sidebar menjadi drawer di layar tablet/HP. Sticky header cukup satu baris;
   ruang konten adalah pasangan dari tinggi header posisi fixed yang sudah ada. */
@media screen and (max-width: 991.98px) {
  body.fisip-admin-ui { --fisip-v5-header-height: 64px; }
  body.fisip-admin-ui .main-panel > nav.navbar.navbar-absolute {
    min-height: 64px !important;
    padding: 0 !important;
    height: 64px !important;
  }
  body.fisip-admin-ui .main-panel > .navbar > .container-fluid {
    min-height: 64px !important;
    height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-header {
    min-height: 64px !important;
    height: 64px !important;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-header .navbar-brand {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3 !important;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-header .navbar-toggle {
    flex: 0 0 40px;
    min-height: 40px;
  }
  body.fisip-admin-ui .main-panel > .navbar .notification-bell-button {
    width: 40px;
    height: 40px;
  }
  body.fisip-admin-ui .main-panel > .content {
    margin-top: 64px !important;
    padding-top: 16px !important;
  }
  body.fisip-admin-ui .sidebar > .logo.fisip-brand {
    padding-top: 10px !important;
    padding-bottom: 9px !important;
  }
  body.fisip-admin-ui .sidebar .fisip-brand-logo {
    height: 62px !important;
    margin-bottom: 5px !important;
  }
}

/* HP: aksi tidak keluar dari card, dan label tidak memotong isi. */
@media screen and (max-width: 680px) {
  body.fisip-admin-ui .main-panel > .content > .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.fisip-ui :is(.as-page-actions,.ms-page-actions,.sp-page-actions,
    .as-row-actions,.ms-row-actions,.sp-actions,.filter-actions,
    .archive-filter-actions) {
    max-width: 100%;
    flex-wrap: wrap;
  }
  body.fisip-ui :is(.as-row-actions,.ms-row-actions,.sp-actions) > * {
    max-width: 100%;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td {
    overflow-wrap: anywhere;
  }
  body.fisip-ui :is(.as-card,.ms-card,.sp-card,.card) {
    min-width: 0;
  }
  body.fisip-auth-ui:not(.register-page) .content {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
  }
}

/* Ukuran sangat sempit: data tabular lebih baik label di atas konten daripada
   area isi hanya mendapat 150px, khusus pada kartu adaptif, bukan surat A4. */
@media screen and (max-width: 420px) {
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td,
  body.fisip-student-ui table.fisip-adaptive-table > tbody > tr > td {
    padding: 28px 10px 9px 10px !important;
  }
  body.fisip-admin-ui table.fisip-adaptive-table > tbody > tr > td::before,
  body.fisip-student-ui table.fisip-adaptive-table > tbody > tr > td::before {
    position: absolute;
    left: 10px !important;
    top: 7px !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    white-space: normal;
  }
  body.fisip-admin-ui .main-panel > .navbar .navbar-header .navbar-brand {
    font-size: 16px !important;
  }
}

/* FISIP_UHT_HEADER_DESKTOP_ALIGN_V1
   Only administrative desktop headers >= 992px. No letter print or mobile changes.
   Material Dashboard gives .navbar-brand a fixed 50px height; V3 zeroes its
   padding but keeps that height, placing the text visually above center. */
@media screen and (min-width: 992px) {
  body.fisip-admin-ui .main-panel > nav.navbar.navbar-absolute .navbar-header > a.navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    vertical-align: middle;
  }
  /* Keep the hamburger/minimize control centered without moving it sideways. */
  body.fisip-admin-ui .main-panel > nav.navbar.navbar-absolute .navbar-minimize {
    padding-top: 0 !important;
  }
}

/* ==========================================================================
 FISIP UHT — Penyelarasan UI Lintas Modul, Oktober 2026
 Berlaku hanya untuk layar; template cetak A4 dan aturan backend tidak diubah.
 ========================================================================= */
@media screen {
  /* Konsistensi hirarki judul: sebelumnya beberapa card menggunakan weight 300
     sehingga terlihat tipis di antara teks label/angka yang lebih dominan. */
  body.fisip-admin-ui :is(
    .admin-submission-page .as-card-head h3,
    .master-service-page .ms-card-head h3,
    .staff-page .sp-card-head h3,
    .mahasiswa-admin-page .table-card-header h2,
    .mahasiswa-admin-page .detail-card-header h2,
    .mahasiswa-admin-page .academic-card-title h2,
    .dashboard-v2 .dashboard-section-head h3
  ) {
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: -.012em;
    color: #1D5D84 !important;
    overflow-wrap: break-word;
  }
  body.fisip-admin-ui :is(.as-hero h2,.ms-hero h2,.sp-hero h2,
    .mahasiswa-admin-page .page-heading h1,.mahasiswa-admin-page .detail-topbar h1) {
    font-weight: 700 !important;
    letter-spacing: -.018em;
    line-height: 1.22 !important;
    text-wrap: balance;
  }
  body.fisip-admin-ui :is(.as-hero p,.ms-hero p,.sp-hero p,
    .mahasiswa-admin-page .page-heading p,.mahasiswa-admin-page .detail-topbar p) {
    line-height: 1.64 !important;
    max-width: 900px;
    color: #657D8F !important;
  }
  /* Field nilai administrasi tidak terpotong saat judul panjang / NIM lebar. */
  body.fisip-admin-ui :is(.as-info-grid,.ms-detail-meta,.sp-form-grid,
    .retention-form-grid,.as-detail-grid,.ms-detail-grid) > * {
    min-width: 0;
  }
  body.fisip-admin-ui :is(.as-info-grid,.ms-detail-meta) :is(strong,small,span) {
    overflow-wrap: anywhere;
  }
  /* Di desktop, card sebelah kanan yang berisi sedikit data tidak memanjang
     untuk menyesuaikan tinggi card tetangganya. */
  body.fisip-admin-ui .admin-submission-page .as-detail-grid,
  body.fisip-admin-ui .master-service-page .ms-detail-grid {
    align-items: start !important;
  }
  body.fisip-admin-ui .master-service-page .ms-detail-grid > .ms-card,
  body.fisip-admin-ui .admin-submission-page .as-detail-grid > .as-card {
    height: auto !important;
    align-self: start;
  }
  body.fisip-admin-ui :is(.ms-card,.as-card,.sp-card,.table-card,.filter-card,.detail-card) {
    border-color: #DBE7EE !important;
  }
  /* Satu standar visual untuk informasi bantuan pada modul layanan. */
  body.fisip-admin-ui .master-service-page .ms-description {
    color: #526D80;
    line-height: 1.7;
    overflow-wrap: break-word;
  }
  body.fisip-admin-ui .master-service-page .ms-table .ms-help {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    max-width: 55ch;
    line-height: 1.55;
    overflow-wrap: break-word;
  }
  /* Pagination Master Layanan: jangan gunakan warna ungu bawaan dashboard. */
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 0;
    align-items: center;
  }
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination > li > a,
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination > li > span {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D8E6EF !important;
    border-radius: 10px !important;
    background: #F5F9FB !important;
    color: #1D5D84 !important;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none !important;
  }
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination > li.active > a,
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination > li.active > span {
    color: #FFF !important;
    background: #246F9B !important;
    border-color: #246F9B !important;
  }
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination > li:not(.active) > a:hover {
    background: #E8F4FA !important;
    color: #1D5D84 !important;
  }
  /* Fokus terlihat jelas tanpa menggoyangkan tata letak. */
  body.fisip-ui :is(.as-btn,.ms-primary,.ms-secondary,.sp-btn,.btn-filter,
    .detail-button,.fisip-page-link,.ms-icon-btn):focus-visible {
    outline: 3px solid rgba(242,140,40,.7) !important;
    outline-offset: 3px;
  }
  /* CTA pada seluruh modul tetap dapat dibaca dan tidak pecah pada kata. */
  body.fisip-admin-ui :is(.as-btn,.ms-primary,.ms-secondary,.sp-btn) {
    line-height: 1.35 !important;
    text-align: center;
    overflow-wrap: normal;
  }
  body.fisip-admin-ui .dashboard-v2 .activity-copy > span:not(.activity-meta) {
    white-space: normal !important;
    overflow-wrap: break-word;
    text-overflow: clip;
    line-height: 1.55;
  }
}
@media screen and (min-width: 992px) {
  /* Pemadatan lembut tanpa merusak tinggi konten yang memang panjang. */
  body.fisip-admin-ui .main-panel > .navbar .navbar-header > .navbar-brand {
    align-self: center;
    line-height: 1.3 !important;
  }
}
@media screen and (max-width: 991.98px) {
  /* Ruang baca pada tablet/HP tetap satu kolom dan header fixed. */
  body.fisip-admin-ui .master-service-page .ms-detail-grid,
  body.fisip-admin-ui .admin-submission-page .as-detail-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.fisip-admin-ui .master-service-page .ms-pagination { padding: 12px !important; }
  body.fisip-admin-ui .master-service-page .ms-pagination .pagination { justify-content: center; }
}
@media screen and (max-width: 600px) {
  body.fisip-admin-ui :is(.as-card-head,.ms-card-head,.sp-card-head) { padding: 16px !important; }
  body.fisip-admin-ui :is(.as-card-body,.ms-card-body,.sp-card-body) { min-width: 0; }
  body.fisip-admin-ui :is(.as-hero,.ms-hero,.sp-hero) > div { max-width: 100%; }
  body.fisip-admin-ui .master-service-page .ms-table .ms-help { max-width: 100%; }
}


/* ===========================================================================
   FISIP UHT — STANDAR GRID LINTAS ROLE / KONSOLIDASI 09 OKTOBER 2026
   HANYA TAMPILAN LAYAR. Tidak mengubah preview A4, form action, role, atau data.
   Aturan khusus modul tetap berlaku; ini lapisan pelindung responsivitas.
   =========================================================================== */
@media screen {
  /* Setiap kolom boleh menyusut tanpa mendorong halaman melampaui viewport.
     Jangan diterapkan ke <table> agar identitas kolom tetap terjaga. */
  body.fisip-ui :is(
    .as-detail-grid,.as-info-grid,.as-filter,.as-filter-grid,.archive-filter-grid,
    .as-card-grid,.as-list-grid,.retention-summary-grid,.retention-form-grid,
    .destruction-grid,.ms-detail-grid,.ms-form-grid,.ms-filter-grid,.ms-mode-grid,
    .ms-prodi-grid,.ms-scope-radio-grid,.sp-form-grid,.sp-filter-grid,
    .sm-detail-grid,.sm-info-grid,.sm-form-grid,.sm-service-grid,.sm-filter-grid,
    .wd-main-grid,.wd-stat-grid,.wd-side-panels,.fs-grid,.fs-kpi-grid,
    .fs-filter-grid,.fs-report-summary-grid,.ap-grid,.ap-data-grid,
    .pa-content-grid,.pa-data-grid,.register-grid,.profile-grid,
    .student-2g2-bottom,.student-2g2-aside,.student-2g2-service-grid,
    .dashboard-v2 .ops-grid,.dashboard-v2 .analytics-grid,
    .mahasiswa-admin-page .detail-layout,.mahasiswa-admin-page .student-detail-utilities,
    .mahasiswa-admin-page .filter-grid,.mahasiswa-admin-page .summary-grid,
    .mahasiswa-admin-page .academic-summary-grid
  ) { min-width: 0; max-width: 100%; }
  body.fisip-ui :is(
    .as-detail-grid,.as-info-grid,.as-filter,.as-filter-grid,.archive-filter-grid,
    .as-card-grid,.as-list-grid,.retention-summary-grid,.retention-form-grid,
    .destruction-grid,.ms-detail-grid,.ms-form-grid,.ms-filter-grid,.ms-mode-grid,
    .ms-prodi-grid,.ms-scope-radio-grid,.sp-form-grid,.sp-filter-grid,
    .sm-detail-grid,.sm-info-grid,.sm-form-grid,.sm-service-grid,.sm-filter-grid,
    .wd-main-grid,.wd-stat-grid,.wd-side-panels,.fs-grid,.fs-kpi-grid,
    .fs-filter-grid,.fs-report-summary-grid,.ap-grid,.ap-data-grid,
    .pa-content-grid,.pa-data-grid,.register-grid,.profile-grid,
    .student-2g2-bottom,.student-2g2-aside,.student-2g2-service-grid,
    .dashboard-v2 .ops-grid,.dashboard-v2 .analytics-grid,
    .mahasiswa-admin-page .detail-layout,.mahasiswa-admin-page .student-detail-utilities,
    .mahasiswa-admin-page .filter-grid,.mahasiswa-admin-page .summary-grid,
    .mahasiswa-admin-page .academic-summary-grid
  ) > * { min-width: 0; max-width: 100%; }
  /* Selalu satu sumber kebenaran untuk lebar form dan tabel bergulir.
     Tombol/label tidak memotong NIM, prodi, kode atau judul panjang. */
  body.fisip-ui :is(
    .as-filter,.as-filter-grid,.archive-filter-grid,.ms-filter-grid,
    .ms-form-grid,.sp-form-grid,.sm-form-grid,.fs-filter-grid,
    .pa-content-grid,.ap-grid,.register-grid
  ) :is(input,select,textarea) { min-width: 0; max-width: 100%; }
  body.fisip-ui :is(
    .as-card,.ms-card,.sp-card,.sm-card,.wd-panel,.fs-panel,
    .detail-card,.decision-card,.academic-card,.ktm-card,.table-card,
    .student-2g2-latest,.student-2g2-mini-panel
  ) { min-width: 0; max-width: 100%; }
  /* Panel rincian dengan isi berbeda tidak mendapat tinggi minimum artifisial. */
  body.fisip-admin-ui :is(.admin-submission-page .as-detail-grid,
    .master-service-page .ms-detail-grid) { align-items: start; }
  body.fisip-admin-ui :is(.admin-submission-page .as-detail-grid,
    .master-service-page .ms-detail-grid) > * { align-self: start; height: auto; }
  /* KPI menempati baris dengan ukuran konsisten tanpa mengubah hitungan. */
  body.fisip-admin-ui :is(.fisip-system-module .fs-kpi-grid,
    .wd-dashboard .wd-stat-grid,.dashboard-v2 .kpi-grid) > * {
    min-width: 0; max-width: 100%;
  }
  /* Header kartu tidak boleh mendorong tombol keluar dari sisi kanan. */
  body.fisip-ui :is(.as-card-head,.ms-card-head,.sp-card-head,
    .fs-panel-top,.student-2g2-panel-heading,.wd-panel-heading) > * {
    min-width: 0;
  }
  body.fisip-ui :is(.as-card-head,.ms-card-head,.sp-card-head,
    .fs-panel-top,.student-2g2-panel-heading,.wd-panel-heading) :is(h2,h3,p) {
    overflow-wrap: break-word;
  }
}
/* Laptop dengan sidebar: ruang kerja sering hanya 850–1100px, meski viewport
   1200–1450px. Turunkan grid form ke 2 kolom tanpa mengecilkan font. */
@media screen and (min-width: 992px) and (max-width: 1450px) {
  body.fisip-admin-ui .admin-submission-page .as-filter {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-admin-ui .master-service-page .ms-filter-grid,
  body.fisip-admin-ui .fisip-system-module .fs-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-admin-ui .staff-page .sp-form-grid,
  body.fisip-admin-ui .master-service-page .ms-form-grid,
  body.fisip-admin-ui .admin-submission-page .as-info-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-admin-ui .fisip-system-module .fs-grid,
  body.fisip-admin-ui .dashboard-v2 .analytics-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-admin-ui .master-service-page .ms-filter-grid > :is(.wide,.full),
  body.fisip-admin-ui .admin-submission-page .as-filter > :is(.wide,.full) {
    grid-column: 1 / -1;
  }
}
/* Dashboard mahasiswa: dengan sidebar 335px, viewport 971–1150px
   sering menyisakan area kerja terlalu sempit untuk kartu kanan-kiri. */
@media screen and (min-width: 971px) and (max-width: 1150px) {
  body.fisip-student-dashboard .student-2g2-bottom {
    grid-template-columns: minmax(0,1fr);
    align-items: start;
  }
  body.fisip-student-dashboard .student-2g2-aside {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
    height: auto;
  }
  body.fisip-student-dashboard .student-2g2-latest { height: auto; }
  body.fisip-student-dashboard .student-2g2-latest-actions {
    margin-top: 19px;
    padding-top: 0;
  }
  body.fisip-student-dashboard .student-2g2-aside > .student-2g2-mini-panel:first-child {
    flex: 0 1 auto;
  }
}
/* Tablet, ponsel lanskap, desktop narrow: form kompleks satu kolom rinci,
   ringkasan/KPI tetap bisa dua kolom sampai benar-benar sempit. */
@media screen and (max-width: 991.98px) {
  body.fisip-ui .admin-submission-page .as-filter,
  body.fisip-ui .master-service-page .ms-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-ui :is(
    .admin-submission-page .as-detail-grid,
    .master-service-page .ms-detail-grid,
    .student-service-page .sm-detail-grid,
    .fisip-student-ui .sm-detail-grid,
    .wd-dashboard .wd-main-grid,
    .pa-content-grid,.ap-grid
  ) { grid-template-columns: minmax(0,1fr); }
  body.fisip-admin-ui .fisip-system-module .fs-grid,
  body.fisip-ui .master-service-page .ms-detail-grid,
  body.fisip-ui .staff-page .sp-form-grid,
  body.fisip-ui .master-service-page .ms-form-grid,
  body.fisip-ui .fisip-system-module .fs-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-ui .wd-dashboard .wd-side-panels {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media screen and (max-width: 767.98px) {
  body.fisip-ui :is(
    .admin-submission-page .as-filter,
    .admin-submission-page .as-filter-grid,
    .admin-submission-page .as-info-grid,
    .master-service-page .ms-filter-grid,
    .master-service-page .ms-form-grid,
    .master-service-page .ms-mode-grid,
    .staff-page .sp-form-grid,
    .fisip-system-module .fs-filter-grid,
    .fisip-system-module .fs-grid,
    .sm-form-grid,.sm-info-grid,.retention-form-grid,
    .destruction-grid,.pa-data-grid,.ap-data-grid
  ) { grid-template-columns: minmax(0,1fr); }
  body.fisip-ui :is(
    .admin-submission-page .as-info-grid,
    .master-service-page .ms-form-grid,
    .staff-page .sp-form-grid,.sm-form-grid,
    .fisip-system-module .fs-filter-grid
  ) > :is(.wide,.full,.span-2) { grid-column: 1 / -1; }
  body.fisip-ui .wd-dashboard .wd-side-panels {
    grid-template-columns: minmax(0,1fr);
  }
  body.fisip-ui :is(.as-card-head,.ms-card-head,.sp-card-head,
    .fs-panel-top,.wd-panel-heading) { flex-wrap:wrap; row-gap:10px; }
  body.fisip-ui :is(.as-card-head,.ms-card-head,.sp-card-head,
    .fs-panel-top,.wd-panel-heading) > :is(a,button) {
    max-width:100%;
  }
  body.fisip-admin-ui .fisip-system-module .fs-form-actions { align-items:stretch; }
}
@media screen and (max-width: 480px) {
  body.fisip-ui .wd-dashboard .wd-stat-grid,
  body.fisip-ui .fisip-system-module .fs-kpi-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  body.fisip-ui .student-2g2-service-grid,
  body.fisip-ui .sm-service-grid,
  body.fisip-ui .register-grid {
    grid-template-columns: minmax(0,1fr);
  }
  body.fisip-ui :is(.archive-filter-actions,.filter-actions,.fs-form-actions) {
    max-width:100%;
  }
}
