* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-family-base);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
a { color: inherit; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand strong { font-size: 22px; letter-spacing: .2px; }
.brand span { color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.top-user { font-weight: 700; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { background: var(--sidebar); color: #fff; padding: 22px 18px; }
.sidebar-title { text-transform: uppercase; color: var(--sidebar-muted); font-size: 12px; letter-spacing: .08em; margin: 0 0 14px; }
.sidebar a { display: block; text-decoration: none; padding: 14px 14px; border-radius: 12px; margin-bottom: 8px; color: #dbeafe; }
.sidebar a.active { background: #334155; color: #fff; font-weight: 700; }
.sidebar a.disabled { color: #778499; cursor: not-allowed; opacity: .75; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,.08); margin: 16px 0; }
.content { min-width: 0; padding: 30px 24px 42px; }
.wide-content { width: min(1320px, 100%); margin: 0 auto; }
.no-sidebar { display: block; min-height: calc(100vh - 76px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); }
.page-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card h2 { margin-top: 0; font-size: 22px; }
.narrow-card { width: min(460px, 100%); }
.auth-shell { min-height: calc(100vh - 76px); display: flex; justify-content: center; align-items: center; padding: 28px; }
.auth-logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #e0f2fe; color: #075985; padding: 10px 14px; font-weight: 800; margin-bottom: 12px; }
.entry-grid, .summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.entry-card, .summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  min-width: 0;
}
.entry-card:hover { border-color: #93c5fd; transform: translateY(-1px); transition: .15s ease; }
.entry-card strong, .summary-card strong { display: block; font-size: 28px; margin-top: 8px; }
.entry-card span, .summary-card span { color: var(--muted); }
.summary-card strong { font-size: 26px; }
.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label span { display: block; font-weight: 700; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15, 94, 168, .18); border-color: var(--primary); }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: #ca8a04; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.btn-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.alert { border-radius: 12px; padding: 14px 16px; margin: 14px 0; line-height: 1.5; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }
.hint-box { background: #f8fafc; border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.back-link { display: inline-block; margin-top: 18px; color: var(--primary); text-decoration: none; font-weight: 700; }
.status-list { display: grid; gap: 12px; }
.status-list div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check-table { display: grid; gap: 10px; }
.check-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 2fr); gap: 12px; align-items: center; padding: 12px; background: #f8fafc; border-radius: 12px; }
.table-wrap { width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; word-break: break-word; }
.data-table th { background: #f8fafc; font-size: 13px; color: #334155; }
.data-table tr:last-child td { border-bottom: 0; }
.mobile-card-list { display: none; gap: 12px; }
.mobile-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.mobile-card strong { display: block; margin-bottom: 8px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #f8fafc; border-radius: 14px; padding: 16px; border: 1px solid var(--border); }
.kpi span { color: var(--muted); }
.kpi strong { display: block; font-size: 24px; margin-top: 8px; }
@media (max-width: 1100px) {
  .entry-grid, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .topbar { position: static; align-items: flex-start; }
  .layout { display: block; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; }
  .sidebar-title, .sidebar-divider { grid-column: 1 / -1; }
  .sidebar a { margin: 0; padding: 12px; }
  .content { padding: 18px 14px 32px; }
  .page-head { display: block; }
  .entry-grid, .summary-grid, .form-grid, .kpi-row { grid-template-columns: 1fr; }
  .check-row { grid-template-columns: 1fr; }
  .table-wrap {
    border: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    display: table;
    min-width: 720px;
    table-layout: auto;
  }
  section:has(.mobile-card-list > .mobile-card) .data-table { display: none; }
  .mobile-card-list { display: grid; }
  .button-row .btn { width: 100%; }
}

/* V1.2 Ortak sayfa şablonu standartları */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title-row h2 { margin: 0 0 8px; }
.section-title-row p { margin: 0; color: var(--muted); line-height: 1.55; }
.compact-actions { justify-content: flex-end; }
.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  margin-bottom: 16px;
}
.small-summary .summary-card { padding: 16px; }
.small-summary .summary-card strong { font-size: 22px; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 16px;
}
.step-card span,
.workflow span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
  margin-bottom: 10px;
}
.step-card strong,
.workflow strong { display: block; margin-bottom: 4px; }
.step-card small,
.workflow small { color: var(--muted); }
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.workflow > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.sticky-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  flex-wrap: wrap;
}
.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.phone-preview {
  display: flex;
  justify-content: center;
}
.phone-card {
  width: min(390px, 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}
.phone-top {
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 16px;
}
.mobile-bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.producer-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.producer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #f8fafc;
}
.producer-card span,
.producer-card small { color: var(--muted); }
.producer-card strong { display: block; font-size: 26px; margin: 10px 0 4px; }
.critical-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  border-radius: var(--radius);
  padding: 20px;
}
.critical-box h3 { margin: 0 0 8px; color: var(--danger); }
.critical-box p { margin: 0; color: var(--muted); line-height: 1.55; }
.critical-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.empty-state,
.error-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}
.empty-state strong,
.error-state strong { display: block; font-size: 22px; margin-bottom: 8px; }
.empty-state p,
.error-state p { color: var(--muted); line-height: 1.55; }
.error-state { border-color: #fecaca; background: #fff7f7; }
.error-state strong { color: var(--danger); }
@media (max-width: 900px) {
  .filter-panel,
  .step-grid,
  .workflow,
  .producer-preview-grid,
  .state-grid { grid-template-columns: 1fr; }
  .section-title-row,
  .critical-box { display: block; }
  .compact-actions,
  .critical-actions { margin-top: 14px; justify-content: stretch; }
  .compact-actions .btn,
  .critical-actions .btn,
  .sticky-action-bar .btn { width: 100%; }
  .mobile-bottom-bar { grid-template-columns: 1fr; }
}


/* V1.3 Excel merkezi standartları */
.module-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.module-nav-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.module-nav-card strong { display: block; font-size: 18px; margin-bottom: 6px; }
.module-nav-card span { color: var(--muted); line-height: 1.45; }
.upload-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 20px;
}
.upload-box input[type="file"] {
  background: #fff;
  border-style: solid;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 7px 11px;
  font-weight: 800;
  font-size: 13px;
}
.excel-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.excel-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.excel-flow div {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
}
.excel-flow strong { display: block; margin-bottom: 5px; }
@media (max-width: 900px) {
  .module-nav-grid,
  .excel-status-grid,
  .excel-flow { grid-template-columns: 1fr; }
}

/* V1.4 Dönem / kilit sistemi standartları */
.period-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
}
.period-flow.workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.period-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.critical-mini {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fafc;
  display: grid;
  gap: 12px;
}
.critical-mini strong { font-size: 18px; }
.critical-mini span { color: var(--muted); line-height: 1.45; }
.critical-mini.danger-zone { background: #fff7f7; border-color: #fecaca; }
.lock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lock-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.lock-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.single-form { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
  .period-grid,
  .period-action-grid,
  .lock-grid,
  .period-flow.workflow { grid-template-columns: 1fr; }
}

/* V1.5 Log / hata / yedek merkezi standartları */
.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.log-table th:nth-child(1), .log-table td:nth-child(1),
.error-table th:nth-child(1), .error-table td:nth-child(1) { width: 160px; }
.file-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.file-log-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.file-log-card strong { font-size: 17px; }
.file-log-card span,
.file-log-card small { color: var(--muted); }
.file-log-card code {
  display: block;
  background: #0f172a;
  color: #dbeafe;
  padding: 10px;
  border-radius: 10px;
  overflow-wrap: anywhere;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.4;
}
.file-log-card.danger-log { background: #fff7f7; border-color: #fecaca; }
.file-log-card.backup-file { background: #f0fdf4; border-color: #bbf7d0; }
@media (max-width: 900px) {
  .log-summary-grid,
  .file-log-grid { grid-template-columns: 1fr; }
  .log-table th:nth-child(1), .log-table td:nth-child(1),
  .error-table th:nth-child(1), .error-table td:nth-child(1) { width: auto; }
}

/* V1.6 Kullanıcı / yetki merkezi standartları */
.form-actions-wide {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.action-details summary {
  list-style: none;
}
.action-details summary::-webkit-details-marker { display: none; }
.details-panel {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  min-width: 280px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.inline-form:first-child { grid-template-columns: 1fr; }
.matrix-wrap { overflow-x: auto; }
.matrix-table { min-width: 900px; }
.matrix-table th,
.matrix-table td { text-align: center; }
.matrix-table th:first-child,
.matrix-table td:first-child,
.matrix-table th:nth-child(2),
.matrix-table td:nth-child(2) { text-align: left; }
.user-table th:nth-child(6), .user-table td:nth-child(6) { width: 300px; }
.mobile-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .form-actions-wide { justify-content: stretch; }
  .form-actions-wide .btn { width: 100%; }
  .inline-form { grid-template-columns: 1fr; }
  .details-panel { min-width: 0; }
}


/* V1.8 Çekirdek son kontrol standartları */
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.readiness-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.readiness-card.ok { border-color: #bbf7d0; background: #f0fdf4; }
.readiness-card.warning { border-color: #fde68a; background: #fffbeb; }
.readiness-card.danger { border-color: #fecaca; background: #fff7f7; }
.readiness-card h3 { margin: 0; font-size: 18px; }
.readiness-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.readiness-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #f8fafc;
  margin-bottom: 18px;
}
.readiness-score strong { font-size: clamp(28px, 5vw, 46px); }
.readiness-score p { margin: 0; color: var(--muted); line-height: 1.5; }
.final-gate {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: grid;
  gap: 12px;
}
.final-gate.ready { border-color: #bbf7d0; background: #f0fdf4; }
.final-gate.blocked { border-color: #fecaca; background: #fff7f7; }
.final-gate h2 { margin: 0; }
.final-gate p { margin: 0; color: var(--muted); line-height: 1.55; }
.check-row.critical-row { border-left: 5px solid #94a3b8; }
.check-row.critical-row.ok-row { border-left-color: var(--success); }
.check-row.critical-row.bad-row { border-left-color: var(--danger); }
.next-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.next-plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.next-plan-card span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 10px;
}
.next-plan-card strong { display: block; margin-bottom: 6px; }
.next-plan-card small { color: var(--muted); line-height: 1.45; }
@media (max-width: 1000px) {
  .readiness-grid,
  .next-plan-grid { grid-template-columns: 1fr; }
  .readiness-score { display: block; }
}

/* V2.0 C01 Cari Listesi standartları */
.producer-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 0;
}
.producer-form .checkbox-line input { width: 20px; height: 20px; }
.filter-form { align-items: end; }
.producer-table th:nth-child(1), .producer-table td:nth-child(1) { width: 110px; }
.producer-table th:nth-child(7), .producer-table td:nth-child(7) { width: 92px; }
.producer-table th:nth-child(8), .producer-table td:nth-child(8) { width: 190px; }
.producer-table .compact-actions { gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .producer-form .checkbox-line { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
}

/* V29 Y01 Yem Siparişi kart/girdi standardı */
.feed-order-list { display: grid; gap: 16px; }
.feed-order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; }
.feed-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.feed-order-head strong { display: block; font-size: 17px; margin-bottom: 5px; }
.feed-order-head span { color: var(--muted); }
.feed-order-status { display: grid; justify-items: end; gap: 8px; min-width: 120px; }
.feed-order-status strong { font-size: 20px; }
.feed-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feed-product-grid label { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.feed-product-grid label span { font-size: 13px; min-height: 34px; color: #334155; }
.feed-product-grid input { min-height: 46px; font-weight: 800; }
@media (max-width: 1100px) { .feed-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .feed-order-head { display: block; }
  .feed-order-status { justify-items: start; margin-top: 10px; }
  .feed-product-grid { grid-template-columns: 1fr; }
}

/* V30 Y02 Yem Teslim kart/girdi standardı */
.feed-delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.delivery-product-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.delivery-product-title { font-weight: 900; color: #0f172a; min-height: 38px; }
.delivery-product-metrics { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.delivery-product-metrics span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 9px; }
.delivery-product-box label { display: grid; gap: 6px; margin: 0; }
.delivery-product-box label span { color: #475569; font-size: 13px; font-weight: 700; }
.delivery-product-box input { min-height: 44px; font-weight: 800; }
.text-danger { color: #dc2626; }
.text-ok { color: #16a34a; }
@media (max-width: 1100px) { .feed-delivery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .feed-delivery-grid { grid-template-columns: 1fr; } }

.market-product-grid small { display: block; color: var(--muted); font-weight: 700; margin: 5px 0 8px; }
.market-product-grid .disabled-field { opacity: .72; background: #f1f5f9; }
.market-sale-card .feed-order-status strong { color: #0f766e; }

/* V36 Kantar / Süt Karşılaştırma kart standardı */
.scale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scale-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.scale-card.has-difference { border-color: #f59e0b; }
.scale-card.is-ok { border-color: #bbf7d0; }
.scale-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scale-card-head strong { display: block; font-size: 18px; margin-bottom: 5px; color: #0f172a; }
.scale-card-head span { color: var(--muted); font-size: 13px; }
.scale-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.scale-metrics div { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.scale-metrics span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.scale-metrics strong { font-size: 18px; }
.scale-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.scale-inputs label { display: grid; gap: 6px; margin: 0; }
.scale-inputs label span { color: #475569; font-size: 13px; font-weight: 800; }
.scale-inputs input { min-height: 44px; font-weight: 800; }
.scale-note { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 1000px) { .scale-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .scale-card-head { display: block; }
  .scale-card-head .badge { margin-top: 10px; }
  .scale-metrics { grid-template-columns: 1fr; }
  .scale-inputs { grid-template-columns: 1fr; }
}
.clean-list{margin:12px 0 0 0;padding-left:18px;display:grid;gap:6px;color:#40536a;line-height:1.45}.clean-list li{margin:0}


/* V7.14 Ortak gruplu ve açılır/kapanır panel menüsü */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.menu-toggle:hover { background: #e2e8f0; }
.menu-toggle:focus-visible,
.sidebar-close:focus-visible,
.sidebar-group summary:focus-visible {
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}
.menu-toggle-icon { font-size: 20px; line-height: 1; }
.layout {
  transition: grid-template-columns .2s ease;
}
.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .2s ease, padding .2s ease, transform .2s ease, opacity .15s ease;
  z-index: 4;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar-head .sidebar-title { margin: 0; }
.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sidebar-nav { display: grid; gap: 10px; }
.sidebar-group {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.sidebar-group.active-group {
  border-color: rgba(147,197,253,.36);
  background: rgba(59,130,246,.08);
}
.sidebar-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group-arrow { transition: transform .15s ease; color: var(--sidebar-muted); }
.sidebar-group[open] .sidebar-group-arrow { transform: rotate(180deg); }
.sidebar-group-links {
  display: grid;
  gap: 4px;
  padding: 0 7px 8px;
}
.sidebar-group-links.standalone-links { padding: 0; }
.sidebar-group-links a,
.sidebar a {
  margin: 0;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.3;
}
.sidebar-group-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  border: 0;
  background: rgba(15,23,42,.55);
  z-index: 7;
}
@media (min-width: 781px) {
  body.sidebar-collapsed .layout { grid-template-columns: 0 minmax(0, 1fr); }
  body.sidebar-collapsed .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 780px) {
  .menu-toggle-label { display: none; }
  .layout { display: block; }
  .sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: min(330px, 88vw);
    height: 100vh;
    padding: 18px 14px;
    transform: translateX(-105%);
    z-index: 9;
    box-shadow: 20px 0 50px rgba(15,23,42,.28);
  }
  .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  body.sidebar-mobile-open { overflow: hidden; }
  body.sidebar-mobile-open .sidebar { transform: translateX(0); }
  body.sidebar-mobile-open .sidebar-backdrop { display: block; }
  .sidebar-title,
  .sidebar-divider { grid-column: auto; }
  .sidebar a { margin: 0; }
}

/* TAMAMLAMA 13 - Eski sistemdeki güçlü marka, menü arama ve üst işlem ergonomisi */
.topbar {
  min-height: 72px;
  padding: 10px 20px;
  border-top: 4px solid #111827;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}
.brand-logo {
  width: 54px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #111827;
  flex: 0 0 auto;
}
.brand-logo img { width: 70px; height: 50px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-copy strong { font-size: 20px; line-height: 1.05; letter-spacing: .35px; }
.brand-copy small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.topnav { gap: 8px; }
.top-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}
.top-action:hover { background: #e2e8f0; border-color: #cbd5e1; }
.notification-action > span:first-child { color: #f59e0b; font-size: 12px; }
.notification-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.sidebar-subtitle { color: #cbd5e1; font-size: 12px; margin-top: 4px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-search-wrap { position: relative; margin-bottom: 12px; }
.sidebar-search-label { display: block; color: var(--sidebar-muted); font-size: 11px; font-weight: 800; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-search {
  min-height: 42px;
  padding: 9px 38px 9px 11px;
  border-color: rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
}
.sidebar-search::placeholder { color: #94a3b8; }
.sidebar-search:focus { border-color: #93c5fd; outline: 3px solid rgba(147,197,253,.18); }
.sidebar-search-clear {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
}
.sidebar-search-wrap.has-value .sidebar-search-clear { display: inline-flex; align-items: center; justify-content: center; }
.sidebar-group.is-filtered-out, [data-menu-item].is-filtered-out { display: none !important; }
.sidebar-no-result { color: #fecaca; border: 1px dashed rgba(254,202,202,.35); border-radius: 10px; padding: 12px; font-size: 13px; text-align: center; }
.sidebar-foot { margin-top: 16px; padding: 12px 4px 2px; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; font-size: 11px; text-align: center; }
.page-head {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.page-context { display: inline-block; margin-bottom: 7px; color: var(--primary); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.page-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 980px) {
  .top-action-label { display: none; }
  .top-user { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 780px) {
  .topbar { position: sticky; top: 0; align-items: center; padding: 8px 10px; }
  .brand-logo { width: 44px; height: 36px; }
  .brand-logo img { width: 58px; height: 43px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 17px; }
  .topnav { flex-wrap: nowrap; }
  .topnav .top-user { display: none; }
  .topnav .btn { min-height: 36px; padding: 7px 9px; }
  .top-action { min-width: 36px; min-height: 36px; padding: 6px 8px; }
  .page-head { display: block; padding: 16px; }
  .page-head-actions { margin-top: 14px; justify-content: stretch; }
  .page-head-actions .btn { flex: 1 1 auto; width: auto; }
}
@media (max-width: 520px) {
  .brand-copy { display: none; }
  .notification-action .notification-count { position: absolute; top: -6px; right: -6px; }
}

/* TAMAMLAMA 28 - Eski sistemden alınan canlı görsel dil, yeni çekirdeğe dokunmadan */
:root {
  --bg: #eef5fa;
  --panel: #ffffff;
  --border: #d5e3ef;
  --primary: #0f5bd7;
  --primary-dark: #0b438f;
  --accent: #0ea5e9;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --sidebar: #0b1b3b;
  --shadow: 0 16px 38px rgba(15, 23, 42, .09);
}
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(14,165,233,.10), transparent 26rem),
    radial-gradient(circle at 100% 18%, rgba(37,99,235,.07), transparent 30rem),
    linear-gradient(180deg,#edf5fb 0%,#f8fbfe 46%,#eef5f8 100%);
}
.topbar {
  background: linear-gradient(90deg,#ffffff 0%,#f7fbff 55%,#edf8ff 100%);
  border-top-color: #0f5bd7;
  border-bottom-color: #c9dceb;
  box-shadow: 0 9px 25px rgba(15, 91, 215, .08);
}
.brand-logo {
  background: linear-gradient(145deg,#0b1b3b,#0f5bd7 64%,#0ea5e9);
  box-shadow: 0 8px 20px rgba(15,91,215,.20);
}
.menu-toggle,
.top-action {
  border-color: #c9dceb;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.menu-toggle:hover,
.top-action:hover {
  background: #eaf6ff;
  border-color: #7dd3fc;
  color: #075985;
}
.sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.18), transparent 18rem),
    linear-gradient(180deg,#0b1b3b 0%,#102b5a 54%,#0b1b3b 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.06);
}
.sidebar-group {
  border-color: rgba(191,219,254,.14);
  background: rgba(255,255,255,.035);
}
.sidebar-group.active-group {
  border-color: rgba(125,211,252,.55);
  background: linear-gradient(135deg,rgba(14,165,233,.18),rgba(37,99,235,.10));
}
.sidebar-group summary { color: #f8fbff; }
.sidebar-group-links a:hover {
  background: rgba(14,165,233,.20);
  color: #fff;
}
.sidebar-group-links a.active,
.sidebar a.active {
  background: linear-gradient(90deg,#0f5bd7,#0ea5e9);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(14,165,233,.22);
}
.sidebar-search {
  background: rgba(255,255,255,.11);
  border-color: rgba(191,219,254,.24);
}
.page-head {
  border-color: #c9dceb;
  border-left-color: #0ea5e9;
  background:
    radial-gradient(circle at 95% 10%,rgba(14,165,233,.11),transparent 17rem),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,248,255,.94));
  box-shadow: 0 13px 32px rgba(15,91,215,.07);
}
.page-context { color: #0f5bd7; }
.card {
  border-color: #d7e5f0;
  box-shadow: 0 13px 32px rgba(15,23,42,.075);
}
.card h2 { color: #15345a; }
.summary-grid .summary-card,
.entry-grid .entry-card {
  position: relative;
  overflow: hidden;
  border-color: #d7e5f0;
  box-shadow: 0 9px 22px rgba(15,23,42,.055);
}
.summary-grid .summary-card::after,
.entry-grid .entry-card::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  right: -38px;
  top: -42px;
  background: rgba(255,255,255,.48);
}
.summary-grid .summary-card:nth-child(6n+1),
.entry-grid .entry-card:nth-child(6n+1) { background: linear-gradient(145deg,#eff6ff,#ffffff); border-top: 4px solid #2563eb; }
.summary-grid .summary-card:nth-child(6n+2),
.entry-grid .entry-card:nth-child(6n+2) { background: linear-gradient(145deg,#ecfeff,#ffffff); border-top: 4px solid #0891b2; }
.summary-grid .summary-card:nth-child(6n+3),
.entry-grid .entry-card:nth-child(6n+3) { background: linear-gradient(145deg,#f0fdf4,#ffffff); border-top: 4px solid #16a34a; }
.summary-grid .summary-card:nth-child(6n+4),
.entry-grid .entry-card:nth-child(6n+4) { background: linear-gradient(145deg,#fffbeb,#ffffff); border-top: 4px solid #f59e0b; }
.summary-grid .summary-card:nth-child(6n+5),
.entry-grid .entry-card:nth-child(6n+5) { background: linear-gradient(145deg,#fdf2f8,#ffffff); border-top: 4px solid #db2777; }
.summary-grid .summary-card:nth-child(6n+6),
.entry-grid .entry-card:nth-child(6n+6) { background: linear-gradient(145deg,#f5f3ff,#ffffff); border-top: 4px solid #7c3aed; }
.summary-card span,.entry-card span { color: #52657d; font-weight: 800; }
.summary-card strong,.entry-card strong { color: #0f2747; }
.filter-panel,
.hint-box,
.check-row,
.kpi,
.step-card,
.workflow > div {
  border-color: #d7e5f0;
  background: linear-gradient(145deg,#f8fbff,#ffffff);
}
input,select,textarea {
  border-color: #c8d9e8;
  background: #fff;
}
input:focus,select:focus,textarea:focus {
  border-color: #38bdf8;
  outline-color: rgba(14,165,233,.18);
}
.btn {
  box-shadow: 0 5px 13px rgba(15,23,42,.08);
  transition: transform .12s ease,filter .12s ease,box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(.98); box-shadow: 0 8px 18px rgba(15,23,42,.11); }
.btn-primary { background: linear-gradient(90deg,#0f5bd7,#0ea5e9); }
.btn-success { background: linear-gradient(90deg,#15803d,#22c55e); }
.btn-warning { background: linear-gradient(90deg,#b45309,#f59e0b); }
.btn-danger { background: linear-gradient(90deg,#b91c1c,#ef4444); }
.btn-secondary { background: linear-gradient(145deg,#edf3f8,#dce8f1); color:#17324f; }
.table-wrap { border-color: #cdddea; box-shadow: 0 8px 20px rgba(15,23,42,.045); }
.data-table th {
  background: linear-gradient(180deg,#e5f5ff,#dff1fb);
  color: #17324f;
  border-bottom-color: #bdd8e9;
  font-weight: 900;
}
.data-table tbody tr:nth-child(even) td { background: #fbfdff; }
.data-table tbody tr:hover td { background: #eef9ff; }
.mobile-card {
  border-color: #d5e3ef;
  box-shadow: 0 7px 18px rgba(15,23,42,.05);
  background: linear-gradient(145deg,#ffffff,#f9fcff);
}
.alert-success { box-shadow: inset 4px 0 #16a34a; }
.alert-warning { box-shadow: inset 4px 0 #f59e0b; }
.alert-danger { box-shadow: inset 4px 0 #dc2626; }
.badge { border: 1px solid transparent; }
.badge.ok { border-color: #bbf7d0; }
.badge.warning { border-color: #fde68a; }
.badge.danger { border-color: #fecaca; }
@media(max-width:780px){
  .content { padding: 16px 12px 34px; }
  .card { padding: 17px; border-radius: 17px; }
  .summary-grid { gap: 10px; }
  .summary-grid .summary-card { padding: 15px; }
  .summary-grid .summary-card strong { font-size: 22px; }
  .page-head { border-radius: 17px; }
}

/* TAMAMLAMA 29 - Eski u01m görsel dili, yeni üretici çekirdeği üzerinde */
body.producer-app-mode {
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 20px;
  background: linear-gradient(180deg,#edf4fb 0%,#f8fbff 48%,#eef5f8 100%);
}
body.producer-app-mode .topbar {
  width: calc(100% - 24px);
  max-width: 430px;
  min-height: 70px;
  margin: 10px auto 8px;
  padding: 10px 11px;
  position: sticky;
  top: 6px;
  z-index: 40;
  border: 1px solid #d6e5f0;
  border-top: 1px solid #d6e5f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.09);
}
body.producer-app-mode .menu-toggle,
body.producer-app-mode .topnav .top-action:first-child,
body.producer-app-mode .topnav [data-refresh-page],
body.producer-app-mode .top-user { display: none !important; }
body.producer-app-mode .topbar-left { gap: 8px; min-width: 0; }
body.producer-app-mode .brand { gap: 8px; }
body.producer-app-mode .brand-logo {
  width: 54px;
  height: 46px;
  flex-basis: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg,#0b1b3b,#0f5bd7 62%,#0ea5e9);
  box-shadow: 0 8px 18px rgba(15,91,215,.18);
}
body.producer-app-mode .brand-logo img { width: 68px; height: 48px; }
body.producer-app-mode .brand-copy { display: flex !important; }
body.producer-app-mode .brand-copy strong { color: #0f3d91; font-size: 19px; font-weight: 950; }
body.producer-app-mode .brand-copy small { display: block !important; max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: #64748b; font-size: 10px; }
body.producer-app-mode .topnav { flex-wrap: nowrap; gap: 6px; }
body.producer-app-mode .notification-action {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 14px;
  border-color: #f59e0b;
  background: #fff7ed;
  color: #92400e;
}
body.producer-app-mode .notification-action .top-action-label { display:none; }
body.producer-app-mode .topnav .btn {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  box-shadow: none;
}
body.producer-app-mode .layout { display: block !important; min-height: 0; }
body.producer-app-mode .sidebar,
body.producer-app-mode .sidebar-backdrop { display: none !important; }
body.producer-app-mode .content {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 6px 12px 28px;
}
body.producer-app-mode .page-head { display: none !important; }
body.producer-app-mode .producer-hero {
  padding: 14px !important;
  margin: 0 0 12px !important;
  border: 1px solid #bfdbfe !important;
  border-left: 5px solid #0ea5e9 !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg,#ffffff,#f4faff) !important;
  color: #0f172a !important;
  box-shadow: 0 9px 22px rgba(29,78,216,.07) !important;
}
body.producer-app-mode .producer-hero::after { display: none !important; }
body.producer-app-mode .producer-hero h2 { color: #1d4ed8 !important; font-size: 20px !important; margin-bottom: 5px !important; }
body.producer-app-mode .producer-hero p { color: #64748b !important; font-weight: 800; font-size: 12px; }
body.producer-app-mode .producer-hero .badge { background: #dcfce7 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
body.producer-app-mode .producer-period-form {
  display: grid !important;
  grid-template-columns: 1fr 84px !important;
  gap: 8px !important;
  align-items: end !important;
  margin-top: 10px !important;
}
body.producer-app-mode .producer-period-form label { min-width: 0 !important; }
body.producer-app-mode .producer-period-form label span { display: none; }
body.producer-app-mode .producer-period-form select {
  height: 46px;
  padding: 0 8px;
  border: 1.5px solid #60a5fa;
  border-radius: 14px;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  text-align-last: center;
}
body.producer-app-mode .producer-period-form .btn {
  width: auto !important;
  height: 46px;
  min-height: 46px;
  padding: 0 8px;
  border-radius: 14px;
  font-size: 12px;
}
body.producer-app-mode .producer-anchor-nav {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 7px !important;
  overflow: visible !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.producer-app-mode .producer-anchor-nav a {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px !important;
  border: 1px solid #d6e5f0;
  border-radius: 14px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: 0 5px 14px rgba(15,23,42,.05);
  text-align: center;
  font-size: 10px !important;
  line-height: 1.15;
}
body.producer-app-mode .producer-anchor-nav a:nth-child(1),
body.producer-app-mode .producer-anchor-nav a:nth-child(6) {
  background: linear-gradient(135deg,#0f5bd7,#0ea5e9) !important;
  color: #fff !important;
  border-color: #0ea5e9;
}
body.producer-app-mode .producer-announcement-list { gap: 7px; }
body.producer-app-mode #duyurular {
  border-color: #fed7aa;
  background: linear-gradient(145deg,#fff7ed,#ffffff);
}
body.producer-app-mode .producer-announcement {
  border-radius: 13px;
  padding: 10px;
  font-size: 12px;
}
body.producer-app-mode .card {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 17px;
  box-shadow: 0 7px 18px rgba(15,23,42,.055);
}
body.producer-app-mode .section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
body.producer-app-mode .section-title-row h2 { font-size: 17px; margin: 0 0 4px; color: #0f3d91; }
body.producer-app-mode .section-title-row p { font-size: 11px; line-height: 1.4; }
body.producer-app-mode .summary-grid,
body.producer-app-mode .summary-grid.small-summary {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 9px !important;
  margin-bottom: 12px !important;
}
body.producer-app-mode .summary-card {
  min-height: 88px;
  padding: 12px !important;
  border-radius: 16px !important;
}
body.producer-app-mode .summary-card span { font-size: 10px; font-weight: 900; }
body.producer-app-mode .summary-card strong { font-size: 19px !important; line-height: 1.18; }
body.producer-app-mode .producer-chart-meta { gap: 5px; }
body.producer-app-mode .producer-chart-meta .badge { font-size: 9px; padding: 5px 7px; }
body.producer-app-mode .producer-chart {
  min-height: 175px;
  padding: 12px 8px 7px;
  border-radius: 15px;
}
body.producer-app-mode .producer-chart-bar-wrap { height: 125px; }
body.producer-app-mode .producer-account-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
body.producer-app-mode .producer-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
body.producer-app-mode .producer-profile-item {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg,#f8fbff,#ffffff);
}
body.producer-app-mode .producer-profile-item span { font-size: 9px; }
body.producer-app-mode .producer-profile-item strong { font-size: 13px; }
body.producer-app-mode .mobile-card-list.always-cards { display: grid !important; gap: 8px; }
body.producer-app-mode .mobile-card { padding: 11px; border-radius: 14px; font-size: 12px; }
body.producer-app-mode .mobile-card p { margin: 7px 0; }
body.producer-app-mode .table-wrap {
  display: block !important;
  overflow-x: auto !important;
  border: 1px solid #d5e3ef !important;
  border-radius: 14px !important;
}
body.producer-app-mode .data-table {
  display: table !important;
  min-width: 620px;
  table-layout: auto !important;
}
body.producer-app-mode .data-table th,
body.producer-app-mode .data-table td { padding: 9px 8px; font-size: 11px; white-space: nowrap; }
body.producer-app-mode .producer-mobile-bottom { display: none !important; }

/* Üretici sipariş ekranı da uygulama modunda aynı görsel kabuğu kullanır. */
body.producer-app-mode.producer-order-page .producer-order-hero { grid-template-columns: 1fr !important; gap: 10px !important; }
body.producer-app-mode.producer-order-page .producer-order-hero .card { margin-bottom: 0; }
body.producer-app-mode.producer-order-page .producer-order-products {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
}
body.producer-app-mode.producer-order-page .producer-order-product {
  min-width: 0;
  padding: 10px;
  border-radius: 15px;
  background: linear-gradient(145deg,#ffffff,#f8fbff);
}
body.producer-app-mode.producer-order-page .producer-order-product h3 { font-size: 12px; line-height: 1.25; }
body.producer-app-mode.producer-order-page .producer-order-product p { font-size: 10px; }
body.producer-app-mode.producer-order-page .producer-order-product input { height: 43px; font-size: 17px; border-color: #93c5fd; }
body.producer-app-mode.producer-order-page .producer-order-actions {
  bottom: 6px;
  padding: 8px;
  border-radius: 16px;
  gap: 6px;
}
body.producer-app-mode.producer-order-page .producer-order-actions .btn { min-height: 43px; padding: 8px 9px; font-size: 11px; }
@media(max-width:370px){
  body.producer-app-mode .brand-copy small { display:none !important; }
  body.producer-app-mode .producer-anchor-nav { gap: 5px !important; }
  body.producer-app-mode .producer-anchor-nav a { font-size: 9px !important; }
  body.producer-app-mode.producer-order-page .producer-order-products { grid-template-columns: 1fr !important; }
}

/* CSP uyumlu ortak yardımcı sınıflar */
.mt-5{margin-top:5px!important}.mt-8{margin-top:8px!important}.mt-10{margin-top:10px!important}.mt-12{margin-top:12px!important}.mt-14{margin-top:14px!important}.mt-16{margin-top:16px!important}
.max-w-170{min-width:170px}.max-w-360{max-width:360px;margin-bottom:12px}.card-max-980{width:min(980px,100%)}
.maintenance-body{font-family:Arial,sans-serif;background:#f8fafc;color:#0f172a;padding:40px}.maintenance-card{max-width:560px;margin:auto;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px}.maintenance-card h1{margin-top:0}
.native-progress{display:block;width:100%;height:12px;border:0;accent-color:#16a34a}.native-progress::-webkit-progress-bar{background:#e2e8f0;border-radius:999px}.native-progress::-webkit-progress-value{background:#16a34a;border-radius:999px}.native-progress::-moz-progress-bar{background:#16a34a;border-radius:999px}
.native-progress.compact{height:10px;margin-top:8px}.native-progress.is-warning{accent-color:#d97706}.native-progress.is-danger{accent-color:#b91c1c}
.is-negative{color:#b91c1c!important}.is-positive{color:#166534!important}
.dynamic-field[hidden]{display:none!important}
.chart-svg{display:block;width:100%;height:100%;overflow:visible}.chart-svg rect{fill:currentColor}.chart-svg text{font-size:8px;fill:currentColor}
