@font-face {
  font-family: SarfGotham;
  src: url("./brand/GothamPro.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: SarfGotham;
  src: url("./brand/GothamPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --sarf-orange: #f37021;
  --sarf-ink: #444548;
  --sarf-muted: #6d6e71;
  --sarf-line: #e1e1e3;
}
html.light body {
  color: var(--sarf-ink);
  background: #f7f7f7;
}
html.light #main {
  background: #f7f7f7;
}
html.light #nav-sidebar,
html.light #nav-sidebar-inner {
  background: #f0f0f0;
}
#nav-sidebar a {
  transition:
    background-color 0.15s,
    color 0.15s;
}
.sarf-sidebar-toggle {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.sarf-nav-group-toggle {
  min-height: 44px;
  text-align: left;
}
.sarf-nav-link {
  min-height: 44px;
}
#nav-sidebar nav h2 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #727377;
}
.sarf-admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  white-space: nowrap;
}
.sarf-admin-brand img {
  width: 94px;
  height: auto;
  flex-shrink: 0;
}
.sarf-admin-brand > span {
  border-left: 1px solid #c9c9cc;
  padding-left: 15px;
  font-size: 12px;
  font-weight: 500;
  color: #6d6e71;
}
#content .sarf-dashboard {
  padding: 18px 10px 28px;
  max-width: 1320px;
  margin: auto;
}
.sarf-dashboard h1,
.sarf-dashboard h2,
.sarf-dashboard h3 {
  font-family: SarfGotham, Arial, sans-serif;
  color: var(--sarf-ink);
  font-weight: 700;
}
.sarf-dashboard h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 5px 0 10px;
}
.sarf-dashboard h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}
.sarf-dashboard h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 4px 0;
}
.sarf-dashboard p {
  margin: 0;
  color: var(--sarf-muted);
  line-height: 1.6;
}
.sarf-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.sarf-welcome .sarf-eyebrow {
  color: #a9440b;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}
.sarf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
}
.sarf-button-secondary {
  border: 1px solid #b8b9bc;
  background: #fff;
  color: #595a5d;
}
.sarf-button-secondary:hover {
  border-color: #ba4b0b;
  color: #a9440b;
}
.sarf-button .material-symbols-outlined {
  font-size: 18px;
}
.sarf-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.sarf-stat {
  display: block;
  background: #fff;
  border: 1px solid var(--sarf-line);
  border-top: 3px solid var(--sarf-orange);
  border-radius: 6px;
  padding: 20px 24px;
  min-width: 0;
}
.sarf-stat:hover {
  border-color: #dd9b70;
  box-shadow: 0 3px 14px #00000006;
}
.sarf-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #595a5d;
}
.sarf-stat-label .material-symbols-outlined {
  font-size: 23px;
  color: #a9440b;
}
.sarf-stat > strong {
  display: block;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  color: #444548;
  margin: 13px 0 8px;
}
.sarf-stat > p {
  font-size: 12px;
}
.sarf-panel {
  background: white;
  border: 1px solid var(--sarf-line);
  border-radius: 6px;
  min-width: 0;
}
.sarf-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 24px;
  border-bottom: 1px solid #ededee;
  flex-wrap: wrap;
}
.sarf-panel-heading p {
  font-size: 12px;
}
.sarf-panel-heading a {
  font-size: 12px;
  color: #a9440b;
  font-weight: 600;
}
.sarf-quick-section {
  margin-bottom: 30px;
}
.sarf-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 10px;
  gap: 2px;
}
.sarf-quick {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 14px;
  border-radius: 4px;
  min-width: 0;
}
.sarf-quick:hover {
  background: #fff7f0;
}
.sarf-quick strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444548;
  line-height: 1.5;
}
.sarf-quick small {
  display: block;
  color: #727377;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}
.sarf-action-icon {
  background: #fff3e9;
  color: #b84c0e;
  padding: 10px;
  border-radius: 6px;
  font-size: 22px;
}
.sarf-arrow {
  margin-left: auto;
  color: #929396;
  font-size: 18px;
}
.sarf-section-heading {
  margin: 0 0 17px;
}
.sarf-section-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.sarf-market-grid,
.sarf-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.sarf-market {
  padding: 24px;
}
.sarf-market-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.sarf-market-code {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: #a9440b;
}
.sarf-market-heading p {
  font-size: 12px;
}
.sarf-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #f0f0f0;
  color: #595a5d;
  padding: 5px 9px;
  border: 1px solid #dedee0;
  border-radius: 4px;
  white-space: nowrap;
}
.sarf-status-live {
  background: #eff6f0;
  color: #426447;
  border-color: #d4e3d6;
}
.sarf-status-draft {
  background: #fff5e9;
  color: #9c5714;
  border-color: #f1dfc8;
}
.sarf-market dl {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.sarf-market dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.sarf-market dt {
  color: #727377;
}
.sarf-market dd {
  text-align: right;
  font-weight: 550;
  color: #444548;
}
.sarf-market-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #ededee;
  padding-top: 16px;
  font-size: 12px;
}
.sarf-market-links a {
  color: #a9440b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sarf-market-links > span {
  color: #727377;
  font-size: 11px;
}
.sarf-activity-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
}
.sarf-activity-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #ededee;
}
.sarf-activity-list li:last-child {
  border-bottom: 0;
}
.sarf-activity-list a {
  min-width: 0;
}
.sarf-activity-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sarf-activity-list a > span {
  display: block;
  font-size: 11px;
  color: #727377;
  margin-top: 5px;
}
.sarf-empty {
  padding: 25px 24px 30px;
  min-height: 150px;
  text-align: center;
}
.sarf-empty > .material-symbols-outlined {
  display: block;
  font-size: 27px;
  color: #a1a1a5;
  margin-bottom: 9px;
}
.sarf-empty p {
  color: #595a5d;
  font-size: 13px;
  margin-bottom: 5px;
}
.sarf-empty small {
  display: block;
  color: #727377;
  font-size: 11px;
  line-height: 1.6;
  max-width: 370px;
  margin: auto;
}
html.light #changelist,
html.light fieldset.module {
  background: white;
}
#result_list tbody tr:hover {
  background: #fffaf6;
}
#result_list td,
#result_list th {
  vertical-align: middle;
}
#result_list th a {
  line-height: 1.5;
}
#result_list .field-name,
#result_list .field-title,
#result_list .field-display_name {
  min-width: 190px;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#content input:focus-visible,
