:root {

  --green-900: #193f35;

  --green-800: #215247;

  --green-700: #2f6e5e;

  --green-600: #3d826f;

  --green-100: #e9f3ef;

  --green-50: #f4f8f6;

  --orange: #e9824a;

  --orange-soft: #fbece4;

  --yellow: #e2b94d;

  --yellow-soft: #fff6d9;

  --blue: #5d8ca8;

  --blue-soft: #e9f2f6;

  --cream: #fbf8f1;

  --white: #fff;

  --ink: #26302d;

  --muted: #7b8782;

  --line: #e8ece9;

  --danger: #c95353;

  --shadow: 0 12px 35px rgba(27, 64, 54, .08);

  --radius: 20px;

}



* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

  margin: 0;

  font-family: "DM Sans", system-ui, -apple-system, sans-serif;

  color: var(--ink);

  background: #f6f7f5;

  min-height: 100vh;

}

button, input, select { font: inherit; }

button { cursor: pointer; }



.app-shell { display: flex; min-height: 100vh; }

.sidebar {

  width: 252px;

  background: var(--green-900);

  color: white;

  padding: 28px 18px 20px;

  position: fixed;

  inset: 0 auto 0 0;

  z-index: 50;

  display: flex;

  flex-direction: column;

}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }

.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #f6c96d; }

.brand-mark svg { width: 42px; height: 42px; }

.brand strong { display:block; font-size: 17px; letter-spacing: -.2px; }

.brand span { display:block; color: rgba(255,255,255,.58); font-size: 14px; margin-top: 2px; }

.nav { display: grid; gap: 6px; }

.nav-item {

  width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.72);

  border-radius: 12px; padding: 11px 12px; display:flex; align-items:center; gap:12px; text-align:left;

  transition: .2s ease;

  font-size: 15px;

}

