/* Cola Next ERP v1.71.0 - NATIVE APP FEEL layer.
   Loaded after nc-premium.css / nc-bookers.css. Phone / small tablet only (max-width:820px); desktop is untouched.
   Goal: the portal should feel like an installed phone app - app-bar, gradient icon tiles, press feedback,
   slide screens, bottom-sheet popups with grabber, splash screen, pull-to-refresh. CSS/JS only; no data or save logic. */

@media(max-width:820px){

/* ---------- 0. app basics ---------- */
html{-webkit-text-size-adjust:100%}
html body{-webkit-tap-highlight-color:transparent}
html body .nc-app.nc-app{--a-red:#d3182e;--a-red2:#ef4458;--a-navy:#0b1730;--a-navy2:#16294d;--a-ink:#0e1a2f;--a-mute:#6b7b92;--a-line:#e6ebf3;--a-bg:#f3f5fa;--a-card:#fff;--a-ease:cubic-bezier(.22,.9,.3,1);--p-sh:0 1px 3px rgba(14,26,47,.08);--p-sh2:0 2px 8px rgba(14,26,47,.12);background:var(--a-bg)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body .nc-app.nc-app button,html body .nc-app.nc-app .nch-card,html body .nc-app.nc-app .nc-target-card,html body .nc-app.nc-app .nc-booker-card,html body .nc-app.nc-app .nch-tab,html body .ncm-nav,html body .nc-app.nc-app .nc-header,html body .nc-app.nc-app .nch-bar,html body .nc-app.nc-app summary{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
html body .nc-app.nc-app input,html body .nc-app.nc-app textarea,html body .nc-app.nc-app select{-webkit-user-select:text;user-select:text}

/* ---------- 1. top app bar (home) ---------- */
html body .nc-app.nc-app>.nc-header{position:relative;margin:-10px -8px 0!important;padding:calc(18px + env(safe-area-inset-top,0px)) 18px 22px!important;border-radius:0 0 30px 30px!important;background:radial-gradient(90% 120% at 100% -10%,rgba(239,68,88,.65) 0%,rgba(239,68,88,0) 60%),radial-gradient(70% 90% at 0% 120%,rgba(60,110,220,.35) 0%,rgba(60,110,220,0) 60%),linear-gradient(160deg,var(--a-navy) 0%,var(--a-navy2) 100%)!important;box-shadow:0 4px 10px rgba(11,23,48,.25)!important}
html body .nc-app.nc-app>.nc-header h1{font-size:24px!important;letter-spacing:-.5px!important}
html body .nc-app.nc-app>.nc-header p{font-size:12.5px!important;color:rgba(255,255,255,.7)!important}
html body .nc-app.nc-app>.nc-header .nc-user{background:rgba(255,255,255,.2)!important;}
/* search floats over the header edge like a native app */
html body .nc-app.nc-app>.nc-gs{position:relative;z-index:3;margin:-24px 2px 0!important;padding:0 0 6px!important;background:none!important}
html body .nc-app.nc-app .nc-gs-box{border:0!important;border-radius:18px!important;box-shadow:0 3px 10px rgba(11,23,48,.14)!important}
html body .nc-app.nc-app .nc-gs-box:focus-within{box-shadow:0 0 0 3px rgba(211,24,46,.22)!important}

/* ---------- 2. home cards: gradient icon tiles ---------- */
html body .nc-app.nc-app .nch-sh{margin:10px 6px 10px!important;font-size:13px!important;font-weight:800!important;color:var(--a-mute)!important;letter-spacing:.3px!important}
html body .nc-app.nc-app .nch-sh:before{width:8px!important;height:8px!important;border-radius:50%!important;box-shadow:0 0 0 4px var(--gt)}
html body .nc-app.nc-app .nch-card{border:0!important;border-radius:22px!important;background:var(--a-card)!important;box-shadow:0 1px 2px rgba(11,23,48,.05),0 2px 6px rgba(11,23,48,.06)!important;transition:transform .16s var(--a-ease),box-shadow .16s var(--a-ease)!important;-webkit-tap-highlight-color:transparent}
html body .nc-app.nc-app .nch-card:active{transform:scale(.955)!important;box-shadow:0 1px 2px rgba(11,23,48,.1)!important}
html body .nc-app.nc-app .nch-ic{position:relative;width:48px!important;height:48px!important;border-radius:16px!important;color:#fff!important;background:var(--g,#d3182e)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--g,#d3182e) 78%,#fff) 0%,var(--g,#d3182e) 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)!important}
html body .nc-app.nc-app .nch-ic svg{width:25px!important;height:25px!important;stroke-width:1.8}
html body .nc-app.nc-app .nch-tx b{font-size:15px!important;letter-spacing:-.15px}
html body .nc-app.nc-app .nch-card.nch-hot{box-shadow:0 0 0 2px rgba(211,24,46,.25),0 8px 22px rgba(211,24,46,.14)!important}
/* dashboard first card = hero */
html body .nc-app.nc-app .nch-sec[data-g="dash"] .nch-card:first-child{background:linear-gradient(135deg,#d3182e 0%,#a80f20 100%)!important}
html body .nc-app.nc-app .nch-sec[data-g="dash"] .nch-card:first-child .nch-ic{background:rgba(255,255,255,.2)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)!important}

/* ---------- 3. feature screen: native back bar ---------- */
html body .nc-app.nc-app .nch-bar{position:sticky;top:0!important;margin:-10px -8px 0!important;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 10px!important;border:0!important;border-bottom:1px solid var(--a-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;transition:box-shadow .2s ease}
html body .nc-app.nc-app .nch-bar.is-scrolled{box-shadow:0 3px 8px rgba(11,23,48,.1)!important}
html body .nc-app.nc-app .nch-back{width:40px;height:40px;min-height:40px!important;padding:0!important;justify-content:center;border-radius:50%!important;background:#f0f3f9!important;color:var(--a-red)!important;box-shadow:none!important}
html body .nc-app.nc-app .nch-back span{display:none!important}
html body .nc-app.nc-app .nch-back b{font-size:22px!important;margin-top:-2px}
html body .nc-app.nc-app .nch-back:active{background:#e3e8f2!important;transform:scale(.92)}
html body .nc-app.nc-app .nch-bt strong{font-size:18px!important;letter-spacing:-.3px}
html body .nc-app.nc-app .nch-bic{background:var(--gt,#fdecef)!important;color:var(--g,#d3182e)!important}
/* screen slide-in when a card opens / goes back */
html body .nc-app.nc-app[data-nch="detail"]>.nch-chain,html body .nc-app.nc-app[data-nch="detail"]>.nch-target{animation:a-in .28s var(--a-ease) both}
@keyframes a-in{from{opacity:0;transform:translate3d(28px,0,0)}to{opacity:1;transform:none}}
@keyframes a-out{from{opacity:0;transform:translate3d(-14px,0,0)}to{opacity:1;transform:none}}

/* ---------- 4. panels, lists, summary cards ---------- */
html body .nc-app.nc-app .nc-panel,html body .nc-app.nc-app>.nc-panel{border:0!important;border-radius:24px!important;box-shadow:0 1px 2px rgba(11,23,48,.05),0 2px 6px rgba(11,23,48,.06)!important}
html body .nc-app.nc-app .nc-stat,html body .nc-app.nc-app .nc-target-card{border:0!important;border-radius:20px!important;box-shadow:0 1px 2px rgba(11,23,48,.05),0 2px 6px rgba(11,23,48,.06)!important;transition:transform .16s var(--a-ease)!important}
html body .nc-app.nc-app .nc-target-card:active,html body .nc-app.nc-app .nc-booker-card:active{transform:scale(.965)!important}
html body .nc-app.nc-app a.nc-booker-card,html body .nc-app.nc-app .nc-booker-card{border:0!important;border-radius:20px!important;box-shadow:0 1px 2px rgba(11,23,48,.05),0 2px 6px rgba(11,23,48,.06)!important}
/* table rows -> tappable list rows */
html body .nc-app.nc-app table.nc-table.ncm-cards tr{border:0!important;border-radius:18px!important;box-shadow:0 1px 2px rgba(11,23,48,.05),0 2px 6px rgba(11,23,48,.06)!important;background:#fff!important}
html body .nc-app.nc-app table.nc-table.ncm-cards tbody tr:active{background:#f6f8fc!important}
html body .nc-app.nc-app table.nc-table.ncm-cards td{border-color:#eef1f6!important}

/* ---------- 5. buttons & fields ---------- */
html body .nc-app.nc-app .nc-btn{border-radius:16px!important;min-height:50px!important;font-weight:800!important;letter-spacing:.1px;transition:transform .14s var(--a-ease),filter .14s ease!important}
html body .nc-app.nc-app .nc-btn:not(.nc-btn-secondary):not(.nc-btn-danger):not(.nc-btn-ghost){background:linear-gradient(180deg,#e0233a 0%,#c4142a 100%)!important;color:#fff!important;box-shadow:0 3px 8px rgba(211,24,46,.28)!important}
html body .nc-app.nc-app .nc-btn:active{transform:scale(.96)!important;filter:brightness(.94)}
html body .nc-app.nc-app input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not(.nc-gs-input),html body .nc-app.nc-app select,html body .nc-app.nc-app textarea{border:1.5px solid transparent!important;background:#f1f4f9!important;border-radius:14px!important;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
html body .nc-app.nc-app input:focus,html body .nc-app.nc-app select:focus,html body .nc-app.nc-app textarea:focus{background:#fff!important;border-color:var(--a-red)!important;box-shadow:0 0 0 4px rgba(211,24,46,.12)!important}

/* ---------- 6. bottom tab bar: dot indicator ---------- */
html body .ncm-nav{background:#fff!important;transform:translateZ(0);will-change:transform;border-radius:28px!important;box-shadow:0 2px 10px rgba(11,23,48,.18)!important}
html body .ncm-nav button{position:relative;transition:color .18s ease,background .18s ease,transform .14s var(--a-ease)!important;-webkit-tap-highlight-color:transparent}
html body .ncm-nav button:active{transform:scale(.9)}
html body .ncm-nav button.is-on{background:transparent!important}
html body .ncm-nav button.is-on:after{content:"";position:absolute;bottom:3px;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--a-red);animation:a-pop .3s var(--a-ease)}
html body .ncm-nav button.is-on span{transform:translateY(-1px) scale(1.08);transition:transform .2s var(--a-ease)}
@keyframes a-pop{from{transform:scale(0)}to{transform:scale(1)}}

/* ---------- 7. popups become bottom sheets with a grabber ---------- */
html body .ncdd{align-items:flex-end!important;padding:0!important;background:rgba(8,14,28,.5)!important;animation:a-fade .2s ease both}
html body .ncdd .ncdd-sheet{width:100%!important;max-height:92dvh!important;border-radius:28px 28px 0 0!important;box-shadow:0 -4px 16px rgba(0,0,0,.25)!important;animation:a-up .32s var(--a-ease) both;transition:transform .22s var(--a-ease)}
html body .ncdd .ncdd-sheet:before{content:"";display:block;flex:none;width:42px;height:5px;margin:8px auto 0;border-radius:3px;background:rgba(255,255,255,.35);position:relative;z-index:2}
html body .ncdd .ncdd-head{border-radius:28px 28px 0 0;margin-top:-13px;padding-top:20px!important}
html body .ncdd .ncdd-sheet.is-drag{transition:none}
@keyframes a-up{from{transform:translate3d(0,100%,0)}to{transform:none}}
@keyframes a-fade{from{opacity:0}to{opacity:1}}

/* ---------- 8. toast, install banner ---------- */
html body #nc-toast{border-radius:16px!important;box-shadow:0 4px 12px rgba(11,23,48,.3)!important}

/* ---------- 9. splash screen ---------- */
#nca-splash{position:fixed;inset:0;z-index:2147483646;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:radial-gradient(90% 70% at 50% 0%,#233f73 0%,#0b1730 70%);color:#fff;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;transition:opacity .35s ease,visibility .35s ease}
#nca-splash.is-out{opacity:0;visibility:hidden;pointer-events:none}
#nca-splash img{width:92px;height:92px;border-radius:24px;box-shadow:0 18px 40px rgba(0,0,0,.4);animation:a-logo .7s var(--a-ease,ease) both}
#nca-splash b{font-size:22px;font-weight:800;letter-spacing:-.3px}
#nca-splash small{font-size:12px;opacity:.6;margin-top:-10px}
#nca-splash i{width:28px;height:28px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:a-spin .8s linear infinite}
@keyframes a-logo{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
@keyframes a-spin{to{transform:rotate(360deg)}}

@media(prefers-reduced-motion:reduce){
  html body .nc-app.nc-app *,html body .ncdd,html body .ncdd *,#nca-splash,#nca-splash *{animation:none!important;transition:none!important}
}
}
