﻿/* ===== ORA Allevamenti - Custom Styles ===== */

:root {
  --sidebar-width: 250px;
  --navbar-height: 56px;
  --sidebar-bg: #1a2035;
  --sidebar-text: #c8cfe0;
  --sidebar-active: #4e73df;
  --sidebar-hover: #2d3a56;
  --primary: #4e73df;
  --success: #1cc88a;
  --danger: #e74a3b;
  --warning: #f6c23e;
  --info: #36b9cc;
}

/* ===== BODY ===== */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6fc;
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar-ora {
  background-color: var(--sidebar-bg) !important;
  height: var(--navbar-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-bottom: none !important;
}

.navbar-main {
  z-index: 2100;
}

.navbar-ora .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.navbar-ora .nav-link {
  color: var(--sidebar-text) !important;
}

.navbar-ora .nav-link:hover {
  color: #fff !important;
}

/* Logo box nella navbar */
.navbar-logo-box {
  background-color: #2a2a2a;
  width: 52px;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.navbar-logo-box img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.navbar-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

/* Pulsanti lingua */
.btn-lang {
  background: transparent;
  color: #aaa;
  border: 1px solid #666;
  border-radius: 3px !important;
  font-size: 0.82rem;
  font-weight: 600;
  width: 36px;
  height: 28px;
  padding: 0;
  line-height: 1;
  text-align: center;
  transition: all 0.15s;
}

.btn-lang:hover {
  color: #fff;
  border-color: #aaa;
}

.btn-lang-active {
  background: #fff !important;
  color: #1a2035 !important;
  border-color: #fff !important;
}

/* Dropdown utente */
.user-dropdown-wrap {
  position: relative;
}

.user-dropdown-icon {
  cursor: pointer !important;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2000;
  overflow: hidden;
}

.user-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background 0.15s;
  cursor: pointer !important;
}

.user-dropdown-item:hover {
  background: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.user-dropdown-item.active,
.user-dropdown-item.active:hover {
  background: #c0392b !important;
  color: #fff !important;
  text-decoration: none !important;
}

.user-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
}

/* Pulsante Esci */
.btn-esci {
  background: transparent;
  color: #fff;
  border: 1px solid #888;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.28rem 0.9rem;
  transition: all 0.15s;
}

.btn-esci:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background-color: #fff;
  overflow-y: auto;
  z-index: 1020;
  border-right: 1px solid #e0e0e0;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* ===== SIDENAV ===== */
.sidenav {
  display: flex;
  flex-direction: column;
}

.sidenav a {
  color: #333 !important;
  text-decoration: none !important;
}

/* Homepage */
.sidenav-home {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.15s;
}

.sidenav-home:hover {
  background: #000 !important;
  color: #fff !important;
}

.sidenav-home.active {
  background-color: #c0392b !important;
  color: #fff !important;
  font-weight: 600;
}

.sidenav-home.active:hover {
  background-color: #c0392b !important;
}

/* Ciclo header */
.sidenav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  user-select: none;
  background: #fff;
}

.sidenav-group-header:hover {
  background: #000 !important;
  color: #fff !important;
}

.sidenav-group-header:hover i {
  color: #fff !important;
}

.sidenav-group-header i {
  font-size: 0.65rem;
  color: #999;
  opacity: 0;
  transition: opacity 0.15s;
}

.sidenav-group-header:hover i {
  opacity: 1;
}

/* Submenu box */
.sidenav-submenu {
  margin: 0.5rem 0.8rem 0.5rem;
  border: 1px solid #ddd;
  background: #fff;
}

.sidenav-subitem {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.1s;
}

.sidenav-subitem:last-child {
  border-bottom: none;
}

.sidenav-subitem:hover {
  background: #000 !important;
  color: #fff !important;
}

.sidenav-subitem.active {
  background-color: #c0392b !important;
  color: #fff !important;
  font-weight: 600;
}

.sidenav-subitem.active:hover {
  background-color: #c0392b !important;
}

/* Separatore dopo il gruppo Ciclo */
.sidenav-group {
  border-bottom: 1px solid #e0e0e0;
}

/* Voci normali */
.sidenav-item {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  transition: background 0.15s;
}

