body { background: #f7f9fb; }
.card { background: #fff; border: 1px solid #edf2f7; border-radius: 16px; padding: 20px; box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05); }
.input { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; outline: none; transition: box-shadow 0.2s, border-color 0.2s; }
.input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35); }
.btn-primary { background: linear-gradient(90deg, #2563eb, #06b6d4); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25); transition: transform 0.15s ease, opacity 0.2s; border: none; }
.btn-primary:hover { opacity: 0.93; transform: translateY(-1px); }
.btn-secondary { background: #111827; color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 25px rgba(17, 24, 39, 0.25); border: none; }
.btn-secondary:hover { opacity: 0.95; }
.btn-ghost { background: #f3f4f6; color: #111827; padding: 6px 10px; border-radius: 10px; font-weight: 700; border: 1px solid #e5e7eb; }
.btn-ghost:hover { background: #e5e7eb; }
.btn-ghost-icon { padding: 4px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; line-height: 0; min-width: 26px; min-height: 26px; }
.clinic-exam-row { padding: 2px 8px; }
.clinic-list-scroll { max-height: 45vh; overflow-y: scroll; overflow-x: hidden; scrollbar-gutter: stable; }
.clinic-item { background: #f9fafb; border: 1px solid #edf2f7; border-radius: 12px; padding: 10px 12px; }
.clinic-toggle { width: 100%; background: none; border: none; padding: 2px 0; text-align: left; cursor: pointer; }
.clinic-toggle-icon { font-weight: 700; color: #6b7280; min-width: 18px; text-align: center; }
.clinic-details[hidden] { display: none; }
.clinic-collapsed #clinic-form-wrapper { display: none; }
.clinic-collapsed #clinic-list {
    height: calc(100vh - 240px);
    max-height: none;
}
.contract-list-scroll { max-height: 45vh; overflow-y: scroll; overflow-x: hidden; scrollbar-gutter: stable; }
.contract-item { background: #f9fafb; border: 1px solid #edf2f7; border-radius: 12px; padding: 10px 12px; }
.contract-toggle { width: 100%; background: none; border: none; padding: 2px 0; text-align: left; cursor: pointer; }
.contract-toggle-icon { font-weight: 700; color: #6b7280; min-width: 18px; text-align: center; }
.contract-details[hidden] { display: none; }
.contract-collapsed #contract-form-wrapper { display: none; }
.contract-collapsed #contract-list {
    height: calc(100vh - 240px);
    max-height: none;
}
.company-list-scroll { max-height: 45vh; overflow-y: scroll; overflow-x: hidden; scrollbar-gutter: stable; }
.company-item { background: #f9fafb; border: 1px solid #edf2f7; border-radius: 12px; padding: 10px 12px; }
.company-toggle { width: 100%; background: none; border: none; padding: 2px 0; text-align: left; cursor: pointer; }
.company-toggle-icon { font-weight: 700; color: #6b7280; min-width: 18px; text-align: center; }
.company-details[hidden] { display: none; }
.company-collapsed #company-form-wrapper { display: none; }
.company-collapsed #company-list {
    height: calc(100vh - 240px);
    max-height: none;
}
.proposal-list-scroll { max-height: calc(100vh - 270px); overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.proposal-item { background: #f9fafb; border: 1px solid #edf2f7; border-radius: 14px; padding: 14px; }
.proposal-chart-shell { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: end; min-height: 240px; }
.proposal-chart-group { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.proposal-chart-bars { width: 100%; min-height: 190px; display: flex; align-items: end; justify-content: center; gap: 10px; padding: 0 8px; border-bottom: 1px solid #e5e7eb; }
.proposal-chart-bar { width: 32px; border-radius: 12px 12px 0 0; display: inline-block; }
.proposal-chart-bar.is-sent { background: linear-gradient(180deg, #60a5fa, #2563eb); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18); }
.proposal-chart-bar.is-approved { background: linear-gradient(180deg, #6ee7b7, #10b981); box-shadow: 0 12px 24px rgba(16, 185, 129, 0.18); }
.proposal-chart-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #6b7280; text-align: center; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; display: block; margin-bottom: 4px; }
.nav-link { display: block; padding: 10px 12px; border-radius: 10px; color: #374151; text-decoration: none; font-weight: 600; }
.nav-link:hover { background: #eff6ff; color: #2563eb; }
.leaflet-container { font: inherit; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.tab-link { width: 100%; text-align: left; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font-weight: 700; color: #374151; background: #f8fafc; transition: all .15s ease; }
.tab-link:hover { background: #eef2ff; color: #2563eb; border-color: #dbeafe; }
.tab-link.active { background: linear-gradient(90deg, #2563eb, #06b6d4); color: #fff; border-color: transparent; box-shadow: 0 12px 30px rgba(37,99,235,0.2); }
.modal-overlay { z-index: 9999; }
.modal-content { position: relative; z-index: 10000; }
@media (max-width: 767px) {
    .proposal-chart-shell { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .proposal-list-scroll { max-height: none; }
}
