:root {
  --primary: #1976D2;
  --primary-hover: #1565C0;
  --primary-light: #E3F2FD;
  --secondary: #2E5C73;
  --accent: #FF9800;
  --bg-main: #F4F7FB;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  
  /* Цвета светофора сроков поверок */
  --status-green: #10B981;
  --status-green-bg: #ECFDF5;
  --status-yellow: #F59E0B;
  --status-yellow-bg: #FFFBEB;
  --status-orange: #F97316;
  --status-orange-bg: #FFF7ED;
  --status-red: #EF4444;
  --status-red-bg: #FEF2F2;

  --sidebar-w: 260px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-control::placeholder {
  color: #94A3B8;
  opacity: 1;
  font-style: normal;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  padding: 2px;
}

.logo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.25);
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  display: block;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item.active {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.25);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.org-badge {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.inn-badge {
  background: #EEF2F6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscription-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--status-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--status-green);
}

.subscription-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--status-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Content Container */
.content-body {
  padding: 32px;
  flex: 1;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-title-box {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cards & Layout */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-white {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table.data-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

table.data-table tr:hover td {
  background: #F8FAFC;
}

/* Светофор поверок */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status.green {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.yellow {
  background: var(--status-yellow-bg);
  color: var(--status-yellow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.orange {
  background: var(--status-orange-bg);
  color: var(--status-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-status.red {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
  background: #EEF2F6;
  color: var(--secondary);
}

.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-success {
  background: var(--status-green);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger-sm {
  padding: 6px 10px;
  font-size: 12px;
  background: #FEE2E2;
  color: var(--status-red);
  border-radius: 6px;
}

.btn-danger-sm:hover {
  background: #FECACA;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* 3-Колоночная Форма Подачи Уведомления (в эргономике ЛицКонтроль) */
.form-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.form-search-box {
  width: 380px;
  position: relative;
}

.form-search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 13px;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94A3B8;
}

.form-header-title-wrap {
  text-align: right;
}

.form-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.5px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.form-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1200px) {
  .form-3col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .form-3col-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.custom-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  user-select: none;
}

.custom-check-label input[type="radio"],
.custom-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1976D2;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  margin-top: 8px;
}

.btn-add-item:hover {
  background: #1565C0;
  transform: translateY(-1px);
}

.btn-quick-kit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  transition: all 0.15s ease;
}

.btn-quick-kit:hover {
  background: #DBEAFE;
  color: #1E40AF;
}

.chips-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.chip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1E293B;
  transition: all 0.15s ease;
}

.chip-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.chip-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-item-title {
  font-weight: 600;
  color: #0F172A;
}

.chip-item-sub {
  font-size: 11px;
  color: #64748B;
}

.chip-remove-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  font-weight: bold;
  transition: background 0.15s ease;
}

.chip-remove-btn:hover {
  background: #FEE2E2;
}

.btn-submit-mchs {
  width: 100%;
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit-mchs:hover:not(:disabled) {
  background: #15803D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.btn-submit-mchs:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-mchs:disabled {
  background: #CBD5E1;
  color: #64748B;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.form-readiness-checklist {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
  transition: all 0.25s ease;
}

.form-readiness-checklist.ready {
  background: #F0FDF4;
  border-color: #86EFAC;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.1);
}

.form-readiness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  gap: 12px;
}

.form-readiness-checklist.ready .form-readiness-header {
  border-bottom-color: rgba(22, 163, 74, 0.2);
}

.form-readiness-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-readiness-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #78350F;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-readiness-checklist.ready .form-readiness-title {
  color: #14532D;
}

.form-readiness-icon {
  font-size: 16px;
  line-height: 1;
}

.norm-badge {
  font-size: 10px;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 1px 7px;
  border-radius: 12px;
  letter-spacing: 0;
}

.form-readiness-checklist.ready .norm-badge {
  background: #DCFCE7;
  color: #15803D;
  border-color: #BBF7D0;
}

.form-readiness-subtitle {
  font-size: 11px;
  color: #92400E;
  opacity: 0.85;
}

.form-readiness-checklist.ready .form-readiness-subtitle {
  color: #166534;
}

.form-readiness-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-readiness-status-badge.pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.form-readiness-status-badge.ready {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.form-readiness-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-readiness-item.valid {
  color: #166534;
  background: #F0FDF4;
  border-color: #DCFCE7;
}

.form-readiness-item.invalid {
  color: #B91C1C;
  font-weight: 600;
  background: #FEF2F2;
  border-color: #FEE2E2;
}

.form-readiness-item .readiness-icon {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 0;
}

.form-readiness-item.valid .readiness-icon {
  color: #16A34A;
}

.form-readiness-item.invalid .readiness-icon {
  color: #DC2626;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.modal-close {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Remote Engine / Аршин Search Box */
.arshin-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.arshin-result-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.arshin-result-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 90px;
  padding: 8px;
  font-size: 12px;
}

.calendar-day.today {
  border-color: var(--primary);
  background: var(--primary-light);
}

.calendar-event {
  background: var(--primary);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Стили блока аренды оборудования и актов */
.rental-calc-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.rental-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rental-calc-title {
  font-size: 12px;
  font-weight: 700;
  color: #0369A1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rental-calc-price {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

.rental-calc-details {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 10px;
}

.rental-doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-doc-download:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7;
  transform: translateY(-1px);
}

.btn-doc-download.primary {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}

.btn-doc-download.primary:hover {
  background: #0369A1;
  border-color: #0369A1;
  color: #FFFFFF;
}

.badge-rental {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Виджет нормативной проверки обеспеченности приборами МЧС */
.eq-audit-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.eq-audit-card.status-full {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.eq-audit-card.status-partial {
  background: #FEFCE8;
  border-color: #FEF08A;
}

.eq-audit-card.status-missing {
  background: #FEF2F2;
  border-color: #FECACA;
}

.eq-audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.eq-audit-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-audit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  gap: 8px;
}

.eq-audit-item.covered-own {
  border-left: 3px solid #0284C7;
}

.eq-audit-item.covered-rent {
  border-left: 3px solid #16A34A;
}

.eq-audit-item.missing {
  border-left: 3px solid #EF4444;
  background: #FFF5F5;
}

.eq-audit-item-info {
  flex: 1;
  min-width: 0;
}

.eq-audit-item-name {
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 4px;
}

.eq-audit-item-detail {
  font-size: 10px;
  color: #64748B;
  margin-top: 1px;
}

.eq-audit-item-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.eq-audit-item-badge.badge-own {
  background: #E0F2FE;
  color: #0369A1;
}

.eq-audit-item-badge.badge-rent {
  background: #DCFCE7;
  color: #15803D;
}

.eq-audit-item-badge.badge-missing {
  background: #FEE2E2;
  color: #B91C1C;
}

.eq-audit-item.stationary {
  border-left: 3px solid #94A3B8;
  background: #F8FAFC;
}

.eq-audit-item-badge.badge-stationary {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Двухвкладочная модель оборудования: Собственность vs Аренда */
.eq-tabs-container {
  display: flex;
  gap: 6px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.eq-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eq-tab-btn:hover {
  color: #0F172A;
}

.eq-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tab-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #475569;
  font-weight: 700;
}

.eq-tab-btn.active .tab-badge {
  background: #DCFCE7;
  color: #16A34A;
}

.eq-tab-panel {
  display: none;
}

.eq-tab-panel.active {
  display: block;
}

.eq-empty-msg {
  text-align: center;
  padding: 18px 12px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  margin-bottom: 12px;
}

.eq-select-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #F1F5F9;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-text-action:hover {
  text-decoration: underline;
}

/* Чекбоксы списка оборудования */
.eq-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 2px;
}

.eq-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.eq-checkbox-item:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.eq-checkbox-item.checked {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.eq-checkbox-item.expired-warning {
  border-left: 3.5px solid #DC2626 !important;
  background: #FFFDFD;
}

.eq-checkbox-item.expired-warning.checked {
  border-color: #F87171;
  background: #FEF2F2;
}

.eq-checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary);
}

.eq-item-info {
  flex: 1;
  min-width: 0;
}

.eq-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.eq-item-sub {
  font-size: 10px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

/* Бейджи региона и защиты от коллизий */
.region-kit-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.alert-conflict {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
}

.rental-payment-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.rental-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #0369A1;
  margin-bottom: 4px;
}

.selected-eq-summary {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
}

/* Стили Мастер-Админки */
.admin-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.admin-subnav-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-subnav-btn:hover {
  color: var(--primary);
  background: #F1F5F9;
}

.admin-subnav-btn.active {
  color: #FFFFFF;
  background: var(--primary);
}

.badge-kit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #EDE9FE;
  color: #6D28D9;
}

.badge-paid {
  background: #DCFCE7;
  color: #16A34A;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-invoiced {
  background: #FEF3C7;
  color: #D97706;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Вкладки реестра оборудования (Собственность / Аренда) */
.equipment-view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 12px;
}

.eq-filter-tab {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.eq-filter-tab:hover {
  background: #EDF2F7;
  color: var(--primary);
  border-color: #94A3B8;
}

.eq-filter-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(11, 44, 91, 0.2);
}

.eq-filter-tab .tab-count {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #E2E8F0;
  color: #334155;
  font-weight: 700;
}

.eq-filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.badge-ownership-own {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

.badge-ownership-rent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

/* ========================================================
   УМНЫЙ ПОИСК ПО РЕГИОНАЛЬНОСТИ И ПРОВЕРКА АДРЕСОВ МЧС
   ======================================================== */

.region-search-card {
  position: relative;
}

.region-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.region-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.region-search-input {
  width: 100%;
  padding: 10px 70px 10px 36px;
  font-size: 13px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.region-search-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #FFFFFF;
}

.region-search-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-region-icon {
  background: none;
  border: none;
  color: #94A3B8;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s;
}

.btn-region-icon:hover {
  background: #F1F5F9;
  color: #334155;
}

/* Выпадающий список регионов */
.region-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  max-height: 310px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px;
  display: none;
  scroll-behavior: smooth;
}

.region-dropdown.open {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.region-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.region-dropdown-item:hover,
.region-dropdown-item.focused {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.region-item-badge {
  flex-shrink: 0;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 26px;
  text-align: center;
  margin-top: 2px;
}

.region-item-content {
  flex: 1;
  min-width: 0;
}

.region-item-dept {
  font-weight: 600;
  font-size: 12.5px;
  color: #0F172A;
  margin-bottom: 2px;
  line-height: 1.3;
}

.region-item-sub {
  font-size: 11px;
  color: #64748B;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.region-match-tag {
  background: #FEF3C7;
  color: #92400E;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 10.5px;
}

.region-cities-preview {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: #64748B;
  font-size: 12px;
}

/* Карточка выбранного управления */
.selected-region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  border: 1.5px solid #0284C7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}

.selected-region-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.selected-region-code-badge {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.selected-region-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0369A1;
  line-height: 1.3;
}

.selected-region-subtitle {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.btn-change-region {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-change-region:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7;
}

/* Быстрые чипы регионов */
.region-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.region-quick-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.region-quick-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
}

.region-quick-chip.active {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
  font-weight: 600;
}

/* Индикатор определенного региона адреса */
.address-region-detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 8px;
  width: 100%;
}

.address-region-detected-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.address-region-detected-pill strong {
  color: #0F172A;
}

/* БАННЕР НЕСООТВЕТСТВИЯ РЕГИОНА И УПРАВЛЕНИЯ */
.region-mismatch-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF2F2 100%);
  border: 1.5px solid #F87171;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
  animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.mismatch-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  color: #991B1B;
  margin-bottom: 6px;
}

.mismatch-desc {
  font-size: 11.5px;
  color: #7F1D1D;
  line-height: 1.4;
  margin-bottom: 8px;
}

.mismatch-compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 11px;
}

.mismatch-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mismatch-item .tag-correct {
  background: #DCFCE7;
  color: #166534;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.mismatch-item .tag-wrong {
  background: #FEE2E2;
  color: #991B1B;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-fix-region-mismatch {
  width: 100%;
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-fix-region-mismatch:hover {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

/* БАННЕР ПОДТВЕРЖДЕНИЯ СООТВЕТСТВИЯ */
.region-match-banner {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* МУЛЬТИ-ВЫБОР ВИДОВ РАБОТ ДЛЯ КОМПЛЕКСНОГО ДОГОВОРА */
.btn-add-work-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0284C7;
  background: #F0F9FF;
  border: 1px dashed #38BDF8;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-work-type:hover {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
  transform: translateY(-1px);
}

.additional-work-type-item {
  animation: fadeIn 0.25s ease;
}

.btn-remove-wt {
  width: 36px;
  height: 36px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #DC2626;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-remove-wt:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #B91C1C;
  transform: scale(1.04);
}

/* Элегантный интерактивный тултип */
.custom-tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

#rentalsTable tbody tr,
#rentalsTable td {
  overflow: visible !important;
}

#rentalsTable tbody tr:hover {
  position: relative;
  z-index: 100;
}

.custom-tooltip-wrapper .custom-tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  transform: translateY(6px);
  background: #0F172A;
  color: #F8FAFC;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 500;
  width: 260px;
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.45), 0 8px 12px -4px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999 !important;
}