.sidenav-item:hover {
  background: #000 !important;
  color: #fff !important;
}

.sidenav-item.active {
  background-color: #c0392b !important;
  color: #fff !important;
  font-weight: 600;
}

.sidenav-item.active:hover {
  background-color: #c0392b !important;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: fixed;
  top: var(--navbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background-color: #f4f6fc;
  z-index: 1035;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sidebar-bg);
  margin: 0;
}

/* ===== CARDS ===== */
.ora-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: none;
  margin-bottom: 1.5rem;
}

.ora-card .card-header {
  background: #fff;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: var(--sidebar-bg);
  border-radius: 8px 8px 0 0 !important;
  padding: 0.9rem 1.2rem;
}

/* ===== TABLES ===== */
.ora-table {
  font-size: 0.875rem;
}

.ora-table thead th {
  background-color: #f8f9fc;
  color: #5a5c69;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
  padding: 0.8rem 1rem;
  white-space: nowrap;
}

.ora-table tbody tr:hover {
  background-color: #f0f3ff;
}

.ora-table tbody td {
  padding: 0.65rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== BADGES ===== */
.badge-attivo {
  background-color: #d4edda;
  color: #155724;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

.badge-inattivo {
  background-color: #f8d7da;
  color: #721c24;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

.badge-maschio {
  background-color: #cce5ff;
  color: #004085;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

.badge-femmina {
  background-color: #fce4ec;
  color: #880e4f;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

.badge-positivo {
  background-color: #f8d7da;
  color: #721c24;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

.badge-negativo {
  background-color: #d4edda;
  color: #155724;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn-ora-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-ora-primary:hover {
  background-color: #3d5fcf;
  border-color: #3d5fcf;
  color: #fff;
}

/* ===== STATS CARDS (Homepage) ===== */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
}

.stat-card.success {
  border-left-color: var(--success);
}

.stat-card.danger {
  border-left-color: var(--danger);
}

.stat-card.warning {
  border-left-color: var(--warning);
}

.stat-card.info {
  border-left-color: var(--info);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sidebar-bg);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* ===== PAGE LOADING OVERLAY ===== */
.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-overlay p {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.03em;
}

.dots-spinner {
  position: relative;
  width: 52px;
  height: 52px;
}

.dots-spinner > div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.15;
  animation: dots-fade 1.2s ease-in-out infinite;
}

.dots-spinner > div:nth-child(1) { transform: rotate(0deg)   translateY(-20px); animation-delay: 0s; }
.dots-spinner > div:nth-child(2) { transform: rotate(45deg)  translateY(-20px); animation-delay: -1.05s; }
.dots-spinner > div:nth-child(3) { transform: rotate(90deg)  translateY(-20px); animation-delay: -0.9s; }
.dots-spinner > div:nth-child(4) { transform: rotate(135deg) translateY(-20px); animation-delay: -0.75s; }
.dots-spinner > div:nth-child(5) { transform: rotate(180deg) translateY(-20px); animation-delay: -0.6s; }
.dots-spinner > div:nth-child(6) { transform: rotate(225deg) translateY(-20px); animation-delay: -0.45s; }
.dots-spinner > div:nth-child(7) { transform: rotate(270deg) translateY(-20px); animation-delay: -0.3s; }
.dots-spinner > div:nth-child(8) { transform: rotate(315deg) translateY(-20px); animation-delay: -0.15s; }

@keyframes dots-fade {
  0%, 39%, 100% { opacity: 0.15; }
  40%            { opacity: 1;    }
}


/* ===== FORMS ===== */
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #5a5c69;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* ===== LOGIN PAGE ===== */
.navbar-login {
  box-shadow: none !important;
  border-bottom: none !important;
  z-index: auto !important;
}

.login-page-body {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-card {
  background: #fff;
  padding: 2rem 2.5rem 1.5rem;
  width: 100%;
  max-width: 360px;
}

.login-logo {
  text-align: center;
  margin-bottom: 1.2rem;
}

.login-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  padding: 4px;
}

.login-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  color: #222;
  margin-bottom: 1.5rem;
}

.login-field {
  margin-bottom: 1rem;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
  margin-bottom: 0.3rem;
  font-weight: 400;
}

.login-field input,
.login-password-wrap input,
.login-input {
  width: 100%;
  display: block;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 0.9rem !important;
  padding: 0.45rem 0.75rem !important;
  box-shadow: none !important;
  outline: none;
  background: #fff;
}

.login-field input:focus,
.login-password-wrap input:focus,
.login-input:focus {
  border-color: #aaa !important;
  box-shadow: none !important;
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap input {
  padding-right: 2.5rem !important;
}

.login-input-wrap {
  position: relative;
}

.login-field input.login-input-invalid,
.login-input-invalid,
.login-input.invalid {
  border-color: #dc3545 !important;
}

.login-field input.login-input-valid,
.login-input-valid {
  border-color: #28a745 !important;
}

.login-field-error-icon {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #dc3545;
  font-size: 0.9rem;
  pointer-events: none;
}

.login-field-valid-icon {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-size: 0.9rem;
  pointer-events: none;
}

.login-field-error-msg {
  color: #dc3545;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.25rem;
}

.app-input-wrapper {
  position: relative;
}

.client-field-error-msg {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  color: #dc3545;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1;
  margin-top: 1px;
  pointer-events: none;
}

.login-eye-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
}

.login-eye-btn:hover {
  color: #333;
}

.login-forgot {
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
}

.login-forgot:hover {
  text-decoration: underline;
}

.login-btn-submit {
  background-color: #c0696b !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0;
  border-radius: 4px;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.login-btn-submit:hover:not(:disabled) {
  background-color: #a8484a !important;
}

.login-btn-submit:disabled {
  opacity: 0.75;
}

.login-btn-blocked,
.login-btn-blocked:disabled,
.login-btn-blocked:hover {
  opacity: 0.75;
  pointer-events: all !important;
  cursor: not-allowed !important;
}

.login-footer {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: #aaa;
}

/* ===== INLINE EDITING ===== */
.edit-cell input {
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.875rem;
  width: 100%;
}

/* ===== MODAL ===== */
.modal-header-ora {
  background-color: var(--sidebar-bg);
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.modal-header-ora .btn-close {
  filter: invert(1);
}

/* ===== CAPANNONE PAGE ===== */
.cap-page {
  padding: 1.5rem;
}

.cap-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cap-filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  white-space: nowrap;
}

.cap-select {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
  padding: 0.25rem 2rem 0.25rem 0.25rem;
  outline: none;
  cursor: pointer;
  min-width: 200px;
}

.cap-select:focus {
  border-bottom-color: #c0392b;
}

.cap-add-row {
  margin-bottom: 0.5rem;
}

.cap-btn-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #c0392b;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cap-btn-add:hover {
  background-color: #a93226;
}

.cap-table-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-bottom: none;
}

.cap-table {
  width: 100%;
  border-collapse: collapse;
}

.cap-table thead tr {
  border-bottom: 1px solid #ddd;
}

.cap-table th {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  text-align: left;
  background: #fff;
}

.cap-th-icon {
  width: 80px;
}

.cap-row {
  border-bottom: 1px solid #f0f0f0;
}

.cap-row:hover {
  background: #fafafa;
}

.cap-row-editing {
  background-color: #c0392b !important;
  border-bottom: 1px solid #a93226;
}

.cap-row-editing td {
  color: #fff;
}

.cap-td-icon {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.cap-table td {
  padding: 0.5rem 1rem;
  vertical-align: middle;
}

.cap-cell-value {
  display: block;
  border-bottom: 1px dotted #bbb;
  color: #333;
  font-size: 0.875rem;
  min-width: 60px;
  padding-bottom: 2px;
}

.cap-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-right: 2px;
}

.cap-edit {
  color: #555;
}

.cap-edit:hover {
  color: #222;
}

.cap-save, .cap-delete, .cap-cancel {
  color: #fff;
}

.cap-save {
  background: rgba(255,255,255,0.2);
}

.cap-delete {
  background: rgba(255,255,255,0.2);
}

.cap-cancel {
  background: rgba(255,255,255,0.2);
}

.cap-save:hover, .cap-delete:hover, .cap-cancel:hover {
  background: rgba(255,255,255,0.35);
}

.cap-inline-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
  padding: 2px 0;
}

.cap-inline-input:disabled {
  opacity: 0.7;
  cursor: default;
}

.cap-inline-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.cap-empty {
  text-align: center;
  color: #999;
  padding: 2rem;
  font-style: italic;
}

.cap-footer {
  background-color: #c0392b;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Modal Capannone */
.cap-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cap-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cap-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}

.cap-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.cap-modal-close:hover {
  color: #333;
}

.cap-modal-body {
  padding: 1.4rem;
}

.cap-form-row {
  margin-bottom: 1.2rem;
}

.cap-form-row label {
  display: block;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 0.4rem;
}

.cap-form-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
}

