:root {
  --charl-black: #141414;
  --charl-ink: #141414;
  --charl-muted: #5c6470;
  --charl-line: #d7dde3;
  --charl-paper: #f4f7fa;
  --charl-white: #ffffff;
  --charl-orange: #bf6a3e;
  --charl-navy: #26507c;
  --charl-navy-dark: #141414;
  --charl-blue: #2683c5;
  --charl-orange-dark: #9e522f;
  --charl-accent: #2683c5;
  --shadow: 0 24px 70px rgba(23, 23, 20, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1180px;
  margin: 0;
  background: var(--charl-black);
  color: var(--charl-ink);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(38, 80, 124, 0.96) 0 31%, transparent 31.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.38)),
    var(--charl-black);
}


.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-panel {
  width: min(480px, 100%);
  padding: 28px;
  background: var(--charl-paper);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--charl-line);
}

.login-brand .eyebrow {
  color: var(--charl-muted);
}

.login-brand h1 {
  color: var(--charl-black);
  font-size: 44px;
}

.login-fields {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.login-fields label {
  color: var(--charl-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-fields input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
}

.login-panel button {
  width: 100%;
  background: var(--charl-orange);
  color: var(--charl-white);
}

.login-panel button:hover {
  background: var(--charl-orange-dark);
}

.login-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--charl-orange);
  font-weight: 800;
}

.logout-button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--charl-orange);
  color: var(--charl-white);
  white-space: nowrap;
}

.logout-button:hover {
  background: var(--charl-orange-dark);
}

.app-shell {
  width: min(1760px, calc(100% - 48px));
  margin: 24px auto 36px;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
  color: var(--charl-white);
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 430px;
}

.logo-frame {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: var(--charl-white);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.logo-frame img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}


.user-greeting {
  margin: 10px 0 0;
  color: var(--charl-accent);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.admin-nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.admin-nav-button:hover { background: rgba(255,255,255,.15); }
.admin-nav-button.is-hidden { display: none; }

h1 {
  margin: 0;
  color: var(--charl-white);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 800;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 520px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.top-bar label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

#weekInfo {
  margin-left: auto;
  color: var(--charl-white);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.timesheet-panel {
  position: relative;
  overflow: hidden;
  background: var(--charl-paper);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}



.job-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 16px 0;
  background: #ffffff;
  border-bottom: 0;
}

.job-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border-color: #c7d1dc;
  border-radius: 6px 6px 0 0;
  background: #f4f7fa;
  color: var(--charl-navy);
  box-shadow: none;
}

.job-tab::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 6px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.job-tab:hover {
  border-color: var(--charl-blue);
  background: #ffffff;
  color: var(--charl-black);
}

.job-tab.is-active {
  border-color: var(--charl-black);
  background: var(--charl-black);
  color: #ffffff;
  box-shadow: 0 -8px 24px rgba(20, 20, 20, 0.14);
  transform: translateY(0);
  z-index: 2;
}

.job-tab.is-active::before {
  background: linear-gradient(90deg, var(--charl-blue), var(--charl-orange));
}

.job-tab.is-active:hover {
  background: var(--charl-black);
  color: #ffffff;
}

.active-job-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  background: linear-gradient(90deg, var(--charl-black), var(--charl-navy) 70%, var(--charl-blue));
  color: #ffffff;
  border-top: 4px solid var(--charl-black);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.active-job-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.active-job-strip #approveButton {
  margin-left: 0;
  min-height: 46px;
}

.reload-data-button {
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
}

.reload-data-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.active-job-strip strong {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #ffffff;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}


.row-tools {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.row-tools button {
  min-height: 34px;
  padding: 0 10px;
  border-color: #26507c;
  background: #ffffff;
  color: #26507c;
  font-size: 11px;
}

.row-tools button:hover {
  background: #2683c5;
  color: #ffffff;
}

.row-tools .text-danger {
  border-color: #b3261e;
  background: #fff5f3;
  color: #b3261e;
}

.row-tools .text-danger:hover {
  background: #b3261e;
  color: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #eef3f7, var(--charl-paper));
  border-left: 6px solid var(--charl-blue);
  border-right: 6px solid var(--charl-blue);
}

table {
  width: 100%;
  min-width: 1430px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--charl-white);
  border: 1px solid var(--charl-line);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--charl-black);
  color: var(--charl-white);
  padding: 13px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

th:first-child {
  text-align: left;
}

.select-column {
  width: 82px;
  min-width: 82px;
  text-align: center;
}

.select-all-control {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.15;
  cursor: pointer;
}

.select-all-control span {
  display: block;
  width: 100%;
}

.select-cell {
  width: 82px;
  min-width: 82px;
  background: #ffffff;
  vertical-align: middle;
}

.row-select,
#selectAllRows {
  width: 18px;
  height: 18px;
  accent-color: var(--charl-orange);
  cursor: pointer;
}

