:root {
  --blue: #123c69;
  --blue-dark: #0b2c4d;
  --blue-soft: #eef5fb;
  --orange: #f37021;
  --orange-dark: #d85c16;
  --orange-soft: #fff0e6;
  --green: #198754;
  --green-soft: #eaf7f0;
  --red: #b9402c;
  --red-soft: #fff5f3;
  --text: #203448;
  --muted: #718096;
  --line: #dce4eb;
  --background: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(18, 60, 105, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand-mark {
  color: var(--orange);
}

.brand-name {
  color: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-link:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-link.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.nav-icon {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--blue);
}

/* Commun */

.main-content {
  width: min(100% - 48px, 1220px);
  flex: 1;
  margin: 0 auto;
  padding: 42px 0 52px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
}

.primary-button:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
}

.secondary-button:hover:not(:disabled) {
  border-color: #b7c7d5;
  background: var(--blue-soft);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.full-width {
  width: 100%;
}

.empty-state {
  padding: 26px;
  border: 1px dashed #b7c7d5;
  border-radius: 14px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.footer {
  width: min(100% - 48px, 1220px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  padding: 13px 16px;
  border: 1px solid rgba(18, 60, 105, 0.15);
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(18, 60, 105, 0.25);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* Accueil */

.welcome-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.welcome-section h1 {
  max-width: 730px;
  margin: 5px 0 9px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.5px;
}

.welcome-text {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.date-card {
  min-width: 220px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 7px 18px rgba(18, 60, 105, 0.05);
}

.date-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.date-card strong {
  color: var(--blue);
  font-size: 13px;
}

.quick-access-section {
  margin-bottom: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 26px;
  letter-spacing: -0.7px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  min-height: 215px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 60, 105, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
}

.tool-card:hover {
  border-color: #c7d5e1;
  box-shadow: 0 14px 28px rgba(18, 60, 105, 0.11);
  transform: translateY(-3px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 25px;
  font-weight: 800;
}

.tool-card-orange .tool-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.tool-card-blue .tool-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.tool-card-light .tool-icon {
  background: #eef1f5;
  color: var(--blue);
}

.tool-card h3 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 18px;
  letter-spacing: -0.45px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tool-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: auto;
  margin-left: auto;
  border-radius: 10px;
  background: var(--background);
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  transition: 0.2s ease;
}

.tool-card:hover .tool-arrow {
  background: var(--orange);
  color: var(--white);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  margin-top: auto;
  border-radius: 999px;
  background: #e9edf1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

/* Accueil : panneaux */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.news-panel,
.info-panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 23px;
  letter-spacing: -0.5px;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-item:last-child {
  padding-bottom: 0;
}

.news-date {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  text-align: center;
}

.news-date span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.news-date small {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.news-content {
  min-width: 0;
}

.news-category {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.category-blue {
  color: var(--blue);
}

.category-green {
  color: var(--green);
}

.news-content h3 {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.4;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.info-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 52px);
}

.info-illustration {
  position: relative;
  height: 125px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf6fd, #fff5ed);
}

.illustration-circle {
  position: absolute;
  border-radius: 50%;
}

.circle-one {
  width: 110px;
  height: 110px;
  top: -43px;
  left: -28px;
  background: rgba(243, 112, 33, 0.18);
}

.circle-two {
  width: 145px;
  height: 145px;
  right: -48px;
  bottom: -72px;
  background: rgba(18, 60, 105, 0.13);
}

.illustration-screen {
  position: absolute;
  top: 29px;
  left: 50%;
  width: 92px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 6px solid var(--blue);
  border-radius: 9px;
  background: var(--white);
  color: var(--orange);
  font-size: 25px;
  font-weight: 800;
  transform: translateX(-50%);
}

.illustration-screen::after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 38px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
  transform: translateX(-50%);
}

.info-content h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
}

.info-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}

.feature-list span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

/* Pages Services et Transfert */

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.page-hero h1 {
  margin: 5px 0 9px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.5px;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  color: var(--orange);
}

.hero-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 22px;
  font-size: 43px;
  font-weight: 800;
}

.hero-icon-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.hero-icon-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.service-search-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 22px;
}

.search-area {
  width: min(100%, 620px);
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.search-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
}

.search-field span {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-field input::placeholder {
  color: #a5b0bb;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: start;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}

.result-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.data-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.services-grid-qr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 18px rgba(18, 60, 105, 0.05);
}

.service-card-qr {
  min-height: 0;
  padding: 16px;
}

.service-card-qr-content {
  display: grid;
  gap: 13px;
}

.service-card-details {
  min-width: 0;
}

.service-category {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.service-card-details h2 {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.35px;
}

.service-code-display {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.service-code-display span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-code-display strong {
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.service-qr-code {
  width: 100%;
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.service-qr-code img,
.service-qr-code canvas {
  display: block;
  width: 124px !important;
  height: 124px !important;
  max-width: 100%;
}

.service-side-panel {
  padding: 20px;
}

.service-side-panel h2 {
  margin: 5px 0 10px;
  color: var(--blue);
  font-size: 20px;
}

.service-side-panel > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.side-panel-steps {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.side-panel-steps div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.side-panel-steps span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
}

.side-panel-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Transfert */

.transfer-simple-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: center;
  gap: 36px;
  max-width: 920px;
  padding: 34px;
  margin: 0 auto;
}

.transfer-simple-intro h2 {
  margin: 5px 0 10px;
  color: var(--blue);
  font-size: 27px;
  letter-spacing: -0.7px;
}

.transfer-simple-intro > p:not(.eyebrow) {
  max-width: 460px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.transfer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.transfer-simple-qr-area {
  display: grid;
  justify-items: center;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f4f9fd, #ffffff);
}

.real-qr-code {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.transfer-simple-qr {
  width: 290px;
  min-height: 290px;
  margin: 0;
}

.transfer-simple-qr img,
.transfer-simple-qr canvas {
  display: block;
  width: 270px !important;
  height: 270px !important;
  max-width: 100%;
}

.transfer-expiration {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.transfer-qr-error {
  max-width: 210px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.received-files-panel {
  max-width: 920px;
  padding: 28px;
  margin: 20px auto 0;
}

.received-files-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.received-files-header h2 {
  margin: 4px 0 7px;
  color: var(--blue);
  font-size: 23px;
}

.received-files-header p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.received-files-list {
  display: grid;
  gap: 10px;
}

.received-file-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfe;
}

.received-file-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.received-file-details {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.received-file-details strong {
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.received-file-details span {
  color: var(--muted);
  font-size: 11px;
}

.received-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.received-file-download {
  text-decoration: none;
}

.delete-file-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #efb4aa;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.delete-file-button:hover:not(:disabled) {
  border-color: #c5482f;
  background: #ffe9e5;
}

.delete-file-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Dépôt client */

.deposit-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top right, #dbeeff, transparent 38%),
    linear-gradient(135deg, #f5f7f9, #eef4f9);
}

.deposit-shell {
  width: min(100%, 560px);
}

.deposit-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(20, 47, 73, 0.12);
}

.deposit-brand {
  margin-bottom: 30px;
}

.deposit-card h1 {
  margin: 8px 0 10px;
  color: var(--blue);
  font-size: clamp(29px, 8vw, 38px);
  letter-spacing: -1px;
}

.deposit-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.deposit-state {
  padding: 40px 8px 22px;
  text-align: center;
}

.deposit-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.deposit-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
}

.error-icon {
  background: #fff0ed;
  color: #c5482f;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid var(--orange-soft);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.deposit-info-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.deposit-info-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.deposit-info-box strong {
  color: var(--blue);
  font-size: 12px;
  text-align: right;
}

.upload-dropzone {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px;
  border: 2px dashed #b9c9d8;
  border-radius: 16px;
  background: #fafcfe;
  color: var(--blue);
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.upload-dropzone strong {
  font-size: 15px;
}

.upload-dropzone > span:last-of-type {
  color: var(--muted);
  font-size: 11px;
}

.upload-icon {
  color: var(--orange);
  font-size: 36px;
  font-weight: 800;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.selected-files {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.selected-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f8;
  color: var(--muted);
  font-size: 11px;
}

.selected-file-name {
  overflow: hidden;
  color: var(--blue);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-security-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

/* Responsive */

@media (max-width: 1080px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .info-panel {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .service-side-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .topbar-status {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 67px;
    right: 14px;
    left: 14px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
  }

  .main-content {
    width: min(100% - 30px, 1220px);
    padding: 28px 0 40px;
  }

  .welcome-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .date-card {
    width: 100%;
  }

  .page-hero {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    font-size: 31px;
  }

  .service-search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .service-search-panel .secondary-button {
    width: 100%;
  }

  .transfer-simple-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .transfer-simple-qr-area {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    width: min(100% - 30px, 1220px);
    flex-direction: column;
    gap: 7px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 185px;
  }

  .services-grid-qr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card-qr {
    padding: 12px;
  }

  .service-card-details h2 {
    min-height: 38px;
    font-size: 14px;
  }

  .service-code-display strong {
    font-size: 17px;
  }

  .service-qr-code {
    min-height: 112px;
    padding: 7px;
  }

  .service-qr-code img,
  .service-qr-code canvas {
    width: 96px !important;
    height: 96px !important;
  }

  .received-files-panel {
    padding: 20px;
  }

  .received-files-header {
    flex-direction: column;
  }

  .received-files-header .secondary-button {
    width: 100%;
  }

  .received-file-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .received-file-actions {
    width: 100%;
  }

  .received-file-actions .secondary-button,
  .received-file-actions .delete-file-button {
    flex: 1;
    text-align: center;
  }

  .deposit-page {
    place-items: start center;
    padding: 14px;
  }

  .deposit-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 22px;
  }

  .welcome-section h1,
  .page-hero h1 {
    font-size: 29px;
  }

  .transfer-simple-panel {
    padding: 18px;
  }

  .transfer-simple-qr {
    width: 250px;
    min-height: 250px;
  }

  .transfer-simple-qr img,
  .transfer-simple-qr canvas {
    width: 230px !important;
    height: 230px !important;
  }
}

.news-loading {
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}


/* =========================================
   MODE MAGASIN : LISIBILITÉ ET TACTILE
   À placer tout en bas de css/styles.css
   ========================================= */

:root {
  --touch-target: 48px;
}

/* Base de lecture plus confortable */

body {
  font-size: 16px;
}

.main-content {
  width: min(100% - 56px, 1320px);
  padding-top: 48px;
  padding-bottom: 60px;
}

/* Navigation : zones tactiles plus généreuses */

.topbar {
  min-height: 84px;
  padding: 0 36px;
}

.brand {
  font-size: 29px;
}

.main-nav {
  gap: 10px;
}

.nav-link {
  min-height: var(--touch-target);
  padding: 0 17px;
  font-size: 14px;
}

.nav-icon {
  font-size: 21px;
}

.topbar-status {
  gap: 9px;
  font-size: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
}

/* Titres et introduction */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.9px;
}

.welcome-section {
  gap: 36px;
  margin-bottom: 42px;
}

.welcome-section h1,
.page-hero h1 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.12;
}

.welcome-text,
.page-hero p:not(.eyebrow) {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.65;
}

.date-card {
  min-width: 255px;
  gap: 7px;
  padding: 19px 21px;
  border-radius: 17px;
}

.date-label {
  font-size: 11px;
}

.date-card strong {
  font-size: 15px;
}

/* Sections et cartes de l'accueil */

.quick-access-section {
  margin-bottom: 38px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 30px;
}

.tool-grid {
  gap: 20px;
}

.tool-card {
  min-height: 245px;
  padding: 24px;
  border-radius: 20px;
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 23px;
  border-radius: 16px;
  font-size: 29px;
}

.tool-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.tool-card p {
  font-size: 13px;
  line-height: 1.6;
}

.tool-arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 24px;
}

.tool-badge {
  min-height: 29px;
  padding: 0 11px;
  font-size: 10px;
}

/* Panneaux et actualités */

.dashboard-grid {
  gap: 24px;
}

.news-panel,
.info-panel {
  padding: 28px;
}

.panel-header {
  margin-bottom: 22px;
}

.panel-header h2 {
  font-size: 27px;
}

.panel-label {
  min-height: 31px;
  padding: 0 12px;
  font-size: 10px;
}

.news-item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 17px;
  padding: 19px 0;
}

.news-date {
  width: 56px;
  min-height: 56px;
  border-radius: 14px;
}

.news-date span {
  font-size: 17px;
}

.news-date small {
  font-size: 9px;
}

.news-category {
  margin-bottom: 6px;
  font-size: 10px;
}

.news-content h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.news-content p {
  font-size: 12px;
  line-height: 1.65;
}

.info-illustration {
  height: 145px;
  margin-bottom: 22px;
  border-radius: 18px;
}

.info-content h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.info-content > p {
  font-size: 12px;
  line-height: 1.65;
}

.feature-list {
  gap: 12px;
}

.feature-list li {
  gap: 10px;
  font-size: 12px;
}

.feature-list span {
  width: 23px;
  height: 23px;
  font-size: 12px;
}

/* Boutons partagés */

.primary-button,
.secondary-button {
  min-height: var(--touch-target);
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
}

.delete-file-button {
  min-height: var(--touch-target);
  padding: 0 17px;
  border-radius: 12px;
  font-size: 13px;
}

/* Page Services */

.page-hero {
  margin-bottom: 34px;
}

.back-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-size: 48px;
}

.service-search-panel {
  gap: 22px;
  padding: 22px;
  margin-bottom: 26px;
}

.search-label {
  margin-bottom: 10px;
  font-size: 13px;
}

.search-field {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 13px;
}

.search-field span {
  font-size: 23px;
}

.search-field input {
  font-size: 14px;
}

.result-header {
  margin-bottom: 16px;
}

.result-header p {
  font-size: 13px;
}

.data-status {
  padding: 8px 12px;
  font-size: 10px;
}

.services-grid-qr {
  gap: 18px;
}

.service-card {
  border-radius: 18px;
}

.service-card-qr {
  padding: 20px;
}

.service-card-qr-content {
  gap: 17px;
}

.service-category {
  margin-bottom: 9px;
  font-size: 10px;
}

.service-card-details h2 {
  min-height: 48px;
  font-size: 19px;
}

.service-code-display {
  gap: 4px;
  padding-top: 13px;
}

.service-code-display span {
  font-size: 10px;
}

.service-code-display strong {
  font-size: 24px;
}

.service-qr-code {
  min-height: 168px;
  padding: 12px;
  border-radius: 14px;
}

.service-qr-code img,
.service-qr-code canvas {
  width: 144px !important;
  height: 144px !important;
}

/* Transfert de fichiers */

.transfer-simple-panel {
  gap: 44px;
  max-width: 1050px;
  padding: 40px;
}

.transfer-simple-intro h2 {
  font-size: 32px;
}

.transfer-simple-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
}

.transfer-status {
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
}

.transfer-simple-qr-area {
  padding: 28px;
  border-radius: 22px;
}

.transfer-simple-qr {
  width: 320px;
  min-height: 320px;
}

.transfer-simple-qr img,
.transfer-simple-qr canvas {
  width: 300px !important;
  height: 300px !important;
}

.transfer-expiration {
  margin-top: 20px;
  font-size: 13px;
}

.received-files-panel {
  max-width: 1050px;
  padding: 32px;
  margin-top: 24px;
}

.received-files-header h2 {
  font-size: 27px;
}

.received-files-header p:not(.eyebrow) {
  font-size: 15px;
}

.received-files-list {
  gap: 13px;
}

.received-file-item {
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
}

.received-file-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  font-size: 15px;
}

.received-file-details {
  gap: 5px;
}

.received-file-details strong {
  font-size: 15px;
}

.received-file-details span {
  font-size: 12px;
}

/* Dépôt client */

.deposit-card {
  max-width: 640px;
  padding: 36px;
}

.deposit-card h1 {
  font-size: clamp(32px, 8vw, 43px);
}

.deposit-intro {
  font-size: 16px;
  line-height: 1.65;
}

.deposit-info-box {
  gap: 10px 18px;
  padding: 18px;
}

.deposit-info-box span {
  font-size: 11px;
}

.deposit-info-box strong {
  font-size: 14px;
}

.upload-dropzone {
  min-height: 205px;
  gap: 9px;
  padding: 26px;
  border-radius: 18px;
}

.upload-dropzone strong {
  font-size: 17px;
}

.upload-dropzone > span:last-of-type {
  font-size: 13px;
}

.upload-icon {
  font-size: 42px;
}

.selected-file {
  padding: 13px 15px;
  font-size: 13px;
}

.deposit-security-note {
  font-size: 11px;
}

/* Footer et notifications */

.footer {
  width: min(100% - 56px, 1320px);
  padding: 22px 0 30px;
  font-size: 11px;
}

.toast {
  padding: 16px 19px;
  border-radius: 14px;
  font-size: 13px;
}

/* Adaptation tablette et téléphone */

@media (max-width: 1080px) {
  .tool-card {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 76px;
    padding: 0 20px;
  }

  .brand {
    font-size: 26px;
  }

  .menu-toggle {
    width: var(--touch-target);
    height: var(--touch-target);
  }

  .main-nav {
    top: 75px;
  }

  .main-content {
    width: min(100% - 32px, 1320px);
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .welcome-section h1,
  .page-hero h1 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .welcome-text,
  .page-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .date-card {
    min-height: var(--touch-target);
  }

  .tool-card {
    min-height: 205px;
  }

  .news-panel,
  .info-panel {
    padding: 22px;
  }

  .service-search-panel,
  .transfer-simple-panel {
    padding: 22px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    font-size: 35px;
  }

  .transfer-simple-qr {
    width: 280px;
    min-height: 280px;
  }

  .transfer-simple-qr img,
  .transfer-simple-qr canvas {
    width: 260px !important;
    height: 260px !important;
  }
}

@media (max-width: 640px) {
  .main-content,
  .footer {
    width: min(100% - 28px, 1320px);
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .tool-card {
    min-height: 190px;
  }

  .tool-icon {
    margin-bottom: 17px;
  }

  .services-grid-qr {
    grid-template-columns: 1fr;
  }

  .service-card-details h2 {
    min-height: auto;
    font-size: 20px;
  }

  .service-qr-code {
    min-height: 180px;
  }

  .service-qr-code img,
  .service-qr-code canvas {
    width: 156px !important;
    height: 156px !important;
  }
}

.sav-page {
  min-height: calc(100vh - 66px);
  padding: 32px 20px 64px;
  background: #f5f8fc;
}

.sav-page,
.sav-card {
  box-sizing: border-box;
}

.sav-page > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: #123e69;
}

.sav-card {
  margin-top: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 61, 96, 0.06);
}

.sav-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sav-icon {
  display: flex;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff0e8;
  color: #f26b2a;
  font-size: 28px;
}

.sav-heading .eyebrow {
  margin: 0;
  color: #f26b2a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sav-heading h1 {
  margin: 4px 0 0;
  color: #123e69;
  font-size: 30px;
  line-height: 1.15;
}

.sav-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.5;
}

#sav-label-form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: #123e69;
  font-weight: 800;
}

.form-group label strong {
  color: #dc2626;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #123e69;
  font: inherit;
  font-size: 17px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #f26b2a;
  box-shadow: 0 0 0 4px #ffeadc;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-buttons button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.quick-buttons button:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #d85d24;
}

.printer-settings {
  margin: 0;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.printer-settings legend {
  padding: 0 8px;
  color: #123e69;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
}

.copies-field {
  grid-column: 1 / -1;
  max-width: 150px;
  margin-bottom: 0;
}

.sav-status {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sav-status.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.sav-status.info {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.print-button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 0;
  border-radius: 16px;
  background: #f26b2a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
}

.print-button:hover {
  background: #d85d24;
}

@media (max-width: 640px) {
  .sav-card {
    padding: 22px;
  }

  .sav-heading {
    gap: 12px;
  }

  .sav-heading h1 {
    font-size: 25px;
  }

  .sav-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.elpopole-modal[hidden] {
  display: none;
}

.elpopole-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.elpopole-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 61, 0.72);
  backdrop-filter: blur(4px);
}

.elpopole-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  max-height: 88vh;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: elpopole-pop 180ms ease-out;
}

.elpopole-image {
  display: block;
  width: 100%;
  max-height: calc(88vh - 8px);
  object-fit: contain;
  background: #0c233d;
}

.elpopole-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #123e69;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease, background 150ms ease;
}

.elpopole-close:hover {
  background: #f37021;
  color: #ffffff;
  transform: scale(1.08);
}

@keyframes elpopole-pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
.current-time {
  display: block;
  margin-top: 4px;
  color: #f37021;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nff-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.nff-toolbar .search-area {
  flex: 1;
}

.nff-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-top: 20px;
}

.nff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nff-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(18, 60, 105, 0.05);
}

