:root {
  --bg: #f3f5f4;
  --bg-2: #e8efeb;
  --ink: #1a2521;
  --muted: #60706a;
  --line: #d6e0db;
  --card: #ffffff;
  --primary: #00a651;
  --primary-soft: rgb(183.6, 230.08, 206.28);
  --primary-dark: rgb(0, 126.16, 61.56);
  --accent-coral: #f17463;
  --accent-mint: #71c08f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 85% 100%, rgba(241, 116, 99, 0.18) 0%, transparent 38%), radial-gradient(circle at 15% 0%, rgba(0, 166, 81, 0.14) 0%, transparent 34%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding: 24px;
}

a {
  color: inherit;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.app-card {
  background: #ffffff;
  border: 1px solid #d6e0db;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(21, 37, 31, 0.08);
  padding: 20px;
}

.page-layout {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
}

.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

body.has-app-shell {
  padding-left: 286px;
  padding-top: 92px;
  padding-right: 20px;
  transition: padding 0.24s ease;
}

.site-sidebar {
  position: fixed;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 254px;
  z-index: 1200;
  background: #ffffff;
  border: 1px solid #d6e0db;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(21, 37, 31, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.24s ease;
}

.site-sidebar__brand {
  padding: 16px 14px 12px;
  border-bottom: 1px solid #eef3ef;
}

.site-sidebar__brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-sidebar__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-sidebar__brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(47.84, 51.52, 56.12);
  letter-spacing: 0.01em;
}

.site-sidebar__nav {
  padding: 12px 10px;
  display: grid;
  gap: 6px;
  overflow: auto;
}

.site-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #4d5a56;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-sidebar__accordion-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.site-sidebar__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b2c4bc;
  flex-shrink: 0;
}

.site-sidebar__link:hover {
  background: #f6fbf8;
  border-color: #e6efea;
  color: #2f413b;
}

.site-sidebar__link.is-active {
  background: linear-gradient(135deg, #f28974 0%, #f17463 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(241, 116, 99, 0.28);
}

.site-sidebar__link.is-active .site-sidebar__dot {
  background: #fff;
}

.site-sidebar__accordion {
  display: grid;
  gap: 6px;
}

.site-sidebar__chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.site-sidebar__accordion.is-open .site-sidebar__chevron {
  transform: rotate(225deg);
}

.site-sidebar__submenu {
  display: none;
  padding: 0 0 2px 22px;
  margin-top: -2px;
  border-left: 1px solid #d8e4dd;
}

.site-sidebar__accordion.is-open .site-sidebar__submenu {
  display: grid;
  gap: 4px;
}

.site-sidebar__sublink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 7px 10px;
  color: #51635d;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-sidebar__subdot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b2c4bc;
  flex-shrink: 0;
}

.site-sidebar__sublink:hover {
  background: #f4faf6;
  border-color: #e0ece5;
  color: #2f413b;
}

.site-sidebar__sublink.is-active {
  background: #edf8f1;
  border-color: #c8dece;
  color: #1f7a63;
}

.site-sidebar__sublink.is-active .site-sidebar__subdot {
  background: #1f7a63;
}

.site-sidebar__footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #eef3ef;
}

.site-sidebar__logout {
  width: 100%;
  border: 1px solid #f0d6d1;
  border-radius: 10px;
  background: #fff5f2;
  color: #9a4a3f;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 12px;
  left: 286px;
  right: 20px;
  height: 66px;
  z-index: 1100;
  background: #ffffff;
  border: 1px solid #d6e0db;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(21, 37, 31, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(115deg, rgba(0, 166, 81, 0.1) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(241, 116, 99, 0.08) 100%);
  transition: left 0.24s ease;
}

body.sidebar-collapsed .site-sidebar {
  transform: translateX(-115%);
}

body.has-app-shell.sidebar-collapsed {
  padding-left: 20px !important;
}

body.sidebar-collapsed .site-header {
  left: 20px;
}

.site-header__toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #e4ece8;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  cursor: pointer;
}

.site-header__toggle span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #29312f;
}

.site-header__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #111;
}

.site-overlay {
  display: none;
}

