:root {
  --auth-bg: #eef3f8;
  --auth-panel: rgba(255,255,255,.92);
  --auth-panel-strong: #ffffff;
  --auth-primary: #1957d2;
  --auth-primary-dark: #0f3480;
  --auth-accent: #10b981;
  --auth-text: #172033;
  --auth-muted: #6b7890;
  --auth-line: rgba(28, 43, 70, .12);
  --auth-shadow: 0 28px 80px rgba(18, 38, 73, .20);
  --auth-radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.erp-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 18% 15%, rgba(25,87,210,.26), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(16,185,129,.20), transparent 28%),
    linear-gradient(135deg, #edf3fb 0%, #f8fafc 48%, #e8eef7 100%);
  overflow-x: hidden;
}

.erp-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  position: relative;
}
.erp-auth-shell::before,
.erp-auth-shell::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .24;
  pointer-events: none;
}
.erp-auth-shell::before { left: -170px; bottom: -150px; background: #1957d2; }
.erp-auth-shell::after { right: -180px; top: -150px; background: #10b981; }

.erp-auth-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  background: var(--auth-panel);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.erp-auth-hero {
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(15,52,128,.96), rgba(25,87,210,.92)),
    linear-gradient(45deg, rgba(255,255,255,.1), transparent);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.erp-auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 58px solid rgba(255,255,255,.10);
}
.erp-auth-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.erp-auth-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 24px;
}
.erp-auth-hero h1 {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -.04em;
}
.erp-auth-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
}
.erp-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 5vw, 56px);
}
.erp-auth-stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
}
.erp-auth-stat strong { display: block; font-size: 20px; margin-bottom: 4px; }
.erp-auth-stat span { display: block; font-size: 12px; color: rgba(255,255,255,.76); }

.erp-auth-form-panel {
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255,255,255,.78);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.erp-auth-form-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.03em;
  color: #111827;
}
.erp-auth-subtitle { margin: 0 0 24px; color: var(--auth-muted); line-height: 1.55; }
.erp-auth-alert {
  padding: 13px 14px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(220,38,38,.18);
  background: #fff1f2;
  color: #991b1b;
  font-size: 14px;
}
.erp-auth-field { margin-bottom: 16px; }
.erp-auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #263245;
  font-weight: 700;
  font-size: 13px;
}
.erp-auth-field input,
.erp-auth-field .form-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #fff;
  color: var(--auth-text);
  padding: 13px 15px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.erp-auth-field input:focus,
.erp-auth-field .form-control:focus {
  border-color: rgba(25,87,210,.72);
  box-shadow: 0 0 0 4px rgba(25,87,210,.12);
}
.erp-auth-error { color: #dc2626; font-size: 12px; margin-top: 7px; }
.erp-auth-password-wrap { position: relative; }
.erp-auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #edf3ff;
  color: #1d4ed8;
  border-radius: 12px;
  min-height: 34px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.erp-auth-password-wrap input { padding-right: 76px; }
.erp-auth-submit,
.erp-auth-btn-primary {
  width: 100%;
  border: 0;
  min-height: 54px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 30px rgba(25,87,210,.25);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.erp-auth-submit:hover,
.erp-auth-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(25,87,210,.32); }
.erp-auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  border: 1px solid var(--auth-line);
  background: #fff;
  color: #263245;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.erp-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.erp-auth-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: 18px;
  background: #f4f7fb;
  border: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}
.erp-auth-note a { color: var(--auth-primary); font-weight: 800; text-decoration: none; }
.erp-auth-footer { margin-top: 18px; color: #8792a6; text-align: center; font-size: 12px; }

.erp-auth-card.erp-auth-confirm { grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr); }
.erp-auth-confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 30px;
  margin-bottom: 18px;
}
.erp-auth-mini-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.erp-auth-mini-list li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.82); font-size: 14px; }
.erp-auth-mini-list li::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(16,185,129,.26); color: #fff; }

@media (max-width: 920px) {
  .erp-auth-card,
  .erp-auth-card.erp-auth-confirm { grid-template-columns: 1fr; }
  .erp-auth-hero { padding: 30px; }
  .erp-auth-stats { grid-template-columns: 1fr; }
  .erp-auth-hero p { font-size: 14px; }
}

@media (max-width: 560px) {
  body.erp-auth-body { background: linear-gradient(180deg, #eef4ff, #ffffff); }
  .erp-auth-shell { padding: 12px; align-items: stretch; }
  .erp-auth-card,
  .erp-auth-card.erp-auth-confirm {
    min-height: calc(100vh - 24px);
    border-radius: 24px;
  }
  .erp-auth-hero {
    min-height: auto;
    padding: 26px 22px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
  .erp-auth-badge { margin-bottom: 18px; font-size: 12px; }
  .erp-auth-logo { width: 46px; height: 46px; border-radius: 15px; margin-bottom: 18px; }
  .erp-auth-hero h1 { font-size: 30px; }
  .erp-auth-stats { display: none; }
  .erp-auth-form-panel { padding: 26px 20px 22px; justify-content: flex-start; }
  .erp-auth-form-panel h2 { font-size: 24px; }
  .erp-auth-field input,
  .erp-auth-field .form-control,
  .erp-auth-submit,
  .erp-auth-btn-primary,
  .erp-auth-btn-secondary { min-height: 56px; border-radius: 18px; font-size: 16px; }
  .erp-auth-actions { grid-template-columns: 1fr; }
}


/* ERP Hareket Geçmişi Liste Düzeltmesi */
.table-responsive,
.erp-table-wrap,
.table-area{
    width:100%;
    overflow-x:auto;
}

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

table th,
table td{
    padding:7px 8px !important;
    font-size:12px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
}

table th{
    font-size:11px !important;
    font-weight:800;
}

/* Kolon genişlik optimizasyonu */
table th:nth-child(1),
table td:nth-child(1){
    width:72px;
}

table th:nth-child(2),
table td:nth-child(2){
    width:110px;
}

table th:nth-child(3),
table td:nth-child(3){
    width:90px;
}

table th:nth-child(4),
table td:nth-child(4){
    width:78px;
}

table th:nth-child(5),
table td:nth-child(5){
    width:78px;
}

table th:nth-child(6),
table td:nth-child(6){
    width:78px;
}

table th:nth-child(7),
table td:nth-child(7){
    width:78px;
}

table th:nth-child(8),
table td:nth-child(8){
    width:95px;
}

table th:nth-child(9),
table td:nth-child(9){
    width:120px;
}

.erp-btn,
button{
    padding:6px 10px !important;
    font-size:11px !important;
    border-radius:10px !important;
}

input,
select,
textarea{
    min-height:34px !important;
    font-size:12px !important;
}