.nff-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ebf2;
}

.nff-card-header strong {
  color: #123c69;
  font-size: 20px;
}

.nff-card-section {
  margin-top: 16px;
}

.nff-card-section > span,
.nff-collaborator > span {
  display: block;
  color: #7b8aa0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nff-card-section p {
  margin: 5px 0 0;
  color: #123c69;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.nff-resolution p {
  color: #3d5877;
  font-weight: 600;
}

.nff-collaborator {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e5ebf2;
}

.nff-collaborator strong {
  display: block;
  margin-top: 4px;
  color: #f37021;
  font-size: 14px;
}

.nff-side-panel {
  align-self: start;
}

.nff-manager-modal[hidden] {
  display: none;
}

.nff-manager-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.nff-manager-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 61, 0.72);
  backdrop-filter: blur(4px);
}

.nff-manager-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.nff-manager-card h2 {
  margin: 5px 0 10px;
  color: #123c69;
}

.nff-manager-card > p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.nff-manager-card form {
  margin-top: 22px;
}

.nff-manager-card label {
  display: block;
  color: #123c69;
  font-weight: 800;
}

.nff-manager-card input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #123c69;
  font: inherit;
  outline: none;
}

.nff-manager-card input:focus {
  border-color: #f37021;
  box-shadow: 0 0 0 4px #ffeadc;
}