.cap-form-input:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.15);
}

.cap-modal-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.cap-btn-salva {
  background-color: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cap-btn-salva:hover {
  background-color: #a93226;
}

.cap-btn-salva:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ===== CLIENT TABS ===== */
.client-tab-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.client-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none !important;
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.1s;
}

.client-tab:hover {
  background: #000;
  color: #fff;
}

.client-tab-active {
  background-color: #c0392b !important;
  color: #fff !important;
  font-weight: 500;
}

.client-tab-active:hover {
  background-color: #a93226 !important;
  color: #fff !important;
}

/* ===== CLIENT CREATE FORM ===== */
.client-form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 2rem 2.5rem;
  max-width: 750px;
  margin: 0 0 1.5rem;
}

.client-form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-form-row-btn {
  align-items: start;
}

.client-form-icon {
  color: #000;
  font-size: 1rem;
  flex-shrink: 0;
}

.app-input-wrapper-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-input-wrapper-icon .client-form-ctrl,
.app-input-wrapper-icon .app-input-viewonly {
  flex: 1;
  min-width: 0;
}

.client-form-label {
  font-size: 0.9rem;
  color: #333;
  font-weight: 400;
}

.client-form-ctrl {
  max-width: 400px;
}

.client-required {
  color: #c0392b;
  font-weight: 600;
}

