@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body.page {
  /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;*/
  font-family: 'Montserrat', sans-serif;
  background: #f5f5f7;
  color: #222;
  margin:0;
  padding:100px 16px 80px 16px;
}
a {
  color:#027FFE;
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
}
a:hover {
  color:#10568D;
}

h1 {
  color:#027FFE;
}

h2 {
  color: #027FFE;
  margin-top:0;
  font-size:18px;
}
header {
  background-color:#f5f5f7;
  height:86px;
  left:0;
  position: fixed;
  right:0;
  top:0;
  z-index:100000;
}
.topbar {
  align-items:center;
  background:#027FFE;
  border-radius:50px;
  color:#fff;
  display:flex;
  font-size:15px;
  justify-content:space-between;
  margin:16px;
  padding:12px 16px;
}
.topbar div.logo {
  background: url('/img/decontado_w_512.png') left/contain no-repeat;
  cursor:pointer;
  font-size:18px;
  font-weight:600;
  height:25px;
  line-height:26px;
  padding-left:32px;
}
.topbar a {
  background-color:#fff;
  border-radius:50px;
  color:#027FFE;
  font-size:14px;
  font-weight:600;
  margin-left:10px;
  padding:4px 8px;
  text-align:center;
  text-decoration:none;
  text-transform:capitalize;
}
div.hi {
  color:#027FFE;
  font-size:32px;
  font-weight:700;
  margin: 0px 20px 40px 20px;
  text-transform:capitalize;
}
div.user-name {
  color:#027FFE;
  font-size:16px;
  font-weight:500;
  margin:-16px 16px 0px 16px;
  padding:0px 20px 0px 20px;
  text-transform:capitalize;
  width:auto;
}

.card {
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.07);
  padding:16px;
  max-width:600px;
  margin:0 auto 24px auto;
}
.head-login {
  text-align:center;
}
.head-login img {
  margin:20px 10px -20px 20px;
  max-width:80%;
  width: 300px;
}
.head-login h2 {
  color:#10568D;
}

label {
  display:block;
  font-size:14px;
  font-weight:500;
  margin-top:12px;
}
input:not([type="checkbox"]), select,
button, .button {
  appearance:none;
  width:100%;
  font-size:16px;
  padding:10px 12px;
  border-radius:50px;
  border:1px solid #ccc;
  box-sizing:border-box;
  margin-top:4px;
  background:#fff;
}
input:focus {
  border-color:#027FFE;
  outline:none;
}
input.number {
  text-align:center;
}

button, .button {
  cursor:pointer;
  background:#027FFE;
  color:#fff;
  font-weight:600;
  margin-top:16px;
  border:0;
}
button:hover,
.button:hover {
  background:#10568D;
}

.alert {
  border-radius:50px;
  padding:11px 13px;
  font-size:14px;
  margin-bottom:12px;
  margin-top:12px;
  line-height:1.4;
  text-align:center;
}
.alert.ok {
  background:#e6ffed;
  border:1px solid #8ef0a6;
  color:#064d21;
}
.alert.error {
  background:#ffe6e6;
  border:1px solid #f09a9a;
  color:#6b0000;
}

table.list {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
table.list th {
  text-align:left;
  border-bottom:1px solid #ddd;
  padding:8px;
}
table.list td {
  border-bottom:1px solid #eee;
  padding:8px;
  vertical-align:top;
}
table.list th.number,
table.list td.number {
  text-align: right;
}

/* admin dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 12px;
  margin-bottom:20px;
}
.dash-tile {
  background:#fff;
  border-radius:8px;
  box-shadow:0 2px 4px rgba(0,0,0,0.07);
  padding:16px;
  border:1px solid #ddd;
}
.dash-tile .label {
  font-size:14px;
  color:#666;
  margin-bottom:4px;
}
.dash-tile .value {
  color:#027FFE;
  font-size:40px;
  font-weight:bold;
  line-height:32px;
  text-align:right;
}

.actions-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* separación uniforme entre botones */
}
.actions-list a {
  appearance: none;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
  box-sizing: border-box;
  color: #666;
  font-size: 10px;
  font-weight:500;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  max-width: 180px;
  padding: 30px 10px 10px 10px;
  transition: all 0.2s ease;
  width:22%;
}
.actions-list a:hover {
  background-color: #027FFE;
  color: #fff;
}
.actions-list a span {
  font-size: 40px;
  display: block;
}
@media (max-width: 500px) {
  .actions-list {
    max-width: 100%;
  }
  .actions-list a {
    flex: 1 1 100%;
    max-width: none;
  }
}

main {
  align-items:center;
  display:flex;
  height:80vh;
  justify-content:center;
  width:100%;
}
main content {
  margin:0 auto;
  max-width:80%;
  text-align:center;
  width: 600px;
}
content img {
  margin:0 auto;
  width:100%;
}
content p {
  margin:10px;
  text-align:center;
}


/* admin create coupon */
.row-inline {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* admin liquidacións */
.summary {
  background:#f5f5f5;
  border-radius:8px;
  padding:12px;
  margin-bottom:16px;
}

/* qr view */
.qr-card {
    max-width: 320px;
    margin: 16px auto;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding:16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qr-card img {
    width: 240px;
    height: auto;
    image-rendering: pixelated;
    border:1px solid #ccc;
    background:#fff;
    padding:8px;
    border-radius:4px;
}
.qr-meta {
    font-size:14px;
    line-height:1.4;
    margin-top:12px;
    text-align:center;
}
@media print {
    .topbar,
    .print-btn {
        display:none !important;
    }
    body.page {
        background:#fff !important;
    }
    .qr-card {
        box-shadow:none !important;
        border:0 !important;
    }
}