@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800;850&display=swap');
:root {
  font-family:Inter,'Segoe UI',Arial,sans-serif;
  color:#162a3a;
  background:#f5f8fc;
font-synthesis:none}

* {
box-sizing:border-box}

body {
margin:0}

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

button {
cursor:pointer}

button:disabled {
  opacity:.5;
cursor:not-allowed}

.hidden {
display:none!important}

.muted {
color:#6b7d90}

.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:1.6px;
color:#8797a9}

.app {
min-height:100vh}

.topbar {
  height:74px;
  position:fixed;
  inset:0 0 auto 0;
  z-index:12;
  background:#fff;
  border-bottom:1px solid #e8eef5;
  display:flex;
  align-items:center;
  padding:0 27px;
gap:20px}

/* ===== MI Aesthetic Clinics Premium Add/Edit Form ===== */

#formDialog {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    max-height: 90vh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e1eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 75px rgba(19, 48, 66, .22);
}

#formDialog::backdrop {
    background: rgba(17, 37, 51, .56);
    backdrop-filter: blur(4px);
}

#formDialog > form {
    padding: 0;
}

#formDialog .dialog-head {
    position: relative;
    margin: 0;
    padding: 25px 28px 22px;
    gap: 18px;
    border-bottom: 1px solid #e8eff3;
    background: linear-gradient(125deg, #eff9fa, #ffffff 75%);
}

#formDialog .dialog-head h2 {
    color: #173746;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.6px;
    margin: 8px 0 6px;
}

#formDialog .dialog-head p {
    color: #728494;
    font-size: 12px;
    line-height: 1.6;
}

#formDialog .dialog-head .icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e9ee;
    background: #fff;
    color: #526978;
    transition: .2s ease;
}

#formDialog .dialog-head .icon-btn:hover {
    background: #e5f5f6;
    color: #126d82;
}

#formFields.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 17px;
    padding: 26px 28px;
}

#formFields .field {
    margin: 0;
    gap: 8px;
    color: #354c5b;
    font-size: 12px;
    font-weight: 700;
}

#formFields .field input,
#formFields .field select,
#formFields .field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #dce6ed;
    border-radius: 9px;
    background: #fff;
    color: #263e4e;
    font-size: 13px;
    font-weight: 400;
    transition: border-color .2s, box-shadow .2s;
}

#formFields .field textarea {
    min-height: 90px;
    resize: vertical;
}

#formFields .field input:focus,
#formFields .field select:focus,
#formFields .field textarea:focus {
    outline: none;
    border-color: #168696;
    box-shadow: 0 0 0 3px rgba(22, 134, 150, .12);
}

#formFields .field input::placeholder,
#formFields .field textarea::placeholder {
    color: #9aa9b5;
}

#formFields .field.wide,
#formFields .quick-visit-section {
    grid-column: 1 / -1;
}

#formFields .field[data-field="photo"] {
    padding: 17px;
    border: 1px dashed #9bc8ce;
    border-radius: 12px;
    background: #f5fbfc;
}

#formFields .field[data-field="photo"] input[type="file"] {
    padding: 10px;
    border: 1px solid #dce8ed;
    background: white;
    cursor: pointer;
}

#formFields .field small {
    color: #7d909e;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
}

#formFields .quick-visit-section {
    margin: 0;
    padding: 19px;
    border: 1px solid #dfebef;
    border-radius: 13px;
    background: #f8fbfc;
}

#formFields .quick-visit-heading h3 {
    margin: 8px 0 6px;
    color: #173b49;
    font-size: 17px;
}

#formFields .quick-visit-heading p {
    font-size: 12px;
    line-height: 1.6;
}

#formDialog #saleEditor {
    padding: 0 28px;
}

#formDialog #formError {
    margin: 0 28px 12px;
    line-height: 1.5;
}

#formDialog .dialog-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 17px 28px;
    border-top: 1px solid #e7edf2;
    background: #fff;
}

#formDialog .dialog-actions button {
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
}

#formDialog .dialog-actions #saveBtn {
    background: #126d82;
    border-color: #126d82;
    box-shadow: 0 3px 8px rgba(18, 109, 130, .15);
}

#formDialog .dialog-actions #saveBtn:hover {
    background: #0d586b;
}

#formDialog .dialog-actions #cancelDialog {
    background: #fff;
    border-color: #dce5ed;
}

@media (max-width: 600px) {
    #formDialog {
        width: calc(100vw - 16px);
        max-height: 94vh;
        border-radius: 14px;
    }

    #formDialog .dialog-head {
        padding: 20px 18px;
    }

    #formDialog .dialog-head h2 {
        font-size: 21px;
    }

    #formFields.form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 20px 18px;
    }

    #formFields .field.wide,
    #formFields .quick-visit-section {
        grid-column: 1;
    }

    #formDialog #saleEditor {
        padding: 0 18px;
    }

    #formDialog #formError {
        margin: 0 18px 12px;
    }

    #formDialog .dialog-actions {
        padding: 14px 18px;
    }
}

.top-brand {
  width:229px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
font-weight:850}

.brand-mark {
  background:#126d82;
  color:#fff;
  width:37px;
  height:37px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:22px;
flex-shrink:0}

.top-heading {
  display:flex;
  flex-direction:column;
  gap:3px;
  flex:1;
min-width:0}

.top-heading strong {
  font-size:17px;
font-weight:800}

