
/* NS POS PRO v3.1 — Genuine colourful Android dashboard. 2026 NS Studio.
   This CSS styles actual controls in index.html; it does not depend on JS-generated mockups. */
:root{--ns31-ink:#152340;--ns31-sub:#73819c;--ns31-blue:#2d5ce9;--ns31-teal:#0fadc4;--ns31-shadow:0 8px 28px rgba(38,59,120,.09)}
html{scroll-behavior:smooth}body{background:#f3f6fc;color:var(--ns31-ink);min-width:320px}
header{background:linear-gradient(110deg,#11224f,#2757d6 58%,#06a5bc);padding:15px 17px;box-shadow:0 5px 20px #11234c20}
header .name{font-size:19px;font-weight:950;letter-spacing:-.3px;color:#fff}header .sub{color:#d8eaff;font-weight:600}
header button{background:#ffffff18;border:1px solid #ffffff50;border-radius:11px;color:#fff;min-height:39px}
#ns2Who{color:#edf4ff!important;font-weight:600}
nav.tabs{background:#fff;gap:5px;padding:9px 10px;box-shadow:0 7px 20px #2739630b}nav.tabs button{border-radius:10px;padding:10px 12px;font-size:13px;white-space:nowrap;font-weight:750}
nav.tabs button.active{background:linear-gradient(120deg,var(--blue),var(--teal));color:#fff;box-shadow:0 8px 18px #1842bd33}
main{max-width:1450px;padding:18px 18px 100px}#dashboard{width:100%}#dashboard> *{box-sizing:border-box}
#dashboard .ns31-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;min-height:214px;align-items:center;justify-content:space-between;border-radius:24px;padding:29px 32px 42px;color:white;background:linear-gradient(113deg,#112755 0%,var(--blue) 61%,var(--teal) 127%);box-shadow:0 18px 35px #17419b30;margin-bottom:21px}
#dashboard .ns31-hero:before{content:"";position:absolute;width:310px;height:310px;border:57px solid #ffffff10;border-radius:50%;right:-103px;top:-161px;z-index:-1}
#dashboard .ns31-hero:after{content:"";position:absolute;width:290px;height:290px;background:#ffffff0c;border-radius:50%;right:95px;bottom:-232px;z-index:-1}
#dashboard .ns31-hero-content{position:relative;z-index:1;max-width:680px}#dashboard .ns31-hero-eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:1.6px;color:#d6f7ff;font-weight:900}
#dashboard .ns31-live-dot{width:8px;height:8px;background:#66f3cb;border-radius:50%;box-shadow:0 0 0 5px #66f3cb32}
#dashboard .ns31-hero h1{color:#fff;line-height:1.15;font-size:clamp(27px,3vw,38px);letter-spacing:-1.2px;margin:12px 0 9px;overflow-wrap:anywhere}
#dashboard .ns31-hero p{color:#e1edff;font-size:13px;line-height:1.6;margin:0 0 20px}
#dashboard .ns31-hero-buttons{display:flex;gap:9px;flex-wrap:wrap}
#dashboard .ns31-hero-buttons button{border-radius:12px;min-height:43px;border:1px solid #fff8;padding:10px 15px;font-weight:900;box-shadow:none}
#dashboard .ns31-cta{background:#fff;color:#2148b7}#dashboard .ns31-cta span{margin-left:12px}
#dashboard .ns31-cta-secondary{background:#ffffff18;color:#fff}
#dashboard .ns31-hero-art{position:relative;width:184px;height:158px;flex:0 0 184px;margin-right:13px}
#dashboard .ns31-art-orbit{position:absolute;inset:0;border:2px dashed #ffffff66;border-radius:50%;transform:rotate(-20deg)}
#dashboard .ns31-art-orbit span{position:absolute;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff66;border-radius:15px;background:#ffffff32;font-size:24px;transform:rotate(20deg);box-shadow:0 8px 20px #08226224}
#dashboard .ns31-art-orbit span:nth-child(1){top:-7px;left:62px}#dashboard .ns31-art-orbit span:nth-child(2){bottom:9px;left:-16px}#dashboard .ns31-art-orbit span:nth-child(3){bottom:3px;right:-10px}
#dashboard .ns31-art-center{position:absolute;top:42px;left:60px;width:68px;height:68px;display:grid;place-items:center;border-radius:19px;background:#fff;color:#2755cb;font-size:28px;font-weight:1000;letter-spacing:-1px;box-shadow:0 13px 25px #09215f40}
#dashboard .ns31-hero-date{position:absolute;right:22px;bottom:12px;color:#e2efff;display:flex;gap:9px;align-items:center;font-size:11px;font-weight:800}
#dashboard .ns31-lifetime{background:#ffffff22;padding:5px 9px;border-radius:50px;border:1px solid #ffffff50;letter-spacing:.3px}
#dashboard .ns31-section-heading{display:flex;justify-content:space-between;align-items:end;gap:9px;margin:22px 0 13px}
#dashboard .ns31-eyebrow{color:#5070a2;font-size:10px;font-weight:900;letter-spacing:1.5px}
#dashboard .ns31-section-heading h2{font-size:20px;letter-spacing:-.6px;margin:3px 0 0;color:#152849}
#dashboard .ns31-heading-accent{font-size:12px;color:#7c8ca8;font-weight:650;padding-bottom:2px}
#dashboard .ns31-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
#dashboard .ns31-tile{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:5px;border:1px solid #e3e9f5;border-bottom:3px solid var(--tile-col);border-radius:20px;background:#fff;min-width:0;min-height:129px;padding:13px 9px;box-shadow:var(--ns31-shadow);cursor:pointer;transition:transform .15s,box-shadow .15s}
#dashboard .ns31-tile:active{transform:scale(.965)}#dashboard .ns31-tile:hover{box-shadow:0 14px 31px #314d9d25}
#dashboard .ns31-tileicon{width:62px;height:62px;display:grid;place-items:center;flex:0 0 62px;background:linear-gradient(145deg,var(--tile-col),var(--tile-col2));border-radius:18px;color:#fff;font-size:29px;box-shadow:0 9px 18px color-mix(in srgb,var(--tile-col) 25%,transparent);margin-bottom:3px}
#dashboard .ns31-tile strong{font-size:14px;color:#182a4a;line-height:1.2;overflow-wrap:anywhere}#dashboard .ns31-tile small{font-size:10px;color:#8490aa;line-height:1.25;font-weight:650}
#dashboard .ns31-blue{--tile-col:#3763e8;--tile-col2:#38a8f3}#dashboard .ns31-orange{--tile-col:#f58333;--tile-col2:#ffb13c}
#dashboard .ns31-green{--tile-col:#0ba977;--tile-col2:#44d9a6}#dashboard .ns31-purple{--tile-col:#7952d6;--tile-col2:#bd72ef}
#dashboard .ns31-indigo{--tile-col:#4865db;--tile-col2:#8793ef}#dashboard .ns31-coral{--tile-col:#e75c68;--tile-col2:#ff9877}
#dashboard .ns31-teal{--tile-col:#03a7c1;--tile-col2:#36d9da}#dashboard .ns31-pink{--tile-col:#c74f9a;--tile-col2:#ff93cf}
#dashboard .ns31-slate{--tile-col:#4e6584;--tile-col2:#839eb5}
#dashboard .ns2-grid.ns31-live-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
#dashboard .ns2-card{position:relative;border:0!important;border-radius:17px;background:#fff!important;box-shadow:var(--ns31-shadow);min-height:112px;padding:16px!important;display:flex;align-items:center;gap:13px;overflow:hidden}
#dashboard .ns2-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--card-top,#3174e7)}
#dashboard .ns2-card:nth-child(1){--card-top:#0bb98a}#dashboard .ns2-card:nth-child(2){--card-top:#4b6eea}#dashboard .ns2-card:nth-child(3){--card-top:#f39a26}#dashboard .ns2-card:nth-child(4){--card-top:#ad6dee}#dashboard .ns2-card:nth-child(5){--card-top:#f1697b}#dashboard .ns2-card:nth-child(6){--card-top:#11b7bd}
#dashboard .ns2-card span{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:color-mix(in srgb,var(--card-top) 13%,white);font-size:23px;padding:0}
#dashboard .ns2-card small{display:block;color:#7a89a7;font-size:11px;font-weight:800}#dashboard .ns2-card strong{display:block;color:#162645;font-size:clamp(17px,2vw,23px);letter-spacing:-.5px;line-height:1.22;margin-top:4px;overflow-wrap:anywhere}
#dashboard .ns31-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
#dashboard .ns31-metrics .metric{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #e8eef9;border-radius:14px;background:#fff;padding:12px 13px;box-shadow:none}
#dashboard .ns31-metric-icon{flex:0 0 35px;width:35px;height:35px;background:#eff5ff;border-radius:10px;display:grid;place-items:center;font-size:19px}
#dashboard .ns31-metrics .metric small{display:block;color:#7b89a5;font-size:11px;font-weight:750}#dashboard .ns31-metrics .metric strong{font-size:16px;color:#192d4c;margin-top:2px;display:block;overflow-wrap:anywhere}
#dashboard .ns31-bottom-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:16px}#dashboard .ns31-left-col,#dashboard .ns31-right-col{display:grid;align-content:start;gap:16px;min-width:0}
#dashboard .ns31-data-panel{margin:0;padding:19px 20px;border:1px solid #e6ebf7;border-radius:19px;background:#fff;box-shadow:var(--ns31-shadow)}
#dashboard .ns31-panel-head{display:flex;gap:7px;justify-content:space-between;align-items:center;margin-bottom:13px}#dashboard .ns31-panel-head h2{margin:0;color:#192c4a;font-size:16px}
#dashboard .ns31-tag{border-radius:50px;background:#e8f8f6;color:#087d78;padding:6px 9px;font-size:11px;font-weight:900}#dashboard .ns31-mini-link{padding:6px 10px;border:0;border-radius:9px;background:#e9efff;color:#315bd4;font-size:11px;font-weight:850}
#dashboard .ns2-chart{height:192px;min-height:192px}#dashboard .ns31-shops-promo{display:flex;align-items:center;gap:14px;background:linear-gradient(120deg,#e1eefe,#e3fbf5);border:1px solid #d6e5f4;border-radius:19px;padding:17px}
#dashboard .ns31-promo-big{display:grid;place-items:center;font-size:30px;flex:0 0 57px;width:57px;height:57px;background:#fff;border-radius:17px;box-shadow:0 6px 19px #3c64a422}
#dashboard .ns31-shops-promo strong{font-size:16px;color:#214768}#dashboard .ns31-shops-promo p{color:#678098;font-size:11px;line-height:1.55;margin:5px 0 9px}#dashboard .ns31-shops-promo button{border:0;background:#3166d6;border-radius:10px;color:#fff;font-size:11px;font-weight:800;padding:9px 12px}
#dashboard .ns31-local-notice{display:flex;align-items:center;gap:6px;color:#69809e;margin-top:18px;border:1px dashed #cdd9eb;background:#ffffffd4;border-radius:13px;padding:12px 13px;font-size:11px;line-height:1.5}
#dashboard #latestSales .ns2-entry{border-bottom:1px solid #eff2f9;padding:10px 0;font-size:12px}#dashboard #latestSales .ns2-entry:last-child{border:0}
@media(min-width:1140px){body{padding-left:216px}header{position:sticky;top:0;z-index:8;min-height:70px}nav.tabs{position:fixed;inset:0 auto 0 0;width:216px;min-height:100vh;height:100vh;display:flex;flex-direction:column;gap:8px;background:linear-gradient(#0f1d3d,#17254c);padding:92px 10px 24px;box-shadow:0 8px 40px #08142e22;overflow-y:auto;z-index:10}nav.tabs:before{content:'NS   /   POS PRO';position:absolute;top:30px;left:21px;font-size:17px;font-weight:950;color:white;letter-spacing:1px}nav.tabs button{color:#b8c7e1;background:transparent!important;text-align:left;display:block;width:100%;padding:13px 14px;border:0}nav.tabs button.active{background:linear-gradient(115deg,#4165e5,#537ce8)!important;color:#fff}nav.tabs button:hover:not(.active){background:#ffffff14!important;color:#fff}}
@media(max-width:900px){#dashboard .ns31-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}#dashboard .ns31-bottom-grid{grid-template-columns:1fr}#dashboard .ns31-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){header{padding:10px 13px}header .name{font-size:16px}header .sub{font-size:10px}header #ns2Who{font-size:10px}nav.tabs{gap:4px;overflow-x:auto;flex-wrap:nowrap;padding:8px 7px}nav.tabs button{flex:0 0 auto;padding:9px 10px;font-size:12px}main{padding:11px 10px 95px}
 #dashboard .ns31-hero{padding:21px 17px 47px;min-height:214px;margin-bottom:14px;border-radius:20px}#dashboard .ns31-hero-eyebrow{font-size:10px;letter-spacing:1px}#dashboard .ns31-hero h1{font-size:clamp(23px,6vw,30px);max-width:320px}#dashboard .ns31-hero p{font-size:11px;max-width:275px;margin-bottom:14px}#dashboard .ns31-hero-art{position:absolute;width:120px;height:116px;right:-22px;top:6px;opacity:.34}#dashboard .ns31-art-center{width:49px;height:49px;left:35px;top:35px;font-size:23px}#dashboard .ns31-art-orbit span{width:33px;height:33px;font-size:17px;border-radius:10px}#dashboard .ns31-art-orbit span:nth-child(1){left:39px}#dashboard .ns31-hero-buttons button{min-height:42px;padding:9px 12px;font-size:12px}#dashboard .ns31-hero-date{right:17px;bottom:11px;font-size:10px}
 #dashboard .ns31-section-heading{margin:20px 2px 11px;align-items:end}#dashboard .ns31-section-heading h2{font-size:18px}#dashboard .ns31-heading-accent{font-size:10px}#dashboard .ns31-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}#dashboard .ns31-tile{border-radius:16px;min-height:113px;padding:10px 5px;gap:4px}#dashboard .ns31-tileicon{width:48px;height:48px;flex:0 0 48px;font-size:24px;border-radius:14px;margin-bottom:2px}#dashboard .ns31-tile strong{font-size:12px;line-height:1.2}#dashboard .ns31-tile small{font-size:9px}
 #dashboard .ns2-grid.ns31-live-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:9px}#dashboard .ns2-card{min-height:91px;padding:11px!important;gap:9px;border-radius:15px}#dashboard .ns2-card span{width:36px;height:36px;flex:0 0 36px;border-radius:10px;font-size:18px}#dashboard .ns2-card strong{font-size:17px}#dashboard .ns2-card small{font-size:10px}
 #dashboard .ns31-metrics{gap:9px;margin-bottom:14px}#dashboard .ns31-metrics .metric{padding:10px;gap:7px;border-radius:13px}#dashboard .ns31-metric-icon{flex-basis:30px;width:30px;height:30px;font-size:16px}#dashboard .ns31-metrics .metric small{font-size:9px}#dashboard .ns31-metrics .metric strong{font-size:14px}
 #dashboard .ns31-bottom-grid,#dashboard .ns31-left-col,#dashboard .ns31-right-col{gap:13px}#dashboard .ns31-data-panel{padding:14px;border-radius:15px}#dashboard .ns31-panel-head h2{font-size:14px}#dashboard .ns2-chart{height:176px;min-height:176px}#dashboard .ns31-shops-promo{padding:13px}#dashboard .ns31-promo-big{width:45px;height:45px;flex-basis:45px;font-size:22px;border-radius:13px}#dashboard .ns31-shops-promo strong{font-size:14px}
}
@media(max-width:355px){#dashboard .ns31-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .ns31-hero h1{font-size:22px}}

/* Mobile header avoids crushing the business name between buttons. */
@media(max-width:650px){
 header .top{display:flex;flex-wrap:wrap;align-items:center;gap:7px;justify-content:flex-end}
 header .top>div:first-child{flex:1 1 100%;min-width:0}
 header .name{font-size:18px;line-height:1.22;overflow-wrap:anywhere}
 header .sub{margin-top:4px;font-size:10px}
 header .top>button[onclick="navigate('settings')"]{display:none!important}
 header #ns2Who{display:block;max-width:67%;font-size:11px;overflow-wrap:anywhere}
 header button[onclick="NS2_logout()"]{font-size:11px;min-height:33px;padding:6px 10px}
}

/* v3.2: compact shop location form; hide guidance copy */
#shops .ns32-shops-header{padding:15px 18px;margin-bottom:12px}
#shops .ns32-shops-header h2{margin:0}
#shops .ns32-loc-message:empty{display:none}
#shops .ns32-loc-message{margin-top:7px;font-size:12px}
#shops .ns32-form{border:1px solid #e3e9f6;border-radius:19px;background:#fff}
#shops .ns32-form h2{margin:0 0 16px}
#shops .ns32-location-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}
#shops .ns32-location-actions button{min-height:48px;font-size:14px;font-weight:800;border-radius:13px}
#shops .ns32-pin-info{padding:11px 13px;border-radius:12px;background:#eef5ff;color:#2c517b;font-size:12px;overflow-wrap:anywhere}
#shops .ns32-coords{margin-top:12px}
#shops .ns32-coords input{background:#f8fafc}
#shops .ns32-save{background:linear-gradient(115deg,#2563eb,#08a6bd)!important;border:0!important;font-weight:850}
#nsLocSetup{padding:3px 0!important}
#nsLocSetup summary{font-weight:800;font-size:14px}
@media(max-width:600px){#shops .panel{padding:15px;margin-bottom:12px}#shops .ns32-location-actions button{font-size:13px;padding:11px 8px}#shops .ns32-coords{gap:8px}#shops .ns32-form textarea{min-height:60px}}
