/* Keep the existing Materialize palette and desktop layout. */
.iget-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.iget-table-scroll:focus-visible { outline: 2px solid #26a69a; outline-offset: 2px; }
.iget-table-hint { display: none; }
#nav-mobile { width: min(320px, 88vw); }
#nav-mobile .subheader { font-weight: 600; }
#nav-mobile a { height: auto; min-height: 48px; line-height: 1.5; padding-top: 12px; padding-bottom: 12px; overflow-wrap: anywhere; }
@media only screen and (max-width: 992px) {
    .iget-panel > .container { width: 96%; }
    .iget-panel .nav-wrapper .brand-logo img { height: 36px; margin-top: 10px !important; }
    .iget-panel .modal { width: 94% !important; max-width: 94vw; }
}
@media only screen and (max-width: 600px) {
    .iget-panel > .container { width: 100%; padding: 0 10px; }
    .iget-panel .card .card-content { padding: 16px; }
    .iget-panel .card .card-action { padding: 12px 16px; }
    .iget-panel .section { padding-bottom: 88px; }
    .iget-panel .row .col,
    .iget-panel form .col,
    .iget-panel .card-content > .col { width: 100%; margin-left: 0; left: auto; right: auto; min-width: 0; }
    .iget-panel .row .col { padding-left: 12px !important; padding-right: 12px !important; }
    .iget-panel .input-field { margin-top: 24px; }
    .iget-panel .input-field > label { max-width: calc(100% - 24px); }
    .iget-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    .iget-panel textarea, .iget-panel select { font-size: 16px; max-width: 100%; box-sizing: border-box; }
    .iget-panel input[type=file] { width: 100%; }
    .iget-panel .select-wrapper, .iget-panel .select2-container { max-width: 100%; }
    .iget-panel img, .iget-panel canvas, .iget-panel iframe { max-width: 100%; }
    .iget-panel img { object-fit: contain; }
    .iget-panel .btn, .iget-panel .btn-large, .iget-panel .btn-small {
        max-width: 100%; height: auto; min-height: 40px; white-space: normal; line-height: 1.5;
        padding-top: 9px; padding-bottom: 9px;
    }
    .iget-panel .btn i { line-height: inherit; }
    .iget-panel .card-action .btn { margin-bottom: 8px; }
    .iget-panel .card-action > a { display: inline-block; margin-bottom: 8px; }
    .iget-panel .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    .iget-panel .pagination li a { min-width: 36px; }
    .iget-panel .fixed-action-btn { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
    .iget-panel .tabs { overflow-x: auto; }
    .iget-panel .iget-table-scroll table { min-width: 640px; }
    .iget-panel .iget-table-scroll table td, .iget-panel .iget-table-scroll table th { padding: 12px 8px; }
    .iget-table-hint.is-needed { display: block; margin: 8px 0; color: #616161; font-size: 12px; }
    .iget-panel .card-content { min-width: 0; }
    .iget-panel h3 { font-size: 2rem; overflow-wrap: anywhere; }
    .iget-panel h4 { font-size: 1.75rem; overflow-wrap: anywhere; }
    .iget-panel form.iget-mobile-search { flex-wrap: wrap; width: 100%; }
    .iget-panel form.iget-mobile-search > div { flex: 1 1 180px; min-width: 0; }
    .iget-panel form.iget-mobile-search input[name=search] { width: 100% !important; }
}
@media only screen and (max-width: 992px) {
    .iget-login .vcontainer { width: 100%; display: block; height: auto !important; min-height: 100vh; min-height: 100dvh; padding: 32px 20px; }
    .iget-login .vcontainer > .container { position: static !important; width: 100% !important; max-width: 400px; height: auto !important; margin: 0 auto !important; }
    .iget-login input { font-size: 16px !important; }
    .iget-login .col.s6 { width: 100%; text-align: left; }
    .iget-login .col.s6.right-align { margin-top: 0 !important; margin-bottom: 16px; }
}

@media only screen and (max-width: 992px) {
    .iget-login > .row > .col:not(.vcontainer) { width: 100%; height: auto !important; }
    .iget-login > .row > .col:not(.vcontainer) > div { position: static !important; padding: 24px !important; }
    .iget-login > .row > .col:not(.vcontainer) h3 { font-size: 1.25rem; line-height: 1.5; margin: 0; text-align: left; }
}
/* Grouped navigation: retain the black/gold identity with quieter spacing. */
#nav-mobile { background: #fafafa; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
#nav-mobile .iget-menu-brand { background: #212121; padding: 24px; margin-bottom: 12px; border-bottom: 3px solid #d9b759; }
#nav-mobile .iget-menu-brand img { width: 120px; height: auto; display: block; }
#nav-mobile .iget-menu-brand p { color: #eee; margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
#nav-mobile > li > a { margin: 4px 12px; border-radius: 8px; }
#nav-mobile details { margin: 4px 12px; border-bottom: 1px solid #e5e5e5; }
#nav-mobile summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; line-height: 1.5; }
#nav-mobile summary::-webkit-details-marker { display: none; }
#nav-mobile summary::after { content: '›'; margin-left: auto; font-size: 24px; transition: transform .15s; }
#nav-mobile details[open] > summary::after { transform: rotate(90deg); }
#nav-mobile summary > i { color: #616161; font-size: 22px; }
#nav-mobile details ul { padding-bottom: 8px; }
#nav-mobile details a { margin: 2px 0; padding-left: 46px; padding-right: 12px; border-radius: 6px; font-size: 13px; }
#nav-mobile a.is-active { color: #584310; background: #f6edcf; font-weight: 600; box-shadow: inset 3px 0 #d9b759; }
#nav-mobile summary:focus-visible, #nav-mobile a:focus-visible { outline: 2px solid #9a7924; outline-offset: -2px; }
@media only screen and (max-width: 992px) {
    .iget-panel > .container nav { height: auto; min-height: 56px; }
    .iget-panel > .container nav .nav-wrapper { display: flex; flex-wrap: wrap; height: auto; }
    .iget-panel > .container nav ul.hide-on-med-and-down { display: flex !important; flex-wrap: wrap; width: 100%; }
    .iget-panel > .container nav ul > li { flex: 1 1 140px; min-width: 0; }
    .iget-panel > .container nav a.dropdown-trigger { width: auto !important; min-width: 0; padding: 0 12px; }
    .iget-panel > .container nav .input-field { width: 100% !important; margin: 0; }
    .iget-panel > .container nav input[type=search] { min-height: 48px; padding-left: 48px; }
}
@media only screen and (max-width: 600px) {
    .iget-panel .iget-table-scroll .iget-table-cards { display: block; min-width: 0; width: 100%; }
    .iget-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .iget-table-cards tbody { display: block; width: 100%; }
    .iget-table-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
    .iget-panel .iget-table-scroll .iget-table-cards td { display: block; width: auto !important; min-width: 0; padding: 0; text-align: left; overflow-wrap: anywhere; }
    .iget-table-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: #616161; margin-bottom: 4px; }
    .iget-table-cards td:last-child, .iget-table-cards td[colspan] { grid-column: 1 / -1; }
    .iget-table-cards td a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
    .iget-table-cards td a:has(> .material-icons) { min-width: 44px; justify-content: center; }
    .iget-table-cards td .badge { display: inline-block; float: none; margin: 0 !important; }
    .iget-table-cards td img { height: auto; }
    .iget-panel .card-bottom-fixed { display: none !important; }
}
@media only screen and (max-width: 360px) {
    .iget-table-cards tbody tr { grid-template-columns: minmax(0, 1fr); }
}
@media only screen and (max-width: 600px) {
    .iget-panel .iget-table-cards td { white-space: normal !important; }
    .iget-table-cards td > span { max-width: 100%; white-space: normal !important; }
    .iget-table-cards td .material-icons { width: 32px; overflow: hidden; flex-shrink: 0; }
}
.iget-panel .modal-content { overflow-wrap: anywhere; }

#nav-mobile summary { color: #333; }
#nav-mobile summary > svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #616161; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#nav-mobile details a { line-height: 20px; }
@media only screen and (max-width: 600px) {
    .iget-table-cards thead { position: fixed; left: 0; top: 0; clip: rect(0, 0, 0, 0); }
}
@media only screen and (max-width: 600px) {
    /* Legacy filters float outside their form; keep lists below those controls. */
    .iget-panel .iget-table-scroll { clear: both; width: 100%; }
}
/* Keep icon ligatures from expanding layouts while an external font loads. */
.iget-panel .material-icons { display: inline-block; max-width: 1.5em; overflow: hidden; }
@media only screen and (max-width: 992px) {
    .iget-panel form .col { width: 100%; margin-left: 0; left: auto; right: auto; min-width: 0; }
    .iget-panel .iget-table-scroll { clear: both; width: 100%; }
}
.iget-desktop-title { display: none; }
@media only screen and (min-width: 993px) {
    body.iget-panel { padding-left: 272px; }
    #nav-mobile.sidenav-fixed { width: 272px; transform: translateX(0); }
    .iget-panel > nav .brand-logo { display: none; }
    .iget-desktop-title { display: block; font-size: 17px; font-weight: 500; }
    .iget-panel > nav .nav-wrapper { width: 100%; }
    .iget-panel .card-bottom-fixed { left: 272px; width: calc(100% - 272px); }
}
/* Pagination is a list of links, not an application navigation bar. */
.iget-panel nav.iget-pagination {
    display: block; background: transparent; color: #333; box-shadow: none;
    height: auto; min-height: 0; line-height: normal; margin: 16px 0; clear: both;
}
.iget-panel nav.iget-pagination .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.iget-panel nav.iget-pagination .pagination li { float: none; flex: 0 0 auto; height: auto; border-radius: 6px; background: transparent; }
.iget-panel nav.iget-pagination .page-link {
    display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px;
    padding: 6px 10px; color: #424242; font-size: 15px; line-height: 24px; border-radius: 6px;
}
.iget-panel nav.iget-pagination li.active .page-link { background: #f6edcf; color: #584310; font-weight: 600; box-shadow: inset 0 0 0 1px #d9b759; }
.iget-panel nav.iget-pagination li.disabled .page-link { color: #9e9e9e; }
.iget-panel nav.iget-pagination a:hover { background: #eee; }
.iget-panel nav.iget-pagination a:focus-visible { outline: 2px solid #9a7924; outline-offset: 2px; }
/* Full-width lists must clear legacy floated filters at every screen size. */
.iget-panel .iget-table-scroll { clear: both; width: 100%; }
