/* Thinkora V23.24 — responsive editor and account layout continuation.
   Preserve all V23.23 visual tokens and do not alter the desktop brand. */
@media (min-width:801px) and (max-width:900px){
 /* 801–900px previously combined a desktop sidebar/grid with mobile bottom navigation,
    leaving the document preview narrower than 200px. Use ONE mobile navigation system. */
 .t-desktop-content .premium-shell,.premium-shell{
  display:block!important;grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;max-width:100%!important;height:100dvh!important;overflow:hidden!important;
 }
 .t-desktop-content .premium-shell>.side,.premium-shell>.side,
 .t-desktop-content .premium-shell>.drawer-scrim{display:none!important}
 .t-desktop-content .premium-shell>.workspace,.premium-shell>.workspace{
  display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;
  height:100dvh!important;min-height:0!important;overflow:hidden!important;margin:0!important;
 }
 .t-desktop-content .premium-shell .appbar,.premium-shell .appbar{
  left:0!important;right:0!important;width:100%!important;max-width:100%!important;
  position:relative!important;top:auto!important;flex:none!important;
 }
 .t-desktop-content .premium-shell .scrollregion,.premium-shell .scrollregion{
  display:block!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important;
  width:100%!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:18px 20px calc(132px + env(safe-area-inset-bottom,0px))!important;
 }
 .premium-shell .doc-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important}
 .premium-shell .doc-layout .document-main{display:block!important;min-width:0!important;width:100%!important}
 .premium-shell .doc-layout .listpane{display:block!important;width:100%!important;max-width:100%!important}
 /* On tablets, replace the 75-link stacked document list with one compact selector. */
 .premium-shell .doc-layout .listpane .doc-groups{display:none!important}
 .premium-shell .doc-layout .listpane .mobile-editor-select{display:block!important;max-height:none!important}
 .premium-shell .doc-layout .listpane{padding:14px 16px!important}
 .premium-shell .doc-layout .listpane .panelheading{margin-bottom:8px!important}
 .premium-shell .doc-layout .property{width:100%!important;max-width:100%!important}
}
@media (max-width:900px){
 /* Keep logout directly under the "Lainnya" search box, not after its long list. */
 .t-menu-main>.t23-mobile-account-actions{
  display:flex!important;gap:8px!important;flex-wrap:nowrap!important;
  margin:0 0 16px!important;padding:2px 0 0!important;
 }
 .t-menu-main>.t23-mobile-account-actions button{
  min-width:0!important;flex:1 1 0!important;min-height:44px!important;
  padding:10px 8px!important;font-size:12px!important;
 }

 /* Extend V23.23's collapsed tools treatment to every tablet using bottom dock. */
 .premium-shell .doc-layout .document-main{min-width:0!important;width:100%!important;overflow:visible!important}
 .premium-shell .doc-layout .editor-bar{
  position:static!important;top:auto!important;bottom:auto!important;inset:auto!important;
  transform:none!important;z-index:auto!important;overflow:visible!important;
  margin:9px 0 10px!important;padding:10px!important;box-shadow:0 2px 12px #163b2b17!important;
 }
 .premium-shell .doc-layout .t23-doc-tools-toggle{
  display:flex!important;width:100%!important;min-height:46px!important;align-items:center;
  justify-content:space-between;gap:10px;border:1px solid #bed8cf;border-radius:12px;
  background:#eff8f3;color:#1c5b4b;padding:10px 13px;font-size:14px;
  font-weight:800;text-align:left;white-space:normal;
 }
 .premium-shell .doc-layout .editor-bar .t23-doc-toolbar-content{display:none!important}
 .premium-shell .doc-layout .editor-bar.t23-tools-open .t23-doc-toolbar-content{display:block!important;padding-top:12px!important}
 .premium-shell .doc-layout .t23-doc-toolbar-content .frow{
  display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:stretch!important;
 }
 .premium-shell .doc-layout .t23-doc-toolbar-content .frow>span[style*='flex:1']{display:none!important}
 .premium-shell .doc-layout .t23-doc-toolbar-content .frow>.field{
  flex:1 1 100%!important;width:100%!important;margin:0 0 4px!important;
 }
 .premium-shell .doc-layout .t23-doc-toolbar-content .frow>.btn{
  flex:1 1 85px!important;min-width:0!important;min-height:44px!important;
  padding:9px 6px!important;font-size:12px!important;white-space:normal!important;
 }
 .premium-shell .doc-layout .doc-canvas-wrap{
  position:relative!important;top:auto!important;max-height:none!important;height:auto!important;
  width:100%!important;min-width:0!important;overflow:visible!important;
  overscroll-behavior:auto!important;-webkit-overflow-scrolling:auto!important;
  transform:none!important;contain:none!important;
 }
 .premium-shell .doc-layout .doc-canvas-wrap #paper{position:relative!important;top:auto!important;max-width:100%!important}
 .premium-shell .doc-layout .listpane,.premium-shell .doc-layout .property{
  position:static!important;top:auto!important;max-height:none!important;height:auto!important;overflow:visible!important;
 }
 .premium-shell .doc-layout{padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;overflow:visible!important}
 body.doc-page .premium-shell .scrollregion{
  padding-bottom:calc(144px + env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;overflow-x:hidden!important;
 }
 .premium-shell .doc-layout #paper{scroll-margin-top:16px!important}
}
@media (min-width:901px) and (max-width:1200px){
 /* Avoid a squeezed A4 page when three columns compete in the editor at laptop widths. */
 .premium-shell .doc-layout{
  display:grid!important;grid-template-columns:minmax(158px,190px) minmax(0,1fr)!important;
  gap:12px!important;align-items:start!important;
 }
 .premium-shell .doc-layout>.listpane{grid-column:1!important;min-width:0!important;width:100%!important}
 .premium-shell .doc-layout>.document-main{grid-column:2!important;min-width:0!important;width:100%!important}
 .premium-shell .doc-layout>.property{grid-column:1 / -1!important;width:100%!important;max-height:none!important}
 .premium-shell .doc-layout .doc-canvas-wrap{min-width:0!important}
}
@media print{
 .t23-doc-tools-toggle{display:none!important}
 .premium-shell .doc-layout{display:block!important;grid-template-columns:none!important}
 .premium-shell .doc-layout>.document-main{width:100%!important}
}

/* Thinkora V23.25 — mobile document workflow with full-screen viewer.
   Goal: main HP screen remains ringkas; full document opens in a dedicated full view. */
.t23-mobile-doc-summary,.t23-mobile-doc-viewer{display:none}
@media (max-width:900px){
 .premium-shell .doc-layout{display:block!important}
 .premium-shell .doc-layout>.t23-desktop-doc-property{display:none!important}
 .premium-shell .doc-layout .document-main>.t23-desktop-doc-editor{display:none!important}
 .premium-shell .doc-layout .listpane{padding:14px 14px 12px!important}
 .premium-shell .doc-layout .listpane .doc-groups{display:none!important}
 .premium-shell .doc-layout .listpane .mobile-editor-select{display:block!important}
 .t23-mobile-doc-summary{display:block!important;margin-top:6px!important}
 .t23-mobile-doc-summary .panelheading{align-items:flex-start;gap:10px}
 .t23-mobile-doc-meta{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 8px;color:#204539;font-size:12px}
 .t23-mobile-doc-meta span{background:#eef6f2;border:1px solid #d5e7df;border-radius:999px;padding:6px 10px}
 .t23-mobile-doc-summary-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
 body.thinkora-mobile-doc-viewer-open{overflow:hidden!important}
 .t23-mobile-doc-viewer{display:flex!important;position:fixed;inset:0;z-index:7000;background:rgba(12,26,24,.42);padding:0;align-items:stretch;justify-content:center}
 .t23-mobile-doc-viewer-panel{width:100%;height:100dvh;background:#f3f6f2;display:flex;flex-direction:column;overflow:hidden}
 .t23-mobile-doc-viewer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 12px;background:linear-gradient(180deg,#ffffff 0%,#f2f7f4 100%);border-bottom:1px solid #d6e3dc}
 .t23-mobile-doc-viewer-head small{display:block;font-size:11px;color:#53766a;letter-spacing:.08em}
 .t23-mobile-doc-viewer-head strong{display:block;font-size:18px;line-height:1.25;color:#163d33}
 .t23-mobile-doc-viewer-head span{display:block;font-size:12px;color:#4e6e63;margin-top:2px}
 .t23-mobile-doc-viewer .t23-mobile-doc-toolbar{display:block!important;flex:none!important;margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important;padding:10px 12px!important}
 .t23-mobile-doc-viewer .t23-mobile-doc-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 12px calc(108px + env(safe-area-inset-bottom,0px))}
 .t23-mobile-doc-viewer .t23-mobile-doc-canvas{display:block!important;overflow:visible!important;height:auto!important;max-height:none!important;padding:0!important;margin:0 0 14px!important}
 .t23-mobile-doc-viewer .t23-mobile-doc-actions{display:block!important;margin-bottom:0!important}
 .t23-mobile-doc-viewer .t23-mobile-doc-actions .stack{display:grid;grid-template-columns:1fr;gap:8px}
 .t23-mobile-doc-viewer .t23-mobile-doc-actions .btn{min-height:44px}
 .t23-mobile-doc-viewer .t23-mobile-doc-actions .hint-panel:last-child{margin-bottom:0}
}
@media (min-width:901px){
 .t23-mobile-doc-summary,.t23-mobile-doc-viewer{display:none!important}
 .t23-desktop-doc-editor{display:block}
 .t23-desktop-doc-property{display:block}
}