.client-btn-hint {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 2px;
  line-height: 1.3;
  max-width: 220px;
}

.client-btn-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
}

.client-btn-wrap .client-form-ctrl {
  flex: 1;
  max-width: none;
  text-align: center;
}

.client-btn-action {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== CLIENT CUSTOM SELECT (NSelect component) ===== */
.client-custom-select {
  position: relative;
  min-width: 0;
}

.client-custom-select-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.client-custom-select-trigger {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #212529;
  text-align: center;
  line-height: 1.5;
}

.client-custom-select-trigger span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-custom-select-trigger.no-search span {
  text-align: center;
}

.client-custom-select-trigger.no-search span.select-placeholder {
  text-align: left;
}

.client-custom-select-trigger:hover {
  border-color: #aaa;
}

.client-custom-select-trigger.open {
  border-color: #c0392b;
}

.client-custom-select-trigger:disabled,
.client-custom-select-trigger.disabled {
  background: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}

.client-custom-select-chevron {
  font-size: 0.75rem;
  color: #666;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.client-custom-select-chevron.open {
  transform: rotate(180deg);
}

.client-custom-select-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
}

.client-custom-select-search {
  display: block;
  width: 100%;
  border: none;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}

.client-custom-select-divider {
  height: 1px;
  background: #dee2e6;
  margin: 0.4rem 0.75rem;
}

.client-custom-select-selected {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 500;
}

.client-custom-select-selected:hover {
  background: #a93226;
}

.client-custom-select-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.client-custom-select-item {
  padding: 0.4rem 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: #333;
  text-align: center;
}

.client-custom-select-item:hover {
  background: #f5f5f5;
}

.client-custom-select-item.active {
  color: inherit;
  font-weight: inherit;
}

.client-custom-select-item-selected {
  padding: 0.4rem 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.client-custom-select-item-selected:hover {
  background: #a93226;
}


/* ===== CLIENT GRID (NGrid component) ===== */
.client-grid-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.08);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.client-grid-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  border-radius: 8px 8px 0 0;
}

.client-grid-table {
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.82rem;
}

