/* REDIGI final responsive audit: override-only, menjaga warna dan tema lama. */
html,body{max-width:100%;overflow-x:hidden}main,.site-header,.site-footer,.dashboard-shell,.dashboard-main,.container,.container-wide{min-width:0}img,svg,video,canvas{max-width:100%}input,select,textarea,button{max-width:100%}.form-card,.table-card,.info-card,.stat-card,.tool-card,.forum-post,.product-card,.dashboard-main>*{min-width:0}h1,h2,h3,h4,p,strong,small,span,td,th{overflow-wrap:anywhere}.table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive table{width:100%}.settings-tabs,.dashboard-sidebar nav,.tab-buttons{scrollbar-width:thin}

/* Logo unggahan lebar dipakai sebagai wordmark penuh, bukan dipaksa masuk kotak ikon. */
.brand-has-wide-logo{display:inline-flex;align-items:center;min-width:0;max-width:100%;line-height:0}.brand-custom-logo{display:block;min-width:0}.brand-custom-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.brand-wide-canvas .brand-custom-logo img{object-fit:cover;object-position:center 50%}.site-header .brand-has-wide-logo{flex:0 1 auto}.site-header .brand-custom-logo-wide{width:clamp(164px,13vw,220px);height:58px}.site-header .brand-custom-logo-wide img{filter:drop-shadow(0 6px 14px rgba(239,35,60,.14))}.mobile-drawer-head .brand-custom-logo-wide{width:220px;height:72px}.footer-brand .brand-has-wide-logo{width:min(100%,330px)}.footer-brand .brand-custom-logo-wide{width:100%;height:96px}.footer-brand .brand-custom-logo-wide img{object-position:left center;filter:drop-shadow(0 8px 18px rgba(239,35,60,.15))}.auth-visual-content>.brand-has-wide-logo{width:min(100%,340px);margin-bottom:56px}.auth-visual-content .brand-custom-logo-wide{width:100%;height:92px}.invoice-head .brand-has-wide-logo{width:160px}.invoice-head .brand-custom-logo-wide{width:100%;height:44px}.site-branding-preview .brand-has-wide-logo{width:min(100%,260px)}.site-branding-preview .brand-custom-logo-wide{width:100%;height:70px}

/* Loading memakai logo penuh dengan glow halus dan tanpa mengecilkan wordmark. */
.page-loader-card{overflow:hidden;position:relative}.page-loader-card:after{content:"";position:absolute;inset:-80% auto -80% -45%;width:38%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent);animation:redigiLoaderSheen 1.7s ease-in-out infinite;pointer-events:none}.page-loader-logo.has-custom-logo:before,.page-loader-logo.has-custom-logo:after{display:none}.page-loader-logo.has-custom-logo{animation:redigiLogoFloat 1.8s ease-in-out infinite}.page-loader-logo.has-custom-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.page-loader-logo.brand-wide-canvas img{object-fit:cover;object-position:center 50%}.page-loader-logo.has-wide-logo{width:210px;height:76px;filter:drop-shadow(0 8px 20px rgba(239,35,60,.2))}.page-loader-copy.loader-copy-compact{display:none}.page-loader-copy.loader-copy-compact strong{display:none}.page-loader-copy.loader-copy-compact small{font-size:9px;white-space:normal;line-height:1.35}.page-loader-logo.has-wide-logo~.page-loader-spinner{width:22px;height:22px}@keyframes redigiLogoFloat{0%,100%{transform:translateY(0);filter:drop-shadow(0 8px 18px rgba(239,35,60,.17))}50%{transform:translateY(-3px);filter:drop-shadow(0 12px 24px rgba(239,35,60,.28))}}@keyframes redigiLoaderSheen{0%{left:-55%;opacity:0}25%{opacity:1}65%,100%{left:125%;opacity:0}}

