/* Pannello di gestione */

.login { min-height: 100dvh; display: grid; place-items: center; background: var(--green); padding: 16px; }
.login__card { background: var(--cream); border-radius: 28px; padding: 30px 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.login__card .wordmark { color: var(--green); }
.login__card h1 { font-size: 30px; margin: 6px 0 20px; }

.adm-top { background: var(--green-deep); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gr) 12px var(--gl); position: sticky; top: 0; z-index: 10; }
.adm-top .wordmark { font-size: 26px; }
.adm-top__sub { font-weight: 700; font-size: 13px; opacity: .8; }
.adm-top__right { display: flex; gap: 10px; align-items: center; }
.mode { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--green-deep); }
.mode.online { background: #7FD1A8; }

.adm-tabs { display: flex; gap: 6px; overflow-x: auto; background: var(--green); padding: 8px 12px; position: sticky; top: 64px; z-index: 9; }
.adm-tabs button { border: 0; background: transparent; color: var(--cream); font-weight: 700; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.adm-tabs button.on { background: var(--pink); color: var(--green); }

.adm-main { max-width: 1100px; margin: 0 auto; padding: 22px var(--gr) calc(60px + var(--badge-space, 0px)) var(--gl); }
.pane-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pane-head h2 { font-size: 32px; }
.pane-head p { margin: 6px 0 0; max-width: 60ch; }
.pane-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sec { font-size: 22px; margin: 30px 0 12px; }

/* offerte */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.oc { text-align: left; background: var(--white); border: 2px solid transparent; border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; transition: border-color .15s; }
.oc:hover { border-color: var(--pink-2); }
.oc__day { width: 54px; height: 54px; border-radius: 14px; background: var(--green); color: var(--pink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; position: relative; }
.oc__day i { position: absolute; bottom: -6px; right: -6px; font-style: normal; font-size: 20px; }
.oc h3 { font-size: 16px; line-height: 1.15; margin-bottom: 4px; }
.oc p { margin: 0; font-size: 12px; }
.oc.today { border-color: var(--amber); }
.oc.off { opacity: .55; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--pink); margin-top: 6px; margin-right: 4px; }
.pill.amber { background: var(--amber); }

/* cassa */
.check-form { display: flex; gap: 10px; max-width: 520px; }
.check-form input { flex: 1; min-height: 56px; border-radius: 16px; border: 2px solid var(--line); padding: 0 18px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; background: var(--white); }
.result { margin-top: 16px; border-radius: 20px; padding: 18px; max-width: 520px; }
.result.ok { background: #DDF3E7; }
.result.warn { background: #FFF0D6; }
.result.bad { background: #FBE3DD; }
.result h3 { font-size: 24px; margin-bottom: 6px; }
.result p { margin: 4px 0; }

/* tabelle */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .empty { text-align: center; opacity: .6; padding: 26px; white-space: normal; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--white); border-radius: 18px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 36px; line-height: 1; }
.stat span { font-size: 13px; opacity: .75; }

/* messaggi */
.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr 1fr; } }
.card { background: var(--white); border-radius: 20px; padding: 18px; }
.audience { background: var(--cream); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.phone-preview { background: var(--green); border-radius: 28px; padding: 26px 16px; }
.notif { background: rgba(255,255,255,.92); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; }
.notif__app { font-size: 11px; font-weight: 700; opacity: .6; letter-spacing: .05em; }
.ideas { display: grid; gap: 8px; }
.ideas button { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.ideas button:hover { border-color: var(--pink-2); }

/* editor offerta */
.editor h2 { font-size: 28px; margin: 4px 0 14px; }
.editor .grid2 { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.editor .row-inline { display: flex; gap: 10px; align-items: center; }

/* oggi */
.today-offer { width: 100%; text-align: left; border: 0; background: var(--white); border-radius: 22px; padding: 16px; display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px; box-shadow: var(--shadow-sm); border-left: 6px solid var(--amber); }
.today-offer > span:nth-child(2) { flex: 1; min-width: 0; }
.today-offer h3 { font-size: 22px; margin: 2px 0 4px; }
.today-offer p { margin: 0; }
.today-offer__emoji { font-size: 40px; width: 64px; height: 64px; border-radius: 18px; background: var(--cream); display: grid; place-items: center; flex: none; }
.today-offer--info { border-left-color: var(--pink-2); }
.chart-card { margin-top: 4px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.chart-head h3 { font-size: 18px; }
.chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.bar i { width: 100%; background: var(--pink-2); border-radius: 4px 4px 2px 2px; }
.bar.now i { background: var(--amber); }
.bar b { font-size: 10px; line-height: 1; }
.bar span { font-size: 9px; font-weight: 700; opacity: .6; }
.stat { box-shadow: var(--shadow-sm); }
.check-form input { min-width: 0; }
.check-form input:focus { border-color: var(--green); outline: none; }
.today-offer { position: relative; }
.today-offer .pill { position: absolute; top: 12px; right: 12px; margin: 0; }
.today-offer h3 { padding-right: 60px; }
.mode { font-size: 10.5px; white-space: nowrap; }
@media (max-width: 480px) { .adm-top__sub { display: none; } .pane-head h2 { font-size: 28px; } }