.nff-manager-card .print-button {
  margin-top: 18px;
}

.nff-manager-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #123c69;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.nff-manager-error {
  margin: 10px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nff-layout {
    grid-template-columns: 1fr;
  }

  .nff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nff-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nff-toolbar-actions {
    width: 100%;
  }

  .nff-toolbar-actions .secondary-button {
    flex: 1;
  }
}

.primary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f37021;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: #d95e16;
  transform: translateY(-1px);
}

.primary-button:disabled,
.print-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.nff-add-modal[hidden] {
  display: none;
}

.nff-add-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.nff-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 61, 0.72);
  backdrop-filter: blur(4px);
}

.nff-add-card {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.nff-add-card h2 {
  margin: 5px 0 10px;
  color: #123c69;
}

.nff-add-card > p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.nff-add-card form {
  margin-top: 22px;
}

.nff-add-card textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #123c69;
  font: inherit;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.nff-add-card textarea:focus {
  border-color: #f37021;
  box-shadow: 0 0 0 4px #ffeadc;
}

.nff-add-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #123c69;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.nff-add-error {
  margin: 10px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

.primary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f37021;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: #d95e16;
  transform: translateY(-1px);
}

.primary-button:disabled,
.print-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.nff-add-modal[hidden] {
  display: none;
}