.nav-item:hover { background: rgba(255,255,255,.08); color:#fff; }

.nav-item.active { background: #fff; color: var(--green-900); box-shadow: 0 8px 20px rgba(0,0,0,.08); font-weight:700; }

.nav-item .icon { width: 24px; text-align:center; font-size:20px; }

.sidebar-card { margin-top:auto; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:16px; display:flex; gap:10px; }

.sidebar-card-icon { color:#f2c566; font-size:22px; }

.sidebar-card strong { font-size:14px; }

.sidebar-card p { font-size:13px; line-height:1.55; color:rgba(255,255,255,.55); margin:5px 0 0; }

.sidebar-footer { padding:18px 10px 0; font-size:13px; color:rgba(255,255,255,.55); display:flex; align-items:center; gap:7px; }

.status-dot { width:7px; height:7px; border-radius:50%; background:#f2c566; box-shadow:0 0 0 4px rgba(242,197,102,.12); }

.status-dot.online { background:#7fd0a4; box-shadow:0 0 0 4px rgba(127,208,164,.12); }

.status-dot.offline { background:#e07c73; box-shadow:0 0 0 4px rgba(224,124,115,.12); }



.main-content { margin-left:252px; width:calc(100% - 252px); padding:0 34px 42px; }

.topbar { height:96px; display:flex; align-items:center; justify-content:space-between; gap:24px; }

.topbar-left { display:flex; align-items:center; gap:14px; }

.eyebrow { margin:0 0 4px; font-size:12px; font-weight:800; letter-spacing:1.4px; color:var(--green-600); }

.topbar h1 { margin:0; font-size:30px; letter-spacing:-.6px; }

.topbar-actions { display:flex; align-items:center; gap:10px; }

.global-search { background:#fff; border:1px solid var(--line); border-radius:13px; height:42px; padding:0 11px; display:flex; align-items:center; gap:8px; min-width:300px; box-shadow:0 4px 12px rgba(30,50,45,.03); }

.global-search input { border:0; outline:0; width:100%; font-size:16px; color:var(--ink); }

.global-search input::placeholder { color:#a5ada9; }

kbd { border:1px solid var(--line); background:#f7f8f7; border-radius:6px; font-size:11px; color:#9aa39f; padding:3px 5px; white-space:nowrap; }

.icon-button { width:42px; height:42px; border:1px solid var(--line); background:#fff; border-radius:12px; color:var(--green-800); font-size:19px; }

.avatar { width:42px; height:42px; border-radius:12px; background:var(--green-800); color:white; display:grid; place-items:center; font-weight:800; font-size:12px; }

.menu-button { display:none; }



.view { display:none; animation: fadeIn .2s ease; }

.view.active-view { display:block; }

@keyframes fadeIn { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }

.hero-card { min-height:270px; background:linear-gradient(135deg,#e8f1ec 0%,#f5efe3 100%); border-radius:26px; padding:40px 44px; position:relative; overflow:hidden; display:flex; align-items:center; box-shadow:var(--shadow); }

.hero-card:before { content:""; position:absolute; width:320px; height:320px; border:1px solid rgba(47,110,94,.10); border-radius:50%; right:-60px; top:-120px; box-shadow:0 0 0 42px rgba(47,110,94,.035),0 0 0 86px rgba(47,110,94,.025); }

.hero-copy { position:relative; z-index:2; max-width:620px; }

.pill { display:inline-flex; padding:7px 10px; border-radius:999px; background:rgba(47,110,94,.10); color:var(--green-700); font-size:12px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; }

.hero-card h2 { font-size:42px; line-height:1.08; letter-spacing:-1.6px; margin:15px 0 12px; color:var(--green-900); }

.hero-card h2 span { color:var(--orange); }

.hero-card p { margin:0; max-width:520px; color:#66736e; line-height:1.65; font-size:17px; }

.hero-actions { margin-top:24px; display:flex; gap:10px; }

.primary-button, .secondary-button { border:0; border-radius:12px; padding:11px 16px; font-weight:700; font-size:15px; }

.primary-button { background:var(--green-800); color:#fff; box-shadow:0 8px 16px rgba(33,82,71,.16); }

.primary-button span { margin-left:8px; }

.secondary-button { background:#fff; color:var(--green-800); border:1px solid rgba(33,82,71,.10); }

.hero-illustration { margin-left:auto; position:relative; width:270px; height:190px; display:grid; place-items:center; }

.box-graphic { position:relative; width:118px; height:88px; background:#e7b75f; border-radius:8px 8px 14px 14px; transform:rotate(-3deg); box-shadow:0 16px 25px rgba(108,79,30,.15); display:grid; place-items:center; color:var(--green-800); font-size:34px; }

.box-top { position:absolute; width:134px; height:40px; background:#f4cc7c; clip-path:polygon(10% 40%,50% 0,90% 40%,80% 100%,20% 100%); top:-27px; left:-8px; }

.heart { position:absolute; color:var(--orange); }

.heart-one { font-size:28px; top:20px; right:40px; transform:rotate(12deg); }

.heart-two { font-size:19px; top:49px; left:52px; color:var(--green-600); transform:rotate(-12deg); }



.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:18px; }

.stat-card { background:#fff; border:1px solid var(--line); border-radius:17px; padding:18px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; box-shadow:0 6px 18px rgba(25,63,53,.035); }

.stat-icon { width:43px; height:43px; border-radius:12px; display:grid; place-items:center; font-size:20px; }

.accent-green .stat-icon { background:var(--green-100); color:var(--green-700); }

.accent-orange .stat-icon { background:var(--orange-soft); color:var(--orange); }

.accent-blue .stat-icon { background:var(--blue-soft); color:var(--blue); }

.accent-yellow .stat-icon { background:var(--yellow-soft); color:#b68a20; }

.stat-card p { margin:0 0 3px; color:var(--muted); font-size:14px; }

.stat-card strong { font-size:28px; color:var(--green-900); }

.stat-link { font-size:12px; color:var(--muted); cursor:pointer; }



.dashboard-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px; margin-top:18px; }

.panel { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; box-shadow:0 7px 20px rgba(25,63,53,.035); }

.panel-header { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:14px; }

.panel h3 { margin:0; font-size:19px; }

.text-button { border:0; background:transparent; color:var(--green-700); font-size:14px; font-weight:700; }

.activity-list { display:grid; }

.activity-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #f0f2f1; }

.activity-row:first-child { border-top:0; }

.activity-icon { width:36px; height:36px; border-radius:10px; background:var(--green-100); color:var(--green-700); display:grid; place-items:center; }

.activity-row strong { display:block; font-size:15px; }

.activity-row small { display:block; color:var(--muted); margin-top:3px; font-size:12px; }

.activity-id { font-size:12px; color:#9ca5a1; }

.quick-actions { display:grid; gap:8px; }

.quick-actions button { border:1px solid #edf0ee; background:#fbfcfb; border-radius:13px; padding:12px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; text-align:left; color:var(--ink); }

.quick-actions button:hover { background:var(--green-50); border-color:#dfe9e4; }

.quick-actions strong { display:block; font-size:14px; }

.quick-actions small { display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.quick-icon { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; }

.quick-icon.green { background:var(--green-100); color:var(--green-700); }

.quick-icon.orange { background:var(--orange-soft); color:var(--orange); }

.quick-icon.blue { background:var(--blue-soft); color:var(--blue); }



/* list views */

.page-intro { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:18px; }

.page-intro h2 { margin:4px 0 5px; font-size:30px; letter-spacing:-.6px; }

.page-intro p { margin:0; color:var(--muted); font-size:15px; }

.data-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }

.local-search { background:#fff; border:1px solid var(--line); border-radius:12px; height:41px; display:flex; align-items:center; gap:8px; padding:0 12px; min-width:min(360px,100%); }

.local-search input { border:0; outline:0; width:100%; font-size:15px; }

.counter-chip { background:var(--green-100); color:var(--green-700); border-radius:999px; padding:7px 10px; font-size:13px; font-weight:700; }

.table-card { background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }

.table-scroll { overflow:auto; }

table { width:100%; border-collapse:collapse; min-width:690px; }

th { text-align:left; font-size:12px; letter-spacing:.8px; text-transform:uppercase; color:#89938f; background:#fafbfa; padding:13px 16px; border-bottom:1px solid var(--line); }

td { font-size:15px; padding:16px 16px; border-bottom:1px solid #eff1f0; vertical-align:middle; }

tr:last-child td { border-bottom:0; }

tbody tr:hover { background:#fbfdfc; }

.id-badge { min-width:30px; display:inline-flex; justify-content:center; background:#f2f4f3; border-radius:8px; padding:5px 7px; font-size:12px; color:#69746f; }

.tag { display:inline-flex; align-items:center; border-radius:999px; padding:5px 8px; background:var(--green-100); color:var(--green-700); font-size:12px; font-weight:700; }

.empty-state { padding:54px 20px; text-align:center; color:var(--muted); }

.empty-icon { width:52px; height:52px; border-radius:16px; margin:0 auto 12px; background:var(--green-100); color:var(--green-700); display:grid; place-items:center; font-size:28px; }

.empty-state strong { color:var(--ink); display:block; font-size:16px; }

.empty-state p { margin:6px 0 0; font-size:11px; }

.error-state { padding:38px 20px; text-align:center; }

.error-state strong { color:var(--danger); font-size:16px; }

.error-state p { color:var(--muted); font-size:14px; }

.retry-button { border:0; border-radius:9px; background:var(--green-800); color:#fff; padding:8px 11px; font-size:13px; font-weight:700; margin-top:7px; }

.skeleton { height:46px; border-radius:10px; background:linear-gradient(90deg,#f2f4f3 25%,#f8f9f8 37%,#f2f4f3 63%); background-size:400% 100%; animation: shimmer 1.3s infinite; margin:8px 0; }

@keyframes shimmer { 0%{background-position:100% 0}100%{background-position:0 0} }

.toast { position:fixed; right:25px; bottom:25px; z-index:100; background:var(--green-900); color:#fff; padding:11px 14px; border-radius:11px; box-shadow:var(--shadow); font-size:14px; transform:translateY(20px); opacity:0; pointer-events:none; transition:.25s; }

.toast.show { transform:none; opacity:1; }

.toast.error { background:#8f4040; }



@media (max-width:1050px) {

  .stats-grid { grid-template-columns:repeat(2,1fr); }

  .hero-illustration { width:200px; }

  .global-search { min-width:230px; }

}

@media (max-width:820px) {

  .sidebar { transform:translateX(-100%); transition:.25s; box-shadow:20px 0 50px rgba(0,0,0,.18); }

  .sidebar.open { transform:none; }

  .main-content { margin-left:0; width:100%; padding:0 18px 30px; }

  .menu-button { display:block; }

  .global-search { display:none; }

  .dashboard-grid { grid-template-columns:1fr; }

  .hero-card { padding:32px; }

  .hero-illustration { display:none; }

}

@media (max-width:560px) {

  .topbar { height:82px; }

  .topbar h1 { font-size:24px; }

  .stats-grid { grid-template-columns:1fr; }

  .hero-card h2 { font-size:34px; }

  .hero-card { min-height:0; padding:28px 24px; }

  .hero-actions { flex-direction:column; align-items:stretch; }

  .page-intro { align-items:flex-start; flex-direction:column; }

  .data-toolbar { align-items:stretch; flex-direction:column; }

  .local-search { min-width:0; width:100%; }

}



/* CRUD additions */

.intro-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

.compact { padding:10px 14px !important; min-height:auto !important; }

.row-actions { display:flex; gap:7px; align-items:center; white-space:nowrap; }

.actions-col { width:112px; text-align:right; }

.mini-button { width:36px; height:34px; border-radius:10px; border:1px solid var(--line); background:#fff; font-weight:700; transition:.18s ease; }

.mini-button:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(0,0,0,.06); }

.mini-button.edit { color:var(--green-700); }

.mini-button.delete { color:var(--danger); }

.danger-button { border:0; background:var(--danger); color:white; border-radius:12px; padding:12px 18px; font-weight:700; }

.danger-button:disabled, .primary-button:disabled { opacity:.55; cursor:wait; }



.modal-root { position:fixed; inset:0; z-index:200; pointer-events:none; }

.modal-root.open { pointer-events:auto; }

.modal-backdrop { position:absolute; inset:0; background:rgba(17,36,31,.48); backdrop-filter:blur(5px); display:grid; place-items:center; padding:24px; animation:fadeIn .16s ease; }

.modal-card { width:min(720px,100%); max-height:90vh; overflow:auto; background:#fff; border-radius:22px; box-shadow:0 24px 80px rgba(0,0,0,.2); padding:24px; animation:modalUp .2s ease; }

.modal-header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:20px; }

.modal-header h3 { margin:4px 0 0; font-size:28px; }

.modal-close { width:38px; height:38px; border:0; border-radius:11px; background:var(--green-50); color:var(--green-900); font-size:24px; line-height:1; }

.crud-form { display:grid; gap:20px; }

.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }

.form-field { display:grid; gap:7px; }

.form-field label { font-size:15px; font-weight:700; color:var(--green-900); }

.form-field input, .form-field select { width:100%; border:1px solid var(--line); border-radius:12px; padding:13px 14px; font-size:15px; background:#fbfcfb; outline:none; transition:.18s ease; color:var(--ink); }

.form-field input:focus, .form-field select:focus { border-color:var(--green-600); box-shadow:0 0 0 3px rgba(61,130,111,.10); background:#fff; }

.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }

.confirm-copy { display:flex; align-items:flex-start; gap:14px; background:#fff6f6; border:1px solid #f4dddd; border-radius:15px; padding:16px; margin:8px 0 20px; }

.confirm-copy p { margin:2px 0; line-height:1.55; }

.danger-icon { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; background:var(--danger); color:white; border-radius:50%; font-weight:800; }

.danger-text { color:var(--danger) !important; }



@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

@keyframes modalUp { from { opacity:0; transform:translateY(12px) scale(.985) } to { opacity:1; transform:none } }

@media (max-width: 650px) {

  .form-grid { grid-template-columns:1fr; }

  .modal-backdrop { padding:12px; align-items:end; }

  .modal-card { border-radius:20px 20px 0 0; max-height:92vh; }

  .modal-actions { position:sticky; bottom:0; background:#fff; padding-top:10px; }

  .intro-actions { width:100%; justify-content:space-between; }

}



/* --- Funzioni operative Bottega --- */

.special-nav { margin-top: 8px; border: 1px solid rgba(255,255,255,.12); }

.weekly-card {

  margin: 20px 0 22px; padding: 18px 20px; border-radius: 18px; display: grid;

  grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line);

  background: var(--white); box-shadow: var(--shadow);

}

.weekly-card.pending { background: linear-gradient(135deg, #fff9e8, #fff); border-color: #f0dfaa; }

.weekly-card.done { background: linear-gradient(135deg, #edf8f2, #fff); border-color: #cfe6da; }

.weekly-card h3 { margin: 2px 0 5px; font-size: 18px; }

.weekly-card p { margin: 0; color: var(--muted); font-size: 15px; }

.weekly-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); font-weight: 800; font-size: 20px; }

.weekly-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

button:disabled { opacity: .55; cursor: not-allowed; }

.price-old { text-decoration: line-through; color: var(--muted); margin-right: 5px; }

.discount-points { color: var(--orange); }



.shopping-day-banner { margin-bottom: 18px; border-radius: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }

.shopping-day-banner.today { background: var(--green-100); color: var(--green-900); }

.shopping-day-banner.not-today { background: var(--yellow-soft); color: #705c22; }

.shopping-day-banner > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); font-weight: 800; }

.shopping-day-banner strong { display: block; font-size: 16px; }

.shopping-day-banner p { margin: 2px 0 0; font-size: 12px; opacity: .8; }



.shop-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.cart-panel { grid-column: 1 / -1; }

.disabled-panel { opacity: .7; }

.scanner-form { display: flex; gap: 10px; align-items: stretch; }

.scan-input { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fafcfa; border-radius: 13px; padding: 0 13px; min-height: 48px; }

.scan-input:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(61,130,111,.11); }

.scan-input input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; }

.helper-text, .modal-note { color: var(--muted); font-size: 12px; line-height: 1.55; }

.modal-note { margin: 2px 0 18px; }

.locked-message { border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); background: #fafbfa; }

.selected-user { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 16px; padding: 16px; }

.avatar.large { width: 52px; height: 52px; font-size: 15px; }

.selected-user h3 { margin: 1px 0; }

.selected-user p, .selected-user small { margin: 0; color: var(--muted); font-size: 12px; }

.points-balance { text-align: right; padding-left: 16px; border-left: 1px solid #dce9e3; }

.points-balance small { display: block; font-size: 9px; letter-spacing: .08em; }

.points-balance strong { font-size: 30px; color: var(--green-800); }



.cart-list { display: grid; gap: 8px; }

.cart-row { display: grid; grid-template-columns: 1fr auto 90px 34px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }

.cart-product strong, .cart-product small { display: block; }

.cart-product small { color: var(--muted); margin-top: 2px; }

.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }

.qty-control button { border: 0; background: #f4f7f5; width: 30px; height: 30px; }

.qty-control span { min-width: 30px; text-align: center; font-weight: 700; }

.cart-points { text-align: right; font-weight: 700; }

.cart-remove { border: 0; background: var(--orange-soft); color: var(--danger); border-radius: 9px; width: 30px; height: 30px; }

.empty-cart { padding: 34px 10px; text-align: center; color: var(--muted); }

.empty-cart > span { display: block; font-size: 30px; color: var(--green-600); }

.empty-cart strong { color: var(--ink); display: block; margin: 6px 0 2px; }

.empty-cart p { margin: 0; font-size: 12px; }

.checkout-summary { margin-top: 18px; margin-left: auto; max-width: 360px; display: grid; gap: 8px; }

.checkout-summary > div { display: flex; justify-content: space-between; font-size: 13px; }

.checkout-summary .remaining { padding-top: 10px; margin-top: 5px; border-top: 1px solid var(--line); font-size: 16px; }

.checkout-summary .remaining.negative { color: var(--danger); }

.checkout-button { width: 100%; margin-top: 8px; justify-content: center; }

.rule-message { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12px; }

.rule-message.error { background: #fff0ef; color: #a94444; }

.rule-message.success { background: var(--green-100); color: var(--green-900); }



.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

.rule-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; box-shadow: var(--shadow); }

.rule-card.disabled { opacity: .5; }

.rule-type { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 800; }

.rule-type.discount { background: var(--orange-soft); color: var(--orange); }

.rule-type.no_consecutive { background: var(--blue-soft); color: var(--blue); }

.rule-copy small { color: var(--muted); font-size: 9px; letter-spacing: .08em; font-weight: 700; }

.rule-copy h3 { margin: 4px 0 6px; font-size: 15px; }

.rule-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.rule-actions { display: flex; gap: 6px; }

.rules-empty { grid-column: 1 / -1; text-align: center; padding: 42px; }

.hidden { display: none !important; }

.scan-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

.scan-result > div { background: var(--green-50); border-radius: 12px; padding: 13px; }

.scan-result span, .scan-result strong { display: block; }

.scan-result span { color: var(--muted); font-size: 10px; }

.scan-result strong { margin-top: 3px; }



@media (max-width: 900px) {

  .weekly-card { grid-template-columns: auto 1fr; }

  .weekly-actions { grid-column: 1 / -1; justify-content: flex-start; }

  .shop-layout, .rules-grid { grid-template-columns: 1fr; }

  .cart-panel { grid-column: auto; }

}

@media (max-width: 620px) {

  .scanner-form { flex-direction: column; }

  .selected-user { grid-template-columns: auto 1fr; }

  .points-balance { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dce9e3; padding: 10px 0 0; text-align: left; }

  .cart-row { grid-template-columns: 1fr auto; }

  .cart-points { text-align: left; }

  .cart-remove { justify-self: end; }

}


/* --- Aggiornamenti: PDF, regole gratis, scanner --- */
.free-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; background:#e9f3ef; color:#215247; font-size:12px; font-weight:800; letter-spacing:.2px; }
.rule-type.free { background:var(--green-100); color:var(--green-800); font-size:13px; }
.form-field small { color:var(--muted); font-size:12px; }
.data-toolbar .secondary-button { white-space:nowrap; }
@media print { .sidebar, .topbar, .page-intro, .data-toolbar, .row-actions, .actions-col { display:none !important; } .main-content { margin:0; width:100%; padding:0; } .table-card { border:0; box-shadow:none; } }
