*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #243044;
  --border: #2f3f56;
  --text: #e8edf4;
  --muted: #8fa3bc;
  --accent: #3b9eff;
  --accent-glow: rgba(59, 158, 255, 0.25);
  --product: #f0c040;
  --product-bg: rgba(240, 192, 64, 0.12);
  --personel: #5ee0a0;
  --danger: #ff6b6b;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.4;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  background: linear-gradient(135deg, #152030 0%, #1a2a40 100%);
  border-bottom: 1px solid var(--border);
  padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem 1.25rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-title {
  flex: 1;
  min-width: 200px;
}

.type-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
}

.type-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.type-tab:hover {
  color: var(--text);
}

.type-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

#refreshBtn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, border-color 0.15s;
}

#refreshBtn:hover {
  background: var(--border);
  border-color: var(--accent);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.status {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.grid-summary {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.grid-summary[hidden] {
  display: none !important;
}

.summary-card {
  min-width: 180px;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.summary-card--open {
  border-color: rgba(94, 224, 160, 0.35);
  background: rgba(94, 224, 160, 0.08);
}

.summary-card--personel {
  border-color: rgba(59, 158, 255, 0.35);
  background: rgba(59, 158, 255, 0.08);
}

.summary-card--closed {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary-card--open .summary-value {
  color: var(--personel);
}

.summary-card--personel .summary-value {
  color: var(--accent);
}

.summary-card--closed .summary-value {
  color: var(--danger);
}

.summary-card--ozet {
  min-width: 260px;
  max-width: 520px;
  border-color: rgba(255, 193, 94, 0.35);
  background: rgba(255, 193, 94, 0.08);
}

.summary-card--vardiya-toplam {
  border-color: rgba(147, 112, 219, 0.35);
  background: rgba(147, 112, 219, 0.08);
}

.summary-card--vardiya-toplam .summary-value {
  color: #c4a7ff;
}

.summary-ozet-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffd27d;
  text-transform: lowercase;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.machine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.machine-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.machine-header {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}

.product-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(240, 192, 64, 0.06);
  text-align: center;
}

.product-text {
  color: var(--product);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.machine-visual {
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(59, 158, 255, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, var(--surface) 0%, #141c28 100%);
}

.machine-icon {
  width: 100%;
  max-width: 200px;
  filter: drop-shadow(0 8px 24px rgba(59, 158, 255, 0.2));
}

.machine-visual--sisirme {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(45, 212, 191, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, var(--surface) 0%, #141c28 100%);
}

.machine-visual--sisirme .machine-icon {
  filter: drop-shadow(0 8px 24px rgba(45, 212, 191, 0.22));
}

.machine-icon svg {
  width: 100%;
  height: auto;
  display: block;
}

.machine-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.personel-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}

.personel-names--numbered {
  gap: 0.45rem;
}

.personel-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}

.personel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.personel-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--personel);
  text-transform: capitalize;
  line-height: 1.35;
  word-break: break-word;
  text-align: center;
}

.machine-card--uppercase .machine-header,
.machine-card--uppercase .product-text,
.machine-card--uppercase .personel-label,
.machine-card--uppercase .personel-name {
  text-transform: uppercase;
}

.machine-card--off {
  border-color: rgba(255, 107, 107, 0.45);
}

.machine-card--off:hover {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.machine-card--off .product-section {
  background: rgba(255, 107, 107, 0.08);
}

.machine-card--off .machine-visual {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 107, 107, 0.1) 0%, transparent 65%),
    linear-gradient(180deg, var(--surface) 0%, #141c28 100%);
}

.machine-card--off .machine-icon {
  filter: drop-shadow(0 8px 24px rgba(255, 107, 107, 0.2));
  opacity: 0.75;
}

.product-text--off,
.personel-name--off {
  color: var(--danger);
  text-transform: none;
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 2.5rem;
  gap: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.slideshow[hidden] {
  display: none !important;
}

.slideshow-inner {
  width: min(920px, 96vw);
  animation: slideIn 0.4s ease;
}

.slideshow-counter {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.machine-card--large {
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--accent-glow), 0 24px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.machine-card--large .machine-header {
  font-size: 1.35rem;
  padding: 1.25rem 1.5rem;
}

.machine-card--large .product-section {
  padding: 1rem 1.5rem;
}

.machine-card--large .product-text {
  font-size: 1.1rem;
}

.machine-card--large .machine-visual {
  min-height: min(42vh, 360px);
  padding: 2rem;
}

.machine-card--large .machine-icon {
  max-width: 380px;
}

.machine-card--large .machine-footer {
  padding: 1.1rem 1.5rem;
  justify-content: center;
  gap: 0.75rem;
}

.machine-card--large .personel-label {
  font-size: 0.8rem;
}

.machine-card--large .personel-name {
  font-size: 1.15rem;
  text-align: center;
}

body.presentation-active {
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100vw;
}

body.presentation-active .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding: max(0.75rem, env(safe-area-inset-top)) 1.5rem 0.75rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

body.presentation-active .header-title {
  display: none;
}

body.presentation-active .header-inner {
  justify-content: center;
  position: relative;
}

body.presentation-active #refreshBtn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

body.presentation-active .type-tabs {
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 6rem);
}

body.presentation-active .slideshow {
  top: var(--presentation-header-height, 4.5rem);
  bottom: 0;
  height: auto;
  padding: 0.75rem 0.75rem 2rem;
  justify-content: flex-start;
}

body.presentation-active .slideshow-inner {
  width: min(920px, 100%);
  flex-shrink: 0;
}

body.presentation-active .slideshow-inner:has(.sevkiyat-card) {
  width: min(1400px, calc(100vw - 3rem));
}

body.presentation-active .slideshow-inner:has(.uretim-card) {
  width: min(1100px, calc(100vw - 3rem));
}

.slideshow-inner:has(.sevkiyat-card) {
  width: min(1400px, calc(100vw - 3rem));
  max-width: 100%;
  box-sizing: border-box;
}

.slideshow:has(.machine-card--large):not(:has(.uretim-card)):not(:has(.sevkiyat-card)) {
  justify-content: center;
}

.uretim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.uretim-card--large {
  border-radius: 20px;
  border-color: var(--accent);
}

.uretim-title {
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  color: var(--accent);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.uretim-card--large .uretim-title {
  font-size: 1.75rem;
  padding: 1.5rem;
}

.uretim-table {
  width: 100%;
  border-collapse: collapse;
}

.uretim-table th,
.uretim-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.uretim-table tbody tr:last-child td {
  border-bottom: none;
}

.uretim-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.12);
}

.uretim-table th:first-child {
  text-align: left;
}

.uretim-table td {
  font-size: 0.95rem;
  color: var(--text);
}

.uretim-table td:first-child {
  font-weight: 600;
  color: var(--product);
  text-align: left;
}

.uretim-row--total td {
  font-weight: 700;
  background: rgba(59, 158, 255, 0.08);
  color: var(--accent);
  text-transform: uppercase;
}

.uretim-card--large .uretim-table td {
  font-size: 1.15rem;
  padding: 1rem 1.25rem;
}

.uretim-card--large .uretim-table th {
  font-size: 0.85rem;
}

.slideshow-inner:has(.uretim-card) {
  width: min(1100px, calc(100vw - 3rem));
  max-width: 100%;
  box-sizing: border-box;
}

.uretim-body {
  padding: 1rem 1.25rem 1.5rem;
}

.uretim-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.uretim-chart-box {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.uretim-chart-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pie-chart {
  width: min(180px, 42vw);
  height: min(180px, 42vw);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.uretim-card--large .pie-chart {
  width: min(220px, 38vw);
  height: min(220px, 38vw);
}

.pie-legend {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pie-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.uretim-card--large .pie-legend-item {
  font-size: 0.88rem;
}

.pie-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.pie-legend-label {
  color: var(--text);
  font-weight: 600;
}

.pie-legend-value {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.uretim-card--large .uretim-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.uretim-card--large .uretim-chart-title {
  font-size: 0.95rem;
}

.stok-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.stok-card--large {
  border-radius: 20px;
  border-color: #f0c040;
}

.stok-title {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  color: #f0c040;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.stok-card--large .stok-title {
  font-size: 1.75rem;
  padding: 1.5rem;
}

.stok-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2.5rem 2rem 3rem;
  min-height: 420px;
  justify-content: center;
}

.stok-menu-item {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.stok-menu-item:hover {
  border-color: #f0c040;
  background: #1f1a10;
  transform: translateY(-1px);
}

.stok-grup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.stok-grup-header .stok-title {
  flex: 1;
  border: none;
  padding: 0;
  background: transparent;
}

.stok-back-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}

.stok-body {
  padding: 1rem 1.25rem 1.5rem;
  overflow-x: auto;
}

.stok-body--empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.stok-empty-text {
  color: var(--muted);
  font-size: 1rem;
}

.stok-table {
  width: 100%;
  border-collapse: collapse;
}

.stok-table th,
.stok-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.stok-table th {
  background: var(--surface-2);
  color: #f0c040;
}

.stok-row--grup .stok-grup-name {
  color: #f0c040;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-top: 1rem;
  padding-bottom: 0.55rem;
  background: rgba(240, 192, 64, 0.06);
  border-top: 1px solid rgba(240, 192, 64, 0.22);
}

.stok-row--grup:first-child .stok-grup-name {
  border-top: none;
  padding-top: 0.65rem;
}

.stok-row--subheader th {
  background: var(--surface-2);
  color: #f0c040;
  font-weight: 700;
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.slideshow-inner:has(.stok-card) {
  width: min(920px, calc(100vw - 3rem));
}

body.presentation-active .slideshow-inner:has(.stok-card) {
  width: min(920px, 100%);
}

.sevkiyat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sevkiyat-card--large {
  border-radius: 20px;
  border-color: #f0c040;
}

.sevkiyat-header {
  position: relative;
  --sevkiyat-header-font-size: 1.35rem;
  --sevkiyat-summary-font-size: 1.125rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.sevkiyat-title {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: var(--sevkiyat-header-font-size);
  color: #f0c040;
  margin: 0;
}

.sevkiyat-summary {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: var(--sevkiyat-summary-font-size);
  font-weight: 600;
  line-height: 1.3;
  z-index: 1;
}

.sevkiyat-summary-line {
  margin: 0;
}

.sevkiyat-summary-line + .sevkiyat-summary-line {
  margin-top: 0.35rem;
}

.sevkiyat-summary-line--sent {
  color: #5ee0a0;
}

.sevkiyat-summary-line--preparing {
  color: #ff6b6b;
}

.sevkiyat-header:has(.sevkiyat-summary) .sevkiyat-title {
  padding-top: 3.1rem;
}

.sevkiyat-card--large .sevkiyat-header {
  --sevkiyat-header-font-size: 1.75rem;
  --sevkiyat-summary-font-size: 1.375rem;
}

.sevkiyat-card--large .sevkiyat-title {
  padding: 1.5rem;
}

.sevkiyat-card--large .sevkiyat-summary {
  top: 1rem;
  left: 1.25rem;
}

.sevkiyat-card--large .sevkiyat-header:has(.sevkiyat-summary) .sevkiyat-title {
  padding-top: 3.75rem;
}

.sevkiyat-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sevkiyat-body {
  padding: 1rem 1rem 1.5rem;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
}

@media (min-width: 1201px) {
  .sevkiyat-cards-mobile {
    display: none !important;
  }

  .sevkiyat-table--desktop .sevkiyat-arac-icon {
    width: 88px;
  }

  .sevkiyat-table--desktop th,
  .sevkiyat-table--desktop td {
    padding: 0.75rem 0.65rem;
  }

  .sevkiyat-table--desktop .sevkiyat-arac-label {
    font-size: 0.8rem;
  }

  .sevkiyat-card--large .sevkiyat-body {
    padding: 1.25rem 1.5rem 1.75rem;
  }
}

.sevkiyat-table th,
.sevkiyat-table td {
  padding: 0.75rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.sevkiyat-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.12);
}

.sevkiyat-card--large .sevkiyat-body {
  padding: 1rem 1rem 1.5rem;
}

.sevkiyat-col-firma,
.sevkiyat-firma-cell {
  width: 10%;
  text-align: left;
}

.sevkiyat-col-yer,
.sevkiyat-yer-cell {
  width: 11%;
  text-align: left;
}

.sevkiyat-col-arac,
.sevkiyat-arac-cell {
  width: 9%;
}

.sevkiyat-col-urun,
.sevkiyat-urun-cell {
  width: 34%;
  text-align: left;
}

.sevkiyat-col-adet,
.sevkiyat-adet-cell {
  width: 18%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.sevkiyat-col-durum,
.sevkiyat-durum-cell {
  width: 18%;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.sevkiyat-table td {
  font-size: 0.9rem;
  color: var(--text);
}

.sevkiyat-firma-cell {
  font-weight: 600;
}

.sevkiyat-urun-cell {
  font-weight: 600;
  color: var(--product);
  line-height: 1.35;
  word-break: break-word;
}

.sevkiyat-adet-cell {
  font-weight: 600;
  color: var(--text);
}

.sevkiyat-arac-cell {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.sevkiyat-arac {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.sevkiyat-arac-icon {
  width: 88px;
  height: auto;
}

.sevkiyat-arac-icon--kendi {
  width: 56px;
}

.sevkiyat-arac-label--kendi {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  max-width: 72px;
  text-align: center;
  line-height: 1.2;
  color: #5eead4;
}

.sevkiyat-arac-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.sevkiyat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.sevkiyat-badge--gonderildi {
  background: rgba(94, 224, 160, 0.15);
  border: 1px solid #5ee0a0;
  color: #5ee0a0;
}

.sevkiyat-badge--hazirlaniyor {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

.sevkiyat-arac-pending {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 700;
}

.sevkiyat-card--large .sevkiyat-table td {
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
}

.sevkiyat-card--large .sevkiyat-table th {
  font-size: 0.8rem;
}

.sevkiyat-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sevkiyat-card {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.sevkiyat-shipment-card {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.sevkiyat-shipment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sevkiyat-shipment-firma {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sevkiyat-shipment-yer {
  font-size: 0.9rem;
  color: var(--muted);
}

.sevkiyat-shipment-arac {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sevkiyat-shipment-arac .sevkiyat-arac-icon {
  width: 72px;
}

.sevkiyat-shipment-status {
  margin-bottom: 0.75rem;
}

.sevkiyat-product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sevkiyat-product-item {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}

.sevkiyat-product-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sevkiyat-product-row + .sevkiyat-product-row {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.sevkiyat-mobile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sevkiyat-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--product);
  line-height: 1.35;
}

.sevkiyat-product-qty {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 1200px), (hover: none) and (pointer: coarse) {
  .sevkiyat-table--desktop {
    display: none !important;
  }

  .sevkiyat-cards-mobile {
    display: flex !important;
  }

  .slideshow-inner:has(.sevkiyat-card) {
    width: 100% !important;
    max-width: 100vw;
  }

  .sevkiyat-card,
  .sevkiyat-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    padding: 0.65rem;
  }

  .sevkiyat-shipment-card {
    padding: 0.75rem;
  }

  .sevkiyat-shipment-arac .sevkiyat-arac-icon {
    width: 56px;
  }

  .sevkiyat-shipment-arac {
    width: 72px;
  }

  .sevkiyat-header {
    --sevkiyat-header-font-size: 1.05rem;
    --sevkiyat-summary-font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sevkiyat-card--large .sevkiyat-title,
  .sevkiyat-title {
    padding: 0.5rem 0.5rem 0.85rem;
    line-height: 1.3;
  }

  .sevkiyat-summary {
    position: static;
    top: auto;
    left: auto;
    max-width: 100%;
    padding: 0.45rem 0.5rem 0;
    align-self: flex-start;
  }

  .sevkiyat-summary-line + .sevkiyat-summary-line {
    margin-top: 0.2rem;
  }

  .sevkiyat-header:has(.sevkiyat-summary) .sevkiyat-title {
    padding-top: 0.25rem;
  }

  .sevkiyat-shipment-top {
    align-items: center;
  }

  .sevkiyat-shipment-info {
    flex: 1;
    min-width: 0;
  }

  .sevkiyat-shipment-firma,
  .sevkiyat-product-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .sevkiyat-shipment-status {
    display: flex;
    justify-content: flex-start;
  }

  body.presentation-active .slideshow {
    padding: 0.5rem 0.45rem 1.5rem;
    overflow-x: hidden;
  }
}

@media (max-width: 1200px) {
  .sevkiyat-table--desktop {
    display: none;
  }

  .sevkiyat-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .sevkiyat-card--large .sevkiyat-header {
    --sevkiyat-header-font-size: 1.2rem;
    --sevkiyat-summary-font-size: 0.78rem;
  }

  .sevkiyat-card--large .sevkiyat-title {
    padding: 0.35rem 0.75rem 1rem;
    line-height: 1.35;
  }

  .sevkiyat-card--large .sevkiyat-header:has(.sevkiyat-summary) .sevkiyat-title {
    padding-top: 0.2rem;
  }

  .sevkiyat-card--large .sevkiyat-body,
  .sevkiyat-body {
    padding: 0.85rem;
  }

  .slideshow-inner:has(.sevkiyat-card) {
    width: 100%;
  }

  body.presentation-active .slideshow {
    padding: 0.65rem 0.65rem 2rem;
    gap: 0.75rem;
  }

  body.presentation-active .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }

  body.presentation-active .header {
    padding: 0.55rem 0.75rem;
  }

  body.presentation-active .type-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem;
    width: 100%;
    max-width: 100%;
  }

  body.presentation-active #refreshBtn {
    position: static;
    transform: none;
    margin: 0;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 720px) {
  .uretim-charts {
    grid-template-columns: 1fr;
  }

  .slideshow-inner:has(.uretim-card),
  body.presentation-active .slideshow-inner:has(.uretim-card) {
    width: 100%;
    max-width: 100%;
  }

  .uretim-card--large .uretim-title {
    font-size: 1.15rem;
    padding: 0.9rem 0.55rem;
    line-height: 1.3;
  }

  .uretim-card--large .uretim-body {
    padding: 0.65rem 0.4rem 1rem;
  }

  .uretim-table {
    table-layout: fixed;
    width: 100%;
  }

  .uretim-table th,
  .uretim-table td {
    padding: 0.55rem 0.3rem;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .uretim-card--large .uretim-table td {
    font-size: 0.74rem;
    padding: 0.55rem 0.3rem;
  }

  .uretim-card--large .uretim-table th {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.25rem;
  }

  .uretim-table th:nth-child(1),
  .uretim-table td:nth-child(1) {
    width: 26%;
  }

  .uretim-table th:nth-child(2),
  .uretim-table td:nth-child(2),
  .uretim-table th:nth-child(3),
  .uretim-table td:nth-child(3) {
    width: 37%;
  }

  .uretim-table td:first-child {
    font-size: 0.7rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .uretim-table td:not(:first-child) {
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .uretim-row--total td {
    font-size: 0.68rem;
  }

  body.presentation-active .slideshow:has(.uretim-card) {
    overflow-x: hidden;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

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

  .machine-card--large .machine-header {
    font-size: 1rem;
  }

  .machine-card--large .product-text {
    font-size: 0.9rem;
  }

  .machine-card--large .personel-name {
    font-size: 1rem;
  }

  .uretim-card--large .uretim-title {
    font-size: 0.95rem;
    padding: 0.75rem 0.4rem;
  }

  .uretim-card--large .uretim-body {
    padding: 0.5rem 0.3rem 0.85rem;
  }

  .uretim-table th,
  .uretim-table td,
  .uretim-card--large .uretim-table td {
    padding: 0.45rem 0.2rem;
    font-size: 0.66rem;
  }

  .uretim-card--large .uretim-table th {
    font-size: 0.58rem;
    padding: 0.4rem 0.15rem;
  }

  .uretim-table td:not(:first-child),
  .uretim-row--total td {
    font-size: 0.62rem;
  }

  .uretim-table td:first-child {
    font-size: 0.64rem;
  }
}