.nff-add-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.nff-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 61, 0.72);
  backdrop-filter: blur(4px);
}

.nff-add-card {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.nff-add-card h2 {
  margin: 5px 0 10px;
  color: #123c69;
}

.nff-add-card > p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.nff-add-card form {
  margin-top: 22px;
}

.nff-add-card textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #123c69;
  font: inherit;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.nff-add-card textarea:focus {
  border-color: #f37021;
  box-shadow: 0 0 0 4px #ffeadc;
}

.nff-add-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #123c69;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.nff-add-error {
  margin: 10px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

/* Correctifs visuels NFF */

.nff-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 18px 20px;
}

.nff-toolbar .search-area {
  min-width: 0;
}

.nff-toolbar .search-label {
  display: block;
  margin-bottom: 8px;
}

.nff-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nff-toolbar-actions .primary-button,
.nff-toolbar-actions .secondary-button {
  min-height: 48px;
  white-space: nowrap;
}

.nff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 22px;
  margin-top: 20px;
}

.nff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nff-side-panel {
  width: auto;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
}

.nff-side-panel h2 {
  margin: 6px 0 14px;
  color: #123c69;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.nff-side-panel > p:not(.eyebrow) {
  margin: 0;
  color: #52677f;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nff-side-panel .feature-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.nff-side-panel .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #264565;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.nff-side-panel .feature-list span {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: #259653;
  font-size: 13px;
  font-weight: 800;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 16px;
}