/* Perapihan umum hasil audit seluruh halaman. */
.dashboard-topbar>div,.table-card-head>div,.form-card-head>div,.section-heading>div{min-width:0}.dashboard-topbar h1,.page-hero h1,.auth-form h2{max-width:100%;text-wrap:balance}.form-grid{align-items:start}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.form-actions .btn{min-width:0}.fee-preview{min-width:0}.rekber-group-note{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid rgba(59,130,246,.18);border-radius:13px;background:rgba(59,130,246,.06)}.rekber-group-note>.icon{color:#7eabff}.rekber-group-note>div{display:flex;min-width:0;flex-direction:column}.rekber-group-note strong{font-size:11px}.rekber-group-note small{color:var(--muted);font-size:9px;line-height:1.5}.footer-brand>.brand{margin-bottom:14px}.site-footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}.footer-grid>div{min-width:0}.footer-brand p{font-size:12px;line-height:1.7}.trust-inline{flex-wrap:wrap}.dashboard-sidebar nav a span{overflow:hidden;text-overflow:ellipsis}.settings-tabs a,.dashboard-sidebar nav a{flex:0 0 auto}.chat-layout,.order-detail-grid,.product-detail-grid,.report-layout,.settings-layout,.profile-grid,.wallet-grid{max-width:100%}.chat-composer-row,.chat-composer,.seller-mini,.forum-post,.comment-item{min-width:0}.chat-composer-row textarea,.chat-composer textarea{min-width:0}.empty-state{max-width:100%}.empty-state p{max-width:640px}.product-title,.product-store span{overflow-wrap:normal}.product-store span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{max-width:100%;white-space:normal;text-align:center}.hero-actions,.toolbar-card,.catalog-toolbar,.table-card-head{min-width:0}.page-hero .container,.hero-grid>*{min-width:0}

@media(max-width:980px){
 .site-header .header-inner{gap:10px}.site-header .brand-custom-logo-wide{width:174px;height:56px}.site-header .brand-has-wide-logo{margin-right:auto}.header-actions{margin-left:0;flex:0 0 auto}.page-loader-card{width:min(100%,370px)}.page-loader-logo.has-wide-logo{width:188px;height:68px}.dashboard-shell{width:min(calc(100% - 20px),1480px)}.dashboard-sidebar{max-width:100%}.dashboard-sidebar nav{max-width:100%;overflow-x:auto}.footer-grid{align-items:start}
}
@media(max-width:720px){
 body{padding-bottom:calc(108px + env(safe-area-inset-bottom))}.container,.container-wide{width:min(calc(100% - 22px),var(--container))}.site-header .header-inner{gap:8px}.site-header .brand-custom-logo-wide{width:152px;height:54px}.site-header .brand-has-wide-logo{flex:1 1 auto;max-width:160px}.site-header .mobile-menu-button{flex:0 0 auto}.site-header .header-actions{gap:5px}.site-header .header-actions .icon-btn{width:42px;height:42px}.footer-brand .brand-has-wide-logo{width:min(100%,300px)}.footer-brand .brand-custom-logo-wide{height:90px}.site-footer{padding-top:48px}.footer-grid{gap:30px}.page-loader-card{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:14px;width:min(100%,338px)}.page-loader-logo.has-wide-logo{width:172px;height:64px}.page-loader-copy.loader-copy-compact small{font-size:8px}.form-card,.table-card{max-width:100%}.form-card-head{min-width:0}.form-card-head h2{font-size:clamp(20px,6vw,26px)}.form-actions{display:grid;grid-template-columns:1fr}.form-actions .btn{width:100%}.table-card-head{align-items:flex-start;flex-direction:column}.table-card-head .btn{width:100%}.table-responsive{margin-inline:0}.table-responsive table{min-width:720px}.settings-tabs{max-width:100%;overflow-x:auto}.dashboard-topbar p{font-size:12px;line-height:1.6}.page-hero h1,.page-hero.compact h1{font-size:clamp(32px,10vw,42px)}.page-hero p{max-width:100%}.rekber-flow{max-width:100%}.rekber-flow .flow-step{min-width:0}.footer-bottom{padding-bottom:18px}.mobile-bottom-nav{max-width:calc(100% - 18px)}
}
@media(max-width:430px){
 .site-header .brand-custom-logo-wide{width:146px;height:52px}.site-header .brand-has-wide-logo{max-width:152px}.site-header .header-actions .icon-btn{width:40px;height:40px}.page-loader-logo.has-wide-logo{width:158px;height:60px}.page-loader-copy.loader-copy-compact{max-width:120px}.footer-brand .brand-has-wide-logo{width:285px}.dashboard-shell{width:calc(100% - 14px)}.dashboard-main{min-width:0}.form-card{padding:16px}.table-card{border-radius:17px}.hero-actions .btn{white-space:normal;text-align:center}.rekber-actions{grid-template-columns:1fr!important}.trust-inline span{flex:1 1 130px;justify-content:center}.footer-grid{grid-template-columns:1fr!important}.footer-brand{grid-column:1!important}
}
@media(prefers-reduced-motion:reduce){.page-loader-card:after,.page-loader-logo.has-custom-logo{animation:none!important}}


/* Audit tambahan: halaman admin, form panjang, tabel, dan output teknis tetap di dalam layar. */
pre,code,.code,.secret-code,.platform-action-code,.code-textarea{max-width:100%;overflow:auto;white-space:pre-wrap;word-break:break-word}
.admin-split-layout,.admin-banner-layout,.settings-layout,.finance-reconciliation,.reconciliation-actions,.reconciliation-summary-grid,.admin-overview-grid,.admin-report-grid,.content-admin-grid,.commerce-admin-kyc-grid,.admin-dashboard-platform-grid{min-width:0;max-width:100%}
.admin-split-layout>*,.admin-banner-layout>*,.settings-layout>*,.finance-reconciliation>*,.reconciliation-summary-grid>*,.admin-overview-grid>*,.admin-report-grid>*,.content-admin-grid>*,.commerce-admin-kyc-grid>*,.admin-dashboard-platform-grid>*{min-width:0}
.admin-user-toolbar,.admin-user-toolbar-actions,.reconciliation-actions,.inline-admin-form,.table-actions{display:flex;gap:10px;flex-wrap:wrap;min-width:0}
.admin-user-toolbar input,.admin-user-toolbar select,.inline-admin-form input,.inline-admin-form select{min-width:0}
.platform-activity-list,.payout-admin-list,.plan-admin-list,.admin-banner-card-list{min-width:0;max-width:100%}
.reconciliation-result-card,.reconciliation-balance-card,.admin-commerce-card,.platform-banner-admin-card,.social-auth-settings-card,.notification-settings-card{min-width:0;overflow:hidden}
.chat-room,.chat-conversations,.chat-messages,.chat-composer,.chat-composer-row{max-width:100%}.chat-composer-row{grid-template-columns:auto minmax(0,1fr) auto}.chat-selected-file{max-width:100%;overflow-wrap:anywhere}
@media(max-width:720px){
 .admin-split-layout,.admin-banner-layout,.settings-layout,.finance-reconciliation,.reconciliation-summary-grid,.admin-overview-grid,.admin-report-grid,.content-admin-grid,.commerce-admin-kyc-grid,.admin-dashboard-platform-grid{grid-template-columns:1fr!important}
 .admin-user-toolbar,.admin-user-toolbar-actions,.reconciliation-actions,.inline-admin-form{align-items:stretch;flex-direction:column}
 .admin-user-toolbar .btn,.admin-user-toolbar-actions .btn,.reconciliation-actions .btn,.inline-admin-form .btn{width:100%}
 .chat-layout{grid-template-columns:1fr!important}.chat-conversations,.chat-room{width:100%;max-width:100%}
 .settings-content{min-width:0;padding-inline:0}.settings-tabs a{min-width:max-content}
}