/* Стрелочка тултипа */
.custom-tooltip-wrapper .custom-tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 28px;
  border-width: 6px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

.custom-tooltip-wrapper:hover {
  z-index: 9999 !important;
}

.custom-tooltip-wrapper:hover .custom-tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Бейджи владельца оборудования и типов партнёров */
.badge-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #E0F2FE;
  color: #0369A1;
}

.badge-partner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #B45309;
}

.badge-partner-consulting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #DCFCE7;
  color: #15803D;
}

.badge-partner-landlord {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #FEF3C7;
  color: #B45309;
}

.badge-partner-hybrid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #EDE9FE;
  color: #6D28D9;
}

/* ============================================================ */
/* УМНЫЙ КАЛЕНДАРЬ И ЖУРНАЛ СРОКОВ МЧС (5 РАБОЧИХ ДНЕЙ)        */
/* ============================================================ */

.calendar-page-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1280px) {
  .calendar-page-layout {
    grid-template-columns: 1fr;
  }
}

/* Сводная полоса статистики дедлайнов */
.cal-stats-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cal-summary-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cal-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.cal-summary-card.in-schedule {
  border-left: 4px solid #16A34A;
}

.cal-summary-card.warning {
  border-left: 4px solid #F59E0B;
}

.cal-summary-card.overdue {
  border-left: 4px solid #DC2626;
  background: #FFFDFD;
}