#nff-result-count {
  margin: 0;
}

#nff-data-status {
  flex: 0 0 auto;
  text-align: right;
}

.nff-card {
  min-height: 240px;
  padding: 20px;
}

.nff-card-header strong {
  max-width: 68%;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 1100px) {
  .nff-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }

  .nff-side-panel {
    padding: 20px;
  }

  .nff-side-panel h2 {
    font-size: 23px;
  }
}

@media (max-width: 900px) {
  .nff-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nff-toolbar-actions {
    justify-content: flex-start;
  }

  .nff-layout {
    grid-template-columns: 1fr;
  }

  .nff-side-panel {
    width: auto;
  }
}

@media (max-width: 620px) {
  .nff-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nff-toolbar-actions .primary-button,
  .nff-toolbar-actions .secondary-button {
    width: 100%;
  }

  .nff-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  #nff-data-status {
    text-align: left;
  }
}

.nff-created-date {
  margin: 10px 0 16px;
  color: #7a8ca3;
  font-size: 12px;
  font-weight: 700;
}

.nff-created-date::before {
  content: "◷ ";
  color: #f36d21;
}

.notes-page {
  padding-bottom: 48px;
}

.notes-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 18px;
  padding: 20px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #ffffff;
}

.notes-select-group {
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
}

.notes-select-group label,
.note-modal-content label {
  color: #284866;
  font-size: 14px;
  font-weight: 800;
}