.client-grid-table thead tr {
  border-bottom: 2px solid #e0e0e0;
}

.client-grid-table thead th {
  padding: 0.3rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
  vertical-align: top;
}

.client-grid-th-sort {
  cursor: pointer;
  user-select: none;
}

.client-grid-th-content:has(.client-grid-filter-input) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 2.5rem;
}

.client-grid-filter-input {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  width: 100%;
  outline: none;
  padding: 1px 2px;
  margin-top: 4px;
  text-align: center;
}


.client-grid-th-sort:hover {
  background: #f5f5f5 !important;
}



.client-sort-icon {
  color: #ccc;
  margin-left: 4px;
  font-size: 0.7rem;
}

.client-sort-active {
  color: #c0392b;
}

.client-grid-table tbody tr {
  border-bottom: 1px solid #ccc;
}

.client-grid-row:nth-child(odd) {
  background: #f0f0f0;
}

.client-grid-row:hover {
  background: #000 !important;
}

.client-grid-row:hover td {
  color: #fff !important;
}

.client-grid-table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  text-align: center;
  color: #333;
}

.client-grid-empty {
  text-align: left !important;
  padding: 1.2rem 1rem !important;
  color: #666;
  font-size: 0.85rem;
}

.client-grid-action-cell {
  width: 100px;
  padding: 0.3rem 0.4rem !important;
  white-space: nowrap;
}

.client-grid-form-action-cell {
  width: 36px;
  min-width: 36px;
  padding: 0.2rem !important;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.client-grid-form-action-cell .client-grid-btn-add {
  display: block;
  margin: 0 auto;
}

.client-grid-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s;
}

.client-grid-btn-add {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  color: #c0392b;
  line-height: 1;
  transition: color 0.15s;
}

.client-grid-btn-add:hover {
  color: #a93226;
}

.client-grid-btn-edit {
  color: #555;
}

.client-grid-btn-edit:hover {
  background: #f0f0f0;
  color: #222;
}

.client-grid-btn-boxlist {
  color: #333;
}

.client-grid-btn-boxlist:hover {
  background: #f0f0f0;
  color: #333;
}

.client-grid-row:hover .client-grid-btn-boxlist {
  color: #fff;
}

.client-grid-row:hover .client-grid-btn-boxlist:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.client-grid-row:hover .client-grid-btn-edit {
  color: #fff;
}

.client-grid-row:hover .client-grid-btn-edit:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.client-grid-row {
  cursor: pointer;
}

.client-grid-row-selected {
  background: #c0392b !important;
  cursor: pointer;
}

.client-grid-row-selected td {
  color: #fff !important;
}

.client-grid-row-selected:hover {
  background: #c0392b !important;
}

.client-grid-row-selected:hover td {
  color: #fff !important;
}

.client-grid-action-selected {
  width: 70px !important;
  white-space: nowrap;
}

.client-grid-btn-cancel {
  color: #fff;
}

.client-grid-btn-cancel:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.client-grid-btn-delete-sel {
  color: #fff;
}

.client-grid-btn-delete-sel:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.client-grid-btn-save {
  color: #fff;
}

.client-grid-btn-save:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.client-grid-cell-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  border-radius: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  padding: 0;
  width: 100%;
  height: 1.4em;
  box-sizing: border-box;
  outline: none;
  text-align: center;
}

.client-grid-cell-input:focus {
  border-bottom-color: #fff;
  box-shadow: none;
}

.client-grid-cell-input[type="number"] {
  -moz-appearance: textfield;
}

.client-grid-cell-input[type="number"]::-webkit-outer-spin-button,
.client-grid-cell-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.client-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c0392b;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.client-grid-pagination {
  display: flex;
  align-items: center;
  gap: 2px;
}

.client-grid-page-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  min-width: 28px;
  transition: background 0.15s;
}

.client-grid-page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
}

.client-grid-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.client-grid-page-active {
  background: rgba(255,255,255,0.3) !important;
  font-weight: 700;
}

/* ===== NGRID FORM ===== */
.client-grid-form-table {
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.82rem;
  border: 1px solid #ccc;
}

