:root {
  --bg: #f4fbfa;
  --ink: #16343a;
  --muted: #5e7a7c;
  --line: #d5e8e8;
  --teal: #05969b;
  --teal-dark: #04787c;
  --teal-soft: #e7f7f7;
  --green: #0f9876;
  --green2: #e6f8f0;
  --yellow: #a56c08;
  --yellow2: #fff6df;
  --red: #de2221;
  --red2: #fdecec;
  --white: #fff;
  --shadow: 0 10px 32px rgba(22, 52, 58, .06);
  --bs-primary: #05969b;
  --bs-primary-rgb: 5, 150, 155;
  --bs-link-color: #04787c;
  --bs-link-hover-color: #036266;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--teal-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(5, 150, 155, .45);
}

.btn-primary {
  --bs-btn-bg: #05969b;
  --bs-btn-border-color: #05969b;
  --bs-btn-hover-bg: #04787c;
  --bs-btn-hover-border-color: #04787c;
  --bs-btn-active-bg: #036266;
  --bs-btn-active-border-color: #036266;
  --bs-btn-disabled-bg: #05969b;
  --bs-btn-disabled-border-color: #05969b;
}

.site-header {
  background: #fff;
  border-top: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: -.4px;
  font-weight: 800;
}

.brand-text strong span,
.logo-text strong span {
  color: var(--teal);
}

.brand-text small,
.logo-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .4px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--teal-dark);
}

.page-wrap {
  padding-top: 28px;
  padding-bottom: 48px;
}

.nmc.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nmc .login-card {
  width: 420px;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}

.nmc .login-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.nmc .login-card h1 {
  text-align: center;
  margin-bottom: 22px;
}

.nmc .login-card .login-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: -8px 0 18px;
}

.nmc .login-links {
  text-align: center;
  margin: 14px 0 0;
}

.nmc .login-links a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nmc .login-card a.btn {
  color: #fff;
  text-decoration: none;
}

.nmc .login-card .text-danger {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.nmc .login-card .btn {
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #7f9899;
  font-size: 13px;
  padding: 18px 0;
  background: #fff;
}

.site-footer a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-links form {
  margin: 0;
}

.auth-link,
.auth-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 9px;
}

.auth-link:hover,
.auth-button:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.auth-btn {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px 14px;
}

.auth-btn:hover {
  color: #fff;
  background: var(--teal-dark);
}

.role-pill {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

[ng\:cloak],
[ng-cloak],
.ng-cloak {
  display: none !important;
}

.nmc {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.nmc * {
  box-sizing: border-box;
}

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

.nmc button {
  cursor: pointer;
}

.nmc .shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}

.nmc.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.nmc .sidebar {
  width: 268px;
  flex: 0 0 268px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 16px;
  z-index: 30;
}

.nmc .sidebar .logo {
  white-space: normal;
  align-items: flex-start;
}

.nmc .sidebar .logo-text strong {
  font-size: 17px;
}

.nmc .side-label {
  margin: 28px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nmc .side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nmc .side-nav a {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: #4e696c;
  border-radius: 10px;
  padding: 12px 12px;
  font-weight: 700;
  font-size: 14px;
}

.nmc .side-nav a.active,
.nmc .side-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.nmc .side-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.nmc .sidebar .auth-links {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 4px;
}

.nmc .sidebar .auth-links form {
  display: flex;
}

.nmc .sidebar .auth-link,
.nmc .sidebar .auth-button,
.nmc .sidebar .auth-btn {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmc .workspace {
  flex: 1;
  min-width: 0;
}

.nmc .mobile-bar,
.nmc .sidebar-backdrop {
  display: none;
}

.nmc .menu-toggle {
  border: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 750;
  font-size: 13px;
}

.nmc .panel,
.nmc .heading-row {
  scroll-margin-top: 18px;
}

.nmc .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nmc .logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nmc .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nmc .logo-text strong {
  font-size: 20px;
  letter-spacing: -.5px;
  font-weight: 800;
}

.nmc .avatar {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.nmc .main {
  padding-top: 42px;
  padding-bottom: 48px;
}

.nmc .heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.nmc .heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nmc .eyebrow {
  text-transform: uppercase;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 8px;
}

.nmc h1 {
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -1.15px;
  margin: 0 0 9px;
}

.nmc h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -.35px;
}

.nmc h3 {
  font-size: 15px;
  margin: 0;
}

.nmc p {
  margin: 0;
}

.nmc .subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.nmc .btn {
  border: none;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  padding: 12px 17px;
  font-weight: 750;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition: .15s;
  line-height: 1.2;
}

.nmc .btn:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
  color: white;
}

.nmc .btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.nmc .btn-outline {
  border: 1px solid #b7dede;
  background: white;
  color: var(--teal-dark);
}

.nmc .btn-outline:hover {
  color: var(--teal-dark);
}

.nmc .btn-light {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.nmc .btn-light:hover {
  color: var(--teal-dark);
}

.nmc .btn-danger {
  background: var(--red2);
  color: var(--red);
}

.nmc .btn-danger:hover {
  color: var(--red);
}

.nmc .btn-sm {
  padding: 8px 11px;
  min-height: 34px;
  font-size: 12px;
}

.nmc .btn-full {
  width: 100%;
}

.nmc .btn.is-loading,
.nmc .btn.is-loading:disabled {
  opacity: 1;
  cursor: progress;
  transform: none;
}

.nmc .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nmc-spin .7s linear infinite;
  flex: 0 0 auto;
}

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

.nmc .cards4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}

.nmc .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.nmc .stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.nmc .icon-box {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 18px;
}

.nmc .stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 14px 0 2px;
}

