:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI",
               sans-serif;
  color: #192638;
  background: #f3f5f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 46px 20px 25px;
}

.header { margin-bottom: 32px; }
.eyebrow {
  color: #667b96;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 3px;
}

h1 {
  margin: 4px 0 10px;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -1.5px;
}

.subtitle { color: #63738a; }
h2 { font-size: 19px; margin: 0 0 22px; }

.panel {
  padding: 28px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(15, 23, 42, .035);
}

label {
  display: block;
  margin-bottom: 9px;
  font-weight: 650;
  font-size: 14px;
}

.search-line {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  font: inherit;
  border: 1px solid #b9c5d4;
  border-radius: 8px;
}

input:focus {
  outline: 2px solid #4e729c;
  outline-offset: 1px;
}

button {
  padding: 12px 27px;
  border: 0;
  border-radius: 8px;
  background: #244e7e;
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: #193d65; }
button:disabled { opacity: .65; cursor: wait; }

.message {
  margin: 17px 0 0;
  color: #63738a;
  font-size: 14px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.count {
  color: #63738a;
  font-size: 13px;
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 16px 12px;
  border-bottom: 1px solid #e9edf3;
  overflow-wrap: anywhere;
}

th {
  color: #60718a;
  font-size: 13px;
  font-weight: 700;
}

td { font-size: 14px; }

.stacked-primary,
.stacked-secondary {
  font-size: 14px;
  font-weight: 400;
  color: #192638;
}

.stacked-secondary {
  margin-top: 4px;
}
tbody tr:last-child td { border-bottom: 0; }

.pending { color: #93621d; font-weight: 600; }

.deadline-note {
  color: #63738a;
  font-size: 12px;
  margin: 12px 0 0;
}

footer {
  color: #8995a5;
  font-size: 12px;
  text-align: center;
  padding-top: 12px;
}

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .page { padding: 26px 12px; }
  .panel { padding: 19px 14px; }
  .search-line { flex-direction: column; }
  button { width: 100%; }
  th, td { min-width: 110px; padding: 12px 9px; }
}

/* TRACK-053N14: header con logo aziendale */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.header-logo-frame {
  position: relative;
  flex: 0 0 clamp(120px, 16vw, 160px);
  width: clamp(120px, 16vw, 160px);
  aspect-ratio: 900 / 526;
  overflow: hidden;
}

.header-logo-frame img {
  position: absolute;
  display: block;
  width: 96.713%;
  height: auto;
  max-width: none;
  left: 1.6435%;
  top: -32.74%;
}

@media (max-width: 640px) {
  .header {
    gap: 12px;
  }

  .header-logo-frame {
    flex-basis: clamp(112px, 30vw, 136px);
    width: clamp(112px, 30vw, 136px);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.1px;
  }

  h1 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .subtitle {
    font-size: 14px;
  }
}

