/* ============= Wizard Amazon: griglia colori ============= */

/* Layout base */
.aw-wrap{display:grid;gap:18px}
.aw-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.aw-grid{overflow:auto;border:1px solid #e5e7eb;border-radius:12px;background:#fff}

/* Tabella */
table.aw{border-collapse:separate;border-spacing:0;min-width:920px;width:100%;table-layout:auto}
table.aw th,table.aw td{padding:10px 12px;border-bottom:1px solid #eef2f7;vertical-align:middle;white-space:nowrap}
table.aw thead th{
  position:sticky;top:0;background:#f8fafc;font-weight:600;font-size:13px;z-index:3;
  box-shadow: 0 1px 0 0 #e5e7eb;
}
table.aw thead th small{display:block;font-weight:500;color:#6b7280}
table.aw tbody tr:nth-child(odd){background:#fcfdff}

/* Prima colonna appiccicosa */
table.aw .col-pms{
  position:sticky;left:0;background:inherit;font-weight:600;z-index:2;border-right:1px solid #eef2f7;
}

/* Celle: evita clipping dei menu */
.aw-grid td{overflow:visible}

/* Tag e helper */
.help-note{color:#64748b;font-size:12px}
.tag{display:inline-block;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px}

/* Barra bottoni */
.btnbar{display:flex;gap:10px;align-items:center}
.btnbar .button{padding:8px 14px;border-radius:8px}
.btnbar .default{box-shadow:none}

/* ============= Controlli di input/select “sicuri” ============= */

/* Reset robusto per select / input dentro la griglia */
.aw-grid select,
.aw-grid input[type="text"],
.aw-grid input[type="search"]{
  -webkit-appearance:auto;-moz-appearance:auto;appearance:auto;
  background:#ffffff;color:#111827;
  border:1px solid #d0d7e2;border-radius:8px;
  height:34px;min-width:160px;max-width:100%;
  padding:4px 8px;line-height:1.2;
  opacity:1 !important;
}

/* Opzioni visibili anche con temi chiari */
.aw-grid option{color:#111827;background:#ffffff}

/* Focus stato accessibile */
.aw-grid select:focus,
.aw-grid input[type="text"]:focus,
.aw-grid input[type="search"]:focus{
  outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.25);
}

/* Placeholder leggibile */
.aw-grid ::placeholder{color:#9ca3af}

/* Disabled/grayed */
.aw-grid select:disabled,
.aw-grid input[disabled]{background:#f3f4f6;color:#9ca3af;border-color:#e5e7eb;cursor:not-allowed}

/* Dropdown “pieno” (evita che sembri vuoto) */
.aw-grid select:empty{min-width:200px}
.aw-grid select option[value=""]{color:#9ca3af}

/* ============= Tema scuro (admin con data-theme="dim") ============= */
html[data-theme="dim"] .aw-grid{background:#0f172a;border-color:#1f2937}
html[data-theme="dim"] table.aw thead th{background:#111827;box-shadow:0 1px 0 0 #1f2937;color:#e5e7eb}
html[data-theme="dim"] table.aw td,
html[data-theme="dim"] table.aw th{border-color:#1f2937}
html[data-theme="dim"] table.aw tbody tr:nth-child(odd){background:#0e1626}
html[data-theme="dim"] table.aw .col-pms{background:inherit}

html[data-theme="dim"] .help-note{color:#9aa4b2}
html[data-theme="dim"] .tag{background:rgba(124,58,237,.18);color:#e5e7eb}

html[data-theme="dim"] .aw-grid select,
html[data-theme="dim"] .aw-grid input[type="text"],
html[data-theme="dim"] .aw-grid input[type="search"]{
  background:#111827;color:#e5e7eb;border-color:#374151;
}
html[data-theme="dim"] .aw-grid option{color:#e5e7eb;background:#111827}
html[data-theme="dim"] .aw-grid select:focus,
html[data-theme="dim"] .aw-grid input[type="text"]:focus,
html[data-theme="dim"] .aw-grid input[type="search"]:focus{
  border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.28);
}

/* ============= Scrollbar carina (WebKit) ============= */
.aw-grid::-webkit-scrollbar{height:12px;width:12px}
.aw-grid::-webkit-scrollbar-track{background:#f3f4f6;border-radius:12px}
.aw-grid::-webkit-scrollbar-thumb{background:#c7cdd9;border-radius:12px;border:3px solid #f3f4f6}
html[data-theme="dim"] .aw-grid::-webkit-scrollbar-track{background:#0f172a}
html[data-theme="dim"] .aw-grid::-webkit-scrollbar-thumb{background:#475569;border-color:#0f172a}

/* ============= Micro utility ============= */
.aw-mono{font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.aw-right{text-align:right}
.aw-center{text-align:center}

/* Evita che stili globali dell'admin (o tuoi) rendano invisibile il testo */
.aw-grid *{text-shadow:none}
.aw-grid select,* .aw-grid option{filter:none}

/* ===================== Login ===================== */
.pepsiland-login #content{
  max-width:1160px;
  margin:0 auto;
  padding:40px 24px 80px;
}

.pepsiland-login .login-layout{
  display:flex;
  gap:48px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.pepsiland-login .login-hero{
  flex:1 1 320px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:28px;
}

.pepsiland-login .hero-illustration{
  width:clamp(180px,28vw,260px);
  height:auto;
  filter:drop-shadow(0 18px 32px rgba(15,23,42,.25));
}

.pepsiland-login .hero-copy{
  display:flex;
  flex-direction:column;
  gap:12px;
  color:#0f172a;
}

html[data-theme="dim"] .pepsiland-login .hero-copy{color:#e2e8f0;}

.pepsiland-login .hero-copy .eyebrow{
  font-size:0.9rem;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#6366f1;
}

.pepsiland-login .hero-copy h1{
  font-family:"Poppins",sans-serif;
  font-weight:700;
  font-size:clamp(1.75rem,3vw,2.3rem);
  line-height:1.15;
  margin:0;
}

.pepsiland-login .hero-copy h1 span{color:#0ea5e9;}

html[data-theme="dim"] .pepsiland-login .hero-copy h1 span{color:#38bdf8;}

.pepsiland-login .hero-copy .description{
  font-size:1rem;
  line-height:1.6;
  max-width:420px;
  margin:0;
  color:inherit;
}

.pepsiland-login .login-card{
  flex:0 1 380px;
  background:#ffffff;
  border-radius:20px;
  padding:32px;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  display:flex;
  flex-direction:column;
  gap:24px;
}

html[data-theme="dim"] .pepsiland-login .login-card{
  background:#0f172a;
  box-shadow:0 18px 40px rgba(8,11,19,.55);
}

.pepsiland-login .login-card header h2{
  font-size:1.4rem;
  font-weight:600;
  margin:0 0 6px;
}

.pepsiland-login .login-card header p{
  font-size:0.95rem;
  margin:0;
  color:#64748b;
}

html[data-theme="dim"] .pepsiland-login .login-card header p{color:#cbd5f5;}

.pepsiland-login .login-card .form-row label{
  font-size:0.9rem;
  font-weight:500;
  margin-bottom:6px;
}

.pepsiland-login .login-card .form-row input{
  border-radius:10px;
  padding:10px 14px;
  font-size:0.95rem;
}

.pepsiland-login .login-card .submit-row{
  margin-top:8px;
}

.pepsiland-login .login-card .button-primary{
  width:100%;
  padding:12px;
  font-size:1rem;
  border-radius:10px;
}

.pepsiland-login .login-card .help-row{
  text-align:center;
  font-size:0.9rem;
}

@media (max-width:900px){
  .pepsiland-login .login-layout{gap:32px;justify-content:center;text-align:center;}
  .pepsiland-login .login-hero{align-items:center;}
  .pepsiland-login .hero-copy{align-items:center;}
  .pepsiland-login .hero-copy .description{max-width:100%;}
  .pepsiland-login .login-card{flex:1 1 360px;}
}