@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/era/IBMPlexMono-500.ttf') format('truetype')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/era/IBMPlexMono-600.ttf') format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/era/Inter-400.ttf') format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/era/Inter-500.ttf') format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/era/Inter-600.ttf') format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/era/Inter-700.ttf') format('truetype')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/era/PlusJakartaSans-600.ttf') format('truetype')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/era/PlusJakartaSans-700.ttf') format('truetype')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/era/PlusJakartaSans-800.ttf') format('truetype')}
/* ERA HR — veste del pannello (fase 6). Si carica dopo main.css e color_skins.css e vale solo con <body class="era">:
   togliendo la classe (APP_THEME 'legacy' o ?tema=legacy) si torna al tema di prima. Nessuna logica: solo colori, caratteri e disposizione.
   Riferimento grafico: docs/prototipo-era-hr.html (colori, caratteri, barra laterale scura raggruppata, card, chip di stato). */

body.era {
    --accent: #294899; --accent-d: #1F3775; --accent-l: #9BACDE; --accent-t: #E6EBF6;
    --mist: #D7E1EC; --bg: #EDF2F8; --card: #FFFFFF; --line: #DCE3EC; --line-2: #E9EEF4;
    --ink: #1B1F24; --deep: #13171B; --deep-2: #1E242B; --side-tx: #C9D2DE; --side-mu: #6E7B8C;
    --body-tx: #4A5463; --mute: #7A8596;
    --ok: #5E7857; --ok-t: #E9EFE6; --warn: #8A6116; --warn-t: #F6EEDC; --bad: #A33A2E; --bad-t: #F5E1DD;
    --f-disp: "Plus Jakarta Sans", system-ui, sans-serif; --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --side-w: 262px;
    background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
}
body.era * { font-family: inherit; }
body.era .zmdi, body.era [class^="zmdi-"], body.era [class*=" zmdi-"] { font-family: "Material-Design-Iconic-Font" !important; }
body.era h1, body.era h2, body.era h3, body.era h4, body.era h5, body.era h6, body.era .era-disp { font-family: var(--f-disp); color: var(--ink); letter-spacing: -.01em; }
body.era a { color: var(--accent); }
body.era a:hover { color: var(--accent-d); text-decoration: none; }
body.era code, body.era .mono, body.era .era-code { font-family: var(--f-mono); }
body.era :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* --- Disposizione: barra laterale scura a sinistra, intestazione in alto, contenuto -------------------------------------------- */
body.era #minileftbar, body.era .page-loader-wrapper, body.era .overlay, body.era .right_menu { display: none !important; }
body.era #leftsidebar.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); height: 100vh; margin: 0; padding: 0;
    background: var(--deep); color: var(--side-tx); display: flex; flex-direction: column; overflow: hidden; z-index: 1040; box-shadow: none; border: 0;
}
body.era #leftsidebar .menu { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; padding: 0; background: none; }
body.era .era-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; text-decoration: none; }
body.era .era-brand .lg { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; font: 800 14px/1 var(--f-disp); letter-spacing: -.5px; flex: none; }
body.era .era-brand .lg.lg-logo { width: 46px; height: 46px; background: #fff; padding: 3px; }
body.era .era-brand .lg.lg-logo img { width: 100%; height: 100%; display: block; }
body.era .era-brand img.era-logo-gate { height: 24px; width: auto; display: block; margin-bottom: 4px; }
body.era .era-mark-logo { display: inline-flex; align-items: center; gap: 12px; }
body.era.era-login .company_detail .era-mark.era-mark-logo { width: auto; height: auto; background: none; border-radius: 0; }
body.era .era-mark-logo img.era-logo-gate { height: 38px; width: auto; display: block; }
body.era .era-mark-logo .era-logo-hr { width: 56px; height: 56px; background: #fff; border-radius: 12px; padding: 3px; display: inline-block; }
body.era .era-mark-logo .era-logo-hr img { width: 100%; height: 100%; display: block; }
body.era .era-brand .nm { font: 800 15.5px/1.1 var(--f-disp); color: #fff; }
body.era .era-brand .sb { font-size: 11px; color: var(--accent-l); font-weight: 500; }
body.era .era-who { display: flex; align-items: center; gap: 11px; padding: 11px 14px; margin: 0 12px 4px; border-radius: 10px; background: rgba(255,255,255,.04); min-width: 0; }
body.era .era-who .av { width: 32px; height: 32px; border-radius: 50%; background: var(--deep-2); display: grid; place-items: center; color: var(--accent-l); font-weight: 600; font-size: 12.5px; flex: none; }
body.era .era-who .u { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.era .era-who .r { font-size: 11px; color: var(--side-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.era #leftsidebar ul.list { list-style: none; margin: 0; padding: 4px 12px 20px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #2a323b transparent; }
body.era #leftsidebar ul.list li { margin: 0; padding: 0; background: none; border: 0; }
body.era #leftsidebar ul.list li.header { font: 600 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--side-mu); padding: 16px 12px 7px; background: none; }
body.era #leftsidebar ul.list li a {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--side-tx);
    background: none; margin: 1px 0; white-space: nowrap;
}
body.era #leftsidebar ul.list li a i { width: 18px; text-align: center; font-size: 17px; color: inherit; opacity: .9; flex: none; margin: 0; }
body.era #leftsidebar ul.list li a:hover { background: rgba(255,255,255,.05); color: #fff; }
body.era #leftsidebar ul.list li.active > a, body.era #leftsidebar ul.list li.open > a { background: var(--accent); color: #fff; }
body.era #leftsidebar ul.list li.active > a i { opacity: 1; }
body.era .era-side-foot { padding: 12px 20px 16px; border-top: 1px solid #222a33; font: 500 10.5px/1.4 var(--f-mono); color: var(--side-mu); letter-spacing: .04em; }

body.era section.content { margin: 0 0 0 var(--side-w); padding: 0; min-height: 100vh; background: var(--bg); }
body.era section.content > .container-fluid { padding: 22px 28px 90px; max-width: none; display: block; }
body.era .era-top {
    background: var(--card); border-bottom: 1px solid var(--line); height: 56px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 30;
    padding: 0 28px; margin: 0;
}
body.era .era-top h1 { margin: 0; font: 800 18px/1.1 var(--f-disp); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.era .era-top .crumb { font: 500 11px/1 var(--f-mono); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
body.era .era-top .sp { flex: 1; }
body.era .era-top .era-lang a { font: 600 11px var(--f-mono); color: var(--mute); padding: 4px 6px; border-radius: 6px; }
body.era .era-top .era-lang a.on { color: var(--ink); background: var(--bg); }
body.era .era-top .era-user { font-size: 13px; color: var(--body-tx); white-space: nowrap; }
body.era .era-top .era-out { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--body-tx); cursor: pointer; display: grid; place-items: center; padding: 0; }
body.era .era-top .era-out:hover { border-color: var(--ink); }
body.era .era-top .era-menu { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; font-size: 18px; }
body.era .era-chip-test { font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--warn-t); color: var(--warn); padding: 5px 9px; border-radius: 20px; white-space: nowrap; }
body.era .block-header { display: none; }   /* il titolo sta nell'intestazione in alto */
body.era .era-embed .era-top { display: none; }

body.era #leftsidebar ul.list li.header:before, body.era #leftsidebar ul.list li.header:after { content: none; display: none; }
body.era .bootstrap-select { width: 100% !important; }
body.era .bootstrap-select > .dropdown-toggle { border: 1px solid var(--line) !important; border-radius: 10px; background: var(--card) !important; color: var(--ink) !important; min-height: 38px; padding: 8px 12px; box-shadow: none !important; font-size: 13.5px; }
body.era .bootstrap-select > .dropdown-toggle:after { color: var(--mute); }
body.era .bootstrap-select .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(19,23,27,.12); padding: 6px; }
body.era .bootstrap-select .dropdown-menu li a { border-radius: 8px; font-size: 13px; padding: 7px 10px; color: var(--ink); }
body.era .bootstrap-select .dropdown-menu li.selected a, body.era .bootstrap-select .dropdown-menu li a:hover { background: var(--accent-t); color: var(--accent-d); }
body.era .bootstrap-select.form-control, body.era .bootstrap-select.input-sm { border: 0; padding: 0; background: none; height: auto; box-shadow: none; }
body.era .card .header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: static; }
body.era .card .header h2 { flex: 0 1 auto; }
body.era .card .header .header-dropdown { position: static; margin: 0 0 0 auto; padding: 0; display: flex; gap: 8px; align-items: center; list-style: none; float: none; }
body.era .card .header .header-dropdown li { float: none; margin: 0; padding: 0; }
body.era .card .header .header-dropdown form { display: flex; gap: 8px; align-items: center; margin: 0; }
body.era .card .header .header-dropdown .form-control { min-width: 140px; }
body.era .card .body { overflow-x: auto; }
body.era .era-toolbar .f { min-width: 150px; }
body.era .era-toolbar .f label { margin: 0; }
body.era .era-toolbar select.form-control { min-width: 150px; }

/* --- Card, tabelle, moduli, pulsanti, etichette ------------------------------------------------------------------------------ */
body.era .card, body.era .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; margin-bottom: 16px; }
body.era .card .header { background: none; border: 0; padding: 16px 20px 6px; }
body.era .card .header h2, body.era .card .header h2 strong { font: 800 14.5px/1.2 var(--f-disp); color: var(--ink); margin: 0; text-transform: none; }
body.era .card .body { padding: 14px 20px 18px; color: var(--ink); }
body.era .card .body p, body.era .text-muted, body.era small { color: var(--body-tx); }
body.era .text-muted { color: var(--mute) !important; }
body.era .table { color: var(--ink); margin-bottom: 0; }
body.era .table thead th { font: 600 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--body-tx); background: #F6F8FB; border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; white-space: nowrap; }
body.era .table td, body.era .table th { padding: 11px 14px; border-top: 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; }
body.era .table tbody tr:last-child td { border-bottom: 0; }
body.era .table-hover tbody tr:hover, body.era .table tbody tr:hover { background: #F5F8FC; }
body.era .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
body.era .table-responsive { border-radius: 14px; }
body.era .form-control, body.era .custom-select, body.era select.form-control, body.era input[type=text], body.era input[type=search], body.era input[type=date], body.era input[type=email], body.era input[type=password], body.era input[type=number], body.era textarea {
    border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 13.5px; padding: 8px 12px; height: auto; min-height: 38px; box-shadow: none;
}
body.era .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
body.era label { font-weight: 600; font-size: 12.5px; color: var(--body-tx); }
body.era .btn { font-weight: 600; font-size: 13px; border-radius: 9px; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: none; text-transform: none; letter-spacing: 0; }
body.era .btn:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
body.era .btn-primary, body.era .btn-info, body.era .btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
body.era .btn-primary:hover, body.era .btn-info:hover, body.era .btn.pri:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
body.era .btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
body.era .btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
body.era .btn-warning { background: var(--warn-t); border-color: var(--warn-t); color: var(--warn); }
body.era .btn-default, body.era .btn-secondary { background: var(--card); color: var(--ink); }
body.era .btn-round, body.era .btn-simple { border-radius: 9px; }
body.era .btn-sm, body.era .btn-xs { padding: 5px 10px; font-size: 12px; }
body.era .btn-dark, body.era .btn-black { background: var(--ink); border-color: var(--ink); color: #fff; }
body.era .alert { border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
body.era .alert-success { background: var(--ok-t); color: var(--ok); border-color: #d5e1d0; }
body.era .alert-warning { background: var(--warn-t); color: var(--warn); border-color: #ecdcb6; }
body.era .alert-danger { background: var(--bad-t); color: var(--bad); border-color: #ebc9c3; }
body.era .alert-info { background: var(--accent-t); color: var(--accent-d); border-color: #cfd8ee; }
body.era .badge, body.era .label { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--line-2); color: var(--body-tx); text-transform: none; }
body.era .badge-success, body.era .label-success { background: var(--ok-t); color: var(--ok); }
body.era .badge-warning, body.era .label-warning { background: var(--warn-t); color: var(--warn); }
body.era .badge-danger, body.era .label-danger { background: var(--bad-t); color: var(--bad); }
body.era .badge-info, body.era .badge-primary, body.era .label-info, body.era .label-primary { background: var(--accent-t); color: var(--accent); }
body.era .nav-tabs { border-bottom: 1px solid var(--line); }
body.era .nav-tabs .nav-link { color: var(--body-tx); border: 0; border-bottom: 2px solid transparent; font-weight: 600; }
body.era .nav-tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); background: none; }
body.era .modal-content { border-radius: 14px; border: 1px solid var(--line); }
body.era hr { border-color: var(--line-2); }

/* --- Componenti di ERA HR (hr/layout.php) ------------------------------------------------------------------------------------- */
body.era .hr-nav { gap: 7px; margin-bottom: 16px; }
body.era .hr-nav a.in-menu { display: none; }   /* ha già la sua voce nel menu laterale */
body.era .hr-nav:not(:has(a:not(.in-menu))) { display: none; }
body.era .hr-nav a { font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--body-tx); }
body.era .hr-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
body.era .hr-badge { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; margin: 1px 3px 1px 0; }
body.era .hr-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
body.era .hr-status-ok, body.era .hr-deadline-ok { background: var(--ok-t); color: var(--ok); }
body.era .hr-status-anomaly, body.era .hr-deadline-expired, body.era .hr-deadline-unfit { background: var(--bad-t); color: var(--bad); }
body.era .hr-status-justified, body.era .hr-deadline-d30, body.era .hr-deadline-d7 { background: var(--warn-t); color: var(--warn); }
body.era .hr-status-open { background: var(--accent-t); color: var(--accent); }
body.era .hr-status-day_off, body.era .hr-status-rest, body.era .hr-status-no_schedule, body.era .hr-deadline-missing, body.era .hr-notice, body.era .hr-deadline-d60 { background: var(--line-2); color: var(--body-tx); }
body.era .hr-notice::before { display: none; }
body.era .hr-num { font-family: var(--f-mono); font-size: 12.5px; }
body.era .hr-stat { font: 800 26px/1.1 var(--f-disp); font-variant-numeric: tabular-nums; }

/* --- Componenti nuovi (dashboard, schede, elenchi) ------------------------------------------------------------------------------- */
body.era .era-hello h2 { margin: 0 0 3px; font: 800 23px/1.15 var(--f-disp); letter-spacing: -.02em; }
body.era .era-hello h2 em { font-style: italic; color: var(--accent); }
body.era .era-hello p { margin: 0; color: var(--body-tx); max-width: 68ch; }
body.era .era-kick { font: 600 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 4px 0 9px; }
body.era .era-stats { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 16px 0; }
body.era .era-stat { flex: 1; padding: 12px 18px; border-left: 1px solid var(--line-2); min-width: 0; color: inherit; display: block; }
body.era .era-stat:first-child { border-left: 0; }
body.era a.era-stat:hover { background: var(--accent-t); }
body.era .era-stat .sl { font: 600 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--body-tx); }
body.era .era-stat .sv { font: 800 24px/1.1 var(--f-disp); margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
body.era .era-stat .sv small { font: 600 13px var(--f-body); color: var(--mute); }
body.era .era-stat .ss { font-size: 12px; color: var(--mute); }
body.era .era-stat.w { background: var(--warn-t); } body.era .era-stat.w .sv { color: var(--warn); }
body.era .era-stat.b { background: var(--bad-t); } body.era .era-stat.b .sv { color: var(--bad); }
body.era .era-stat.k .sv { color: var(--ok); }
body.era .era-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
body.era .era-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.era .era-mgrp { display: flex; flex-direction: column; gap: 9px; }
body.era .era-mrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.era .era-mod { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: inherit; transition: border-color .15s, transform .15s; }
body.era .era-mod:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
body.era .era-mod .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-t); color: var(--accent); display: grid; place-items: center; font-size: 19px; }
body.era .era-mod b { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; color: var(--ink); }
body.era .era-mod span.d { font-size: 12.5px; color: var(--body-tx); line-height: 1.4; }
body.era .era-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.era .era-panel h3 { margin: 0; font: 800 14.5px/1.2 var(--f-disp); }
body.era .era-panel .ph { display: flex; align-items: center; gap: 8px; }
body.era .era-panel .ph .sp { flex: 1; }
body.era .era-todo { display: flex; flex-direction: column; }
body.era .era-todo a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); color: inherit; }
body.era .era-todo a:first-child { border-top: 0; }
body.era .era-todo a b { font-weight: 600; font-size: 13px; display: block; line-height: 1.2; color: var(--ink); }
body.era .era-todo a .sub { font-size: 11.5px; color: var(--mute); }
body.era .era-todo a em { margin-left: auto; font: 600 11px var(--f-mono); font-style: normal; color: var(--bad); white-space: nowrap; }
body.era .era-todo a.w em { color: var(--warn); } body.era .era-todo a.i em { color: var(--accent); }
body.era .era-todo a:hover { background: var(--accent-t); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
body.era .era-bdg { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: var(--line-2); color: var(--body-tx); }
body.era .era-bdg.ok { background: var(--ok-t); color: var(--ok); } body.era .era-bdg.w { background: var(--warn-t); color: var(--warn); }
body.era .era-bdg.b { background: var(--bad-t); color: var(--bad); } body.era .era-bdg.a { background: var(--accent-t); color: var(--accent); }
body.era .era-board { background: var(--deep); color: var(--side-tx); border-radius: 14px; overflow: hidden; }
body.era .era-board .bh { display: flex; padding: 12px 16px; font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-l); border-bottom: 1px solid #222a33; }
body.era .era-board .bh span:last-child { margin-left: auto; color: #fff; }
body.era .era-board .br { display: flex; padding: 9px 16px; font-size: 13px; border-bottom: 1px solid #1b2128; }
body.era .era-board .br .v { margin-left: auto; font: 600 13px var(--f-mono); color: #fff; } body.era .era-board .br .v.w { color: #F0D9A8; } body.era .era-board .br .v.k { color: #AFC7A8; }
body.era .era-board .bf { padding: 10px 16px; font-size: 11.5px; color: var(--side-mu); }
body.era .era-toolbar { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
body.era .era-toolbar .f { display: flex; flex-direction: column; gap: 4px; }
body.era .era-tw { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
body.era .era-tw .tsc { overflow-x: auto; }
body.era .era-tm { font: 500 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }
body.era .era-code { font-weight: 600; font-size: 12px; color: var(--accent); }

/* --- Confronto dei temi --------------------------------------------------------------------------------------------------------------- */
body.era .era-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.era .era-compare figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
body.era .era-compare figcaption { padding: 10px 14px; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--body-tx); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
body.era .era-compare .vp { position: relative; overflow: hidden; background: #fff; }
body.era .era-compare iframe { border: 0; width: 1440px; height: 960px; transform-origin: 0 0; background: #fff; }

/* --- Schermi stretti --------------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    body.era .era-grid2 { grid-template-columns: minmax(0, 1fr); }
    body.era .era-mrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.era .era-compare { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    body.era #leftsidebar.sidebar { transform: translateX(-100%); transition: transform .2s; }
    body.era.era-nav-open #leftsidebar.sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
    body.era section.content { margin-left: 0; }
    body.era .era-top { padding: 0 16px; }
    body.era .era-top .era-menu { display: inline-grid; place-items: center; }
    body.era .era-top .crumb, body.era .era-top .era-user { display: none; }
    body.era section.content > .container-fluid { padding: 16px 16px 90px; }
    body.era .era-stats { flex-wrap: wrap; }
    body.era .era-stat { flex: 1 1 45%; border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 560px) { body.era .era-mrow { grid-template-columns: minmax(0, 1fr); } body.era .era-top h1 { font-size: 16px; } }

/* Filtro compatto in linea (es. "Ultimi giorni" in hr_dashboard) */
body.era form.era-inline { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; }
body.era form.era-inline label { margin: 0; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
body.era form.era-inline .bootstrap-select { width: auto !important; min-width: 0; }
body.era form.era-inline .bootstrap-select > .dropdown-toggle { min-height: 30px; padding: 4px 28px 4px 10px; font-size: 12.5px; }
body.era form.era-inline select.form-control { width: auto; min-width: 0; height: 30px; padding: 3px 24px 3px 10px; font-size: 12.5px; }

/* --- Pagine senza barra laterale: accesso, prenotazione pubblica, firma su tablet ---------------------------------------------- */
body.era.era-login { background: var(--deep) !important; min-height: 100vh; }
body.era.era-login .authentication { background: none; }
body.era.era-login .company_detail h4.logo { display: flex; align-items: center; gap: 12px; color: #fff; font: 800 22px/1 var(--f-disp); margin-bottom: 28px; }
body.era.era-login .company_detail .era-mark { width: 44px; height: 44px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; color: #fff; font: 800 16px/1 var(--f-disp); }
body.era.era-login .company_detail h3 { color: #fff; font-family: var(--f-disp); font-weight: 700; }
body.era.era-login .company_detail p { color: var(--side-tx); }
body.era.era-login .card-plain { background: var(--card); border-radius: 16px; padding: 28px 28px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
body.era.era-login .card-plain .header h5 { font-family: var(--f-disp); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
body.era.era-login .card-plain .header a { color: var(--accent); }
body.era.era-login .card-plain .input-group { margin-bottom: 12px; }
body.era.era-login .card-plain .form-control { border: 1px solid var(--line); border-radius: 10px 0 0 10px; background: #fff; color: var(--ink); height: 42px; }
body.era.era-login .card-plain .input-group-addon { border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--bg); color: var(--mute); display: flex; align-items: center; padding: 0 12px; }
body.era.era-login .card-plain .btn-primary { background: var(--accent); border-color: var(--accent); border-radius: 10px; height: 42px; font-weight: 600; }
body.era.era-login .card-plain .btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
body.era.era-public { background: var(--bg); font-family: var(--f-body); color: var(--ink); }
body.era.era-public .pub-card { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(19,23,27,.04); }
body.era.era-public h1, body.era.era-public h2, body.era.era-public h3 { font-family: var(--f-disp); }
body.era.era-public .pub-back, body.era.era-public .pub-date-nav a { color: var(--accent); }
body.era.era-public .pub-type-card { border-radius: 12px; border-color: var(--line); }
body.era.era-public .pub-type-card:hover { border-color: var(--accent); background: var(--accent-t); }
body.era.era-public .pub-slot-btn { border-radius: 9px; border-color: var(--line); }
body.era.era-public .pub-slot-btn:hover { border-color: var(--accent); }
body.era.era-public .pub-slot-btn.selected, body.era.era-public .pub-submit-btn { background: var(--accent); border-color: var(--accent); }
body.era.era-public .pub-submit-btn { border-radius: 10px; font-weight: 600; }
body.era.era-sign { background: var(--bg) !important; font-family: var(--f-body) !important; color: var(--ink) !important; }
body.era.era-sign h1 { font-family: var(--f-disp); }
body.era.era-sign pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
body.era.era-sign #pad { border-color: var(--accent-l); border-radius: 12px; }
body.era.era-sign button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body.era.era-sign button, body.era.era-sign .btn { border-color: var(--accent); border-radius: 12px; color: var(--accent); }
body.era.era-sign button.primary { color: #fff; }
body.era.era-sign .alert { background: var(--bad-t); color: var(--bad); }
body.era.era-login .authentication:before, body.era.era-login .authentication:after, body.era.era-login .authentication .container:before, body.era.era-login .authentication .container:after { display: none !important; content: none !important; }
body.era.era-login .company_detail h3 { color: #fff !important; text-transform: none; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; opacity: 1; }
body.era.era-login .company_detail p { color: var(--side-tx) !important; opacity: 1; font-size: 15px; letter-spacing: 0; }

/* Elenco Dipendenti: barra degli strumenti in una riga, tabella a tutta larghezza che non taglia l'ultima colonna */
body.era .card .header .header-dropdown .bootstrap-select { width: auto !important; min-width: 150px; }
body.era .card .header .header-dropdown input.form-control { width: 200px; min-width: 0; }
body.era .card .header .header-dropdown form.form-inline { flex-wrap: nowrap; }
body.era .card .body.emp-wrap { overflow-x: visible; }
body.era table.emp-table th { letter-spacing: .08em; }
@media (max-width: 900px) { body.era .card .body.emp-wrap { overflow-x: auto; } }
body.era .modal-backdrop { z-index: 1050; background: var(--deep); }
body.era .modal { z-index: 1060; }
body.era .modal-header { border-bottom: 1px solid var(--line-2); }
body.era .modal-header { padding: 18px 24px 12px; align-items: center; }
