/* Phone workspace: larger controls, compact cards, and persistent navigation. Print stays unchanged. */
.portal-mobile-bar,.portal-menu-shade{display:none}
@media screen and (max-width:700px){
 body.portal-enterprise{overflow-x:hidden}
 .portal-enterprise .main,.portal-enterprise #content{min-width:0;max-width:100%}
 .portal-enterprise .content{padding:18px 14px calc(96px + env(safe-area-inset-bottom))!important}
 .portal-enterprise .topbar{position:sticky;top:0;z-index:35;padding:10px 14px;background:#f5f5f7f5;backdrop-filter:blur(18px);gap:8px;border-bottom:1px solid #e5e8e6}
 .portal-enterprise .top-actions{display:flex;gap:8px;align-items:center;justify-content:space-between}
 .portal-enterprise .top-actions .mobile-menu{height:42px;width:42px;border:1px solid #e1e7e3;border-radius:13px;background:#fff;font-size:21px}
 .portal-enterprise .top-actions :is(.sound-btn,.notification-btn){min-width:42px;min-height:42px;border-radius:13px}
 .portal-enterprise #device-notifications-btn{flex:1;max-width:205px;white-space:normal;line-height:1.4}
 .portal-enterprise .topbar-search{height:42px;margin:0;min-width:0}
 .portal-enterprise .topbar-search input{font-size:16px!important;min-height:42px;border-radius:13px}
 .portal-enterprise .page-title{gap:12px;margin-bottom:18px}
 .portal-enterprise .page-title h1,.portal-enterprise .di-hero h1{font-size:25px;line-height:1.4}
 .portal-enterprise .page-title p{font-size:12px;line-height:1.8;margin:6px 0 0}
 .portal-enterprise .page-title>div,.portal-enterprise .page-title .eh-actions{max-width:100%;width:100%}
 .portal-enterprise .page-title .eh-actions{display:flex;gap:8px;flex-wrap:wrap}
 .portal-enterprise .page-title .eh-actions .btn{flex:1 1 130px;width:auto}
 .portal-enterprise :is(.btn,.di-btn){min-height:44px;font-size:13px;border-radius:12px}
 .portal-enterprise :is(.action-row,.form-actions,.eh-actions){gap:8px;flex-wrap:wrap;max-width:100%}
 .portal-enterprise .action-row .btn{flex:1 1 130px;white-space:normal;line-height:1.5}
 .portal-enterprise .info-strip{flex-direction:column;align-items:flex-start;gap:7px;font-size:12px}
 .portal-enterprise .info-strip>span{max-width:100%;overflow-wrap:anywhere}
 .portal-enterprise .eh-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .portal-enterprise .eh-kpi{padding:12px 8px;gap:4px;flex-direction:column;align-items:flex-start}
 .portal-enterprise .eh-kpi b{font-size:24px}
 .portal-enterprise .eh-kpi span{font-size:10px}
 .portal-enterprise .eh-kpi-icon{display:none!important}
 .portal-enterprise .rq-list{gap:14px}
 .portal-enterprise .rq-list-card{padding:16px!important;border-radius:18px}
 .portal-enterprise .rq-list-card header h3{font-size:16px;line-height:1.6;margin:3px 0}
 .portal-enterprise .rq-list-card header small{font-size:11px;letter-spacing:.2px}
 .portal-enterprise .rq-list-card header .badge{font-size:11px;white-space:normal;line-height:1.6}
 .portal-enterprise .rq-primary-actions{padding:12px 0!important;margin:0!important;border-top:0!important;border-bottom:1px solid #edf0ee}
 .portal-enterprise .rq-card-data tbody tr{grid-template-columns:minmax(95px,32%) minmax(0,1fr);gap:10px;align-items:start}
 .portal-enterprise .rq-card-data tbody td{padding:10px 0!important;font-size:13px!important;line-height:1.65!important}
 .portal-enterprise .rq-card-data tbody td:first-child{font-size:11px!important;padding:10px 0!important}
 .portal-enterprise .rq-locked-note{display:block;width:100%;font-size:11px;color:#74654b;line-height:1.8;padding:8px 10px;background:#faf5eb;border-radius:10px}
 .portal-enterprise .rq-preview-actions{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e4ebe6}
 .portal-enterprise .di-hero{display:flex;flex-direction:column;gap:14px}
 .portal-enterprise .di-tools{display:flex;flex-wrap:wrap}
 .portal-enterprise .di-tools .di-btn{flex:1 1 100px;padding:9px 8px}
 .portal-enterprise .di-summary>div{padding:16px 12px}
 .portal-enterprise .di-summary b{font-size:28px}
 .portal-enterprise .di-card{padding:18px;border-radius:19px}
 .portal-enterprise .di-task-strip{gap:12px;align-items:center}
 .portal-enterprise .modal{width:100%!important;max-width:100%!important;max-height:100dvh!important;border-radius:20px 20px 0 0!important;padding:14px 15px calc(22px + env(safe-area-inset-bottom))!important;margin:0;overflow-y:auto;overscroll-behavior:contain}
 .portal-enterprise .overlay{padding:12px 0 0!important;align-items:flex-end!important}
 .portal-enterprise .modal-head{gap:10px;margin-bottom:14px}
 .portal-enterprise .modal-head h3{font-size:17px;line-height:1.7}
 .portal-enterprise .modal :is(.form-grid,.grid-2){grid-template-columns:minmax(0,1fr)!important}
 .portal-enterprise .modal :is(input,select,textarea){font-size:16px!important;max-width:100%;min-width:0}
 .portal-enterprise .pr-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;border:1px solid #e0e8e2;border-radius:13px;padding:12px;margin:9px 0}
 .portal-enterprise .pr-line input[data-k="description"]{grid-column:1/-1}
 .portal-enterprise .pr-line input{width:100%;min-width:0}
 .portal-enterprise .sidebar{width:min(320px,calc(100vw - 32px));z-index:150;top:8px;right:8px;bottom:8px}
 .portal-enterprise .close-menu{width:44px;height:44px;font-size:28px;color:#fff;background:#ffffff15;border-radius:12px;flex:none}
 .portal-enterprise .nav button{min-height:49px;font-size:14px}
 .portal-enterprise .sidebar.open~.portal-menu-shade{display:block;position:fixed;inset:0;background:#102a235c;backdrop-filter:blur(3px);border:0;z-index:149}
 .portal-mobile-bar{position:fixed;bottom:0;left:0;right:0;z-index:45;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e2e8e3;background:#fffffff2;backdrop-filter:blur(22px);gap:4px;box-shadow:0 -4px 24px #163f2e08}
 .portal-mobile-bar button{border:0;background:transparent;color:#73847a;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;min-height:50px;font-size:10px;border-radius:13px;position:relative}
 .portal-mobile-bar button[aria-current="page"]{color:#17664b;background:#edf5ef;font-weight:700}
 .portal-mobile-bar .portal-icon{width:21px;height:21px}
 .portal-mobile-bar .mobile-bell-count{position:absolute;top:1px;left:calc(50% + 5px);min-width:16px;height:16px;border-radius:10px;background:#bb4242;color:#fff;font-size:9px;line-height:16px;padding:0 3px}
 .portal-mobile-bar .mobile-bell-count[hidden]{display:none}
 body:has(.overlay,.modal,.portal-document-viewer) .portal-mobile-bar,body:has(input:focus,textarea:focus,select:focus) .portal-mobile-bar{display:none}
 .portal-enterprise .login-screen{overflow-y:auto;place-items:start center;padding:20px 14px;min-height:100dvh}
 .portal-enterprise .login-card{padding:25px 21px;margin:auto;width:min(460px,100%)}
 .portal-enterprise .login-fields :is(input,select){font-size:16px;min-height:44px}
 .portal-enterprise .login-fields input[type="checkbox"]{min-height:20px;width:20px!important;height:20px;flex:none}
}
@media print{.portal-mobile-bar,.portal-menu-shade{display:none!important}}

@media screen{.universal-tools-panel{width:100%}.mobile-tools-summary{display:none}}
@media screen and (max-width:700px){.portal-enterprise #user-chip{display:none}.portal-enterprise .universal-tools{padding:0;margin:0 0 16px;border-radius:14px}.mobile-tools-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;min-height:46px;cursor:pointer;font-size:13px;color:#365845;list-style:none}.mobile-tools-summary::-webkit-details-marker{display:none}.mobile-tools-summary span{font-size:10px;color:#85958a}.mobile-tools-summary:after{content:'⌄';font-size:17px}.universal-tools-panel[open] .mobile-tools-summary:after{content:'⌃'}.portal-enterprise .universal-tools-panel .universal-tools-info{padding:0 15px 10px}.portal-enterprise .universal-tools-panel .universal-tools-actions{padding:0 13px 13px}.portal-enterprise .universal-tools-panel .universal-tools-actions .btn{font-size:11px}}