.cal-summary-card.completed {
  border-left: 4px solid #0284C7;
}

.cal-summary-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.cal-summary-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin-top: 4px;
}

/* Тулбар календаря */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-month-heading {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cal-nav {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cal-nav:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-cal-today {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}

.btn-cal-today:hover {
  background: #DBEAFE;
}

/* Легенда календаря */
.calendar-legend-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #64748B;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 14px;
}

.cal-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Сетка дней */
.calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  min-height: 98px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

.calendar-day:hover {
  border-color: #3B82F6;
  background: #F8FAFC;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
  z-index: 2;
}

.calendar-day.today {
  border: 2px solid #2563EB;
  background: #F8FAFC;
}

.calendar-day.selected-filter-day {
  border: 2px solid #0284C7;
  background: #F0F9FF;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.calendar-day-empty {
  min-height: 98px;
  background: #F8FAFC;
  opacity: 0.45;
  border: 1px dashed #E2E8F0;
  cursor: default;
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calendar-day-num {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.calendar-today-badge {
  font-size: 9.5px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cal-day-events-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

/* Плашки событий в ячейке */
.cal-event-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
}

.cal-event-pill.start {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.cal-event-pill.finish {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.cal-event-pill.deadline-normal {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.cal-event-pill.deadline-warning {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  animation: pulseWarning 2s infinite;
}

.cal-event-pill.deadline-overdue {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  font-weight: 700;
}

.cal-event-pill.closed {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
  text-decoration: line-through;
  opacity: 0.8;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Правая панель: Умный журнал дедлайнов МЧС */
.cal-journal-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cal-journal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  background: #FAFAFA;
}

.cal-journal-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-journal-filter-tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cal-journal-tab-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cal-journal-tab-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.cal-journal-tab-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.cal-journal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
}

/* Карточка договора в журнале дедлайнов */
.cal-work-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
  position: relative;
}

.cal-work-item-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cal-work-item-card.critical-border {
  border-left: 4px solid #F59E0B;
}

.cal-work-item-card.overdue-border {
  border-left: 4px solid #DC2626;
  background: #FFFDFD;
}

.cal-work-item-card.closed-border {
  border-left: 4px solid #CBD5E1;
  opacity: 0.85;
}

.cal-work-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cal-work-obj-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.cal-work-wt-code {
  font-size: 11px;
  font-weight: 700;
  color: #0284C7;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.cal-work-contract-info {
  font-size: 11.5px;
  color: #64748B;
}

/* Блок расчета 5 рабочих дней */
.cal-deadline-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-deadline-box.warning-bg {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.cal-deadline-box.overdue-bg {
  background: #FEF2F2;
  border-color: #FECACA;
}

.cal-deadline-box.closed-bg {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.cal-deadline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

.cal-deadline-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.cal-deadline-tag.green {
  background: #DCFCE7;
  color: #166534;
}

.cal-deadline-tag.yellow {
  background: #FEF3C7;
  color: #92400E;
}

.cal-deadline-tag.orange {
  background: #FFEDD5;
  color: #C2410C;
}

.cal-deadline-tag.red {
  background: #FEE2E2;
  color: #991B1B;
}

.cal-deadline-sub {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.cal-work-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* ==============================================================================
   СИСТЕМА СКВОЗНЫХ ОПОВЕЩЕНИЙ, ЧЕРНОВИКОВ И СТАТУСОВ СЧЕТОВ
   ============================================================================== */
.header-notif-wrapper {
  position: relative;
  display: inline-block;
}

.header-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-notif-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

.header-notif-btn.has-alerts {
  border-color: #38BDF8;
  background: #F0F9FF;
  color: #0284C7;
}

.header-notif-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseNotif 1.8s infinite;
}

.header-notif-pulse.amber {
  background: #F59E0B;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

.header-notif-pulse.green {
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulseNotif {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.header-notif-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 360px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 8px -2px rgba(15, 23, 42, 0.08);
  z-index: 999999;
  display: none;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-notif-dropdown-header {
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  color: #0F172A;
}

.header-notif-dropdown-body {
  padding: 12px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-notif-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  transition: all 0.2s;
}

.header-notif-card.issued {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.header-notif-card.requested {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.header-notif-card.paid {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

/* Сквозной верхний баннер под шапкой */
.global-invoice-alert-banner {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
  z-index: 999;
  animation: slideDownBanner 0.3s ease;
}

.global-invoice-alert-banner.requested {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.global-invoice-alert-banner.paid {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

@keyframes slideDownBanner {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.global-invoice-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.global-invoice-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Плашка восстановленного черновика формы */
.draft-notice-banner {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #0284C7;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

/* Шахматный фон для прозрачных PNG (печать и подпись) */
.checkerboard-bg {
  background-color: #F8FAFC;
  background-image: 
    linear-gradient(45deg, #E2E8F0 25%, transparent 25%), 
    linear-gradient(-45deg, #E2E8F0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #E2E8F0 75%), 
    linear-gradient(-45deg, transparent 75%, #E2E8F0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.facsimile-box {
  transition: all 0.2s ease;
}

.facsimile-box:hover {
  border-color: #0284C7 !important;
}

/* Выпадающий список подсказок адресов DaData / ФИАС */
.address-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #FFFFFF;
  border: 1.5px solid #0284C7;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow-y: auto;
  margin-top: 4px;
}

.address-suggestion-item {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s ease;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
  background: #F0F9FF;
}

.address-suggestion-icon {
  font-size: 15px;
  line-height: 1.2;
  color: #0284C7;
  flex-shrink: 0;
  margin-top: 2px;
}

.address-suggestion-content {
  flex: 1;
  min-width: 0;
}

.address-suggestion-main {
  font-size: 12.5px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
}

.address-suggestion-sub {
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.address-suggestion-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #DCFCE7;
  color: #166534;
}

.address-suggestion-badge.fallback {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ==========================================================================
   ИНТЕРАКТИВНАЯ ШАХМАТКА ЗАНЯТОСТИ КОМПЛЕКТОВ ОБОРУДОВАНИЯ ПО РЕГИОНАМ
   ========================================================================== */
.occupancy-matrix-card {
  margin-bottom: 24px;
}

.occupancy-matrix-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
}

.occupancy-matrix-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.occupancy-matrix-month-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  min-width: 160px;
  text-align: center;
  text-transform: capitalize;
}

.occupancy-matrix-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #475569;
}

.occupancy-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.occupancy-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.occupancy-matrix-wrapper {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.occupancy-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 880px;
}

.occupancy-matrix-table th,
.occupancy-matrix-table td {
  border-right: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.occupancy-matrix-table th:last-child,
.occupancy-matrix-table td:last-child {
  border-right: none;
}

.occupancy-matrix-table tr:last-child td {
  border-bottom: none;
}

/* Липкая колонка с названием комплекта */
.matrix-kit-header-col,
.matrix-kit-name-cell {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #F8FAFC;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  text-align: left !important;
  padding: 10px 14px !important;
  border-right: 2px solid #CBD5E1 !important;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03);
}

.matrix-kit-name-cell {
  background: #FFFFFF;
}

.matrix-kit-name-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-kit-name-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

/* Заголовки дней */
.matrix-day-th {
  width: 32px;
  min-width: 32px;
  max-width: 38px;
  padding: 6px 2px !important;
  background: #F8FAFC;
  font-size: 11px;
}

.matrix-day-th.today {
  background: #EFF6FF;
}

.matrix-day-th.today .matrix-day-num {
  background: #0284C7;
  color: #FFFFFF;
  border-radius: 10px;
}

.matrix-day-th.weekend {
  background: #FFFBEB;
}

.matrix-day-num {
  font-weight: 800;
  font-size: 11.5px;
  color: #1E293B;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
}

.matrix-day-name {
  font-size: 9.5px;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 1px;
}

.matrix-day-th.weekend .matrix-day-name {
  color: #D97706;
}

/* Ячейки матрицы */
.matrix-cell {
  height: 48px;
  position: relative;
  transition: background 0.15s ease;
}

.matrix-cell.free:hover {
  background: #F0FDF4;
}

.matrix-cell.weekend {
  background: #FAFAF9;
}

/* Полоса бронирования */
.matrix-booking-span {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 2px;
  right: 2px;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.matrix-booking-span:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 8;
}

.matrix-booking-span.active-paid {
  background: linear-gradient(135deg, #0284C7, #0369A1);
}

.matrix-booking-span.active-unpaid {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* ДИФФЕРЕНЦИРОВАННЫЕ БЕЙДЖИ СТАВОК АРЕНДЫ ПРИБОРОВ (150 / 500 / 1 500 ₽/день) */
.badge-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease;
}

.badge-rate-pill:hover {
  transform: translateY(-1px);
}

.badge-rate-pill.rate-1500 {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #D8B4FE;
}

.badge-rate-pill.rate-500 {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-rate-pill.rate-150 {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* ИНЛАЙН РЕДАКТИРОВАНИЕ 1Д АРЕНДЫ В ТАБЛИЦЕ АДМИНКИ */
.inline-rate-container {
  min-width: 110px;
  max-width: 140px;
}

.inline-rate-input {
  width: 75px !important;
  padding: 4px 6px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  background: #FFFFFF !important;
  text-align: right;
  transition: all 0.15s ease;
}

.inline-rate-input:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.inline-rate-input.custom-active {
  border-color: #8B5CF6 !important;
  background: #FAF5FF !important;
  color: #6D28D9 !important;
}

.btn-save-inline-rate {
  width: 26px;
  height: 26px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-save-inline-rate:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  transform: scale(1.05);
}

.badge-rate-source {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-rate-source.custom {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.badge-rate-source.auto {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}