.nmc .stat-sub {
  font-size: 11px;
  color: #8aa3a4;
}

.nmc .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 22px;
}

.nmc .stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nmc .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nmc .panel-pad {
  padding: 23px;
}

.nmc .panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.nmc .panel-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.nmc .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.nmc .field label {
  font-size: 12px;
  font-weight: 750;
  color: #355456;
}

.nmc .input,
.nmc select.input,
.nmc textarea.input {
  width: 100%;
  border: 1px solid #cfe3e3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  font-size: 13px;
  min-height: 43px;
}

.nmc select.input.auto {
  width: auto;
  min-width: 195px;
}

.nmc .input:focus,
.nmc select.input:focus,
.nmc textarea.input:focus {
  border-color: #4db8bc;
  box-shadow: 0 0 0 3px rgba(5, 150, 155, .16);
}

.nmc .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nmc .password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nmc .password-row .input {
  flex: 1;
  min-width: 0;
}

.nmc .password-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nmc .muted {
  color: var(--muted);
}

.nmc .day-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nmc .day-pick {
  border: 1px solid #cfe0e0;
  background: #fff;
  color: #6d8688;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
}

.nmc .day-pick.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.nmc .slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.nmc .file-btn input {
  display: none;
}

.nmc .slot {
  border: 1px solid #cfe0e0;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  min-height: 42px;
  font-size: 12px;
  font-weight: 700;
  color: #3f5c5e;
}

.nmc .slot.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.nmc .slot.unavailable,
.nmc .slot:disabled {
  background: #f4f7f7;
  color: #b7c6c7;
  text-decoration: line-through;
  cursor: not-allowed;
}

.nmc .slot.booked {
  background: #f6f8f8;
  color: #b7c4c5;
  cursor: not-allowed;
  text-decoration: none;
}

.nmc .slot-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
}

.nmc .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 5px;
}

.nmc .dot.gray {
  background: #c9d6d6;
}

.nmc .dot.green {
  background: #42b99b;
}

.nmc .share-box {
  background: #f3fbfb;
  border: 1px solid #d7eeee;
  border-radius: 12px;
  padding: 15px;
}

.nmc .share-url {
  overflow-wrap: anywhere;
  color: #2f7478;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.6;
}

.nmc .table-wrap {
  overflow: auto;
}

.nmc table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.nmc th {
  font-size: 11px;
  text-transform: uppercase;
  color: #6f8b8c;
  letter-spacing: .5px;
  background: #f7fbfb;
  padding: 13px 17px;
  font-weight: 800;
}

.nmc td {
  padding: 15px 17px;
  border-top: 1px solid #e7f1f1;
  font-size: 12px;
  color: #3d585a;
}

.nmc td strong {
  color: var(--ink);
}