.notes-select-group select,
.note-modal-content input,
.note-modal-content select,
.note-modal-content textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cfdbe7;
  border-radius: 10px;
  background: #ffffff;
  color: #123c69;
  font: inherit;
}

.note-modal-content textarea {
  min-height: 130px;
  resize: vertical;
}

.notes-select-group select:focus,
.note-modal-content input:focus,
.note-modal-content select:focus,
.note-modal-content textarea:focus {
  outline: 3px solid rgba(243, 109, 33, 0.2);
  border-color: #f36d21;
}

.notes-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notes-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 16px;
  color: #284866;
}

#notes-alert-count {
  color: #c62828;
  font-size: 14px;
  font-weight: 800;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 18px;
}

.note-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 60, 105, 0.06);
}

.note-card.note-overdue {
  border-color: #f1aaaa;
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.1);
}

.note-card.note-today {
  border-color: #f7c478;
  box-shadow: 0 8px 22px rgba(243, 109, 33, 0.1);
}

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

.note-card-actions {
  display: flex;
  gap: 8px;
}

.note-icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #dbe5ee;
  border-radius: 9px;
  background: #ffffff;
  color: #284866;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.note-icon-button:hover {
  border-color: #f36d21;
  color: #f36d21;
}

.note-delete-button:hover {
  border-color: #c62828;
  color: #c62828;
}