.client-grid-form-table thead tr {
  border-bottom: 2px solid #d0d0d0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.client-grid-form-table thead th {
  padding: 0.6rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  background: #f8f8f8;
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid #ccc;
}

.client-grid-form-table tbody tr {
  border-bottom: 1px solid #ccc;
}

.client-grid-form-row:nth-child(odd) {
  background: #d8d8d8;
}

.client-grid-form-row:nth-child(even) {
  background: #ebebeb;
}

.client-grid-form-row:hover {
  background: #b8b8b8 !important;
}

.client-grid-form-row:hover td {
  color: #222 !important;
}

.client-grid-form-table tbody td {
  padding: 0.2rem 0.4rem;
  vertical-align: middle;
  text-align: left;
  color: #333;
  border: 1px solid #ccc;
}

.client-grid-form-table td .client-form-row {
  display: block;
  margin-bottom: 0;
  grid-template-columns: unset;
  gap: 0;
  min-width: 0;
}

.client-grid-form-table td .client-form-label {
  display: none;
}

.client-grid-form-table td .client-form-ctrl {
  max-width: none;
}

.client-grid-form-table td .client-custom-select-trigger {
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  background: inherit;
  border-color: #aaa;
}

.client-grid-form-table td .client-datepicker {
  min-width: 0;
}

.client-grid-form-table td .client-datepicker-input-group {
  min-width: 0;
  overflow: hidden;
  background: inherit;
}

.client-grid-form-table td .client-datepicker-input {
  min-width: 0;
  padding: 0.2rem 0.3rem;
  font-size: 0.82rem;
  background: inherit;
}

.client-grid-form-table td .form-control {
  padding: 0.2rem 0.4rem;
  font-size: 0.82rem;
  background: inherit;
  border-color: #aaa;
}

.client-grid-form-table .client-custom-select-dropdown {
  z-index: 100;
  min-width: 200px;
}

.client-grid-form-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
  border-radius: 8px 8px 0 0;
}

.client-grid-form-noscroll {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

/* ===== HAMBURGER ===== */
.btn-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 0 0.75rem;
  cursor: pointer;
  line-height: var(--navbar-height);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.btn-hamburger:hover {
  color: #ccc;
}

/* ===== SIDEBAR OVERLAY MOBILE ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
    z-index: 1020;
  }

  .sidebar.sidebar-mobile-open {
    display: block;
    z-index: 1050;
  }

  .main-content {
    left: 0;
  }

  .client-form-card {
    padding: 1rem 1rem;
  }

  .client-form-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin-bottom: 1rem;
  }

  .app-input-wrapper-icon {
    gap: 0.4rem;
  }

  .client-form-ctrl {
    max-width: 100%;
  }

  .client-bdn-hint {
    max-width: 100%;
  }

  .client-bdn-wrap {
    max-width: 100%;
  }
}

/* ── AppInputText ── */
.app-input-valid {
  border-color: #27ae60 !important;
}

/* ── AppInputText placeholder ── */
.app-input-text {
  text-align: center;
}

.app-input-text::placeholder {
  color: #bbb;
}

.app-input-viewonly {
  text-align: center;
  padding: 4px 0;
  border-bottom: 1px dashed #bbb;
  color: #aaa;
  min-height: 28px;
}

/* ===== MOBILE CARD LIST ===== */
.client-mobile-search {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
}

.client-mobile-search input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
}

.client-mobile-search input:focus {
  border-color: #c0392b;
}

.client-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 16px;
}

.client-mobile-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
}

.client-mobile-list > .client-mobile-card:nth-child(even) {
  background: #f0f0f0;
}

.client-mobile-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.client-mobile-card-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px;
}

.client-mobile-card-address {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 8px;
}

.client-mobile-card-address i {
  color: #c0392b;
  margin-right: 4px;
}

.client-mobile-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: #fde8e8;
  color: #c0392b;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
  font-weight: 500;
}

.client-mobile-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.client-mobile-card-actions .btn {
  flex: 1;
  min-height: 44px;
  font-size: 0.85rem;
}

/* ===== MOBILE DETAIL PANEL ===== */
.client-mobile-detail {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 900;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.client-mobile-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #c0392b;
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.client-mobile-detail-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  min-height: 44px;
  min-width: 44px;
}