.row-select:disabled,
#selectAllRows:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

td {
  border-right: 1px solid var(--charl-line);
  border-bottom: 1px solid var(--charl-line);
  padding: 10px;
  text-align: center;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.employee-cell {
  min-width: 220px;
  background: #ffffff;
}

select,
input[type="date"],
input[type="time"],
input[type="text"],
input[type="password"] {
  height: 38px;
  border: 1px solid var(--charl-line);
  border-radius: 4px;
  background: var(--charl-white);
  color: var(--charl-ink);
  font: 600 14px "Inter", Arial, sans-serif;
}

select:focus,
input:focus {
  outline: 2px solid rgba(38, 131, 197, 0.28);
  border-color: var(--charl-navy);
}

select {
  width: 180px;
  padding: 0 10px;
}

.employee {
  width: 198px;
}

.activity {
  width: 132px;
}

input[type="time"] {
  width: 100px;
  padding: 0 8px;
}

input[type="date"] {
  width: 154px;
  padding: 0 10px;
}

.day-cell {
  min-width: 136px;
  background: linear-gradient(180deg, #ffffff, #f4f7fa);
}

.time-row {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.time-row span {
  color: var(--charl-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}


.day-cell.is-locked {
  background: linear-gradient(180deg, #f7f9fb, #e9eef3);
}

.day-cell.is-locked input,
.day-cell.is-locked select {
  background: #eef2f5;
  color: #4c5968;
  border-color: #c7d1dc;
  opacity: 1;
}

.day-edit {
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border-color: var(--charl-blue);
  background: #ffffff;
  color: var(--charl-navy);
  font-size: 10px;
}

.day-edit:hover {
  background: var(--charl-blue);
  color: #ffffff;
}

.day-clear {
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border-color: #b3261e;
  background: #fff5f3;
  color: #b3261e;
  font-size: 10px;
}

.day-clear:hover {
  background: #b3261e;
  color: #ffffff;
}

.total {
  min-width: 92px;
  background: #f4f7fa;
  color: var(--charl-navy);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  vertical-align: middle;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 16px 16px;
}

.is-read-only-week #addEmployeeButton,
.is-read-only-week #saveButton,
.is-read-only-week #approveButton,
.is-read-only-week .row-tools,
.is-read-only-week .day-clear,
.is-read-only-week .day-edit {
  display: none !important;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--charl-blue);
  color: var(--charl-white);
  font: 800 13px "Inter Tight", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  background: #1e6da6;
  box-shadow: 0 10px 24px rgba(16, 43, 70, 0.18);
  transform: translateY(-1px);
}

button:disabled {
  background: #9b9b93;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.approve-week {
  min-height: 56px;
  padding: 0 28px;
  background: var(--charl-orange);
  border-color: var(--charl-orange-dark);
  color: #ffffff;
  font-size: 15px;
}

.approve-week:hover {
  background: var(--charl-orange-dark);
}

.secondary {
  background: var(--charl-black);
  border-color: var(--charl-black);
}

.secondary:hover {
  background: #2b2b27;
}

#statusMessage {
  min-height: 24px;
  padding: 0 16px 18px;
  font-weight: 800;
}

.json-preview {
  margin: 0 16px 18px;
  border: 1px solid var(--charl-line);
  background: #ffffff;
}

.json-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--charl-black);
  color: #ffffff;
}

.json-preview-header strong {
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.json-preview-header button {
  min-height: 34px;
  padding: 0 12px;
  border-color: #ffffff;
  font-size: 11px;
}

#jsonPreviewContent {
  max-height: 560px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #f7f9fb;
  color: #141414;
  font: 600 12px/1.5 Consolas, Monaco, monospace;
  white-space: pre;
}

.success {
  color: #237342;
}

.error {
  color: var(--charl-orange);
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .brand-header,
  .brand-left,
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  h1 {
    font-size: 40px;
  }

  #weekInfo {
    margin-left: 0;
    white-space: normal;
  }
}