@media (max-width: 1024px) {
  body {
    padding: 14px;
  }
  body.has-app-shell {
    padding-left: 14px;
    padding-top: 84px;
    padding-right: 14px;
  }
  body.has-app-shell.sidebar-collapsed {
    padding-left: 14px !important;
  }
  .site-header {
    left: 14px;
    right: 14px;
    height: 62px;
    padding: 10px 12px;
  }
  .site-header__title {
    font-size: 1.4rem;
  }
  .site-header__search-wrap {
    width: min(180px, 46vw);
  }
  .site-sidebar {
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    border-radius: 0 18px 18px 0;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }
  body.sidebar-open .site-sidebar {
    transform: translateX(0);
  }
  body.sidebar-collapsed .site-sidebar {
    transform: translateX(-102%);
  }
  .site-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(20, 26, 24, 0.45);
  }
  body.sidebar-open .site-overlay {
    display: block;
  }
}
@media (max-width: 640px) {
  .app-card {
    padding: 14px;
  }
  .site-header__search-wrap {
    display: none;
  }
}
html.page-promo :root {
  --bg: #f6f6f2;
  --bg-soft: #e8f1ea;
  --card: #ffffff;
  --text: #16302b;
  --muted: #4d6660;
  --primary: #1f7a63;
  --primary-dark: #18624f;
  --danger: #c84343;
  --warning: #e6f2e4;
  --border: #c7d8cb;
  --shadow: 0 10px 22px rgba(24, 55, 46, 0.1);
}
html.page-promo * {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
html.page-promo body {
  background: radial-gradient(circle at top, var(--bg-soft), var(--bg));
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}
html.page-promo .page-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
html.page-promo .container {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
html.page-promo #groupsContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-block: 1rem;
}
html.page-promo .group1 {
  position: relative;
  border: 1px solid #d5e2d8;
  background: #f8fcf8;
  border-radius: 14px;
  padding: 16px 16px 18px 22px;
  box-shadow: 0 8px 18px rgba(24, 55, 46, 0.08);
}
html.page-promo .group1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #1f7a63;
  border-radius: 12px 0 0 12px;
  pointer-events: none;
}
html.page-promo h1 {
  text-align: center;
  color: #16302b;
  margin-bottom: 18px;
  border-bottom: 0;
  padding-bottom: 0;
}
html.page-promo .group-container {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}
html.page-promo .group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
html.page-promo .btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
html.page-promo .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 122, 99, 0.24);
}
html.page-promo .btn.extra {
  padding: 12px 30px;
  font-size: 18px;
}
html.page-promo .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
html.page-promo .btn.icon-only {
  padding: 8px;
  width: 36px;
  justify-content: center;
}
html.page-promo .btn.green {
  background-color: #1f7a63;
}
html.page-promo .btn.red {
  background-color: #9e3b3b;
}
html.page-promo .btn.yellow {
  color: #2a423a;
  background-color: #e6f2e4;
}
html.page-promo .btn-remove {
  background: var(--danger);
}
html.page-promo .btn-remove:hover {
  background: #c0392b;
}
html.page-promo .btn-secondary {
  background: #607a72;
}
html.page-promo .btn-secondary:hover {
  background: #4d6660;
}
html.page-promo .form-group {
  margin-bottom: 15px;
}
html.page-promo .form-group.half {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
html.page-promo .form-group.half span {
  display: block;
  width: 100%;
}
html.page-promo label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c3e50;
}
html.page-promo input,
html.page-promo select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
}
html.page-promo .group1 input[type=month] {
  background: #eef7f0;
  border-color: #c9dccc;
  font-size: 17px;
  font-weight: bold;
  padding: 12px 14px;
  height: 48px;
}
html.page-promo select.tipologia {
  background-color: #eef7f0;
}
html.page-promo input:focus,
html.page-promo select:focus,
html.page-promo .wysiwyg-content:focus {
  outline: none;
  border-color: #7fae9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}
html.page-promo .wysiwyg-container {
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
html.page-promo .wysiwyg-toolbar {
  display: flex;
  border-bottom: 1px solid #eef2f7;
  padding: 6px;
  background: #f4f6f9;
}
html.page-promo .wysiwyg-toolbar button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 5px;
  border-radius: 6px;
}
html.page-promo .wysiwyg-toolbar button:hover {
  background: #e9ecef;
}
html.page-promo .wysiwyg-content {
  min-height: 150px;
  padding: 10px;
  outline: none;
  background-color: white;
}
html.page-promo .wysiwyg-content[contenteditable][placeholder]:empty:before {
  content: attr(placeholder);
  color: #9aa5b1;
}
html.page-promo .group2-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  position: relative;
  border: 1px solid #edf0f4;
}
html.page-promo .remove-group2 {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  font-size: 12px;
}
html.page-promo .submit-container {
  text-align: center;
  margin-top: 30px;
}
html.page-promo .archive-load-form {
  margin-bottom: 1rem;
  max-width: 420px;
}
html.page-promo .archive-load-form select {
  width: 100%;
}
html.page-promo #pdfForm {
  display: grid;
  gap: 12px;
}
html.page-promo #pdfForm .tipologia {
  max-width: 240px;
}
html.page-promo .instructions {
  background: #eef7f0;
  border: 1px solid #d7e5d9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 14px;
}
html.page-promo .bloccoInfo {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 15px;
  width: 100%;
}
html.page-promo .phrase-sidebar {
  width: 320px;
  flex: 0 0 320px;
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
html.page-promo .phrase-sidebar h2 {
  margin-top: 0;
  margin-bottom: 0;
  color: #24344f;
}
html.page-promo .phrase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
html.page-promo .phrase-header .btn {
  padding: 8px 10px;
  font-size: 12px;
}
html.page-promo .sidebar-help {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
html.page-promo .phrase-editor {
  margin-bottom: 12px;
  display: none;
}
html.page-promo .phrase-editor.is-open {
  display: block;
}
html.page-promo .phrase-title-group {
  margin-bottom: 10px;
}
html.page-promo .phrase-title-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #24344f;
  font-weight: 600;
}
html.page-promo .phrase-title-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d6dee8;
  font-size: 13px;
  outline: none;
}
html.page-promo .phrase-title-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}
html.page-promo .phrase-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
html.page-promo .phrase-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}
html.page-promo .phrase-status {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}
html.page-promo .phrase-status.error {
  color: #b42318;
}
html.page-promo .phrase-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.page-promo .phrase-item {
  border: 1px solid #eef2f7;
  background: #f9fbfd;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html.page-promo .phrase-item-title {
  font-weight: 700;
  color: #1f2a3d;
  font-size: 13px;
}
html.page-promo .phrase-preview {
  color: #1f2a3d;
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
html.page-promo .phrase-item-actions {
  display: flex;
  gap: 8px;
}
html.page-promo .phrase-item-actions .btn {
  flex: 1 1 auto;
  padding: 6px 8px;
  font-size: 12px;
}
html.page-promo .phrase-empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 10px;
  border: 1px dashed #d6dee8;
  border-radius: 12px;
}
@media (max-width: 1100px) {
  html.page-promo .page-layout {
    flex-direction: column;
    gap: 16px;
  }
  html.page-promo .phrase-sidebar {
    position: static;
    width: 100%;
    max-height: none;
  }
}
@media (max-width: 900px) {
  html.page-promo body {
    padding: 14px;
  }
  html.page-promo .container {
    padding: 18px;
  }
  html.page-promo h1 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  html.page-promo .instructions {
    margin-bottom: 16px;
    font-size: 0.88rem;
    padding: 12px;
  }
  html.page-promo .bloccoInfo {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-block: 12px;
  }
  html.page-promo .bloccoInfo .btn {
    width: 100%;
    justify-content: center;
  }
  html.page-promo .archive-load-form {
    max-width: none;
  }
  html.page-promo #pdfForm .tipologia,
  html.page-promo #addGroup1 {
    width: 100%;
    max-width: none;
  }
  html.page-promo .submit-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    text-align: initial;
  }
  html.page-promo .submit-container .btn {
    width: 100%;
    justify-content: center;
  }
  html.page-promo .group1 {
    padding: 14px 12px 14px 16px;
  }
  html.page-promo .group1::before {
    width: 5px;
  }
  html.page-promo .group-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  html.page-promo .group-header h2 {
    margin: 0;
    font-size: 1.08rem;
  }
  html.page-promo .group-header .btn {
    width: 100%;
    justify-content: center;
  }
  html.page-promo .group2-item {
    padding: 14px 12px;
  }
  html.page-promo .form-group.half {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html.page-promo .group2-item .add-group2 {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
  html.page-promo .wysiwyg-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  html.page-promo .wysiwyg-toolbar button {
    margin-right: 0;
  }
  html.page-promo .phrase-header {
    flex-direction: column;
    align-items: stretch;
  }
  html.page-promo .phrase-header .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
  }
  html.page-promo .phrase-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.page-promo .phrase-item-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  html.page-promo body {
    padding: 10px;
  }
  html.page-promo .container {
    padding: 12px;
    border-radius: 12px;
  }
  html.page-promo h1 {
    font-size: 1.3rem;
  }
  html.page-promo .btn:not(.icon-only) {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  html.page-promo .btn.extra {
    font-size: 0.95rem;
    padding: 11px 12px;
  }
  html.page-promo .group1 {
    padding: 12px 10px 12px 14px;
  }
  html.page-promo .group2-item {
    padding: 42px 10px 12px;
  }
  html.page-promo .remove-group2 {
    top: 8px;
    right: 8px;
  }
  html.page-promo .wysiwyg-content {
    min-height: 120px;
  }
  html.page-promo .submit-container,
  html.page-promo .phrase-actions,
  html.page-promo .phrase-item-actions {
    grid-template-columns: 1fr;
  }
}

html.page-login * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html.page-login body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(140deg, #0a4f65 0%, #248277 45%, #7bbf6a 100%);
  padding: 20px;
}
html.page-login .login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(14, 43, 56, 0.25);
  padding: 36px;
}
html.page-login .badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #dff4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}
html.page-login h1 {
  font-size: 1.9rem;
  color: #13313f;
  margin-bottom: 8px;
}
html.page-login p {
  color: #52646f;
  margin-bottom: 22px;
  font-size: 0.98rem;
}
html.page-login .form-group {
  margin-bottom: 16px;
}
html.page-login label {
  display: block;
  color: #253842;
  margin-bottom: 8px;
  font-weight: 600;
}
html.page-login .password-wrapper {
  position: relative;
}
html.page-login .password-input {
  width: 100%;
  border: 1px solid #c8d2d7;
  border-radius: 10px;
  padding: 12px 44px 12px 14px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html.page-login .password-input:focus {
  outline: none;
  border-color: #2d8770;
  box-shadow: 0 0 0 3px rgba(45, 135, 112, 0.2);
}
html.page-login .toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #52646f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html.page-login .toggle-password:hover {
  background: #edf2f4;
  color: #253842;
}
html.page-login .toggle-password:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 135, 112, 0.25);
}
html.page-login .toggle-password svg {
  width: 18px;
  height: 18px;
}
html.page-login .eye-slash {
  display: none;
}
html.page-login .toggle-password.is-visible .eye-slash {
  display: block;
}
html.page-login .error-message {
  margin-bottom: 16px;
  background: #fde9eb;
  border: 1px solid #f2c6cb;
  color: #972b39;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
}
html.page-login .btn-login {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #145a73 0%, #2d8770 100%);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html.page-login .btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(20, 90, 115, 0.25);
}