#content select:focus-visible,
#content textarea:focus-visible,
.sarf-dashboard a:focus-visible {
  outline: 2px solid #ba4b0b;
  outline-offset: 3px;
}
.sarf-file-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}
.sarf-file-current {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: #f7f7f7;
  border: 1px solid #e1e1e3;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.sarf-file-current img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}
.sarf-file-current a {
  font-weight: 600;
  color: #a9440b;
}
.sarf-file-widget input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 13px;
}
.sarf-file-upload {
  padding: 10px;
  border: 1px dashed #c9c9cc;
  border-radius: 5px;
  background: #fafafa;
}
.sarf-file-upload::file-selector-button {
  border: 1px solid #c9c9cc;
  border-radius: 4px;
  background: #fff;
  color: #444548;
  padding: 8px 12px;
  font: inherit;
  margin-right: 12px;
  cursor: pointer;
}
.sarf-file-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6d6e71;
}
.sarf-file-clear input {
  accent-color: #ba4b0b;
  width: 16px;
  height: 16px;
}
html[lang="uz"] .ql-snow .ql-picker.ql-header .ql-picker-label::before,
html[lang="uz"] .ql-snow .ql-picker.ql-header .ql-picker-item::before {
  content: "Oddiy matn";
}
html[lang="uz"]
  .ql-snow
  .ql-picker.ql-header
  .ql-picker-label[data-value="2"]::before,
html[lang="uz"]
  .ql-snow
  .ql-picker.ql-header
  .ql-picker-item[data-value="2"]::before {
  content: "Sarlavha 2";
}
html[lang="uz"]
  .ql-snow
  .ql-picker.ql-header
  .ql-picker-label[data-value="3"]::before,
html[lang="uz"]
  .ql-snow
  .ql-picker.ql-header
  .ql-picker-item[data-value="3"]::before {
  content: "Sarlavha 3";
}
.ql-snow .ql-picker.ql-header {
  min-width: 115px;
}
@media (max-width: 900px) {
  .sarf-stat-grid {
    gap: 12px;
  }
  .sarf-stat {
    padding: 18px;
  }
  .sarf-market-grid,
  .sarf-activity-grid {
    gap: 14px;
  }
  .sarf-market {
    padding: 20px;
  }
  .sarf-panel-heading {
    padding: 18px 20px;
  }
  .sarf-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sarf-welcome {
    gap: 18px;
  }
  .sarf-dashboard h1 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  #content .sarf-dashboard {
    padding: 12px 0 20px;
  }
  .sarf-welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
    gap: 16px;
  }
  .sarf-welcome p {
    font-size: 12px;
  }
  .sarf-stat-grid {
    grid-template-columns: 1fr;
  }
  .sarf-stat {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    padding: 17px 20px;
  }
  .sarf-stat-label {
    grid-column: 1;
  }
  .sarf-stat-label .material-symbols-outlined {
    display: none;
  }
  .sarf-stat > strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    font-size: 30px;
    align-self: center;
  }
  .sarf-stat > p {
    grid-column: 1;
    margin-top: 7px;
  }
  .sarf-market-grid,
  .sarf-activity-grid,
  .sarf-quick-grid {
    grid-template-columns: 1fr;
  }
  .sarf-quick {
    padding: 12px;
  }
  .sarf-panel-heading {
    gap: 8px;
  }
  .sarf-panel-heading p {
    width: 100%;
  }
  .sarf-market-heading h3 {
    font-size: 17px;
  }
  .sarf-market dd {
    max-width: 65%;
  }
  .sarf-dashboard h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #nav-sidebar a {
    transition: none;
  }
}