.note-card h2 {
  margin: 18px 0 10px;
  color: #123c69;
  font-size: 20px;
  line-height: 1.25;
}

.note-content {
  margin: 0;
  color: #4f647a;
  line-height: 1.55;
  white-space: normal;
}

.note-content-empty {
  color: #8b9baa;
  font-style: italic;
}

.note-reminder {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4f8;
  color: #284866;
  font-size: 14px;
  font-weight: 800;
}

.reminder-overdue {
  background: #ffebeb;
  color: #b71c1c;
}

.reminder-today {
  background: #fff0df;
  color: #b85b12;
}

.note-card-footer {
  margin-top: auto;
  padding-top: 18px;
  color: #8b9baa;
  font-size: 12px;
}

.note-modal-content {
  width: min(100% - 32px, 580px);
}

.note-modal-content form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.note-modal-content small {
  color: #7a8ca3;
  font-size: 12px;
  font-weight: 600;
}

.form-error {
  margin: 4px 0;
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .notes-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notes-toolbar-actions {
    justify-content: space-between;
  }

  .notes-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* ========================================
   NOTES & RAPPELS
======================================== */

.notes-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(243, 112, 33, 0.1),
      transparent 32%
    ),
    var(--background);
}

.notes-dashboard {
  width: min(100% - 56px, 1320px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

.notes-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.notes-hero-copy {
  max-width: 760px;
}

.notes-kicker,
.notes-section-kicker {
  display: inline-block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.notes-hero h1 {
  margin: 6px 0 10px;
  color: var(--blue);
  font-size: clamp(36px, 4vw, 50px);
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.notes-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.notes-primary-button,
.notes-secondary-button {
  display: inline-flex;
  min-height: var(--touch-target, 48px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0 20px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.notes-primary-button {
  border: 1px solid var(--orange);
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(243, 112, 33, 0.22);
  color: var(--white);
}

.notes-primary-button:hover:not(:disabled) {
  background: var(--orange-dark);
  box-shadow: 0 10px 22px rgba(243, 112, 33, 0.28);
  transform: translateY(-1px);
}

.notes-secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
}

.notes-secondary-button:hover:not(:disabled) {
  border-color: #b7c7d5;
  background: var(--blue-soft);
}

.notes-primary-button:disabled,
.notes-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.notes-control-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notes-control-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notes-select-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 22px;
}

.notes-select-group {
  display: grid;
  min-width: 290px;
  gap: 8px;
}

.notes-select-group label,
.note-form-group label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.notes-select-group select,
.note-form-group input,
.note-form-group select,
.note-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  font: inherit;
}

.notes-select-group select,
.note-form-group input,
.note-form-group select {
  min-height: 48px;
  padding: 0 14px;
}

.note-form-group textarea {
  min-height: 140px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.notes-select-group select:focus,
.note-form-group input:focus,
.note-form-group select:focus,
.note-form-group textarea:focus {
  outline: 3px solid rgba(243, 112, 33, 0.17);
  border-color: var(--orange);
}

.notes-control-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notes-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.notes-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.notes-list-header h2 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 27px;
  letter-spacing: -0.7px;
}

.notes-alert-count {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 18px;
}

.note-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(18, 60, 105, 0.05);
  transition: 0.2s ease;
}

.note-card:hover {
  border-color: #c7d5e1;
  box-shadow: 0 14px 28px rgba(18, 60, 105, 0.11);
  transform: translateY(-3px);
}

.note-card.note-overdue {
  border-color: #efb4aa;
  background: linear-gradient(145deg, #ffffff 76%, #fff5f3);
}

.note-card.note-today {
  border-color: #f2c884;
  background: linear-gradient(145deg, #ffffff 76%, #fff8ed);
}

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

.note-card .service-category {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.note-card-actions {
  display: flex;
  gap: 7px;
}

.note-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  transition: 0.2s ease;
}

.note-icon-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.note-delete-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.note-card h2 {
  margin: 19px 0 10px;
  color: var(--blue);
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.note-content {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.note-content-empty {
  color: #9baab7;
  font-style: italic;
}

.note-reminder {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.reminder-overdue {
  background: var(--red-soft);
  color: var(--red);
}

.reminder-today {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.note-card-footer {
  margin-top: auto;
  padding-top: 18px;
  color: #8b9baa;
  font-size: 12px;
  font-weight: 600;
}

.notes-empty-state {
  display: grid;
  min-height: 270px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 26px;
  border: 1px dashed #b7c7d5;
  border-radius: 18px;
  background: #fbfcfd;
  text-align: center;
}

.notes-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 18px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 27px;
}

.notes-empty-state h2 {
  margin: 0;
  color: var(--blue);
  font-size: 21px;
}

.notes-empty-state p {
  max-width: 430px;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.note-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.note-modal[hidden] {
  display: none;
}

.note-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 61, 0.72);
  backdrop-filter: blur(4px);
}

.note-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.note-modal-panel h2 {
  margin: 7px 0 22px;
  color: var(--blue);
  font-size: 28px;
  letter-spacing: -0.8px;
}

.note-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--blue);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.note-modal-close:hover {
  background: var(--orange);
  color: var(--white);
}

.note-form {
  display: grid;
  gap: 16px;
}

.note-form-group {
  display: grid;
  gap: 8px;
}

.note-form-group label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.note-form-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.note-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 5px;
}

@media (max-width: 760px) {
  .notes-dashboard {
    width: min(100% - 32px, 1320px);
    padding: 34px 0 48px;
  }

  .notes-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 26px;
  }

  .notes-hero h1 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .notes-hero p {
    font-size: 15px;
  }

  .notes-primary-button {
    width: 100%;
  }

  .notes-control-card {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .notes-select-group {
    min-width: 0;
    width: 100%;
  }

  .notes-control-actions {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .notes-dashboard {
    width: min(100% - 28px, 1320px);
  }

  .notes-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .notes-list-header h2 {
    font-size: 24px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-modal-panel {
    padding: 26px 20px;
  }

  .note-form-actions {
    flex-direction: column-reverse;
  }

  .note-form-actions button {
    width: 100%;
  }
}