html.page-bacheca :root {
  --bg-start: #f6f6f2;
  --bg-end: #d7e7da;
  --ink: #16302b;
  --muted: #4d6660;
  --line: #c7d8cb;
  --card: #ffffff;
  --accent: #1f7a63;
  --accent-2: #2c9a7f;
}
html.page-bacheca body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, rgba(31, 122, 99, 0.12) 0%, transparent 35%), linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  padding: 24px;
}
html.page-bacheca .shell {
  max-width: 1100px;
  margin: 0 auto;
}
html.page-bacheca .topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
html.page-bacheca h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
html.page-bacheca .subtitle {
  color: var(--muted);
  font-size: 1rem;
}
html.page-bacheca .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html.page-bacheca .btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
html.page-bacheca .btn-home {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(0, 0, 0, 0.05);
}
html.page-bacheca .btn-logout {
  color: #20413a;
  background: #ffffff;
  border-color: var(--line);
}
html.page-bacheca .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
html.page-bacheca .orari-focus {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1.9fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #bfd5c8;
  border-radius: 14px;
  background: radial-gradient(circle at 0% 0%, rgba(31, 122, 99, 0.14) 0%, transparent 45%), linear-gradient(120deg, #ffffff 0%, #f2f9f4 100%);
  box-shadow: 0 10px 22px rgba(24, 55, 46, 0.1);
}
html.page-bacheca .orari-focus__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
html.page-bacheca .orari-focus__tool-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f7a63 0%, #2c9a7f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(31, 122, 99, 0.24);
  flex-shrink: 0;
}
html.page-bacheca .orari-focus__tool-icon {
  width: 27px;
  height: 27px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html.page-bacheca .orari-focus__title {
  margin: 0 0 4px;
  color: #13332b;
  font-size: 1.1rem;
}
html.page-bacheca .orari-focus__text {
  margin: 0;
  color: #4d6660;
  line-height: 1.35;
  font-size: 0.92rem;
}
html.page-bacheca .orari-focus__buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
html.page-bacheca .orari-focus__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c6d9ce;
  border-radius: 10px;
  background: #ffffff;
  color: #20413a;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
html.page-bacheca .orari-focus__btn:hover {
  transform: translateY(-1px);
  border-color: #95b3a4;
  box-shadow: 0 8px 16px rgba(24, 55, 46, 0.14);
}
html.page-bacheca .orari-focus__btn.is-public-link {
  background: linear-gradient(135deg, #5f3ac7 0%, #7a4de3 100%);
  border-color: #5a35bf;
  color: #ffffff;
}
html.page-bacheca .orari-focus__btn.is-public-link:hover {
  border-color: #4f2ead;
  box-shadow: 0 10px 18px rgba(73, 46, 151, 0.28);
}
html.page-bacheca .orari-focus__btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
html.page-bacheca .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #bfd5c8;
  border-radius: 14px;
  padding: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(31, 122, 99, 0.14) 0%, transparent 45%), linear-gradient(120deg, #ffffff 0%, #f2f9f4 100%);
  box-shadow: 0 10px 22px rgba(24, 55, 46, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
html.page-bacheca .card-link:hover {
  transform: translateY(-2px);
  border-color: #95b3a4;
  box-shadow: 0 12px 28px rgba(24, 55, 46, 0.16);
}
html.page-bacheca .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #1f7a63 0%, #2c9a7f 100%);
  box-shadow: 0 10px 18px rgba(31, 122, 99, 0.24);
}
html.page-bacheca .card-link__icon-svg {
  width: 27px;
  height: 27px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html.page-bacheca .card-link h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
html.page-bacheca .card-link p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
@media (max-width: 700px) {
  html.page-bacheca body {
    padding: 16px;
  }
  html.page-bacheca .topbar {
    flex-direction: column;
  }
  html.page-bacheca .orari-focus {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  html.page-bacheca .orari-focus__left {
    align-items: flex-start;
  }
  html.page-bacheca .orari-focus__buttons {
    justify-content: flex-start;
  }
  html.page-bacheca .actions {
    width: 100%;
  }
  html.page-bacheca .btn {
    flex: 1;
    text-align: center;
  }
}

html.page-pacchi .form-card {
  max-width: 1320px;
  margin: 0 auto;
}
html.page-pacchi .pacchi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
html.page-pacchi .pacchi-main {
  min-width: 0;
}
html.page-pacchi .page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #16302b;
}
html.page-pacchi .page-subtitle {
  margin: 0 0 20px;
  color: #4d6660;
}
html.page-pacchi .pacchi-form {
  display: grid;
  gap: 12px;
}
html.page-pacchi .pacchi-form label {
  font-weight: 700;
  color: #20413a;
  margin-bottom: 6px;
  display: block;
}
html.page-pacchi input,
html.page-pacchi select,
html.page-pacchi textarea {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #c7d8cb;
  border-radius: 10px;
  width: 100%;
  background: #fff;
}
html.page-pacchi input:focus,
html.page-pacchi select:focus,
html.page-pacchi textarea:focus {
  outline: none;
  border-color: #7fae9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}
html.page-pacchi textarea {
  min-height: 120px;
  resize: vertical;
}
html.page-pacchi .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
html.page-pacchi .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #1f7a63, #2c9a7f);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
html.page-pacchi .btn-primary:hover {
  box-shadow: 0 10px 18px rgba(31, 122, 99, 0.24);
}
html.page-pacchi .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html.page-pacchi .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c7d8cb;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background: #ffffff;
  color: #20413a;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
html.page-pacchi .btn-secondary:hover {
  box-shadow: 0 10px 18px rgba(24, 55, 46, 0.15);
}
html.page-pacchi .btn-update {
  border-color: #c6d9ce;
  background: #eef8f2;
  color: #1e6d56;
}
html.page-pacchi .contact-alert {
  margin: 10px 0 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}
html.page-pacchi .contact-alert.is-success {
  border: 1px solid #b9dcc4;
  background: #ecf8ef;
  color: #1f6c4f;
}
html.page-pacchi .contact-alert.is-error {
  border: 1px solid #efcdcd;
  background: #fdeeee;
  color: #8d3030;
}
html.page-pacchi .contacts-section {
  margin-top: 14px;
  border-top: 1px solid #d5e3db;
  padding-top: 14px;
}
html.page-pacchi .sender-sidebar {
  background: #f6fbf8;
  border: 1px solid #cfe1d6;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 20px rgba(24, 55, 46, 0.08);
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}
html.page-pacchi .senders-header {
  display: grid;
  gap: 6px;
}
html.page-pacchi .senders-help {
  margin: 0;
  color: #4d6660;
  font-size: 0.9rem;
  line-height: 1.35;
}
html.page-pacchi .sender-form {
  display: grid;
  gap: 10px;
}
html.page-pacchi .sender-form textarea {
  min-height: 110px;
}
html.page-pacchi .sender-actions .btn-secondary {
  flex: 1 1 auto;
  width: 100%;
}
html.page-pacchi .senders-list {
  display: grid;
  gap: 10px;
}
html.page-pacchi .sender-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
html.page-pacchi .sender-item .contact-name {
  font-size: 0.95rem;
  margin: 0;
}
html.page-pacchi .sender-item .contact-main {
  display: flex;
  align-items: center;
}
html.page-pacchi .contacts-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
html.page-pacchi .contacts-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16302b;
  font-size: 1.05rem;
}
html.page-pacchi .contacts-subtitle {
  margin: 0;
  color: #4d6660;
  font-size: 0.86rem;
}
html.page-pacchi .contacts-empty {
  margin: 0;
  color: #667a73;
  font-size: 0.92rem;
}
html.page-pacchi .contacts-list {
  display: grid;
  gap: 10px;
}
html.page-pacchi .contact-item {
  border: 1px solid #d2e1d8;
  border-radius: 12px;
  background: #f8fcfa;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
html.page-pacchi .contact-item.is-current {
  border-color: #93b5a5;
  background: #eef7f1;
}
html.page-pacchi .contact-name {
  margin: 0;
  color: #16302b;
  font-size: 1rem;
  font-weight: 800;
}
html.page-pacchi .contact-address {
  margin: 4px 0 0;
  color: #4d6660;
  font-size: 0.88rem;
}
html.page-pacchi .contact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
html.page-pacchi .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c7d8cb;
  border-radius: 9px;
  background: #ffffff;
  color: #20413a;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
html.page-pacchi .contact-btn.is-icon-only {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  gap: 0;
}
html.page-pacchi .contact-btn.is-icon-only .icon {
  margin: 0;
}
html.page-pacchi .contact-btn:hover {
  box-shadow: 0 8px 14px rgba(24, 55, 46, 0.12);
}
html.page-pacchi .contact-btn.is-danger {
  border-color: #e8c8c8;
  background: #fff3f3;
  color: #923e3e;
}
html.page-pacchi .contact-delete-form {
  margin: 0;
}
html.page-pacchi .hint {
  font-size: 0.9rem;
  color: #4d6660;
  margin-top: 6px;
}
@media (min-width: 720px) {
  html.page-pacchi .row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  html.page-pacchi .row-2 {
    grid-template-columns: 2fr 1fr;
  }
}
@media (max-width: 900px) {
  html.page-pacchi .pacchi-layout {
    grid-template-columns: 1fr;
  }
  html.page-pacchi .sender-sidebar {
    position: static;
  }
  html.page-pacchi .contact-item {
    grid-template-columns: 1fr;
  }
  html.page-pacchi .contact-actions {
    justify-content: flex-start;
  }
  html.page-pacchi .sender-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

html.page-archivio .container {
  max-width: 1180px;
  margin: 0 auto;
}
html.page-archivio .table-wrap {
  overflow-x: auto;
}
html.page-archivio table.archivio-table {
  min-width: 760px;
}
html.page-archivio header {
  background: #ffffff;
  border: 1px solid #c7d8cb;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(24, 55, 46, 0.1);
  padding: 20px;
  margin-bottom: 16px;
}
html.page-archivio .title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
html.page-archivio .title-row .icon {
  width: 22px;
  height: 22px;
}
html.page-archivio h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #16302b;
}
html.page-archivio .subtitle {
  margin-top: 8px;
  color: #4d6660;
}
html.page-archivio .alert {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
}
html.page-archivio .alert.success {
  background: #ecf8ef;
  color: #23573d;
  border-color: #cde6d3;
}
html.page-archivio .alert.error {
  background: #fdeeee;
  color: #7d2c2c;
  border-color: #efcdcd;
}
html.page-archivio .stats {
  background: #ffffff;
  border: 1px solid #c7d8cb;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(24, 55, 46, 0.08);
  padding: 16px;
  margin-bottom: 16px;
}
html.page-archivio .stats h3 {
  color: #16302b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
html.page-archivio table {
  width: 100%;
  background: #ffffff;
  border: 1px solid #c7d8cb;
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 8px 18px rgba(24, 55, 46, 0.08);
  overflow: hidden;
}
html.page-archivio thead {
  background: #edf5ef;
  color: #20413a;
}
html.page-archivio th,
html.page-archivio td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e6eee8;
  vertical-align: top;
}
html.page-archivio th {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html.page-archivio tbody tr:hover {
  background: #f8fcf8;
}
html.page-archivio tbody tr:last-child td {
  border-bottom: 0;
}
html.page-archivio .table-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.page-archivio .file-name {
  font-weight: 700;
  color: #16302b;
  word-break: break-word;
}
html.page-archivio .file-json {
  margin-top: 6px;
  font-size: 0.83rem;
  color: #4d6660;
  word-break: break-word;
}
html.page-archivio .file-json.missing {
  color: #75867f;
  font-style: italic;
}
html.page-archivio .file-date {
  color: #4d6660;
  font-size: 0.9rem;
}
html.page-archivio .file-size {
  color: #4d6660;
  font-size: 0.85rem;
}
html.page-archivio .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html.page-archivio .btn:hover {
  transform: translateY(-1px);
}
html.page-archivio .btn-danger {
  background: #fff3f3;
  color: #923e3e;
  border-color: #e8c8c8;
}
html.page-archivio .btn-view {
  background: #eef7f0;
  color: #23573d;
  border-color: #cce1d1;
  margin-right: 6px;
}
html.page-archivio .btn-view-json {
  background: #eef4fb;
  color: #2d4d73;
  border-color: #cddbec;
  margin-right: 6px;
}
html.page-archivio .empty-state,
html.page-archivio .error-state {
  background: #ffffff;
  border: 1px solid #c7d8cb;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(24, 55, 46, 0.08);
  text-align: center;
  padding: 26px 18px;
  color: #4d6660;
}
html.page-archivio .empty-state h3,
html.page-archivio .error-state h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #16302b;
}
@media (max-width: 900px) {
  html.page-archivio header {
    padding: 14px;
    margin-bottom: 12px;
  }
  html.page-archivio h1 {
    font-size: 1.42rem;
  }
  html.page-archivio .subtitle {
    font-size: 0.92rem;
    margin-top: 6px;
  }
  html.page-archivio .stats {
    padding: 12px;
    margin-bottom: 12px;
  }
  html.page-archivio th,
  html.page-archivio td {
    padding: 10px 8px;
  }
  html.page-archivio .file-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  html.page-archivio .btn-view,
  html.page-archivio .btn-view-json {
    margin-right: 0;
  }
}
@media (max-width: 700px) {
  html.page-archivio .title-row {
    align-items: flex-start;
    gap: 10px;
  }
  html.page-archivio .title-row .icon {
    width: 20px;
    height: 20px;
    margin-top: 3px;
  }
  html.page-archivio h1 {
    font-size: 1.24rem;
    line-height: 1.2;
  }
  html.page-archivio .table-wrap {
    overflow: visible;
  }
  html.page-archivio table.archivio-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  html.page-archivio table.archivio-table thead {
    display: none;
  }
  html.page-archivio table.archivio-table tbody,
  html.page-archivio table.archivio-table tr,
  html.page-archivio table.archivio-table td {
    display: block;
    width: 100%;
  }
  html.page-archivio table.archivio-table tr {
    border: 1px solid #c7d8cb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(24, 55, 46, 0.08);
    padding: 10px;
    margin-bottom: 10px;
  }
  html.page-archivio table.archivio-table td {
    border-bottom: 1px dashed #e1ebe4;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  html.page-archivio table.archivio-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  html.page-archivio table.archivio-table td::before {
    content: attr(data-label);
    color: #4f6a62;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  html.page-archivio .file-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  html.page-archivio .file-actions .btn {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
}
@media (max-width: 480px) {
  html.page-archivio .container {
    padding-left: 0;
    padding-right: 0;
  }
  html.page-archivio header,
  html.page-archivio .stats,
  html.page-archivio .empty-state,
  html.page-archivio .error-state {
    border-radius: 12px;
    padding: 12px;
  }
  html.page-archivio table.archivio-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  html.page-archivio table.archivio-table td::before {
    font-size: 0.7rem;
  }
  html.page-archivio .btn {
    font-size: 0.84rem;
    padding: 8px 10px;
  }
}

html.page-orari-bacheca .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html.page-orari-bacheca .hero-copy {
  display: grid;
  gap: 8px;
}
html.page-orari-bacheca .hero h1 {
  margin: 0;
  font-size: 1.9rem;
  color: #16302b;
}
html.page-orari-bacheca .hero p {
  margin: 0;
  color: #4d6660;
}
html.page-orari-bacheca .kpi-grid {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}
html.page-orari-bacheca .kpi-card {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  border: 5px solid rgba(31, 122, 99, 0.2);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f2faf5 58%, #e5f2ea 100%);
  box-shadow: inset 0 0 0 1px rgba(165, 192, 175, 0.45), 0 12px 20px rgba(24, 55, 46, 0.12);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
html.page-orari-bacheca .kpi-label {
  color: #48635b;
  font-size: 0.64rem;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.2;
}
html.page-orari-bacheca .kpi-value {
  margin: 0;
  color: #1f7a63;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 0.95;
}
@media (max-width: 780px) {
  html.page-orari-bacheca .hero {
    grid-template-columns: 1fr;
  }
  html.page-orari-bacheca .kpi-grid {
    justify-content: flex-start;
  }
  html.page-orari-bacheca .kpi-card {
    width: 102px;
    height: 102px;
  }
}
html.page-orari-bacheca .section-title {
  margin: 0 0 10px;
  color: #16302b;
  font-size: 1.35rem;
}
html.page-orari-bacheca .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
html.page-orari-bacheca .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #c7d8cb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(24, 55, 46, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
html.page-orari-bacheca .card-link:hover {
  transform: translateY(-2px);
  border-color: #a5c0af;
  box-shadow: 0 12px 28px rgba(24, 55, 46, 0.14);
}
html.page-orari-bacheca .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #eaf6ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
html.page-orari-bacheca .card-icon .icon {
  width: 22px;
  height: 22px;
}
html.page-orari-bacheca .card-title {
  margin: 0 0 6px;
  color: #16302b;
  font-size: 1.1rem;
}
html.page-orari-bacheca .card-desc {
  margin: 0;
  color: #4d6660;
  font-size: 0.92rem;
  line-height: 1.4;
}

html.page-orari-personale .app-shell {
  display: grid;
  gap: 16px;
}
html.page-orari-personale .page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #16302b;
}
html.page-orari-personale .page-subtitle {
  margin: 0;
  color: #4d6660;
}
html.page-orari-personale .flash {
  border: 1px solid #b8d7c9;
  background: #eef9f2;
  color: #1d5f4d;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
html.page-orari-personale .errors {
  border: 1px solid #e4b1b1;
  background: #fff2f2;
  color: #8d3030;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}
html.page-orari-personale .errors ul {
  margin: 0;
  padding-left: 18px;
}
html.page-orari-personale .employee-form {
  display: grid;
  gap: 12px;
}
html.page-orari-personale .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
html.page-orari-personale label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #20413a;
}
html.page-orari-personale input,
html.page-orari-personale select {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #c7d8cb;
  border-radius: 10px;
  width: 100%;
  background: #fff;
}
html.page-orari-personale input:focus,
html.page-orari-personale select:focus {
  outline: none;
  border-color: #7fae9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}
html.page-orari-personale .employee-flag-grid {
  display: grid;
  gap: 10px;
}
html.page-orari-personale .employee-flag-row {
  display: grid;
  grid-template-columns: minmax(160px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
html.page-orari-personale .flag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: #20413a;
  cursor: pointer;
}
html.page-orari-personale .flag-toggle input[type=checkbox] {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: #1f7a63;
}
html.page-orari-personale .flag-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
html.page-orari-personale .flag-date-range.is-hidden {
  display: none;
}
html.page-orari-personale .flag-date-range label {
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}
html.page-orari-personale .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
html.page-orari-personale .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}
html.page-orari-personale .btn-primary {
  background: linear-gradient(135deg, #1f7a63, #2c9a7f);
  color: #fff;
}
html.page-orari-personale .btn-secondary {
  background: #ffffff;
  border: 1px solid #c7d8cb;
  color: #21433b;
}
html.page-orari-personale .btn-danger {
  background: #b23f3f;
  color: #fff;
}
html.page-orari-personale .table-wrap {
  overflow-x: auto;
}
html.page-orari-personale table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
html.page-orari-personale thead th {
  text-align: left;
  font-size: 0.88rem;
  color: #3b5850;
  border-bottom: 1px solid #d9e5de;
  padding: 10px 8px;
}
html.page-orari-personale tbody td {
  border-bottom: 1px solid #ecf1ee;
  padding: 10px 8px;
  vertical-align: middle;
}
html.page-orari-personale tbody tr:hover {
  background: #f8fcfa;
}
html.page-orari-personale .row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
html.page-orari-personale .row-actions form {
  margin: 0;
}
html.page-orari-personale .compact-btn {
  border: 1px solid #c7d8cb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #21433b;
  text-decoration: none;
  cursor: pointer;
}
html.page-orari-personale .compact-btn.danger {
  border-color: #e2b4b4;
  color: #872f2f;
}
html.page-orari-personale .hint {
  color: #4d6660;
  margin-top: 0;
  margin-bottom: 14px;
}
html.page-orari-personale .calc-info {
  color: #245246;
  font-size: 0.9rem;
  margin-top: 8px;
  margin-bottom: 0;
}
@media (min-width: 820px) {
  html.page-orari-personale .form-row.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.page-orari-personale .form-row.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 819px) {
  html.page-orari-personale .employee-flag-row {
    grid-template-columns: 1fr;
  }
  html.page-orari-personale .flag-date-range {
    grid-template-columns: 1fr;
  }
  html.page-orari-personale .page-heading {
    flex-wrap: wrap;
    font-size: 1.36rem;
    line-height: 1.2;
  }
  html.page-orari-personale .page-subtitle,
  html.page-orari-personale .hint {
    font-size: 0.92rem;
  }
  html.page-orari-personale .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html.page-orari-personale .actions .btn {
    width: 100%;
  }
  html.page-orari-personale .table-wrap {
    overflow: visible;
  }
  html.page-orari-personale table.employee-list-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  html.page-orari-personale table.employee-list-table thead {
    display: none;
  }
  html.page-orari-personale table.employee-list-table tbody,
  html.page-orari-personale table.employee-list-table tr,
  html.page-orari-personale table.employee-list-table td {
    display: block;
    width: 100%;
  }
  html.page-orari-personale table.employee-list-table tr {
    border: 1px solid #d7e4dd;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(24, 55, 46, 0.08);
    padding: 10px;
    margin-bottom: 10px;
  }
  html.page-orari-personale table.employee-list-table tbody td {
    border-bottom: 1px dashed #e3ece7;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 0.92rem;
    word-break: break-word;
  }
  html.page-orari-personale table.employee-list-table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  html.page-orari-personale table.employee-list-table tbody td::before {
    content: attr(data-label);
    color: #4f6a62;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  html.page-orari-personale .row-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  html.page-orari-personale .row-actions form {
    margin: 0;
  }
  html.page-orari-personale .row-actions .compact-btn,
  html.page-orari-personale .row-actions form .compact-btn {
    min-width: 108px;
    text-align: center;
  }
}
@media (max-width: 520px) {
  html.page-orari-personale .app-shell {
    gap: 12px;
  }
  html.page-orari-personale .employee-form {
    gap: 10px;
  }
  html.page-orari-personale label {
    font-size: 0.86rem;
  }
  html.page-orari-personale input,
  html.page-orari-personale select {
    font-size: 16px;
    padding: 10px;
  }
  html.page-orari-personale .btn {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  html.page-orari-personale table.employee-list-table tbody td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  html.page-orari-personale table.employee-list-table tbody td::before {
    font-size: 0.7rem;
  }
  html.page-orari-personale .row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  html.page-orari-personale .row-actions .compact-btn,
  html.page-orari-personale .row-actions form,
  html.page-orari-personale .row-actions form .compact-btn {
    width: 100%;
  }
}

html.page-orari-turni body {
  overflow-x: hidden;
}
html.page-orari-turni .stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
html.page-orari-turni .app-shell,
html.page-orari-turni .app-card,
html.page-orari-turni .form-grid,
html.page-orari-turni .form-grid > *,
html.page-orari-turni .row,
html.page-orari-turni .row > *,
html.page-orari-turni .slot-wrap,
html.page-orari-turni .table-wrap {
  min-width: 0;
  max-width: 100%;
}
html.page-orari-turni .title {
  margin: 0 0 6px;
  color: #16302b;
  font-size: 1.8rem;
}
html.page-orari-turni .subtitle {
  margin: 0;
  color: #4d6660;
}
html.page-orari-turni .spec-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #2a4b42;
}
html.page-orari-turni .flash {
  border: 1px solid #b8d7c9;
  background: #eef9f2;
  color: #1d5f4d;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
html.page-orari-turni .errors {
  border: 1px solid #e4b1b1;
  background: #fff2f2;
  color: #8d3030;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
html.page-orari-turni .errors ul {
  margin: 0;
  padding-left: 18px;
}
html.page-orari-turni .form-grid {
  display: grid;
  gap: 12px;
}
html.page-orari-turni .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
html.page-orari-turni label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #20413a;
}
html.page-orari-turni input,
html.page-orari-turni select,
html.page-orari-turni textarea {
  width: 100%;
  border: 1px solid #c7d8cb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}
html.page-orari-turni textarea {
  min-height: 78px;
  resize: vertical;
}
html.page-orari-turni input:focus,
html.page-orari-turni select:focus,
html.page-orari-turni textarea:focus {
  outline: none;
  border-color: #7fae9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}
html.page-orari-turni .slot-wrap {
  border: 1px solid #d6e2db;
  border-radius: 12px;
  background: #f8fcfa;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
html.page-orari-turni .slot-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}
html.page-orari-turni .slot-table th,
html.page-orari-turni .slot-table td {
  border: 1px solid #dce9e2;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.85rem;
  white-space: nowrap;
}
html.page-orari-turni .slot-table th {
  background: #f0f7f3;
  color: #2b4d44;
}
html.page-orari-turni .slot-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}
html.page-orari-turni .summary {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
html.page-orari-turni .summary-card {
  border: 1px solid #d6e2db;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}
html.page-orari-turni .summary-label {
  margin: 0 0 4px;
  color: #4a665e;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}
html.page-orari-turni .summary-value {
  margin: 0;
  color: #16302b;
  font-size: 1.4rem;
  font-weight: 800;
}
html.page-orari-turni .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html.page-orari-turni .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
}
html.page-orari-turni .btn-primary {
  background: linear-gradient(135deg, #1f7a63, #2c9a7f);
  color: #fff;
  border-color: transparent;
}
html.page-orari-turni .btn-secondary {
  background: #ffffff;
  color: #21433b;
  border-color: #c7d8cb;
}
html.page-orari-turni .btn-warning {
  background: #f8faf5;
  color: #3c4f34;
  border-color: #d8e2cb;
}
html.page-orari-turni .btn-danger {
  background: #fff5f5;
  color: #8a3030;
  border-color: #e5bcbc;
}
html.page-orari-turni .btn-small {
  padding: 6px 10px;
  font-size: 0.84rem;
  border-radius: 8px;
}
html.page-orari-turni .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
html.page-orari-turni .section-title {
  margin: 0 0 10px;
  color: #16302b;
  font-size: 1.3rem;
}
html.page-orari-turni .table-wrap {
  overflow-x: auto;
}
html.page-orari-turni table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
html.page-orari-turni table.data th,
html.page-orari-turni table.data td {
  border-bottom: 1px solid #e3ece7;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
html.page-orari-turni table.data th {
  color: #3b5850;
  font-size: 0.87rem;
}
html.page-orari-turni .hint {
  margin: 0;
  color: #4d6660;
}
html.page-orari-turni .editing-box {
  margin: 0 0 10px;
  border: 1px solid #c9ddd2;
  border-radius: 10px;
  background: #f4faf6;
  color: #24473e;
  padding: 10px 12px;
  font-weight: 600;
}
html.page-orari-turni .table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
html.page-orari-turni .table-actions form {
  margin: 0;
}
@media (min-width: 900px) {
  html.page-orari-turni .row.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.page-orari-turni .row.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 899px) {
  html.page-orari-turni .title {
    font-size: 1.45rem;
    line-height: 1.2;
  }
  html.page-orari-turni .subtitle,
  html.page-orari-turni .hint {
    font-size: 0.92rem;
  }
  html.page-orari-turni .spec-list {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.38;
  }
  html.page-orari-turni .row.cols-2 > div:last-child label {
    margin: 0;
    font-size: 0;
    line-height: 0;
  }
  html.page-orari-turni .row.cols-2 > div:last-child .btn {
    width: 100%;
  }
  html.page-orari-turni .slot-wrap {
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  html.page-orari-turni .slot-table {
    width: max-content;
    min-width: 940px;
  }
  html.page-orari-turni .slot-table th,
  html.page-orari-turni .slot-table td {
    padding: 7px 5px;
    font-size: 0.8rem;
    min-width: 42px;
  }
  html.page-orari-turni .slot-check input[type=checkbox] {
    width: 18px;
    height: 18px;
  }
  html.page-orari-turni .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html.page-orari-turni .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html.page-orari-turni .actions .btn {
    width: 100%;
  }
  html.page-orari-turni .table-wrap {
    overflow: visible;
  }
  html.page-orari-turni table.data {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  html.page-orari-turni table.data thead {
    display: none;
  }
  html.page-orari-turni table.data tbody,
  html.page-orari-turni table.data tr,
  html.page-orari-turni table.data td {
    display: block;
    width: 100%;
  }
  html.page-orari-turni table.data tr {
    border: 1px solid #d7e4dd;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(24, 55, 46, 0.08);
    padding: 10px;
    margin-bottom: 10px;
  }
  html.page-orari-turni table.data tbody td {
    border-bottom: 1px dashed #e3ece7;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 0.92rem;
    word-break: break-word;
  }
  html.page-orari-turni table.data tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  html.page-orari-turni table.data tbody td::before {
    content: attr(data-label);
    color: #4f6a62;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  html.page-orari-turni .table-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html.page-orari-turni .table-actions form,
  html.page-orari-turni .table-actions .btn {
    width: 100%;
  }
  html.page-orari-turni .table-actions .btn {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  html.page-orari-turni .stack {
    gap: 12px;
  }
  html.page-orari-turni .section-title {
    font-size: 1.14rem;
  }
  html.page-orari-turni label {
    font-size: 0.86rem;
  }
  html.page-orari-turni input,
  html.page-orari-turni select,
  html.page-orari-turni textarea {
    font-size: 16px;
    padding: 10px;
  }
  html.page-orari-turni .btn {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  html.page-orari-turni .slot-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  html.page-orari-turni .slot-table {
    width: max-content;
    min-width: 900px;
  }
  html.page-orari-turni .summary {
    grid-template-columns: 1fr;
  }
  html.page-orari-turni table.data tbody td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  html.page-orari-turni table.data tbody td::before {
    font-size: 0.7rem;
  }
  html.page-orari-turni .table-actions {
    grid-template-columns: 1fr;
  }
}

html.page-orari-presenze body {
  padding-left: 10px;
  padding-right: 10px;
}
html.page-orari-presenze .app-shell {
  max-width: none;
  width: 100%;
  margin: 0;
}
html.page-orari-presenze .stack {
  display: grid;
  gap: 14px;
}
html.page-orari-presenze .app-card {
  padding: 16px;
}
html.page-orari-presenze .title {
  margin: 0 0 6px;
  color: #16302b;
  font-size: 1.75rem;
}
html.page-orari-presenze .subtitle {
  margin: 0;
  color: #4d6660;
}
html.page-orari-presenze .helper {
  margin: 8px 0 0;
  color: #4d6660;
  font-size: 0.9rem;
}
html.page-orari-presenze .flash {
  border: 1px solid #b8d7c9;
  background: #eef9f2;
  color: #1d5f4d;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}
html.page-orari-presenze .errors {
  border: 1px solid #e4b1b1;
  background: #fff2f2;
  color: #8d3030;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
html.page-orari-presenze .errors ul {
  margin: 0;
  padding-left: 18px;
}
html.page-orari-presenze .controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
html.page-orari-presenze .control-hint {
  margin: -2px 0 2px;
  color: #4d6660;
  font-size: 0.82rem;
}
html.page-orari-presenze .control-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: end;
  border: 1px solid #d2ddd6;
  background: #f8fbf9;
  border-radius: 12px;
  padding: 10px;
}
html.page-orari-presenze .control-row > div {
  min-width: 0;
}
html.page-orari-presenze .controls .control-row label {
  margin-bottom: 5px;
  font-size: 0.8rem;
}
html.page-orari-presenze .controls .toolbar-main-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
html.page-orari-presenze .controls .toolbar-main-actions .btn {
  padding: 9px 12px;
  white-space: nowrap;
}
html.page-orari-presenze .controls .toolbar-main-actions .icon {
  width: 14px;
  height: 14px;
}
html.page-orari-presenze .control-row.cols-5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
html.page-orari-presenze .view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d2ddd6;
}
html.page-orari-presenze .view-public-link {
  margin-left: auto;
  white-space: nowrap;
}
html.page-orari-presenze .view-share-link {
  white-space: nowrap;
  color: #ffffff;
  border-color: #6e35b8;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
html.page-orari-presenze .view-share-link:hover {
  box-shadow: 0 10px 18px rgba(88, 28, 158, 0.28);
}
html.page-orari-presenze .view-share-link.is-copied {
  background: #f4e38f;
  border-color: #d3bd66;
  color: #1a1a1a;
  box-shadow: 0 10px 18px rgba(179, 145, 54, 0.24);
}
html.page-orari-presenze .view-tab {
  border: 1px solid #c7d8cb;
  background: #f6fbf8;
  color: #1e3f37;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
html.page-orari-presenze .view-tab.is-active {
  border-color: #1f7a63;
  background: #1f7a63;
  color: #fff;
}
html.page-orari-presenze .view-panel {
  display: none;
}
html.page-orari-presenze .view-panel.is-active {
  display: block;
}
html.page-orari-presenze .analytics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: start;
}
html.page-orari-presenze .analytics-main-col {
  min-width: 0;
  display: grid;
  gap: 12px;
}
html.page-orari-presenze .analytics-side-col {
  min-width: 0;
}
html.page-orari-presenze .analytics-card {
  border: 1px solid #cfdad3;
  border-radius: 10px;
  background: #f8fbf9;
  padding: 12px;
}
html.page-orari-presenze .analytics-title {
  margin: 0 0 10px;
  color: #1f3f37;
  font-size: 1rem;
  font-weight: 800;
}
html.page-orari-presenze .analytics-week-selector {
  max-width: 280px;
  margin-bottom: 10px;
}
html.page-orari-presenze .analytics-total-month {
  margin: 0 0 10px;
  color: #2d5148;
  font-size: 0.86rem;
}
html.page-orari-presenze .analytics-empty {
  margin: 0;
  color: #537068;
  font-size: 0.9rem;
}
html.page-orari-presenze .bar-chart {
  display: grid;
  gap: 8px;
}
html.page-orari-presenze .bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 58px;
  gap: 8px;
  align-items: center;
}
html.page-orari-presenze .bar-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #243f38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.page-orari-presenze .bar-track {
  height: 16px;
  border-radius: 999px;
  background: #e2ece6;
  overflow: hidden;
}
html.page-orari-presenze .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f7a63, #47a68b);
  min-width: 1px;
}
html.page-orari-presenze .bar-chart.monthly .bar-fill {
  background: linear-gradient(90deg, #2f6fa3, #4f99d4);
}
html.page-orari-presenze .bar-value {
  text-align: right;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1f3f37;
}
html.page-orari-presenze .analytics-table {
  width: 100%;
  border-collapse: collapse;
}
html.page-orari-presenze .analytics-table th,
html.page-orari-presenze .analytics-table td {
  border-bottom: 1px solid #d6e1da;
  padding: 6px 8px;
  font-size: 0.78rem;
}
html.page-orari-presenze .analytics-table th {
  background: #e7f1eb;
  color: #204138;
  font-weight: 800;
  text-align: left;
}
html.page-orari-presenze .analytics-table td:last-child,
html.page-orari-presenze .analytics-table th:last-child {
  text-align: right;
}
html.page-orari-presenze .monthly-totals-card {
  background: linear-gradient(180deg, #f9fcfa 0%, #f2f8f4 100%);
  border-color: #c7d8cf;
}
html.page-orari-presenze .monthly-totals-card .analytics-title {
  font-size: 1.12rem;
}
html.page-orari-presenze .monthly-totals-card .analytics-total-month {
  font-size: 0.96rem;
  font-weight: 700;
  color: #22463d;
}
html.page-orari-presenze .monthly-totals-card #monthGrandTotalLabel {
  display: inline-block;
  min-width: 74px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 10px;
  background: #f4e38f;
  border: 1px solid #d3bd66;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 1.02rem;
}
html.page-orari-presenze .analytics-table.monthly-totals-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
html.page-orari-presenze .analytics-table.monthly-totals-table thead th {
  border-bottom: none;
  padding: 6px 10px;
  font-size: 0.86rem;
}
html.page-orari-presenze .analytics-table.monthly-totals-table tbody td {
  border-bottom: none;
  padding: 0;
  background: transparent;
}
html.page-orari-presenze .analytics-table.monthly-totals-table .monthly-total-name-cell {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d7e3dc;
  border-right: none;
  border-radius: 10px 0 0 10px;
}
html.page-orari-presenze .analytics-table.monthly-totals-table .monthly-total-hours-cell {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d7e3dc;
  border-left: none;
  border-radius: 0 10px 10px 0;
  text-align: right;
}
html.page-orari-presenze .monthly-total-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #17362e;
  line-height: 1.2;
}
html.page-orari-presenze .monthly-total-hours-chip {
  display: inline-block;
  min-width: 86px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f4e38f;
  border: 1px solid #d3bd66;
  color: #111111;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}
html.page-orari-presenze .print-panel {
  display: grid;
  gap: 12px;
}
html.page-orari-presenze .print-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
html.page-orari-presenze .print-period-form {
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: 320px;
}
html.page-orari-presenze .print-card {
  border: 1px solid #cfdad3;
  border-radius: 10px;
  background: #f8fbf9;
  padding: 12px;
}
html.page-orari-presenze .print-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
html.page-orari-presenze .print-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
html.page-orari-presenze .print-settings-note {
  margin: 2px 0 0;
  color: #49625b;
  font-size: 0.83rem;
}
html.page-orari-presenze .print-weeks-wrap {
  overflow-x: auto;
}
html.page-orari-presenze .print-weeks-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
html.page-orari-presenze .print-weeks-table th,
html.page-orari-presenze .print-weeks-table td {
  border-bottom: 1px solid #d6e1da;
  padding: 8px 10px;
  font-size: 0.82rem;
  text-align: left;
  vertical-align: middle;
}
html.page-orari-presenze .print-weeks-table th {
  background: #e7f1eb;
  color: #204138;
  font-weight: 800;
}
html.page-orari-presenze .print-weeks-table th:last-child,
html.page-orari-presenze .print-weeks-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
html.page-orari-presenze .print-week-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1f3f37;
}
html.page-orari-presenze .print-week-check-label input {
  width: auto;
  margin: 0;
  transform: translateY(1px);
}
html.page-orari-presenze .print-empty {
  margin: 0;
  color: #537068;
  font-size: 0.9rem;
}
html.page-orari-presenze .print-footer-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html.page-orari-presenze .print-footer-actions .btn {
  min-width: 140px;
}
html.page-orari-presenze .month-summary-panel {
  display: grid;
  gap: 12px;
}
html.page-orari-presenze .month-summary-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
  align-items: end;
}
html.page-orari-presenze .public-month-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
html.page-orari-presenze .public-month-toolbar .month-summary-actions {
  justify-content: flex-start;
}
html.page-orari-presenze .public-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
html.page-orari-presenze .public-title-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  border: 1px solid #d9e2dc;
}
html.page-orari-presenze .public-title-calendar {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
  flex-shrink: 0;
}
html.page-orari-presenze .public-title-text {
  line-height: 1;
}
html.page-orari-presenze .public-month-sheet .day-block-title {
  font-size: 1.32rem;
  text-transform: capitalize;
}
html.page-orari-presenze .public-month-sheet .slot-cell {
  cursor: default;
}
html.page-orari-presenze .public-month-sheet .day-note-text {
  min-height: 26px;
  max-height: 52px;
  resize: none;
  cursor: default;
}
html.page-orari-presenze .month-summary-filter {
  display: grid;
  gap: 6px;
}
html.page-orari-presenze .month-summary-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
html.page-orari-presenze .month-summary-wrap {
  overflow-x: auto;
}
html.page-orari-presenze .month-summary-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}
html.page-orari-presenze .month-summary-table th,
html.page-orari-presenze .month-summary-table td {
  border: 1px solid #9aa0a6;
  padding: 4px 3px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html.page-orari-presenze .month-summary-table thead th {
  background: #050505;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
html.page-orari-presenze .month-summary-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #17362f;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
html.page-orari-presenze .month-summary-col-employee {
  width: 160px;
}
html.page-orari-presenze .month-summary-col-total {
  width: 62px;
}
html.page-orari-presenze .month-summary-col-day {
  width: 34px;
}
html.page-orari-presenze .month-summary-col-perm,
html.page-orari-presenze .month-summary-col-ferie,
html.page-orari-presenze .month-summary-col-mal {
  width: 72px;
}
html.page-orari-presenze .month-summary-col-note {
  width: 200px;
}
html.page-orari-presenze .month-summary-cell-employee {
  background: #b9d7c7;
  text-align: left;
  padding-left: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #132520;
}
html.page-orari-presenze .month-summary-cell-total {
  background: #f4e35d;
  color: #111;
  font-size: 0.95rem;
  font-weight: 900;
}
html.page-orari-presenze .month-summary-cell-day {
  background: #ececec;
  color: #111;
}
html.page-orari-presenze .month-summary-cell-day.has-value {
  background: #ffffff;
}
html.page-orari-presenze .month-summary-cell-perm {
  background: #fff2c9;
  color: #3a2f00;
}
html.page-orari-presenze .month-summary-cell-ferie {
  background: #ffe4c6;
  color: #3a2100;
}
html.page-orari-presenze .month-summary-cell-mal {
  background: #ffd0d0;
  color: #4a1111;
}
html.page-orari-presenze .month-summary-cell-note {
  background: #f4f4f4;
  text-align: left;
  padding-left: 8px;
  font-weight: 600;
  color: #2f2f2f;
  white-space: normal;
  line-height: 1.25;
}
html.page-orari-presenze .month-summary-row-grand td {
  background: #e2efe9;
  font-weight: 900;
}
html.page-orari-presenze .month-summary-row-grand .month-summary-cell-employee {
  background: #accfbc;
}
html.page-orari-presenze .month-summary-empty {
  margin: 0;
  color: #537068;
  font-size: 0.9rem;
}
html.page-orari-presenze label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #20413a;
}
html.page-orari-presenze input,
html.page-orari-presenze select,
html.page-orari-presenze textarea {
  width: 100%;
  border: 1px solid #c7d8cb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}
html.page-orari-presenze input:focus,
html.page-orari-presenze select:focus,
html.page-orari-presenze textarea:focus {
  outline: none;
  border-color: #7fae9f;
  box-shadow: 0 0 0 3px rgba(31, 122, 99, 0.15);
}
html.page-orari-presenze .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
}
html.page-orari-presenze .btn-primary {
  background: linear-gradient(135deg, #1f7a63, #2c9a7f);
  color: #fff;
  border-color: transparent;
}
html.page-orari-presenze .btn-secondary {
  background: #ffffff;
  color: #21433b;
  border-color: #c7d8cb;
}
html.page-orari-presenze .btn-warning {
  background: #f8faf5;
  color: #3c4f34;
  border-color: #d8e2cb;
}
html.page-orari-presenze .btn-orange {
  background: linear-gradient(135deg, #ff9d2f, #f97316);
  color: #fff;
  border-color: #d96a00;
}
html.page-orari-presenze .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
html.page-orari-presenze .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #2e5147;
}
html.page-orari-presenze .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
html.page-orari-presenze .dot-work {
  background: #f0e2a8;
  border: 1px solid #d8c584;
}
html.page-orari-presenze .dot-ferie {
  background: #ffbf66;
  border: 1px solid #cf8f30;
}
html.page-orari-presenze .dot-permesso {
  background: #ffe05a;
  border: 1px solid #c7a628;
}
html.page-orari-presenze .dot-malattia {
  background: #ff9999;
  border: 1px solid #cf6666;
}
html.page-orari-presenze .dot-absent {
  background: #ececec;
  border: 1px solid #cbcbcb;
}
html.page-orari-presenze .toolbar-actions {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
html.page-orari-presenze .toolbar-main-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html.page-orari-presenze .status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
html.page-orari-presenze .status-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1b1b1b;
  background: #ffffff;
}
html.page-orari-presenze .status-btn.is-ferie {
  border-color: #cf8f30;
  background: #ffd28a;
  color: #3a2400;
}
html.page-orari-presenze .status-btn.is-permesso {
  border-color: #c7a628;
  background: #ffe983;
  color: #3a2f00;
}
html.page-orari-presenze .status-btn.is-malattia {
  border-color: #cf6666;
  background: #ffb3b3;
  color: #4a1111;
}
html.page-orari-presenze .status-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
html.page-orari-presenze .status-btn.is-ferie.is-active {
  border-color: #b67917;
  background: #ffb347;
  color: #221400;
}
html.page-orari-presenze .status-btn.is-permesso.is-active {
  border-color: #a98712;
  background: #ffd632;
  color: #1f1700;
}
html.page-orari-presenze .status-btn.is-malattia.is-active {
  border-color: #b84a4a;
  background: #ff8585;
  color: #2d0909;
}
html.page-orari-presenze .week-sheet {
  display: grid;
  gap: 16px;
}
html.page-orari-presenze .day-block {
  border: 1px solid #b8b8b8;
  background: #ececec;
  overflow: hidden;
}
html.page-orari-presenze .day-block-title {
  margin: 0;
  padding: 10px;
  text-align: center;
  background: #d3d3d3;
  color: #111;
  font-size: 2rem;
  font-weight: 800;
  border-bottom: 1px solid #b8b8b8;
}
html.page-orari-presenze .day-table-wrap {
  overflow-x: auto;
  background: #ededed;
}
html.page-orari-presenze table.day-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
  table-layout: fixed;
}
html.page-orari-presenze table.day-table th,
html.page-orari-presenze table.day-table td {
  border: 1px solid #d0d0d0;
  text-align: center;
  vertical-align: middle;
  padding: 0;
  height: 30px;
}
html.page-orari-presenze table.day-table th {
  background: #030303;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
html.page-orari-presenze .col-employee-head {
  width: 224px;
  min-width: 224px;
  max-width: 224px;
  background: #ededed !important;
  color: transparent;
  position: sticky;
  left: 0;
  z-index: 3;
}
html.page-orari-presenze .cell-employee {
  width: 224px;
  min-width: 224px;
  max-width: 224px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ecdfa8;
  text-align: left;
  padding: 0 8px;
}
html.page-orari-presenze .employee-day-row.flag-tirocinante .cell-employee {
  background: #d9efff;
}
html.page-orari-presenze .employee-day-row.flag-apprendista .cell-employee {
  background: #ffe9c7;
}
html.page-orari-presenze .employee-day-row.flag-tirocinante.flag-apprendista .cell-employee {
  background: linear-gradient(90deg, #d9efff 0%, #d9efff 50%, #ffe9c7 50%, #ffe9c7 100%);
}
html.page-orari-presenze .employee-cell {
  display: block;
  width: 100%;
}
html.page-orari-presenze .employee-name {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1d1d1d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.page-orari-presenze .col-template-base,
html.page-orari-presenze .cell-template-base {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
}
html.page-orari-presenze .cell-template-base {
  background: #e8dca1;
  padding: 0 2px;
}
html.page-orari-presenze .col-opening,
html.page-orari-presenze .col-closing,
html.page-orari-presenze .cell-opening,
html.page-orari-presenze .cell-closing {
  width: 74px;
  min-width: 74px;
  max-width: 74px;
}
html.page-orari-presenze .cell-opening,
html.page-orari-presenze .cell-closing {
  background: #adadad;
}
html.page-orari-presenze .slot-cell.slot-extra {
  width: 74px;
  min-width: 74px;
  max-width: 74px;
  background: #adadad;
}
html.page-orari-presenze .day-template-select:focus,
html.page-orari-presenze .day-note-text:focus {
  outline: 2px solid #2f6f5a;
  outline-offset: -2px;
  box-shadow: none;
}
html.page-orari-presenze .col-slot,
html.page-orari-presenze .slot-cell {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
}
html.page-orari-presenze .slot-cell {
  background: #ececec;
  transition: background-color 0.12s ease;
}
html.page-orari-presenze .slot-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}
html.page-orari-presenze .slot-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
html.page-orari-presenze .slot-mark {
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 800;
  color: #111;
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
html.page-orari-presenze .slot-cell.is-active .slot-mark {
  opacity: 1;
  transform: scale(1);
}
html.page-orari-presenze .slot-cell.state-work {
  background: #f0e2a8;
}
html.page-orari-presenze .slot-cell.state-ferie {
  background: #ffbf66;
  box-shadow: inset 0 0 0 1px #cf8f30;
}
html.page-orari-presenze .slot-cell.state-permesso {
  background: #ffe05a;
  box-shadow: inset 0 0 0 1px #c7a628;
}
html.page-orari-presenze .slot-cell.state-malattia {
  background: #ff9999;
  box-shadow: inset 0 0 0 1px #cf6666;
}
html.page-orari-presenze .slot-cell.state-absent {
  background: #ececec;
}
html.page-orari-presenze .col-total,
html.page-orari-presenze .cell-total {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
}
html.page-orari-presenze .cell-total {
  background: #f4e38f;
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
}
html.page-orari-presenze .day-hours {
  display: inline-block;
  min-width: 0;
}
html.page-orari-presenze .day-template-select {
  width: 58px;
  min-width: 58px;
  border: 1px solid #cab977;
  border-radius: 6px;
  background: #fff4cb;
  color: #1b1b1b;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 2px;
}
html.page-orari-presenze .col-note,
html.page-orari-presenze .cell-note {
  min-width: 160px;
  max-width: 160px;
}
html.page-orari-presenze .cell-note {
  background: #f4f4f4;
  color: #2f2f2f;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px;
}
html.page-orari-presenze .day-note-text {
  width: 100%;
  min-height: 24px;
  max-height: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  font-size: 0.66rem;
  line-height: 1.1;
  padding: 3px 4px;
  resize: vertical;
  background: #fff;
}
html.page-orari-presenze .empty-message {
  margin: 0;
  color: #4d6660;
  font-size: 0.96rem;
}
@media (min-width: 980px) {
  html.page-orari-presenze .control-row.cols-3 {
    grid-template-columns: 1fr 1fr auto;
  }
  html.page-orari-presenze .control-row.cols-2 {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html.page-orari-presenze .control-row.cols-5 {
    grid-template-columns: 120px 180px 1fr 1fr auto;
  }
}
@media (max-width: 980px) {
  html.page-orari-presenze .controls {
    gap: 10px;
  }
  html.page-orari-presenze .control-row,
  html.page-orari-presenze .control-row.cols-3,
  html.page-orari-presenze .control-row.cols-5 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html.page-orari-presenze .control-row.cols-2 {
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .controls .toolbar-main-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  html.page-orari-presenze .controls .toolbar-main-actions .btn {
    width: 100%;
  }
  html.page-orari-presenze .print-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  html.page-orari-presenze .print-period-form {
    min-width: 0;
    max-width: none;
  }
  html.page-orari-presenze .view-public-link {
    margin-left: 0;
  }
  html.page-orari-presenze .analytics-grid {
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .print-header-row {
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .month-summary-toolbar {
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .month-summary-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 1200px) {
  html.page-orari-presenze .day-block-title {
    font-size: 1.6rem;
  }
  html.page-orari-presenze .cell-total {
    font-size: 0.9rem;
  }
}
@media (max-width: 760px) {
  html.page-orari-presenze body {
    padding-left: 10px;
    padding-right: 10px;
  }
  html.page-orari-presenze .app-card {
    padding: 12px;
  }
  html.page-orari-presenze .title {
    font-size: 1.4rem;
  }
  html.page-orari-presenze .subtitle {
    font-size: 0.92rem;
  }
  html.page-orari-presenze label {
    font-size: 0.86rem;
  }
  html.page-orari-presenze input,
  html.page-orari-presenze select,
  html.page-orari-presenze textarea {
    font-size: 16px;
    padding: 10px;
  }
  html.page-orari-presenze .btn {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  html.page-orari-presenze .view-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html.page-orari-presenze .view-tab,
  html.page-orari-presenze .view-tabs .btn,
  html.page-orari-presenze .view-public-link,
  html.page-orari-presenze .view-share-link {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  html.page-orari-presenze .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  html.page-orari-presenze .toolbar-main-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }
  html.page-orari-presenze .toolbar-main-actions .btn {
    width: 100%;
  }
  html.page-orari-presenze .status-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }
  html.page-orari-presenze .status-btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.72rem;
    line-height: 1.2;
  }
  html.page-orari-presenze .print-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .print-footer-actions .btn,
  html.page-orari-presenze .month-summary-actions .btn {
    width: 100%;
    min-width: 0;
  }
  html.page-orari-presenze .month-summary-actions {
    width: 100%;
  }
  html.page-orari-presenze .day-block-title {
    font-size: 1.28rem;
    padding: 8px;
  }
  html.page-orari-presenze .cell-total {
    font-size: 0.88rem;
  }
  html.page-orari-presenze .bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  html.page-orari-presenze .bar-value {
    text-align: left;
  }
  html.page-orari-presenze .monthly-total-name {
    font-size: 0.94rem;
  }
  html.page-orari-presenze .monthly-total-hours-chip {
    min-width: 74px;
    font-size: 0.96rem;
    padding: 6px 8px;
  }
}
@media (max-width: 520px) {
  html.page-orari-presenze .controls .toolbar-main-actions {
    grid-template-columns: 1fr;
  }
  html.page-orari-presenze .status-actions {
    grid-template-columns: 1fr;
  }
}

body.has-app-shell {
  padding-left: 286px !important;
  padding-top: 92px !important;
  padding-right: 20px !important;
}

@media (max-width: 1024px) {
  body.has-app-shell {
    padding-left: 14px !important;
    padding-top: 84px !important;
    padding-right: 14px !important;
  }
}