.top-heading span {
  font-size:12px;
color:#6b7d90}

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

.branch-wrap {
  display:flex;
  align-items:center;
  gap:8px;
  color:#6b7d90;
font-size:12px}

.branch-wrap select {
  max-width:190px;
background:#f8fafc}

.top-divider {
  height:36px;
  width:1px;
  background:#e8eef5;
margin:0 3px}

.avatar {
  width:38px;
  height:38px;
  border-radius:50%;
  background:#dff2f5;
  color:#126d82;
  font-weight:800;
  display:grid;
  place-items:center;
flex-shrink:0}

.avatar.small {
  width:34px;
height:34px}

.user-info {
  display:flex;
  flex-direction:column;
  gap:3px;
min-width:100px}

.user-info strong {
font-size:13px}

.user-info small {
  font-size:11px;
color:#6b7d90}

.logout-top {
  border:0;
  background:none;
  color:#126d82;
  font-weight:700;
font-size:12px}

.sidebar {
  width:256px;
  position:fixed;
  left:0;
  top:74px;
  bottom:0;
  background:#fff;
  border-right:1px solid #e8eef5;
  display:flex;
  flex-direction:column;
z-index:11}

.sidebar-scroll {
  overflow-y:auto;
padding:16px 11px 10px}

.group-title {
  font-size:10px;
  color:#9aabba;
  font-weight:800;
  letter-spacing:1.45px;
margin:22px 15px 9px}

.group-title:first-child {
margin-top:10px}

.nav-btn {
  width:100%;
  border:0;
  background:transparent;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 14px;
  color:#607184;
  font-size:13px;
  font-weight:650;
  text-align:left;
  margin:2px 0;
transition:.15s}

.nav-btn:hover {
  background:#f3f8fa;
color:#126d82}

.nav-btn.active {
  background:#e8f6f8;
  color:#126d82;
font-weight:800}

.nav-icon {
  font-size:18px;
  width:22px;
  display:inline-grid;
  place-items:center;
font-weight:750}

.sidebar-bottom {
  margin-top:auto;
  border-top:1px solid #e8eef5;
padding:15px 18px}

.sidebar-profile {
  display:flex;
  align-items:center;
gap:10px}

.sidebar-profile span:last-child {
  display:flex;
  flex-direction:column;
  gap:3px;
min-width:0}

.sidebar-profile strong {
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
white-space:nowrap}

.sidebar-profile small {
  font-size:10px;
color:#8090a0}

.ghost {
  border:0;
  background:transparent;
  color:#126d82;
  font-size:12px;
  font-weight:700;
padding:10px 0 0}

.workspace {
  margin-left:256px;
  padding-top:74px;
min-height:100vh}

main {
  padding:29px 34px 60px;
  max-width:1800px;
margin:auto}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
margin-bottom:25px}

.page-heading h1 {
  font-size:32px;
  font-weight:800;
  letter-spacing:-1px;
margin:0 0 6px}

.page-heading p {
  color:#6b7d90;
  font-size:13px;
margin:0}

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

.primary,.secondary {
  border-radius:11px;
  padding:10px 17px;
  font-size:13px;
  font-weight:750;
min-height:41px}

.primary {
  background:#126d82;
  color:white;
border:1px solid #126d82}

.primary:hover {
background:#09576b}

.secondary {
  background:white;
  color:#456173;
border:1px solid #dce5ed}

.secondary:hover {
background:#f7fafc}

.metrics {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:17px;
margin-bottom:24px}

.metric,.panel {
  border:1px solid #e8eef5;
  background:#fff;
  border-radius:15px;
box-shadow:0 8px 30px rgba(20,46,80,.035)}

.metric {
  min-height:145px;
  padding:21px 19px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  box-sizing:border-box}

.metric > div {
  flex:1 1 auto;
  min-width:0;
  overflow:hidden}

.metric-title {
  color:#6b7d90;
  font-size:12px;
font-weight:650}

.metric-value {
  font-size:clamp(15px, 1.65vw, 27px);
  letter-spacing:-.5px;
  font-weight:850;
  line-height:1.2;
  margin:12px 0 8px;
  max-width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal}

.metric-sub {
  font-size:10px;
color:#8997a6}

.metric-icon {
  width:45px;
  height:45px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:23px;
  font-weight:750;
flex-shrink:0}

.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr);
gap:23px}

.panel-head {
  padding:24px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
gap:15px}

.panel-head h3,.report-panel h3 {
  font-size:18px;
  margin:0 0 7px;
font-weight:800}

.panel-head p {
  font-size:12px;
margin:0}

.panel-symbol {
  font-size:21px;
color:#126d82}

.financial-bars {
padding:0 26px 22px}

.bar-item {
margin:0 0 25px}

.bar-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  font-weight:650;
margin-bottom:11px}

.bar-label strong {
font-size:13px}

.bar-track {
  height:11px;
  border-radius:12px;
  background:#edf2f7;
overflow:hidden}

.bar-fill {
  height:100%;
  border-radius:12px;
transition:width .3s}

.quick-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
padding:0 25px}

.quick-action {
  border:1px solid #e1eaf2;
  border-radius:11px;
  background:#fff;
  min-height:94px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#25394a;
  font-size:12px;
font-weight:650}

.quick-action:hover {
  border-color:#126d82;
background:#f5fbfc}

.quick-icon {
  color:#126d82;
  font-size:25px;
font-weight:800}

.quick-hint {
  font-size:11px;
  color:#8797a6;
margin:17px 25px 23px}

.table-panel-head {
padding:23px 26px}

.search-wrap {
position:relative}

.search-wrap span {
  position:absolute;
  left:12px;
  top:8px;
  font-size:22px;
color:#8a9aa9}

.search-wrap input {
  padding-left:35px;
min-width:240px}

.table-scroll {
overflow:auto}

table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
min-width:700px}

th {
  background:#f8fafd;
  color:#6b7d90;
  font-weight:750;
text-align:left}

th,td {
  padding:15px 20px;
  border-bottom:1px solid #edf1f6;
white-space:nowrap}

tbody tr:hover {
background:#fbfdfe}

td {
  max-width:250px;
  overflow:hidden;
text-overflow:ellipsis}

.status-pill {
  display:inline-block;
  background:#e9f6f8;
  color:#126d82;
  font-weight:750;
  border-radius:20px;
  padding:5px 10px;
font-size:11px}

.invoice-btn {
  border:1px solid #d5e7eb;
  background:#f4fbfc;
  color:#126d82;
  border-radius:8px;
  padding:7px 10px;
  font-size:11px;
font-weight:750}

.empty {
  text-align:center;
padding:45px 20px}

.empty-icon {
  font-size:36px;
color:#9db2c1}

.empty strong {
font-size:14px}

.empty p {
  font-size:12px;
color:#8797a6}

.notice {
  background:#fff4e6;
  border:1px solid #ffd8ac;
  color:#8b5114;
  padding:13px 17px;
  border-radius:10px;
  margin-bottom:20px;
font-size:13px}

.notice.success {
  background:#e9f9f2;
  border-color:#b8ebd1;
color:#14754c}

.report-panel {
  margin-top:24px;
padding:25px}

.report-panel p {
font-size:12px}

.report-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
margin-top:19px}

input,select,textarea {
  background:#fff;
  border:1px solid #dce6ee;
  border-radius:10px;
  padding:10px 12px;
  color:#253a4d;
  outline:none;
  min-width:0;
font-size:13px}

input:focus,select:focus,textarea:focus {
  border-color:#12849b;
box-shadow:0 0 0 3px #12849b18}

.login-wrap {
  min-height:100vh;
  background:radial-gradient(circle at 15% 20%,#e2f5f7,transparent 45%),linear-gradient(140deg,#f5f8fc,#eaf1f7);
  display:grid;
  place-items:center;
padding:25px}

.login-card {
  background:white;
  border:1px solid #e8eef5;
  border-radius:20px;
  box-shadow:0 25px 80px #183b511a;
  padding:42px;
width:min(430px,100%)}


.brand-logo {
  display: block;
  width: 76px;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

/* Larger, clearly visible clinic logo on desktop login */
.login-brand .brand-logo {
  width: 112px;
  height: 60px;
}

/* Balanced navbar logo on tablets */
@media (max-width: 850px) {
  .top-brand .brand-logo {
    width: 64px;
    height: 38px;
  }
}

/* Compact without becoming tiny on mobile */
@media (max-width: 440px) {
  .top-brand .brand-logo {
    width: 52px;
    height: 32px;
  }
  .login-brand .brand-logo {
    width: 92px;
    height: 50px;
  }
  .login-brand {
    gap: 10px;
    font-size: 20px;
  }
}

.login-brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:23px;
font-weight:850}

.login-subtitle {
  color:#6b7d90;
  font-size:12px;
margin:13px 0 32px}

.login-card h1 {
  font-size:26px;
  letter-spacing:-.5px;
margin:0 0 5px}

.login-card>.muted {
  font-size:13px;
margin-bottom:24px}

.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#53687a;
  font-size:12px;
  font-weight:700;
margin:11px 0}

.field input,.field select,.field textarea {
  width:100%;
font-weight:400}

.full {
  width:100%;
  margin-top:16px;
  display:flex;
  justify-content:center;
gap:14px}

.login-footer {
  margin-top:25px;
  text-align:center;
  font-size:11px;
color:#9aa9b8}

.error {
  color:#c33443;
  font-size:12px;
min-height:15px}

dialog {
  border:0;
  border-radius:17px;
  width:min(710px,95vw);
  max-height:90vh;
  padding:0;
box-shadow:0 25px 100px #142e4870}

dialog::backdrop {
background:#142b3a99}

dialog form {
padding:27px 30px}

.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  border-bottom:1px solid #e8eef4;
  padding-bottom:17px;
margin-bottom:19px}

.dialog-head h2 {
  margin:8px 0 5px;
font-size:23px}

.dialog-head p {
  font-size:12px;
margin:0}

.icon-btn {
  border:0;
  background:#f0f4f7;
  padding:9px;
border-radius:8px}

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

.field.wide {
grid-column:1/-1}

.field small {
  font-size:10px;
color:#92a0ae}

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

.sale-item {
  border:1px solid #e5edf3;
  border-radius:12px;
  padding:15px;
margin:12px 0}

.sale-item-row {
  display:grid;
  grid-template-columns:1fr 1fr;
gap:12px}

.menu-btn {
  display:none;
  background:transparent;
  border:0;
font-size:22px}

.logout-top:hover,.ghost:hover {
color:#084d63}

@media(max-width:1350px) {
  .metrics {
  grid-template-columns:repeat(3,minmax(0,1fr))}

}

@media(max-width:1050px) {
  .dashboard-grid {
  grid-template-columns:1fr}

  .metrics {
  grid-template-columns:repeat(2,minmax(0,1fr))}

  .user-info {
  display:none}

}

@media(max-width:850px) {
  .topbar {
    padding:0 17px;
  gap:12px}

  .top-brand {
  width:auto}

  .top-brand strong {
  display:none}

  .menu-btn {
  display:block}

  .top-heading {
  font-size:14px}

  .top-heading span {
  display:none}

  .sidebar {
    transform:translateX(-100%);
    transition:transform .2s;
  box-shadow:0 15px 35px #0001}

  .sidebar.open {
  transform:translateX(0)}

  .workspace {
  margin-left:0}

  main {
  padding:23px 17px}

  .page-heading {
    align-items:flex-start;
  flex-direction:column}

  .page-heading h1 {
  font-size:27px}

  .top-divider,.logout-top {
  display:none}

  .branch-wrap>span {
  display:none}

  .branch-wrap select {
  max-width:140px}

  .metrics {
  gap:11px}

  .metric {
    min-height:125px;
  padding:15px}

  .metric-value {
  font-size:23px}

  .metric-icon {
    width:36px;
    height:36px;
  font-size:18px}

  .panel-head,.table-panel-head {
    align-items:flex-start;
  flex-direction:column}

  .search-wrap input {
  min-width:180px}

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

  .sale-item-row {
  grid-template-columns:1fr}

}

@media(max-width:440px) {
  .top-brand .brand-mark {
    width:30px;
    height:30px;
  font-size:18px}

  .top-heading strong {
  font-size:13px}

  .top-actions {
  gap:7px}

  .topbar {
  gap:8px}

  .top-actions select {
  max-width:105px}

  .metrics {
  grid-template-columns:1fr 1fr}

  .metric {
  gap:3px}

  .metric-icon {
    width:29px;
    height:29px;
  font-size:16px}

  .metric-value {
  font-size:20px}

  .page-actions {
  width:100%}

  .quick-grid {
  gap:8px}

  .quick-action {
  min-height:83px}

  .dialog-head h2 {
  font-size:19px}

}

/* Professional reports workspace */ .report-workspace {
  display:grid;
gap:18px}

.report-intro {
  padding:27px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
background:linear-gradient(115deg,#fff 0%,#f2fbfc 100%)}

.report-intro h2 {
  font-size:25px;
  letter-spacing:-.6px;
margin:8px 0}

.report-intro p {
  margin:0;
font-size:13px}

.report-filters {
padding:24px 26px}

.report-filter-heading,.report-results-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
margin-bottom:15px}

.report-filter-heading h3,.report-results-head h3 {
  margin:0 0 5px;
font-size:16px}

.report-filter-heading p,.report-results-head p {
  margin:0;
font-size:12px}

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

.report-filter-grid .field {
margin:9px 0}

.report-filter-grid input,.report-filter-grid select {
  width:100%;
min-height:42px}

.report-filter-hint {
  font-size:11px;
  color:#718497;
  background:#f6f9fb;
  border-radius:8px;
  padding:10px 12px;
margin:10px 0 0}

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

.report-kpi {
  background:#fff;
  border:1px solid #e6edf3;
  border-radius:14px;
  padding:19px 21px;
  box-shadow:0 8px 30px rgba(20,46,80,.025);
  display:flex;
  flex-direction:column;
  gap:8px;
min-width:0}

.report-kpi span {
  font-size:12px;
  color:#687c8f;
font-weight:650}

.report-kpi strong {
  font-size:25px;
  letter-spacing:-.5px;
  color:#182e40;
overflow-wrap:anywhere}

.report-kpi small {
  font-size:11px;
color:#8a9aaa}

.report-results {
overflow:hidden}

.report-results-head {
  padding:23px 26px 15px;
margin:0}

.report-count {
  background:#e8f6f8;
  color:#126d82;
  border-radius:20px;
  padding:7px 11px;
  font-size:11px;
  font-weight:800;
white-space:nowrap}

.report-table {
min-width:760px}

.report-table th {
  font-size:10px;
  text-transform:uppercase;
letter-spacing:.6px}

.report-table td {
font-size:12px}

.report-results .empty {
padding:30px}

.report-panel {
margin-top:0}

.report-panel h3 {
margin-bottom:5px}

.report-panel p {
margin:0}

.report-buttons button {
font-size:12px}

@media(max-width:1050px) {
  .report-filter-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))}

}

@media(max-width:650px) {
  .report-intro,.report-filter-heading,.report-results-head {
    align-items:flex-start;
  flex-direction:column}

  .report-intro {
  padding:22px}

  .report-filters {
  padding:20px}

  .report-filter-grid,.report-kpis {
  grid-template-columns:1fr}

  .report-kpi {
  padding:15px}

  .report-kpi strong {
  font-size:22px}

}

/* Professional one-step patient registration workflow */ .quick-visit-section {
  grid-column:1/-1;
  margin-top:8px;
  padding:20px;
  border:1px solid #dbe8ec;
  border-radius:16px;
background:linear-gradient(135deg,#f7fbfc 0%,#ffffff 100%)}

.quick-visit-heading {
margin-bottom:16px}

.quick-visit-heading h3 {
  margin:7px 0 5px;
  color:#173b49;
font-size:17px}

.quick-visit-heading p {
  margin:0;
  max-width:680px;
  font-size:13px;
line-height:1.55}

.quick-visit-grid {
  padding:0;
gap:14px}

.quick-visit-section .eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:.11em;
color:#16758a}

.quick-visit-section input,.quick-visit-section select,.quick-visit-section textarea {
  border-color:#d3e1e6;
background:#fff}

.quick-visit-section input:focus,.quick-visit-section select:focus,.quick-visit-section textarea:focus {
  outline:2px solid #b9e1e8;
border-color:#168098}

.prescription-product-editor {
  display:grid;
  gap:10px;
margin:8px 0 12px}

.prescription-product-row {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(90px,.7fr) auto;
  gap:10px;
  align-items:end;
  padding:12px;
  border:1px solid #e2ebf1;
  border-radius:12px;
background:#fff}

.prescription-product-row .field {
margin:0}

.invoice-live-total {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:16px 18px;
  border:1px solid #cfe5e9;
  border-radius:12px;
  background:#f3fbfc;
  color:#456173;
font-size:13px}

.invoice-live-total strong {
  font-size:23px;
color:#126d82}

.invoice-live-total small {
  width:100%;
  font-size:11px;
color:#718697}

@media(max-width:600px) {
  .prescription-product-row {
  grid-template-columns:1fr}

  .invoice-live-total strong {
  font-size:20px}

}
/* Premium patient billing history dialog */
.patient-history-dialog{width:min(1180px,calc(100vw - 28px));max-width:1180px;max-height:92vh;padding:0;border:1px solid #dfe8ef;border-radius:20px;background:#f7fafc;color:#182b3b;box-shadow:0 28px 90px rgba(15,35,52,.30);overflow:auto}
.patient-history-dialog::backdrop{background:rgba(13,31,45,.62);backdrop-filter:blur(5px)}
.ph-shell{font-family:Inter,'Segoe UI',Arial,sans-serif}
.ph-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 30px 23px;background:linear-gradient(115deg,#edf8fa 0%,#fff 72%);border-bottom:1px solid #e2ebf0}
.ph-brand{display:flex;align-items:center;gap:15px}.ph-mark{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:linear-gradient(145deg,#117b8d,#15546c);color:#fff;font-weight:850;letter-spacing:-1px;box-shadow:0 6px 15px #126d822c}
.ph-eyebrow,.ph-kicker{display:block;color:#138096;font-size:10px;font-weight:800;letter-spacing:1.55px}.ph-header h2{margin:5px 0 4px;font-size:25px;line-height:1.2;letter-spacing:-.65px;color:#173746}.ph-header p{margin:0;color:#708393;font-size:12px;line-height:1.6}.ph-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dce7ed;border-radius:11px;background:#fff;color:#526878;font-size:25px;line-height:1}.ph-close:hover{background:#edf8fa;color:#0e7183}
.ph-patient{display:flex;align-items:center;gap:15px;padding:20px 30px;background:#fff;border-bottom:1px solid #e8eef3}.ph-avatar{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;overflow:hidden;border-radius:16px;background:#e0f2f5;color:#126d82;font-size:22px;font-weight:800}.ph-avatar img{display:block;width:100%;height:100%;object-fit:cover}.ph-patient-main{min-width:0;flex:1}.ph-patient-main h3{margin:0 0 7px;font-size:19px;letter-spacing:-.3px;color:#193748}.ph-contact{display:flex;flex-wrap:wrap;gap:7px 18px;color:#728393;font-size:12px}.ph-record-tag,.ph-count{padding:6px 9px;border:1px solid #d9e9ed;border-radius:999px;background:#f1fafb;color:#277182;font-size:10px;font-weight:800;letter-spacing:.4px;white-space:nowrap}
.ph-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 30px}.ph-stat{min-width:0;padding:16px 17px;border:1px solid #e2eaf0;border-radius:14px;background:#fff;box-shadow:0 2px 6px #1c344008}.ph-stat-label{display:block;color:#708293;font-size:11px;font-weight:650}.ph-stat strong{display:block;margin:9px 0 5px;color:#18394a;font-size:23px;letter-spacing:-.65px;overflow-wrap:anywhere}.ph-stat small{color:#8a9aa8;font-size:10px;line-height:1.5}.ph-stat-paid{border-color:#d8eee4;background:linear-gradient(145deg,#fff,#f6fcf8)}.ph-stat-paid strong{color:#168052}.ph-stat-due{border-color:#f2e4ce;background:linear-gradient(145deg,#fff,#fffaf2)}.ph-stat-due strong{color:#b76b17}
.ph-section{margin:0 30px 17px;padding:20px;border:1px solid #e2eaf0;border-radius:15px;background:#fff;box-shadow:0 2px 6px #1c344006}.ph-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.ph-section-head h3{margin:5px 0 0;color:#1b3949;font-size:17px;letter-spacing:-.3px}.ph-section-head p{margin:5px 0 0;color:#7a8b99;font-size:11px}.ph-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px}.ph-details>div{padding:12px 0;border-bottom:1px solid #edf1f4;min-width:0}.ph-details>div:nth-last-child(-n+3){border-bottom:0}.ph-details span{display:block;margin-bottom:5px;color:#8795a2;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.ph-details strong{display:block;color:#2b4050;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.ph-table-wrap{width:100%;overflow:auto;border:1px solid #e8eef2;border-radius:10px}.ph-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px;white-space:normal}.ph-table th{padding:12px 13px;background:#f5f8fa;border-bottom:1px solid #e3ebf0;color:#647887;font-size:9px;font-weight:800;letter-spacing:.7px;text-align:left;text-transform:uppercase;white-space:nowrap}.ph-table td{padding:13px;border-bottom:1px solid #edf1f4;color:#435766;vertical-align:middle;line-height:1.5;min-width:75px}.ph-table tbody tr:last-child td{border-bottom:0}.ph-table tbody tr:hover{background:#f9fcfd}.ph-table td strong{color:#243e4e}.ph-empty{text-align:center!important;padding:25px!important;color:#8a99a6!important}.ph-money-paid{color:#168052!important;font-weight:700}.ph-money-due{color:#b76b17!important;font-weight:750}.ph-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}.ph-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.ph-status.is-paid{background:#eaf8f0;color:#168052}.ph-status.is-partial{background:#fff5e5;color:#a8660e}.ph-status.is-unpaid{background:#fff0ef;color:#bd4940}.ph-actions{min-width:170px;white-space:nowrap!important}.ph-actions button{padding:7px 9px;border:1px solid #dce6eb;border-radius:7px;background:#fff;color:#456070;font-size:10px;font-weight:750}.ph-actions button:hover{background:#f1f8fa;border-color:#b7d8df}.ph-actions button.ph-pay{border-color:#126d82;background:#126d82;color:#fff}.ph-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 30px 20px;color:#91a0ac;font-size:10px}.ph-footer button{padding:9px 15px;border:1px solid #d7e2e9;border-radius:9px;background:#fff;color:#435c6c;font-size:11px;font-weight:750}
@media(max-width:760px){.patient-history-dialog{width:calc(100vw - 14px);max-height:96vh;border-radius:14px}.ph-header{padding:20px 17px}.ph-patient{padding:17px}.ph-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px 17px;gap:9px}.ph-stat{padding:13px}.ph-stat strong{font-size:20px}.ph-section{margin:0 12px 12px;padding:14px}.ph-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.ph-details>div:nth-last-child(-n+3){border-bottom:1px solid #edf1f4}.ph-details>div:nth-last-child(-n+2){border-bottom:0}.ph-record-tag{display:none}.ph-footer{padding:14px 17px 18px}.ph-header h2{font-size:22px}}
@media(max-width:420px){.ph-contact{display:grid;gap:5px}.ph-stats{grid-template-columns:1fr 1fr}.ph-stat strong{font-size:18px}.ph-section-head h3{font-size:15px}.ph-details{grid-template-columns:1fr 1fr}}

/* Payment history stays inside the patient billing profile popup. */
.ph-payment-history-row td{padding:0!important;background:#f8fbfc!important;border-bottom:1px solid #e5edf1!important}
.ph-inline-payments{padding:13px 16px 15px;border-left:3px solid #9bcbd4;margin:0 8px 0 0}
.ph-inline-payments>strong{display:block;margin-bottom:9px;color:#3b5a69;font-size:10px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.ph-payment-list{display:grid;gap:7px}
.ph-payment-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 11px;border:1px solid #e4edf1;border-radius:8px;background:#fff}
.ph-payment-item span{display:grid;gap:3px;min-width:0}
.ph-payment-item b{color:#385565;font-size:11px}
.ph-payment-item small{color:#83939e;font-size:10px;overflow-wrap:anywhere}
.ph-payment-item>strong{color:#168052;font-size:12px;white-space:nowrap}
.ph-no-payments{margin:0;color:#8999a4;font-size:11px}

/* Consistent premium download buttons for purchase bills and invoices. */
.invoice-btn,
.ph-table button[data-vendor-purchase-bill],
.rx-bill-actions button[data-invoice] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:8px 13px;
  border:1px solid #0f7182;
  border-radius:9px;
  background:linear-gradient(135deg,#147f90 0%,#105d76 100%);
  color:#fff;
  font-size:11px;
  font-weight:750;
  letter-spacing:.1px;
  white-space:nowrap;
  box-shadow:0 3px 8px rgba(18,109,130,.16);
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.invoice-btn::before,
.ph-table button[data-vendor-purchase-bill]::before,
.rx-bill-actions button[data-invoice]::before {
  content:'↓';
  display:inline-grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:5px;
  background:rgba(255,255,255,.17);
  color:#fff;
  font-size:14px;
  font-weight:800;
  line-height:1;
}
.invoice-btn:hover,
.ph-table button[data-vendor-purchase-bill]:hover,
.rx-bill-actions button[data-invoice]:hover {
  filter:brightness(1.07);
  box-shadow:0 5px 12px rgba(18,109,130,.24);
  transform:translateY(-1px);
}
.invoice-btn:active,
.ph-table button[data-vendor-purchase-bill]:active,
.rx-bill-actions button[data-invoice]:active {
  transform:translateY(0);
  box-shadow:0 2px 5px rgba(18,109,130,.17);
}
.invoice-btn:disabled,
.ph-table button[data-vendor-purchase-bill]:disabled,
.rx-bill-actions button[data-invoice]:disabled {
  opacity:.65;
  cursor:wait;
  transform:none;
}


/* Patient image upload and preview */
#formFields .patient-photo-preview { grid-column: 1 / -1; display:flex; align-items:center; gap:12px; min-height:58px; padding:10px 12px; border:1px dashed #b9cbd4; border-radius:12px; background:#f7fbfc; color:#6b7d90; }
#formFields .patient-photo-preview img { width:76px; height:76px; object-fit:cover; border-radius:12px; border:1px solid #dce6eb; }
#formFields .patient-photo-preview small { overflow-wrap:anywhere; }
#formFields [data-field=photo] input[type=file] { display:block; width:100%; padding:10px; border:1px dashed #b9cbd4; border-radius:10px; background:#f8fbfc; }
#formFields input:invalid, #formFields select:invalid, #formFields textarea:invalid { border-color:#d97777; }
#formFields .field small { display:block; margin-top:5px; }


/* Refined history popups: patient, vendor and inventory stock */
.patient-history-dialog {
  width: min(1240px, calc(100vw - 36px));
  max-width: 1240px;
  max-height: min(92vh, 980px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f4f7fb;
  border: 1px solid #dce5ee;
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(15, 34, 53, .34);
}
.patient-history-dialog .ph-shell { color: #192b3c; background: #f4f7fb; }
.patient-history-dialog .ph-header {
  position: sticky; top: 0; z-index: 5;
  align-items: center;
  padding: 22px 28px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e3eaf1;
}
.patient-history-dialog .ph-brand { gap: 14px; }
.patient-history-dialog .ph-mark { width: 50px; height: 50px; border-radius: 15px; font-size: 17px; }
.patient-history-dialog .ph-eyebrow { font-size: 9px; letter-spacing: 1.45px; }
.patient-history-dialog .ph-header h2 { font-size: 24px; color: #142f45; }
.patient-history-dialog .ph-header p { font-size: 12px; }
.patient-history-dialog .ph-close { flex: 0 0 38px; font-size: 24px; }
.patient-history-dialog .ph-patient { padding: 20px 28px; background: linear-gradient(110deg,#f0f8fb,#fff 70%); }
.patient-history-dialog .ph-avatar { border: 3px solid #fff; box-shadow: 0 3px 12px rgba(19,75,95,.12); }
.patient-history-dialog .ph-contact { gap: 7px 16px; }
.patient-history-dialog .ph-contact span { overflow-wrap: anywhere; }
.patient-history-dialog .ph-stats { padding: 18px 28px 20px; gap: 14px; }
.patient-history-dialog .ph-stat { padding: 17px 18px; border-radius: 15px; box-shadow: 0 5px 18px rgba(20,47,69,.035); }
.patient-history-dialog .ph-stat strong { font-size: clamp(18px, 2vw, 24px); line-height: 1.25; }
.patient-history-dialog .ph-section { margin: 0 28px 18px; padding: 21px; border-radius: 16px; box-shadow: 0 5px 18px rgba(20,47,69,.035); }
.patient-history-dialog .ph-section-head { align-items: flex-start; margin-bottom: 17px; }
.patient-history-dialog .ph-section-head h3 { font-size: 17px; }
.patient-history-dialog .ph-section-head p { max-width: 620px; font-size: 12px; line-height: 1.55; }
.patient-history-dialog .ph-table-wrap { border-color: #e1e8ef; border-radius: 12px; }
.patient-history-dialog .ph-table { font-size: 12px; }
.patient-history-dialog .ph-table th { padding: 13px 14px; background: #f1f5f9; color: #536779; font-size: 10px; letter-spacing: .65px; }
.patient-history-dialog .ph-table td { padding: 14px; line-height: 1.55; }
.patient-history-dialog .ph-table tbody tr:nth-child(even) { background: #fbfcfe; }
.patient-history-dialog .ph-table tbody tr:hover { background: #f0f8fb; }
.patient-history-dialog .ph-table td strong { font-weight: 750; }
.patient-history-dialog .ph-count { padding: 7px 11px; font-size: 10px; }
.patient-history-dialog .ph-actions { min-width: 180px; }
.patient-history-dialog .ph-actions button { min-height: 32px; padding: 8px 11px; font-size: 11px; }
.patient-history-dialog .ph-footer { position: sticky; bottom: 0; z-index: 4; padding: 15px 28px; background: rgba(255,255,255,.97); border-top: 1px solid #e3eaf1; backdrop-filter: blur(14px); }
.patient-history-dialog .ph-footer button { min-height: 36px; padding: 9px 16px; }
.patient-history-dialog .ph-inline-payments { padding: 14px 16px; }
.patient-history-dialog .ph-payment-item { padding: 11px 13px; border-radius: 10px; }
.stock-history-dialog {
  width: min(1050px, calc(100vw - 32px)); max-width: 1050px;
  max-height: 88vh; margin: auto; padding: 0; overflow: auto;
  border: 1px solid #dce5ee; border-radius: 20px; background: #f5f8fb;
  color: #192b3c; box-shadow: 0 28px 90px rgba(15,34,53,.32);
}
.stock-history-dialog::backdrop { background: rgba(13,31,45,.58); backdrop-filter: blur(4px); }
.stock-history-dialog .stock-history-shell { padding: 0 24px 22px; }
.stock-history-dialog .stock-history-head { position: sticky; top: 0; z-index: 3; display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 -24px 20px; padding:22px 24px; background:#fff; border-bottom:1px solid #e2eaf1; }
.stock-history-dialog .stock-history-head h2 { margin:0 0 5px; color:#16364b; font-size:22px; letter-spacing:-.4px; }
.stock-history-dialog .stock-history-head p { margin:0; color:#738596; font-size:12px; }
.stock-history-dialog .stock-history-current { display:inline-flex; margin-top:10px; padding:6px 10px; border-radius:999px; background:#eaf6f8; color:#126d82; font-size:11px; font-weight:800; }
.stock-history-dialog .table-wrap { overflow:auto; border:1px solid #e0e8ef; border-radius:12px; background:#fff; }
.stock-history-dialog table { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; }
.stock-history-dialog th { padding:13px 14px; text-align:left; background:#f0f5f8; color:#536a7b; font-size:10px; text-transform:uppercase; letter-spacing:.6px; white-space:nowrap; }
.stock-history-dialog td { padding:13px 14px; border-top:1px solid #edf1f5; color:#405667; vertical-align:middle; line-height:1.5; }
.stock-history-dialog tbody tr:nth-child(even) { background:#fbfcfe; }
.stock-history-dialog .stock-history-note { margin:15px 2px 0; color:#7a8b9a; font-size:11px; line-height:1.6; }
.stock-history-dialog .stock-history-close { min-height:36px; padding:8px 14px; border:1px solid #d7e2e9; border-radius:9px; background:#fff; color:#40596a; font-weight:750; cursor:pointer; }
@media(max-width:760px) {
  .patient-history-dialog { width:calc(100vw - 12px); max-height:96vh; border-radius:14px; }
  .patient-history-dialog .ph-header { padding:16px; }
  .patient-history-dialog .ph-header h2 { font-size:20px; }
  .patient-history-dialog .ph-patient { padding:15px 16px; }
  .patient-history-dialog .ph-stats { padding:13px 14px 16px; gap:9px; }
  .patient-history-dialog .ph-section { margin:0 12px 12px; padding:14px; }
  .patient-history-dialog .ph-table { min-width:650px; }
  .patient-history-dialog .ph-footer { padding:13px 16px; }
  .stock-history-dialog { width:calc(100vw - 12px); max-height:94vh; border-radius:14px; }
  .stock-history-dialog .stock-history-shell { padding:0 12px 14px; }
  .stock-history-dialog .stock-history-head { margin:0 -12px 14px; padding:16px 12px; }
  .stock-history-dialog .stock-history-head h2 { font-size:18px; }
  .stock-history-dialog table { min-width:650px; }
}


/* ===== MI Aesthetic Clinics: logo-inspired premium theme ===== */
:root {
  --mi-primary: #173b37;
  --mi-primary-hover: #102e2b;
  --mi-gold: #c6a45a;
  --mi-gold-soft: #f5efdf;
  --mi-page: #f7f7f3;
  --mi-border: #e7e4da;
  --mi-text: #263630;
  --mi-muted: #718078;
  color: var(--mi-text);
  background: var(--mi-page);
}
body { background: var(--mi-page); color: var(--mi-text); }
.topbar { background:#fff; border-bottom-color:var(--mi-border); }
.sidebar { background:#fff; border-right-color:var(--mi-border); }
.sidebar-bottom { border-top-color:var(--mi-border); }
.brand-mark { background:var(--mi-primary); color:#fff; }
.top-brand, .top-heading strong { color:var(--mi-primary); }
.top-heading span, .muted, .branch-wrap { color:var(--mi-muted); }
button.primary, .primary-btn, .btn-primary, #saveBtn,
button[type="submit"], .login-submit {
  background:var(--mi-primary);
  border-color:var(--mi-primary);
  color:#fff;
}
button.primary:hover, .primary-btn:hover, .btn-primary:hover, #saveBtn:hover,
button[type="submit"]:hover, .login-submit:hover { background:var(--mi-primary-hover); border-color:var(--mi-primary-hover); }
input:focus, select:focus, textarea:focus { border-color:var(--mi-gold)!important; box-shadow:0 0 0 3px rgba(198,164,90,.16)!important; outline:none; }
.sidebar .active, .sidebar a.active, .nav-item.active, .nav-item[aria-current="page"] {
  background:var(--mi-gold-soft); color:var(--mi-primary); border-color:rgba(198,164,90,.35);
}
.sidebar .active svg, .nav-item.active svg { color:var(--mi-gold); }
.card, .stat-card, .panel, .login-card, .modal-card {
  border-color:var(--mi-border);
}
.eyebrow { color:#9b7b36; }
.badge, .status-badge { border-radius:999px; }
.login-page, .login-screen { background:linear-gradient(135deg,#f7f7f3 0%,#edf3ef 100%); }
.login-card { box-shadow:0 24px 70px rgba(23,59,55,.10); }
.login-brand { color:var(--mi-primary); }
.login-brand .brand-logo { object-fit:contain; }
/* Keep status colours semantic rather than forcing the brand colour on alerts. */
@media (max-width: 768px) {
  .topbar { padding-left:14px; padding-right:14px; }
  .top-brand { gap:8px; }
}


/* MI Aesthetic Clinics — luxury black, champagne-gold and ivory theme */
:root {
  --mi-primary: #171717;
  --mi-gold: #C5A15A;
  --mi-gold-soft: #F5EEDF;
  --mi-border: #E8E2D6;
  color: #242321;
  background: #F6F4EF;
}
body { background: #F6F4EF; color: #242321; }
.topbar { background: #FFFFFF; border-bottom-color: #E8E2D6; }
.top-brand strong { color: #171717; letter-spacing: -.35px; }
.sidebar { background: #171717; border-right: 1px solid #2A2926; color: #F8F6F0; }
.sidebar .group-title { color: #B6AA91; }
.sidebar a, .sidebar button, .sidebar .nav-item { color: #E9E5DC; }
.sidebar a:hover, .sidebar button:hover, .sidebar .nav-item:hover { background: #292722; color: #FFFFFF; }
.sidebar .active, .sidebar a.active, .nav-item.active, .nav-item[aria-current="page"] { background: rgba(197,161,90,.17); color: #E2C47F; border-color: rgba(197,161,90,.45); }
.sidebar .active svg, .nav-item.active svg { color: #D7B76F; }
.sidebar-bottom { border-top-color: #34312B; }
button:not(.sidebar button):focus-visible, input:focus, select:focus, textarea:focus { outline-color: #C5A15A; border-color: #C5A15A; box-shadow: 0 0 0 3px rgba(197,161,90,.17); }
button.primary, .btn-primary, .button-primary, .save-btn { background: #171717; border-color: #171717; color: #FFFFFF; }
button.primary:hover, .btn-primary:hover, .button-primary:hover, .save-btn:hover { background: #34312B; border-color: #34312B; }
.card, .stat-card, .panel, .login-card, .modal-card, .table-wrap { background-color: #FFFFFF; border-color: #E8E2D6; }
.eyebrow { color: #94763B; }
.login-wrap { background: radial-gradient(circle at 16% 12%, #F1E6CF 0, transparent 36%), linear-gradient(140deg,#F6F4EF,#EEE9DE); }
.login-card { border-color: #E8E2D6; box-shadow: 0 24px 70px rgba(34,28,18,.10); }
.brand-mark { background: #171717; color: #D8B96F; }
.badge, .status-badge { border-color: #E8E2D6; }
@media (max-width: 850px) { .sidebar { box-shadow: 12px 0 35px rgba(0,0,0,.18); } }