/* Polissage visuel 2026-07-10 */
:root { --shadow: 0 24px 64px rgba(7,18,29,.22); --shadow-soft: 0 8px 24px rgba(24,44,64,.09); --radius-sm: 7px; --radius: 12px; --radius-lg: 18px; --ease: 180ms cubic-bezier(.2,.8,.2,1); }
body { -webkit-font-smoothing: antialiased; }
body::before { background: radial-gradient(circle at 82% 8%,rgba(38,131,197,.18),transparent 34%),linear-gradient(115deg,rgba(38,80,124,.96) 0 31%,transparent 31.2%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.42)),var(--charl-black); }
.login-panel { padding: 36px; border-radius: var(--radius-lg); }
.login-brand { margin-bottom: 30px; padding-bottom: 26px; }
.login-fields { gap: 10px; margin-bottom: 22px; }
.login-fields label,.top-bar label,.active-job-strip span { letter-spacing: .06em; }
.login-fields input { height: 48px; padding: 0 14px; }
.app-shell { margin-top: 30px; margin-bottom: 44px; }
.brand-header { margin-bottom: 24px; }
.logo-frame,.top-bar { border-radius: var(--radius); }
.eyebrow { letter-spacing: .07em; }
.top-bar { padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 14px 38px rgba(0,0,0,.12); backdrop-filter: blur(18px); }
.timesheet-panel { border-radius: var(--radius-lg); }
.job-tabs { padding: 18px 20px 0; }
.job-tab { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.active-job-strip { min-height: 64px; padding: 8px 20px; border-top-width: 3px; }
.active-job-strip strong { border-radius: var(--radius-sm); }
.table-wrap { padding: 22px 20px 20px; border-left-width: 4px; border-right-width: 4px; scrollbar-color: var(--charl-navy) #dfe6ec; }
table { border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
th { padding: 15px 10px; letter-spacing: .035em; }
td { padding: 12px 10px; }
tbody tr { transition: background-color var(--ease),box-shadow var(--ease); }
tbody tr:hover td { box-shadow: inset 0 1px rgba(38,131,197,.12),inset 0 -1px rgba(38,131,197,.12); }
select,input[type="date"],input[type="time"],input[type="text"],input[type="password"] { border-radius: var(--radius-sm); transition: border-color var(--ease),box-shadow var(--ease),background-color var(--ease); }
select:focus,input:focus { outline: none; border-color: var(--charl-blue); box-shadow: 0 0 0 3px rgba(38,131,197,.16); }
.time-row { gap: 6px; }
.total { background: linear-gradient(180deg,#f8fafc,#edf2f6); }
.actions { padding: 2px 20px 20px; }
button { border-radius: var(--radius-sm); letter-spacing: .025em; transition: transform var(--ease),background-color var(--ease),border-color var(--ease),box-shadow var(--ease); }
button:active:not(:disabled) { transform: translateY(0) scale(.985); box-shadow: none; }
button:focus-visible { outline: 3px solid rgba(38,131,197,.3); outline-offset: 2px; }
#statusMessage { font-weight: 700; line-height: 1.5; }
.json-preview { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
@media (max-width:900px) { .login-screen{padding:16px}.login-panel{padding:24px}.brand-left{min-width:0}.logo-frame{width:76px;height:76px}.logo-frame img{width:56px;height:56px}.top-bar{width:100%}.active-job-strip{flex-wrap:wrap;padding:12px}.reload-data-button{margin-left:0}.table-wrap{padding:14px 10px;border-left-width:3px;border-right-width:3px}.actions{padding:2px 12px 16px} }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; } }


/* Tableau compact : priorité à la densité verticale */
th { padding: 11px 8px; }
td { padding: 8px; }

.employee-cell { min-width: 250px; }
.employee { width: 224px; }
.row-tools { grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.row-tools button { min-height: 28px; padding: 0 7px; font-size: 9px; }

.day-cell { min-width: 238px; }
.time-row {
  display: grid;
  grid-template-columns: 22px 82px 28px 82px;
  align-items: center;
  justify-content: center;
  justify-items: stretch;
  gap: 6px 5px;
}
.time-row span { text-align: right; font-size: 9px; }
.time-row input[type="time"] { width: 82px; height: 34px; padding: 0 5px; }
.time-row span:nth-of-type(3) { grid-column: 1 / 2; }
.time-row .activity { grid-column: 2 / 5; width: 100%; height: 34px; }
.time-row .day-clear,
.time-row .day-edit { grid-column: 1 / -1; min-height: 24px; }

.select-cell { padding: 8px 5px; }
.total { min-width: 88px; font-size: 16px; }

@media (max-width: 900px) {
  .employee-cell { min-width: 230px; }
  .employee { width: 204px; }
  .day-cell { min-width: 224px; }
  .time-row { grid-template-columns: 20px 76px 26px 76px; }
  .time-row input[type="time"] { width: 76px; }
}


/* Largeur optimisée : afficher les sept jours */
.app-shell { width: min(1900px, calc(100% - 16px)); }
.table-wrap { padding: 10px 8px 12px; border-left-width: 2px; border-right-width: 2px; }
table { min-width: 1540px; }

.select-column,
.select-cell { width: 38px; min-width: 38px; max-width: 38px; padding-left: 3px; padding-right: 3px; }
.row-select,
#selectAllRows { width: 14px; height: 14px; }
.select-all-control { gap: 3px; }
.select-all-control span { font-size: 0; }
.select-all-control span::after { content: "Tous"; font-size: 8px; }

.employee-cell { min-width: 190px; width: 190px; }
.employee { width: 174px; }
.row-tools button { padding: 0 4px; font-size: 8px; }

.day-cell { min-width: 176px; padding-left: 6px; padding-right: 6px; }
.time-row { grid-template-columns: 16px 67px 20px 67px; gap: 5px 3px; }
.time-row span { font-size: 8px; }
.time-row input[type="time"] { width: 67px; height: 32px; padding: 0 2px; font-size: 12px; }
.time-row .activity { height: 32px; font-size: 11px; }
.total { min-width: 72px; width: 72px; padding-left: 4px; padding-right: 4px; }

@media (max-width: 900px) {
  .app-shell { width: calc(100% - 8px); }
  .table-wrap { padding: 8px 4px 10px; }
  .employee-cell { min-width: 180px; width: 180px; }
  .employee { width: 164px; }
  .day-cell { min-width: 172px; }
  .time-row { grid-template-columns: 15px 65px 18px 65px; }
  .time-row input[type="time"] { width: 65px; }
}


/* Actions principales toujours accessibles */
.actions-top {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 58px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--charl-line);
  box-shadow: 0 6px 18px rgba(20, 36, 52, .10);
  backdrop-filter: blur(12px);
}

.actions-top button { min-height: 40px; }
.actions-top #saveButton { order: -1; min-width: 150px; }
.actions-top + .table-wrap th { top: 58px; }

@media (max-width: 900px) {
  .actions-top { gap: 6px; min-height: 52px; padding: 6px 8px; }
  .actions-top button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .actions-top + .table-wrap th { top: 52px; }
}


/* Actions intégrées au bandeau du job */
.active-job-strip > button {
  min-height: 38px;
  height: 38px;
  padding: 0 11px;
  font-size: 10px;
  white-space: nowrap;
}
.active-job-strip #addEmployeeButton { background: #fff; border-color: rgba(255,255,255,.75); color: var(--charl-navy); }
.active-job-strip #addEmployeeButton:hover { background: #eaf4fb; }
.active-job-strip #saveButton { background: var(--charl-blue); }
.active-job-strip .secondary { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.4); }
.import-day-control { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: rgba(255,255,255,.08); }
.import-day-control span { font-size: 10px; color: rgba(255,255,255,.72); }
.import-day-select { height: 28px; min-width: 92px; border: 1px solid rgba(255,255,255,.34); border-radius: 8px; background: rgba(255,255,255,.94); color: var(--charl-navy); font-size: 12px; font-weight: 700; }
.active-job-strip #approveButton { min-height: 38px; height: 38px; padding: 0 14px; font-size: 10px; }
.table-wrap th { top: 0; }

@media (max-width: 1200px) {
  .active-job-strip { flex-wrap: wrap; }
  .active-job-strip > button { flex: 1 1 auto; }
}


/* Retrait ponctuel dun employé de la semaine */
.row-tools { grid-template-columns: repeat(3, 1fr); }
.row-tools .row-remove { border-color: #66717d; background: #f2f4f6; color: #46515c; }
.row-tools .row-remove:hover { border-color: #46515c; background: #46515c; color: #fff; }


/* Respiration entre les lignes demployés */
tbody tr + tr td { border-top: 5px solid #dfe6ec; }
tbody tr:hover td { border-top-color: #cfdae4; }


/* Notifications derreur visibles */
.error-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 11px;
  width: min(460px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid #d6453d;
  border-left: 5px solid #b3261e;
  border-radius: 10px;
  background: #fff;
  color: #3b1714;
  box-shadow: 0 18px 48px rgba(15, 24, 34, .28);
  animation: error-toast-in 180ms ease-out;
}
.error-toast-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #b3261e; color: #fff; font-weight: 800; }
.error-toast-content strong { display: block; margin: 1px 0 4px; font-family: "Inter Tight", Arial, sans-serif; font-size: 14px; }
.error-toast-content p { margin: 0; color: #6e2923; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.error-toast-close { min-height: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #6e2923; font: 700 24px/1 Arial, sans-serif; }
.error-toast-close:hover { background: #fff0ee; color: #b3261e; box-shadow: none; transform: none; }
@keyframes error-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


/* Variante verte pour les confirmations */
.error-toast.is-success { border-color: #5cad7a; border-left-color: #237342; color: #153d25; }
.error-toast.is-success .error-toast-icon { background: #237342; }
.error-toast.is-success .error-toast-content p { color: #245b38; }
.error-toast.is-success .error-toast-close { color: #245b38; }
.error-toast.is-success .error-toast-close:hover { background: #edf8f1; color: #176032; }
.error-toast.is-error { border-color: #d6453d; border-left-color: #b3261e; }

/* Actions compactes dans le bandeau et l’entête employé */
.active-job-strip .reload-data-button { margin-left: 0; display: inline-grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 999px; font-size: 19px; line-height: 1; }
.active-job-strip .reload-data-button span { display: inline-block; transform-origin: 50% 50%; }
.active-job-strip .reload-data-button.is-loading span { animation: spin-refresh .9s linear infinite; }
@keyframes spin-refresh { to { transform: rotate(360deg); } }
.employee-header { white-space: nowrap; }
.employee-header span { vertical-align: middle; }
.employee-add-button { display: inline-grid; place-items: center; width: 24px; height: 24px; min-height: 24px; margin-left: 7px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.16); color: #fff; font-size: 18px; font-weight: 900; line-height: 1; vertical-align: middle; box-shadow: none; }
.employee-add-button:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
@media (max-width: 1200px) { .active-job-strip .reload-data-button { flex: 0 0 34px; } }

/* Polish actions principales */
.import-day-group { display: inline-flex; align-items: center; gap: 0; min-height: 40px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(0,0,0,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.import-day-group .import-day-control { min-height: 38px; border: 0; border-radius: 0; background: transparent; padding: 0 8px 0 10px; }
.import-day-group #importPreviousDayButton { min-height: 40px; height: 40px; border-width: 0 0 0 1px; border-radius: 0; border-left-color: rgba(255,255,255,.26); background: rgba(255,255,255,.12); }
.import-day-group #importPreviousDayButton:hover { background: rgba(255,255,255,.22); transform: none; }
.employee-add-button { background: #fff; color: var(--charl-blue); border-color: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.employee-add-button:hover { background: var(--charl-blue); border-color: var(--charl-blue); color: #fff; box-shadow: 0 4px 12px rgba(38,131,197,.34); transform: translateY(-1px) scale(1.06); }
.employee-add-button:focus-visible { outline: 3px solid rgba(38,131,197,.35); outline-offset: 2px; }
.active-job-strip #saveButton { min-width: 122px; background: #ffffff; border-color: rgba(255,255,255,.9); color: var(--charl-navy); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.active-job-strip #saveButton:hover { background: #eaf4fb; border-color: #ffffff; color: var(--charl-black); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.active-job-strip #approveButton { min-width: 148px; background: linear-gradient(135deg, #1f6f3d, #2f9b59); border-color: rgba(255,255,255,.46); color: #fff; box-shadow: 0 5px 16px rgba(20,92,48,.34); }
.active-job-strip #approveButton:hover { background: linear-gradient(135deg, #185a31, #27874b); box-shadow: 0 7px 20px rgba(20,92,48,.42); }
.active-job-strip #approveButton::before { content: "✓"; margin-right: 6px; font-weight: 900; }
@media (max-width: 1200px) { .import-day-group { flex: 1 1 280px; } .import-day-group #importPreviousDayButton { flex: 1 1 auto; } .active-job-strip #saveButton, .active-job-strip #approveButton { flex: 1 1 150px; } }