.client-mobile-detail-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.client-mobile-detail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-mobile-detail-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
}

.client-mobile-detail-section h6 {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0e0e0;
  padding-bottom: 6px;
}

.client-mobile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.88rem;
}

.client-mobile-detail-row + .client-mobile-detail-row {
  border-top: 1px solid #f0f0f0;
}

.client-mobile-detail-label {
  color: #888;
}

.client-mobile-detail-value {
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
}

.client-mobile-detail-footer {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-mobile-detail-footer .btn {
  min-height: 48px;
  font-size: 0.9rem;
}

@media (min-width: 769px) {
  .client-mobile-search,
  .client-mobile-list,
  .client-mobile-detail {
    display: none !important;
  }
}

/* ===== CYCLE CODE WARNING ===== */
.cycle-code-warning {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  padding-left: calc(220px + 1rem);
  font-size: 0.8rem;
  color: #856404;
}

.cycle-code-warning i {
  margin-right: 4px;
}

@media (max-width: 768px) {
  .cycle-code-warning {
    padding-left: 0;
  }
}

/* ===== CLIENT DATE PICKER (NDatePicker component) ===== */
.client-datepicker {
  position: relative;
}

.client-datepicker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
}

/* Input group: campo testo + pulsante icona */
.client-datepicker-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.client-datepicker-input-group:focus-within,
.client-datepicker-input-group.open {
  border-color: #c0392b;
}

.client-datepicker-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #212529;
  background: transparent;
  min-width: 0;
  line-height: 1.5;
  text-align: center;
}

.client-datepicker-input::placeholder {
  color: #adb5bd;
  text-align: left;
}

.client-datepicker-icon-btn {
  background: none;
  border: none;
  border-left: 1px solid #ced4da;
  padding: 0 0.55rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.client-datepicker-icon-btn:hover {
  background: #f8f8f8;
}

/* Dropdown panel */
.client-datepicker-dropdown {
  position: fixed;
  min-width: 280px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 9999;
  padding: 8px;
}

/* Header: mese/anno + frecce */
.client-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.client-datepicker-month-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #212529;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.client-datepicker-nav-group {
  display: flex;
  gap: 2px;
}

.client-datepicker-nav {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: #555;
  font-size: 0.75rem;
  border-radius: 3px;
  line-height: 1;
}

.client-datepicker-nav:hover {
  background: #f0f0f0;
  color: #c0392b;
}

/* Griglia 7 colonne */
.client-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

/* Intestazioni giorno */
.client-datepicker-dayname {
  text-align: center;
  font-size: 0.72rem;
  color: #888;
  padding: 4px 0 6px;
  font-weight: 500;
}

/* Abbreviazione mese nelle celle vuote */
.client-datepicker-month-abbrev {
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

/* Celle giorno */
.client-datepicker-day {
  background: none;
  border: none;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.82rem;
  color: #212529;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px auto;
}

.client-datepicker-day:hover {
  background: #f0f0f0;
}

.client-datepicker-day.today {
  background: #d0d0d0;
  font-weight: 600;
}

.client-datepicker-day.selected {
  background: #c0392b;
  color: #fff;
  font-weight: 600;
}

.client-datepicker-day.selected:hover {
  background: #a93226;
}

/* ── NModal ───────────────────────────────────────────────────────────────── */
.client-nmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.client-nmodal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  padding: 2rem 1.75rem 1.25rem;
  text-align: center;
}

.client-nmodal-svg {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.4rem;
  stroke-width: 2;
  stroke-miterlimit: 10;
}

.client-nmodal-svg-success { stroke: #28a745; }
.client-nmodal-svg-error   { stroke: #c0392b; }

.client-nmodal-circle {
  fill: none;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: nmodal-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.client-nmodal-check {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: nmodal-stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

.client-nmodal-cross {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.5;
  stroke-dasharray: 57;
  stroke-dashoffset: 57;
  animation: nmodal-stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes nmodal-stroke {
  to { stroke-dashoffset: 0; }
}

.client-nmodal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.35rem;
}

.client-nmodal-message {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.client-nmodal-footer {
  display: flex;
  justify-content: flex-end;
}