.nmc .badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
  background: #eef3f3;
  color: #60787a;
  white-space: nowrap;
}

.nmc .badge.pending {
  background: var(--yellow2);
  color: var(--yellow);
}

.nmc .badge.approved {
  background: var(--green2);
  color: var(--green);
}

.nmc .badge.rejected {
  background: var(--red2);
  color: var(--red);
}

.nmc .tiny {
  font-size: 11px;
}

.nmc .empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 13px;
}

.nmc .empty-symbol {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.nmc .callout {
  padding: 13px 15px;
  background: #f3fbfb;
  border: 1px solid #d7eeee;
  border-radius: 11px;
  color: #3f6d70;
  font-size: 12px;
  line-height: 1.7;
}

.nmc .doctor-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nmc .portrait {
  width: 59px;
  height: 59px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 15px;
  font-size: 25px;
}

.nmc .doctor-profile strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.nmc .doctor-profile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nmc .patient-layout {
  max-width: 1030px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.nmc .fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3fbfb;
  border-radius: 12px;
  padding: 17px;
  margin: 17px 0;
}

.nmc .fee b {
  font-size: 23px;
  color: var(--teal);
}

.nmc .upload {
  border: 1.5px dashed #b7d6d6;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  background: #fbfefe;
  transition: .2s;
  display: block;
  margin-top: 15px;
}

.nmc .upload:hover {
  border-color: var(--teal);
}

.nmc .upload input {
  display: none;
}

.nmc .upload-icon {
  font-size: 27px;
  color: var(--teal);
  margin-bottom: 8px;
}

.nmc .upload strong {
  display: block;
  font-size: 13px;
}

.nmc .upload small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.nmc .preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.nmc .sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 21px 0;
}

.nmc .search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nmc .search-row .input {
  max-width: 260px;
}

.nmc .overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 42, 46, .68);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nmc .modal {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  height: auto;
  background: #fff;
  width: min(460px, 100%);
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(12, 42, 46, .25);
  overflow: hidden;
}

.nmc .modal .panel-head {
  padding: 20px 23px;
}

.nmc .modal-body {
  padding: 22px;
}

.nmc .receipt-img {
  max-height: 350px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7fbfb;
}

.nmc .toast {
  position: fixed;
  right: 24px;
  bottom: 25px;
  z-index: 80;
  background: #14383c;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 9px 25px rgba(20, 56, 60, .28);
  font-size: 13px;
  max-width: 350px;
}

.nmc .danger-note {
  background: #fff9ec;
  color: #96690a;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  border: 1px solid #f3e5c3;
}

.nmc .row-actions {
  display: flex;
  gap: 5px;
}

.nmc .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.nmc .modal-actions .btn {
  flex: 1;
}

.nmc .success-mark {
  font-size: 46px;
  color: var(--green);
  text-align: center;
}

.nmc .center {
  text-align: center;
}

@media (max-width: 1050px) {
  .nmc .cards4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nmc .layout,
  .nmc .patient-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .nmc.app-shell {
    display: block;
  }

  .nmc .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 25;
    background: #fff;
    border-top: 4px solid var(--teal);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }

  .nmc .mobile-bar strong {
    font-size: 15px;
  }

  .nmc .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-110%);
    transition: transform .2s ease;
  }

  .nmc .sidebar.open {
    transform: none;
    box-shadow: 8px 0 28px rgba(22, 52, 58, .16);
  }

  .nmc .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 42, 46, .45);
    z-index: 29;
  }

  .nmc .main {
    padding-top: 27px;
  }
}

@media (max-width: 720px) {
  .nmc .shell {
    padding: 0 16px;
  }

  .nmc .heading-row {
    flex-direction: column;
  }

  .nmc h1 {
    font-size: 27px;
  }

  .nmc .cards4 {
    gap: 10px;
  }

  .nmc .stat {
    padding: 15px;
  }

  .nmc .stat-value {
    font-size: 25px;
  }

  .nmc .panel-pad,
  .nmc .panel-head {
    padding: 17px;
  }

  .nmc .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nmc .field-row {
    grid-template-columns: 1fr;
  }

  .nmc .search-row .input {
    max-width: none;
  }
}
