/* ==========
   BASE THEME
   ========== */
:root {
  --primary: #0066ff;
  --primary-soft: #e5f0ff;
  --danger: #ff4d4f;
  --success: #00b96b;
  --warning: #faad14;

  --text-main: #222;
  --text-sub: #666;
  --bg: #f5f6f7;
  --card-bg: #ffffff;
  --border: #e5e5e5;

  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* แอปรวม */
.shell {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========
   LOGIN PAGE
   ========== */

.login-wrapper {
  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  /* gradient เต็มจอ */
  background: linear-gradient(180deg, #001529 0%, #f0f5ff 100%);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 16px;
}

/* ==========
   HEADER & CONTENT (หลังล็อกอิน)
   ========== */

header.app-header {
  padding: 16px 24px 8px;
  font-size: 20px;
  font-weight: 600;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px 100px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

/* มือถือ / แท็บเล็ต ลด padding หน่อย */
@media (max-width: 768px) {
  .screen {
    box-shadow: none;
  }
  header.app-header {
    padding: 14px 16px 8px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .content {
    padding: 12px 12px 90px;
    padding-bottom: max(90px, calc(90px + env(safe-area-inset-bottom)));
  }
}

/* ==========
   FORM ELEMENTS
   ========== */

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 70px;
}

.row {
  display: flex;
  gap: 8px;
}
.row > .col {
  flex: 1;
}

/* ==========
   BUTTONS
   ========== */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-outline-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-outline-primary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ==========
   CARDS & TEXT
   ========== */

.section-title {
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 12px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.06);
  border: 1px solid #f0f0f0;
}

.card-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.card-meta {
  display: flex;
  font-size: 12px;
  margin-top: 6px;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}
.card-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reason-block {
  background: #fafafa;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin-top: 8px;
}

.card-header-line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* ==========
   STATUS PILL
   ========== */

.status-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-pending {
  background: #fff7e6;
  color: #d48806;
}
.status-approved {
  background: #f6ffed;
  color: #389e0d;
}
.status-rejected {
  background: #fff1f0;
  color: #cf1322;
}

/* ==========
   APPROVE TABS
   ========== */

.approve-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.approve-tabs::-webkit-scrollbar {
  display: none;
}

.approve-tab {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.approve-tab.active {
  background: var(--primary);
  color: #fff;
}

/* ==========
   CARD FOOTER BUTTONS (อนุมัติ/ปฏิเสธ)
   ========== */

.card-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ==========
   BOTTOM NAV
   ========== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 4px 6px 8px;
  padding-bottom: max(8px, calc(8px + env(safe-area-inset-bottom)));
  display: flex;
  gap: 4px;
  z-index: 10;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
  min-width: 60px;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #777;
  padding: 6px 8px;
  border-radius: 12px;
  cursor: pointer;
  gap: 3px;
  transition: all 0.2s ease;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-label {
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
}

.nav-item-logout {
  color: #ff4d4f;
}

.nav-item-logout:hover {
  background: #fff1f0;
}

/* ==========
   HELPERS
   ========== */

/* Responsive Bottom Nav */
@media (min-width: 640px) {
  .bottom-nav {
    justify-content: center;
    padding: 6px 12px 10px;
    gap: 6px;
  }
  
  .nav-item {
    min-width: 70px;
    max-width: 100px;
    font-size: 11px;
    padding: 7px 10px;
  }
  
  .nav-icon {
    width: 32px;
    height: 32px;
  }
  
  .nav-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    gap: 8px;
    padding: 8px 16px 12px;
  }
  
  .nav-item {
    min-width: 80px;
    max-width: 120px;
    font-size: 12px;
    padding: 8px 12px;
  }
}

.text-sub {
  color: var(--text-sub);
}

.error-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
}

.loading-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
}


/* ===== ทำให้ฟอร์มอยู่กลางจอ ===== */
.center-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  width: 100%;
}

.form-wrapper {
  width: 95%;
  max-width: 480px;
}


/* ===== บังคับ input time เป็น 24 ชั่วโมง ===== */
input[type="time"]::-webkit-datetime-edit-ampm-field {
  display: none;
}

input[type="time"] {
  font-size: 16px;
}

/* ปรับความสวยงามของ card */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.time-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-select {
  width: 100%;
  padding-right: 8px;
}

.time-sep {
  font-weight: 600;
  margin: 0 2px;
}

/* CARD SLIP */
.payslip-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.section-title svg {
  color: #3b82f6;
}

.payslip-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.payslip-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Selector Card */
.selector-card {
  border: 2px solid #e5e7eb;
}

.selector-header {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.date-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selector-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.selector-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
  cursor: pointer;
}

.selector-input:hover {
  border-color: #3b82f6;
}

.selector-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-view-payslip {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-view-payslip:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-view-payslip:active:not(:disabled) {
  transform: translateY(0);
}

.btn-view-payslip:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 14px;
  margin-top: 12px;
}

/* Result Card */
.result-card {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.employee-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.employee-info {
  flex: 1;
}

.employee-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.employee-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-code {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.period-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

.divider.dashed {
  background: none;
  border-top: 2px dashed #e5e7eb;
}

.details-section {
  margin: 20px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  transition: all 0.2s;
}

.detail-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.detail-item.deduction-item {
  background: #fef2f2;
}

.detail-item.deduction-item:hover {
  background: #fee2e2;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-type-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.item-type-icon.deduction {
  background: #ef4444;
}

.item-name {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
}

.item-amount {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
}

.item-amount.amount-deduction {
  color: #ef4444;
}

.summary-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* Payslip: รายการย่อยใต้ "รวมหัก" */
.summary-sublist {
  padding-left: 14px;
  margin-top: -6px;
}

.summary-subrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-subheader {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 2px;
}

.summary-sub-label {
  font-size: 13px;
  color: #6b7280;
}

.summary-sub-value {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  white-space: nowrap;
}

.summary-row.total {
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 12px;
  color: white;
  margin-top: 8px;
}

.summary-label {
  font-size: 15px;
  color: #6b7280;
  font-weight: 500;
}

.summary-row.total .summary-label {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.summary-value {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.summary-value.earning {
  color: #10b981;
}

.summary-value.deduction {
  color: #ef4444;
}

.summary-row.total .summary-value {
  color: white;
  font-size: 22px;
}

/* Responsive Design */
@media (max-width: 640px) {
  .payslip-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .payslip-card {
    padding: 20px;
    border-radius: 12px;
  }

  .date-selector {
    grid-template-columns: 1fr;
  }

  .employee-header {
    flex-direction: column;
    text-align: center;
  }

  .employee-avatar {
    width: 56px;
    height: 56px;
  }

  .employee-name {
    font-size: 18px;
  }

  .employee-meta {
    justify-content: center;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .item-amount {
    align-self: flex-end;
  }

  .summary-row.total .summary-value {
    font-size: 20px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .payslip-container {
    padding: 20px;
  }
}

@media (min-width: 1025px) {
  .payslip-container {
    padding: 24px;
  }

  .payslip-card {
    padding: 28px;
  }
}

/* LIST APPROVE OT */
.approve-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.section-title svg {
  color: #3b82f6;
}

.approve-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

/* Filter Card */
.filter-card {
  border: 2px solid #e5e7eb;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.filter-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.filter-input {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-input:hover {
  border-color: #3b82f6;
}

.filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tabs */
.tabs-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.tab-item {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-item:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tab-item.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
}

.tab-item.active .tab-content {
  color: white;
}

.tab-content svg {
  flex-shrink: 0;
}

.tab-label {
  flex: 1;
  white-space: nowrap;
}

.tab-badge {
  background: #f3f4f6;
  color: #1f2937;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.tab-item.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Requests List */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  animation: slideIn 0.4s ease-out;
}

.request-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Request Header */
.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.employee-info-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.employee-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.employee-name-compact {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-badge.status-approved {
  background: #d1fae5;
  color: #059669;
}

.status-badge.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* DateTime Info */
.request-datetime {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.datetime-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.datetime-item svg {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
}

.stat-item.amount {
  grid-column: span 2;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.hours {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon.factor {
  background: #e0e7ff;
  color: #6366f1;
}

.stat-icon.money {
  background: #10b981;
  color: white;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

/* Reason Section */
.reason-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.reason-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.reason-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.reject-reason {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: #fee2e2;
  border-radius: 8px;
  font-size: 13px;
  color: #991b1b;
}

.reject-reason svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reject {
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.btn-reject:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-approve:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-action:active {
  transform: translateY(0);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state svg {
  color: #d1d5db;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 15px;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 640px) {
  .approve-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .approve-card {
    padding: 16px;
  }

  .filter-selector {
    grid-template-columns: 1fr;
  }

  .tabs-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tab-item {
    padding: 12px;
  }

  .request-card {
    padding: 16px;
  }

  .request-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .employee-info-compact {
    width: 100%;
  }

  .status-badge {
    align-self: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item.amount {
    grid-column: span 1;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .approve-container {
    padding: 20px;
  }

  .tabs-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1025px) {
  .approve-container {
    padding: 24px;
  }

  .tabs-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item.amount {
    grid-column: span 1;
  }
}

/* END LIST APPROVE OT */

/* OT.REQ */
.ot-request-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  position: sticky;
  top: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  background: #f9fafb;
  padding: 20px 0 16px 0;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 10;
  transition: all 0.3s;
}

.section-title svg {
  color: #3b82f6;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Info Card */
.info-card,
.form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.info-card:hover,
.form-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.card-header svg {
  color: #3b82f6;
}

/* Employee Display */
.employee-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.employee-details {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.employee-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-code {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-label svg {
  color: #6b7280;
}

.form-input,
.time-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
}

.form-input:hover,
.time-input:hover {
  border-color: #3b82f6;
}

.form-input:focus,
.time-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Time Pickers */
.time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.time-picker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
}

.time-picker:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.time-input {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  cursor: pointer;
}

.time-input:focus {
  outline: none;
  box-shadow: none;
}

.time-separator {
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
}

.time-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding-bottom: 8px;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #1f2937;
  background: #ffffff;
  resize: vertical;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.6;
}

.form-textarea:hover {
  border-color: #3b82f6;
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea::placeholder {
  color: #9ca3af;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.alert-loading {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: #2563eb;
}

.alert svg {
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  .ot-request-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
    top: -12px;
    padding: 16px 0 12px 0;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .info-card,
  .form-card {
    padding: 20px;
    border-radius: 12px;
  }

  .employee-display {
    flex-direction: column;
    text-align: center;
  }

  .employee-avatar-large {
    width: 64px;
    height: 64px;
  }

  .employee-name {
    font-size: 18px;
  }

  .employee-meta {
    justify-content: center;
  }

  .time-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .time-arrow {
    display: none;
  }

  .time-picker {
    justify-content: center;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .ot-request-container {
    padding: 20px;
  }

  .time-group {
    gap: 12px;
  }
}

@media (min-width: 1025px) {
  .ot-request-container {
    padding: 24px;
  }

  .section-title {
    top: -24px;
    padding: 24px 0 16px 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .info-card,
  .form-card {
    padding: 28px;
  }

  .time-group {
    gap: 20px;
  }
}

/* Animation */
.info-card,
.form-card {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Employee Display */
.employee-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.employee-details {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.employee-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-code {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-label svg {
  color: #6b7280;
}

.form-input,
.time-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
}

.form-input:hover,
.time-input:hover {
  border-color: #3b82f6;
}

.form-input:focus,
.time-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Time Pickers */
.time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.time-picker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.2s;
}

.time-picker:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.time-input {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  cursor: pointer;
}

.time-input:focus {
  outline: none;
  box-shadow: none;
}

.time-separator {
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
}

.time-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding-bottom: 8px;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #1f2937;
  background: #ffffff;
  resize: vertical;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.6;
}

.form-textarea:hover {
  border-color: #3b82f6;
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea::placeholder {
  color: #9ca3af;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.alert-loading {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: #2563eb;
}

.alert svg {
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  .ot-request-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .info-card,
  .form-card {
    padding: 20px;
    border-radius: 12px;
  }

  .employee-display {
    flex-direction: column;
    text-align: center;
  }

  .employee-avatar-large {
    width: 64px;
    height: 64px;
  }

  .employee-name {
    font-size: 18px;
  }

  .employee-meta {
    justify-content: center;
  }

  .time-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .time-arrow {
    display: none;
  }

  .time-picker {
    justify-content: center;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .ot-request-container {
    padding: 20px;
  }

  .time-group {
    gap: 12px;
  }
}

@media (min-width: 1025px) {
  .ot-request-container {
    padding: 24px;
  }

  .info-card,
  .form-card {
    padding: 28px;
  }

  .time-group {
    gap: 20px;
  }
}

/* Animation */
.info-card,
.form-card {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* END OT.REQ */


/* LOGIN */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.circle-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/* Login Content */
.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Card */
.login-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
  }
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-label svg {
  color: #6b7280;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
}

.form-input:hover {
  border-color: #3b82f6;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.alert-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.alert-loading {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: #2563eb;
}

.alert svg {
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-login svg {
  flex-shrink: 0;
}

/* Admin Link */
.admin-link {
  text-align: center;
  margin-top: 8px;
}

.admin-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  padding: 8px 12px;
  border-radius: 8px;
}

.admin-link a:hover {
  color: #3b82f6;
  background: #f3f4f6;
}

.admin-link a svg {
  flex-shrink: 0;
}

/* Footer */
.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.login-footer svg {
  flex-shrink: 0;
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 640px) {
  .login-container {
    padding: 16px;
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .login-icon {
    width: 64px;
    height: 64px;
  }

  .login-icon svg {
    width: 36px;
    height: 36px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 13px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-login {
    padding: 14px 20px;
    font-size: 15px;
  }

  .bg-circle {
    opacity: 0.7;
  }

  .circle-1 {
    width: 200px;
    height: 200px;
  }

  .circle-2 {
    width: 250px;
    height: 250px;
  }

  .circle-3 {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .login-card {
    padding: 36px;
  }
}

/* Focus visible for accessibility */
.form-input:focus-visible,
.btn-login:focus-visible,
.admin-link a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* LOGIN */

/* MENU */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  max-width: 100px;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.nav-item:active {
  transform: translateY(0);
}

.nav-item.active {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 0 0 4px 4px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  transition: all 0.2s;
  color: #6b7280;
}

.nav-item:hover .nav-icon {
  background: #e5e7eb;
  color: #3b82f6;
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-item.nav-item-logout .nav-icon {
  color: #ef4444;
}

.nav-item.nav-item-logout:hover .nav-icon {
  background: #fef2f2;
  color: #dc2626;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item:hover .nav-label {
  color: #3b82f6;
}

.nav-item.active .nav-label {
  color: #2563eb;
}

.nav-item.nav-item-logout .nav-label {
  color: #ef4444;
}

.nav-item.nav-item-logout:hover .nav-label {
  color: #dc2626;
}

/* Ripple Effect */
.nav-item::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s;
}

.nav-item:active::after {
  opacity: 1;
  transform: scale(1);
  transition: all 0s;
}

/* Responsive Design */
@media (max-width: 640px) {
  .bottom-nav {
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }

  .nav-item {
    padding: 6px 8px;
    gap: 2px;
    max-width: 80px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

  .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .nav-label {
    font-size: 10px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .bottom-nav {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .nav-item {
    padding: 10px 14px;
    max-width: 120px;
  }

  .nav-label {
    font-size: 12px;
  }
}

@media (min-width: 1025px) {
  .bottom-nav {
    position: relative;
    border-top: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    justify-content: center;
    gap: 8px;
  }

  .nav-item {
    padding: 10px 16px;
    max-width: 140px;
    border-radius: 14px;
  }

  .nav-item.active::before {
    top: auto;
    bottom: -1px;
    width: 50px;
    height: 3px;
    border-radius: 4px 4px 0 0;
  }

  .nav-icon {
    width: 44px;
    height: 44px;
  }

  .nav-label {
    font-size: 13px;
  }
}

/* Animation for icon on active */
.nav-item.active .nav-icon svg {
  animation: iconPop 0.3s ease-out;
}

@keyframes iconPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* BASE & RESET */
/* ไม่มี default padding ใน body */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f7;
  color: #222;
}

/* เพิ่ม padding ที่ .content แทน */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 90px; /* เพิ่ม padding-bottom สำหรับ nav */
  background: #f5f6f7;
}

@media (min-width: 1025px) {
  .content {
    padding: 16px 24px; /* ลด padding บน desktop */
  }
}

/* Smooth scroll padding for bottom nav */
/* body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
} */

@media (min-width: 1025px) {
  body {
    padding-bottom: 0;
    padding-top: 76px;
  }
}

/* MENU */

/* Change Password */
.change-password-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  position: sticky;
  top: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  background: #f9fafb;
  padding: 20px 0 16px 0;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 10;
  transition: all 0.3s;
}

.section-title svg {
  color: #3b82f6;
}

/* Password Card */
.password-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Security Notice */
.security-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  border: 2px solid #bfdbfe;
  margin-bottom: 24px;
}

.security-notice svg {
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-text {
  flex: 1;
}

.notice-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.notice-text p {
  font-size: 13px;
  color: #3b82f6;
  line-height: 1.5;
  margin: 0;
}

/* Form */
.password-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-label svg {
  color: #6b7280;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 46px 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
}

.form-input:hover {
  border-color: #3b82f6;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input.input-match {
  border-color: #10b981;
  background: #f0fdf4;
}

.form-input.input-mismatch {
  border-color: #ef4444;
  background: #fef2f2;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.icon-success {
  color: #10b981;
}

.icon-error {
  color: #ef4444;
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 10px;
  transition: all 0.3s;
}

.strength-fill.weak {
  background: #ef4444;
}

.strength-fill.medium {
  background: #f59e0b;
}

.strength-fill.strong {
  background: #10b981;
}

.strength-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.strength-label.weak {
  color: #ef4444;
}

.strength-label.medium {
  color: #f59e0b;
}

.strength-label.strong {
  color: #10b981;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.alert-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.alert-success {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: #16a34a;
}

.alert-loading {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: #2563eb;
}

.alert svg {
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.3);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-submit svg {
  flex-shrink: 0;
}

/* Tips Section */
.tips-section {
  margin-top: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.tips-header svg {
  color: #6b7280;
}

.tips-list {
  margin: 0;
  padding-left: 24px;
  list-style: none;
}

.tips-list li {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
  position: relative;
}

.tips-list li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: #10b981;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 640px) {
  .change-password-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
    top: -12px;
    padding: 16px 0 12px 0;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .password-card {
    padding: 20px;
    border-radius: 12px;
  }

  .security-notice {
    flex-direction: column;
    padding: 14px;
  }

  .form-input {
    padding: 12px 40px 12px 14px;
    font-size: 14px;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .change-password-container {
    padding: 20px;
  }
}

@media (min-width: 1025px) {
  .change-password-container {
    padding: 24px;
  }

  .section-title {
    top: -24px;
    padding: 24px 0 16px 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .password-card {
    padding: 28px;
  }
}

/* Change password */

/* Report */
.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  position: sticky;
  top: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  background: #f9fafb;
  padding: 20px 0 16px 0;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 10;
  transition: all 0.3s;
}

.section-title svg {
  color: #3b82f6;
}

/* Filter Card */
.filter-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.filter-header svg {
  color: #3b82f6;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.filter-input {
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-input:hover {
  border-color: #3b82f6;
}

.filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #10b981;
  border: 2px solid #10b981;
}

.btn-secondary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-action:active {
  transform: translateY(0);
}

.btn-action svg {
  flex-shrink: 0;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Report Content */
.report-content {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Summary Section */
.summary-section {
  margin-bottom: 24px;
}

.summary-header,
.employee-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.summary-header svg,
.employee-header svg {
  color: #3b82f6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.summary-card.highlight {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
}

.summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-icon.requests {
  background: #dbeafe;
  color: #2563eb;
}

.summary-icon.approved {
  background: #d1fae5;
  color: #059669;
}

.summary-icon.hours {
  background: #fef3c7;
  color: #d97706;
}

.summary-icon.money {
  background: #10b981;
  color: white;
}

.summary-content {
  flex: 1;
  min-width: 0;
}

.summary-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.summary-card.highlight .summary-value {
  color: #047857;
}

.summary-value .unit {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin-left: 4px;
}

/* Employee Section */
.employee-section {
  margin-top: 24px;
}

.employee-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.employee-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.employee-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.employee-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.employee-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.employee-details {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.employee-code {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.employee-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
}

.stat-box.highlight {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-box.highlight .stat-icon {
  background: #10b981;
  color: white;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-box.highlight .stat-value {
  color: #047857;
}

/* Responsive Design */
@media (max-width: 640px) {
  .report-container {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
    top: -12px;
    padding: 16px 0 12px 0;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .filter-card {
    padding: 20px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .employee-stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .report-container {
    padding: 20px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .employee-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .report-container {
    padding: 24px;
  }

  .section-title {
    top: -24px;
    padding: 24px 0 16px 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .employee-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Report */
 

/* ===================================
   Employee Management - Table Layout
   Complete CSS with Modern Design
   =================================== */

/* Container */
.employee-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4f46e5;
}

.section-title svg {
  color: #4f46e5;
}

/* Filter Card */
.employee-filter-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.employee-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.filter-left > svg {
  color: #6b7280;
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 250px;
}

.filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.filter-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Create Employee Button */
.btn-create-employee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.btn-create-employee:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

.btn-create-employee:active {
  transform: translateY(0);
}

/* Form Card */
.employee-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #e5e7eb;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.form-card-header svg {
  color: #4f46e5;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label svg {
  color: #6b7280;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:read-only {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Form Row (2 columns) */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Checkbox */
.form-checkbox {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: #4f46e5;
}

.checkbox-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

.checkbox-text svg {
  color: #22c55e;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.alert svg {
  flex-shrink: 0;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-error svg {
  color: #dc2626;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.alert-success svg {
  color: #16a34a;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.btn-cancel,
.btn-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-cancel:hover:not(:disabled) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.btn-save {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.btn-save:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.4);
}

.btn-cancel:disabled,
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.employee-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.employee-loading-state p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Empty State */
.employee-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.employee-empty-state svg {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.employee-empty-state p {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

/* ===================================
   TABLE STYLES
   =================================== */

.employee-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.table-wrapper {
  overflow-x: hidden;
  overflow-y: visible;
}

.employee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  table-layout: fixed;
}

/* Table Header */
.employee-table thead {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.employee-table thead tr {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.employee-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  white-space: nowrap;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.employee-table th:first-child {
  border-top-left-radius: 12px;
}

.employee-table th:last-child {
  border-top-right-radius: 12px;
}

/* Column Widths - Optimized for no horizontal scroll */
.th-status { width: 110px; }
.th-code { width: 140px; }
.th-name { width: auto; min-width: 200px; }
.th-position { width: 180px; }
.th-type { width: 120px; }
.th-salary { width: 150px; }
.th-actions { width: 100px; text-align: center; }

/* Table Body */
.employee-table tbody tr {
  transition: all 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.employee-table tbody tr:hover {
  background: linear-gradient(90deg, #fef3c7 0%, #fef9e6 100%);
  transform: scale(1.005);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.employee-table td {
  padding: 1rem 1.25rem;
  color: #374151;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status Badge in Table */
.td-status {
  padding: 0.75rem 1.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.active svg {
  color: #059669;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-badge.inactive svg {
  color: #dc2626;
}

/* Employee Code Cell */
.code-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4f46e5;
  letter-spacing: 0.5px;
}

.code-cell svg {
  color: #6b7280;
  flex-shrink: 0;
}

/* Name Cell with Avatar */
.name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-small {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-small svg {
  color: white;
}

.name-text {
  font-weight: 600;
  color: #1a202c;
}

/* Position */
.td-position {
  color: #4b5563;
  font-weight: 500;
}

/* Type Badge */
.type-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #c7d2fe;
}

/* Salary Cell */
.salary-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f59e0b;
}

.salary-cell svg {
  color: #f59e0b;
  flex-shrink: 0;
}

/* Action Buttons in Table */
.td-actions {
  text-align: center;
  padding: 0.75rem 1rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.btn-table-edit,
.btn-table-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-table-edit {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-table-edit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.btn-table-toggle {
  border: 2px solid;
}

.btn-table-toggle.activate {
  background: white;
  color: #16a34a;
  border-color: #16a34a;
}

.btn-table-toggle.activate:hover {
  background: #f0fdf4;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}

.btn-table-toggle.deactivate {
  background: white;
  color: #dc2626;
  border-color: #dc2626;
}

.btn-table-toggle.deactivate:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Spinners */
.spinner-small {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 3rem;
  height: 3rem;
  border: 4px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .employee-container {
    padding: 1.5rem;
  }

  .employee-table {
    font-size: 0.85rem;
  }

  .employee-table th {
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
  }

  .employee-table td {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 768px) {
  .employee-container {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .employee-filter-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-create-employee {
    justify-content: center;
  }

  .employee-form-card {
    padding: 1.5rem;
  }

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

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-cancel,
  .btn-save {
    width: 100%;
    justify-content: center;
  }

  /* Make table scrollable on mobile */
  .table-wrapper {
    border-radius: 12px;
  }

  .employee-table {
    font-size: 0.8rem;
  }

  .employee-table th,
  .employee-table td {
    padding: 0.75rem 0.875rem;
  }

  .employee-table th {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .employee-table th,
  .employee-table td {
    padding: 0.625rem 0.75rem;
  }

  .status-badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
  }

  .btn-table-edit,
  .btn-table-toggle {
    width: 2rem;
    height: 2rem;
  }

  .btn-table-edit svg,
  .btn-table-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* Print Styles */
@media print {
  .employee-filter-card,
  .btn-create-employee,
  .form-actions,
  .td-actions,
  .th-actions {
    display: none !important;
  }

  .employee-table-container {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .employee-table thead {
    background: #f3f4f6 !important;
    color: #1a202c !important;
  }

  .employee-table th {
    color: #1a202c !important;
    border-bottom: 2px solid #d1d5db !important;
  }

  .employee-table tbody tr:hover {
    background: white !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Utility Classes */
.currency {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

/* Smooth Transitions */
* {
  box-sizing: border-box;
}

button {
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* Scrollbar Styling */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ===================================
   OT Rate Settings - Complete CSS
   Matching Employee Management Theme
   =================================== */

/* Container */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4f46e5;
}

.section-title svg {
  color: #4f46e5;
}

/* Description Card */
.description-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: #1e40af;
  font-size: 0.95rem;
  font-weight: 500;
}

.description-card svg {
  color: #3b82f6;
  flex-shrink: 0;
}

/* OT Form Card */
.ot-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #e5e7eb;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.form-card-header svg {
  color: #4f46e5;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label svg {
  color: #6b7280;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Form Row (3 columns) */
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.alert svg {
  flex-shrink: 0;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-error svg {
  color: #dc2626;
}

.alert-info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.alert-info svg {
  color: #3b82f6;
}

/* Buttons */
.btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.btn-save:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.4);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
}

/* OT List Section */
.ot-list-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 2px solid #e5e7eb;
}

.list-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.list-header svg {
  color: #4f46e5;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.625rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-left: auto;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.loading-state p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.empty-state svg {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.empty-state p {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 500;
}

/* OT Rate List */
.ot-rate-list {
  display: grid;
  gap: 1.25rem;
}

/* OT Rate Card */
.ot-rate-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
}

.ot-rate-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

.ot-rate-card.inactive {
  background: #f9fafb;
  border-color: #d1d5db;
  opacity: 0.7;
}

.ot-rate-card.inactive:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* OT Card Header */
.ot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.ot-card-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.day-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.day-icon svg {
  color: white;
}

.day-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.day-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.time-range svg {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Factor Badge */
.factor-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid #fbbf24;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.factor-badge svg {
  color: #f59e0b;
}

/* Description */
.ot-card-description {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

.ot-card-description svg {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Inactive Badge */
.inactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.inactive-badge svg {
  color: #dc2626;
}

/* Metadata */
.ot-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #fde68a;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: #78350f;
  font-weight: 500;
}

.meta-item svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.meta-item strong {
  font-weight: 700;
  color: #92400e;
}

/* Actions */
.ot-card-actions {
  padding-top: 1rem;
  border-top: 2px solid #f3f4f6;
}

.btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #dc2626;
  border: 2px solid #dc2626;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-delete:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.btn-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Spinners */
.spinner-small {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 3rem;
  height: 3rem;
  border: 4px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .ot-form-card,
  .ot-list-section {
    padding: 1.5rem;
  }

  .form-card-header,
  .list-header {
    font-size: 1.2rem;
  }

  .ot-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ot-card-title {
    margin-bottom: 0.5rem;
  }

  .factor-badge {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .settings-container {
    padding: 1rem;
  }

  .description-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .ot-card-title {
    gap: 0.75rem;
  }

  .day-icon {
    width: 2rem;
    height: 2rem;
  }

  .day-icon svg {
    width: 16px;
    height: 16px;
  }

  .day-name {
    font-size: 1rem;
  }

  .time-range {
    font-size: 0.8rem;
  }

  .factor-badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .ot-form-card,
  .btn-save,
  .btn-delete,
  .ot-card-actions {
    display: none !important;
  }

  .ot-rate-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* Smooth Transitions */
* {
  box-sizing: border-box;
}

button {
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* ===================================
   Report Filter - Compact Layout CSS
   =================================== */

/* Filter Grid - Compact Design */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  gap: 1.5rem;
  max-width: 600px; /* จำกัดความกว้างสูงสุด */
  margin-bottom: 1.5rem;
}

/* Alternative: Fixed 2 columns on large screens */
.filter-grid-fixed {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Filter Group */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0;
}

.filter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Inline Filter Layout (Alternative) */
.filter-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.filter-inline .filter-group {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 250px;
}

/* Responsive */
@media (max-width: 640px) {
  .filter-grid,
  .filter-grid-fixed {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .filter-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-inline .filter-group {
    max-width: 100%;
  }
}

/* ===================================
   Complete Report Page Styling
   =================================== */

/* Page Container */
.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4f46e5;
}

.section-title svg {
  color: #4f46e5;
}

/* Filter Card */
.filter-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid #e5e7eb;
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
}

.filter-card-header svg {
  color: #4f46e5;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-download,
.btn-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 160px;
}

.btn-download {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-download:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.btn-export {
  background: white;
  color: #059669;
  border: 2px solid #059669;
}

.btn-export:hover {
  background: #f0fdf4;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

/* Responsive Buttons */
@media (max-width: 640px) {
  .button-group {
    flex-direction: column;
  }

  .btn-download,
  .btn-export {
    width: 100%;
  }
}

/* Cliam */
.claim-container {
  padding: 15px;
}

.claim-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.card-header {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.btn-submit-claim {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn-submit-claim:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.claim-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.claim-table th, .claim-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.status {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.status.pending {
  background: #fdf1ba;
  color: #8a6d00;
}

.status.approved {
  background: #d1fae5;
  color: #065f46;
}

.status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.no-data {
  text-align: center;
  padding: 15px;
  color: #888;
}

/* Claim eof */

/* Approve claim */

/* .claim-approve-container {
  max-width: 980px;
  margin: 0 auto;
}

.claim-card {
  background: #151821;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.04);
}

.claim-card .card-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.claim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.claim-table th,
.claim-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.claim-table th {
  text-align: left;
  font-weight: 600;
  color: #94a3b8;
}

.claim-table tbody tr:hover {
  background: rgba(15,23,42,0.8);
}

.emp-name-cell {
  display: flex;
  flex-direction: column;
}

.emp-name-main {
  font-weight: 500;
  color: #e2e8f0;
}

.emp-name-sub {
  font-size: 11px;
  color: #94a3b8;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.status-badge.pending {
  background: rgba(234,179,8,0.15);
  color: #eab308;
}

.status-badge.approved {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}

.status-badge.rejected {
  background: rgba(248,113,113,0.18);
  color: #fca5a5;
}

.action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-approve-claim,
.btn-reject-claim {
  border: none;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
}

.btn-approve-claim {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

.btn-approve-claim:hover {
  background: rgba(34,197,94,0.25);
}

.btn-reject-claim {
  background: rgba(248,113,113,0.15);
  color: #fca5a5;
}

.btn-reject-claim:hover {
  background: rgba(248,113,113,0.25);
}
 */

 /* Claim Approve Specific Styles */
.claim-approve-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.employee-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.employee-name {
  font-weight: 500;
  color: #1a1a1a;
}

.employee-code {
  font-size: 12px;
  color: #666;
}

.claim-type-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 13px;
  color: #333;
}

.amount-cell {
  text-align: right;
  font-weight: 600;
  color: #2c5f2d;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.approved {
  background: #d4edda;
  color: #155724;
}

.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-success {
  background: #28a745;
  color: white;
  border: none;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #c82333;
}

.action-disabled {
  text-align: center;
  color: #999;
  font-size: 13px;
}

.unauthorized-access {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px !important;
  color: #999;
}

.empty-state svg {
  margin: 0 auto 16px;
  opacity: 0.3;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Approve claim eof */

/* Workplan */
* Work Plan Containers */
.workplan-container,
.workplan-overview-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Work Plan Form */
.form-row {
  display: flex;
  gap: 16px;
}

.form-input-sm {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.btn-sm {
  padding: 6px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-sm:hover {
  background: #5568d3;
}

/* Work Plan List */
/* ========================================
   Work Plan Cards - Compact Version
   ======================================== */

/* Requests Grid - ปรับ gap ให้เล็กลง */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; /* ลดจาก 24px */
  margin-top: 20px;
  max-width: 100%;
}

/* Request Card - ปรับ padding ให้กระชับ */
.request-card {
  background: white;
  border-radius: 12px;
  padding: 16px; /* ลดจาก 20px */
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px; /* ลดจาก 16px */
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

/* Card Header - ปรับให้กระชับ */
.card-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px; /* ลดจาก 16px */
  border-bottom: 1px solid #f1f5f9;
}

/* Employee Info - ปรับขนาด avatar */
.employee-info {
  display: flex;
  align-items: center;
  gap: 10px; /* ลดจาก 12px */
  flex: 1;
  min-width: 0;
}

.employee-avatar {
  width: 40px; /* ลดจาก 48px */
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.employee-avatar svg {
  width: 20px; /* ลดจาก 24px */
  height: 20px;
  stroke: white;
}

/* Employee Details - ปรับ font size */
.employee-details {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-weight: 700;
  font-size: 15px; /* ลดจาก 16px */
  color: #1e293b;
  margin-bottom: 2px; /* ลดจาก 4px */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-code {
  font-size: 13px; /* ลดจาก 14px */
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status Badge - ปรับขนาด */
.status-badge {
  padding: 4px 10px; /* ลดจาก 6px 12px */
  border-radius: 12px;
  font-size: 11px; /* ลดจาก 12px */
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card Body - ปรับระยะห่าง */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px; /* ลดจาก 12px */
}

/* Info Row - ปรับความสูง */
.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px; /* ลดจาก 12px */
  align-items: flex-start;
}

/* Info Label - ปรับขนาด */
.info-label {
  display: flex;
  align-items: center;
  gap: 6px; /* ลดจาก 8px */
  font-size: 12px; /* ลดจาก 13px */
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  min-width: 90px; /* ลดจาก 100px */
}

.info-label svg {
  width: 13px; /* ลดจาก 14px */
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Info Value - ปรับขนาด */
.info-value {
  font-size: 13px; /* ลดจาก 14px */
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}

/* Description Text - จำกัดความสูง */
.description-text {
  max-height: 60px; /* จำกัดความสูง */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;          /* future standard / linter happy */
  -webkit-line-clamp: 3;  /* ใช้งานจริงบน WebKit */
  -webkit-box-orient: vertical;
}

/* Code Text - ปรับขนาด */
.code-text {
  font-family: 'Courier New', monospace;
  background: #f1f5f9;
  padding: 3px 8px; /* ลดจาก 4px 8px */
  border-radius: 4px;
  font-size: 12px; /* ลดจาก 13px */
  color: #667eea;
  display: inline-block;
}

/* Notes Row - ปรับความสูง */
.notes-row {
  background: #fefce8;
  border-left: 3px solid #fbbf24;
  padding: 8px 10px; /* ลดจาก 12px */
  border-radius: 6px;
  margin-top: 4px; /* ลดจาก 8px */
}

.notes-text {
  font-style: italic;
  color: #92400e;
  font-size: 12px; /* ลดจาก 13px */
  max-height: 40px; /* จำกัดความสูง */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
    /* ใส่ของมาตรฐานก่อน */
  line-clamp: 2;          /* future standard / linter happy */
  -webkit-line-clamp: 2;  /* ใช้งานจริงบน WebKit */
  -webkit-box-orient: vertical;
}

/* Card Actions - ปรับขนาดปุ่ม */
.card-actions {
  display: flex;
  gap: 8px; /* ลดจาก 12px */
  padding-top: 12px; /* ลดจาก 16px */
  border-top: 1px solid #f1f5f9;
}

.btn-action {
  flex: 1;
  padding: 8px 14px; /* ลดจาก 10px 16px */
  border: none;
  border-radius: 8px;
  font-size: 13px; /* ลดจาก 14px */
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* ลดจาก 8px */
  transition: all 0.3s ease;
}

.btn-action svg {
  width: 14px; /* ลดจาก 16px */
  height: 14px;
  stroke: currentColor;
}

.btn-approve {
  background: #eff6ff;
  color: #1e40af;
}

.btn-approve:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.btn-reject {
  background: #fef2f2;
  color: #991b1b;
}

.btn-reject:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

/* Empty State - ปรับขนาด */
.empty-state {
  text-align: center;
  padding: 40px 20px; /* ลดจาก 60px */
  color: #94a3b8;
}

.empty-state svg {
  width: 48px; /* ลดจาก 64px */
  height: 48px;
  margin-bottom: 12px; /* ลดจาก 16px */
  opacity: 0.5;
}

.empty-state p {
  font-size: 15px; /* ลดจาก 16px */
  margin: 0 0 4px 0;
  font-weight: 600;
}

.empty-state span {
  font-size: 13px; /* ลดจาก 14px */
  color: #cbd5e1;
}

/* Form Content - ปรับระยะห่าง */
.form-content {
  padding: 0;
}

.form-group {
  margin-bottom: 14px; /* ลดจาก 16px */
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Form Label - ปรับขนาด */
.form-label {
  display: flex;
  align-items: center;
  gap: 6px; /* ลดจาก 8px */
  font-size: 13px; /* ลดจาก 14px */
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px; /* ลดจาก 8px */
}

.form-label svg {
  width: 14px; /* ลดจาก 16px */
  height: 14px;
  stroke: #667eea;
}

/* Form Input/Textarea - ปรับขนาด */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px; /* ลดจาก 12px 16px */
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px; /* ลดจาก 14px */
  color: #1e293b;
  transition: all 0.3s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 80px; /* ลดจาก 100px */
}

/* Form Actions - ปรับระยะห่าง */
.form-actions {
  display: flex;
  gap: 10px; /* ลดจาก 12px */
  margin-top: 16px; /* ลดจาก 20px */
}

.btn-submit,
.btn-secondary {
  padding: 10px 20px; /* ลดจาก 12px 24px */
  border: none;
  border-radius: 8px;
  font-size: 14px; /* ลดจาก 15px */
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-submit {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Filter Card - ปรับระยะห่าง */
.filter-card {
  margin-bottom: 20px; /* ลดจาก 24px */
}

.filter-selector {
  display: flex;
  gap: 12px; /* ลดจาก 16px */
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* ลดจาก 8px */
  min-width: 140px; /* ลดจาก 150px */
}

.filter-label {
  font-size: 12px; /* ลดจาก 13px */
  font-weight: 600;
  color: #64748b;
}

.filter-input {
  padding: 8px 12px; /* ลดจาก 10px 14px */
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px; /* ลดจาก 14px */
  color: #1e293b;
}

/* Filter Button */
.btn-filter {
  padding: 9px 18px; /* ลดจาก 12px 24px */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px; /* ลดจาก 14px */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px; /* ลดจาก 8px */
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-filter svg {
  width: 14px; /* ลดจาก 16px */
  height: 14px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .requests-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .request-card {
    padding: 14px;
  }
  
  .employee-avatar {
    width: 36px;
    height: 36px;
  }
  
  .employee-avatar svg {
    width: 18px;
    height: 18px;
  }
  
  .employee-name {
    font-size: 14px;
  }
  
  .employee-code {
    font-size: 12px;
  }
  
  .info-label {
    min-width: 80px;
    font-size: 11px;
  }
  
  .info-value {
    font-size: 12px;
  }
  
  .filter-selector {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .btn-filter {
    width: 100%;
  }
}

/* Landscape Mobile */
@media (min-width: 576px) and (max-width: 768px) {
  .requests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Workplan */

/* Summry work plan */
/* Site Summary Grid */
.site-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.site-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.site-summary-card:hover {
  background: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.site-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.site-name svg {
  color: #ef4444;
  flex-shrink: 0;
}

.employee-count-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.site-project-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #667eea;
  font-family: 'Courier New', monospace;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.site-project-code svg {
  flex-shrink: 0;
}

.site-employees-list {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.site-employees-list strong {
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

.employee-names {
  color: #64748b;
}

/* Text Muted */
.text-muted {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Button Search */
.btn-search {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-search svg {
  width: 16px;
  height: 16px;
}

/* Work Plan Loading */
.workplan-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-selector {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .btn-search {
    width: 100%;
    justify-content: center;
  }
}

/* Summry work plan */
/* ========== OT RATE SETTINGS TABLE ========== */

.ot-list-section {
  margin-top: 20px;
}

/* card ครอบ table */
.ot-rate-table-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

/* header ด้านบนของ table card */
.ot-rate-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ot-rate-table-header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ot-rate-table-header svg {
  color: #3b82f6;
}

.ot-rate-table-header .title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ot-rate-table-header .title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.ot-rate-table-header .subtitle {
  font-size: 12px;
  color: #6b7280;
}

.ot-rate-table-header .right {
  display: flex;
  align-items: center;
}

.badge-total {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.badge-total strong {
  color: #111827;
}

/* wrapper เผื่อ table overflow บนมือถือ */
.ot-rate-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ตัว table */
.ot-rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

/* header */
.ot-rate-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  white-space: nowrap;
}

/* body */
.ot-rate-table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.ot-rate-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.ot-rate-table tbody tr:hover {
  background: #f3f4ff;
  transform: translateY(-1px);
}

.ot-rate-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

/* แถวที่ inactive */
.ot-rate-table tbody tr.row-inactive {
  opacity: 0.65;
  background: #f9fafb;
}

.ot-rate-table tbody tr.row-inactive:hover {
  background: #f3f4f6;
}

/* cell: day */
.cell-day {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

.day-meta {
  font-size: 11px;
  color: #9ca3af;
}

/* cell: time */
.cell-time .time-main {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

/* factor chip */
.factor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #4f46e5;
}

/* description */
.cell-desc {
  font-size: 13px;
  color: #374151;
}

/* status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-chip.status-active {
  background: #ecfdf5;
  color: #047857;
}

.status-chip.status-inactive {
  background: #fef2f2;
  color: #b91c1c;
}

/* actions */
.cell-actions {
  text-align: right;
}

.btn-rate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-rate-toggle svg {
  flex-shrink: 0;
}

.btn-rate-toggle:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.btn-rate-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* footnote */
.ot-rate-footnote {
  margin-top: 8px;
  font-size: 11px;
  color: #9ca3af;
}

/* Responsive: บนหน้าจอเล็กให้ตัว card margin น้อยลง */
@media (max-width: 640px) {
  .ot-rate-table-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .ot-rate-table-header .title {
    font-size: 15px;
  }

  .ot-rate-table thead th {
    padding: 8px 10px;
  }

  .ot-rate-table tbody td {
    padding: 8px 10px;
  }
}
/* ==========
   BOTTOM NAV SCROLL INDICATORS
   ========== */

/* เพิ่ม subtle gradient เพื่อบอกว่าเลื่อนได้ */
.bottom-nav::before,
.bottom-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.bottom-nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* แสดง gradient เมื่อ scroll ได้ (จะใช้ JS control ในอนาคต หรือใช้ CSS แบบง่าย) */
@media (max-width: 480px) {
  .bottom-nav::after {
    opacity: 1;
  }
}

.details-section .detail-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.details-section .item-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  flex: 1 !important;
}

.details-section .item-name {
  text-align: left !important;
  flex: 1 !important;
}

.details-section .item-amount {
  text-align: right !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* ========================================
   🔧 CRITICAL FIX - Payroll Details Alignment
   วางท้าย styles.css (บรรทัดสุดท้าย)
   ======================================== */

/* Override ทุก CSS ที่เป็นไปได้ */
.payslip-card .details-section .details-list,
div.payslip-card div.details-section div.details-list {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.payslip-card .details-section .detail-item,
div.payslip-card div.details-section div.detail-item {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  width: 100% !important;
  padding: 12px !important;
}

.payslip-card .details-section .item-info,
div.payslip-card div.details-section div.item-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  flex: 1 !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
}

.payslip-card .details-section .item-type-icon,
div.payslip-card div.details-section span.item-type-icon {
  flex-shrink: 0 !important;
}

.payslip-card .details-section .item-name,
div.payslip-card div.details-section span.item-name {
  text-align: left !important;
  flex: 1 !important;
  flex-grow: 1 !important;
}

.payslip-card .details-section .item-amount,
div.payslip-card div.details-section div.item-amount {
  text-align: right !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Mobile override */
@media (max-width: 640px) {
  .payslip-card .details-section .detail-item,
  div.payslip-card div.details-section div.detail-item {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .payslip-card .details-section .item-amount,
  div.payslip-card div.details-section div.item-amount {
    align-self: center !important;
  }
}
/* ========================================
   📊 Stats Compact - Inline Format
   ======================================== */

.stats-compact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  margin: 12px 0;
  flex-wrap: nowrap !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
}

.stat-compact-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.stat-compact-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

.stat-compact-value.highlight {
  color: #10b981;
  font-size: 16px;
  font-weight: 700;
  padding: 2px 8px;
  background: #d1fae5;
  border-radius: 4px;
}

/* Separator */
.stat-compact:not(:last-child)::after {
  content: '•';
  margin-left: 20px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .stats-compact {
    gap: 12px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  
  .stat-compact {
    gap: 4px;
  }
  
  .stat-compact-label {
    font-size: 11px;
  }
  
  .stat-compact-value {
    font-size: 12px;
  }
  
  .stat-compact-value.highlight {
    font-size: 13px;
    padding: 1px 6px;
  }
  
  .stat-compact:not(:last-child)::after {
    margin-left: 12px;
    font-size: 10px;
  }
}

/* ========================================
   🎯 OT Details Table - Center Alignment Fix
   ======================================== */

/* Force center alignment for table cells */
.ot-details-table .text-center {
  text-align: center !important;
}

.ot-details-table .text-right {
  text-align: right !important;
}

/* Center factor badges */
.ot-details-table .factor-badge {
  display: inline-block !important;
  margin: 0 !important;
}

/* ========================================
   🛠️ Utility Classes
   ======================================== */

.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* ===============================
   FIX TOP SPACE (NO DATA CHANGE)
   =============================== */

/* หน้าเบิกสวัสดิการ */
.claim .content {
  padding-top: 0 !important;
}

/* หน้าแผนงานประจำวัน */
.workplan .content {
  padding-top: 0 !important;
}

/* ให้ section / card แรก ชิดบนเหมือนหน้า OT */
.claim .content > *:first-child,
.workplan .content > *:first-child {
  margin-top: 0 !important;
}

.btn-close-payroll {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f97316); /* ส้ม */
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-close-payroll:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.45);
}

.btn-close-payroll:active:not(:disabled) {
  transform: scale(0.98);
}

/* กำลังปิดรอบ */
.btn-close-payroll.closing {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  animation: pulse 1.4s infinite;
}

/* ปิดรอบแล้ว */
.btn-close-payroll.closed {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  cursor: default;
}

.btn-close-payroll:disabled {
  opacity: 0.95;
}

/* pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* === Slip Detail Popup + Sub Items === */
    .clickable-item { cursor: pointer; transition: background 0.15s; }
    .clickable-item:hover { background: #f0f7ff; }
    .item-chevron { margin-left: 4px; font-size: 18px; color: #aaa; font-weight: bold; }
    .sub-item-name { padding-left: 16px; font-size: 13px; color: #666; }

    .slip-detail-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999;
      display: flex; align-items: center; justify-content: center; padding: 16px;
    }
    .slip-detail-dialog {
      background: #fff; border-radius: 14px; width: 100%; max-width: 540px;
      max-height: 80vh; display: flex; flex-direction: column;
      box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    }
    .slip-detail-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 16px 20px; border-bottom: 1px solid #eee;
    }
    .slip-detail-header h3 { margin: 0; font-size: 16px; color: #333; }
    .slip-detail-close {
      background: none; border: none; font-size: 26px; color: #999;
      cursor: pointer; line-height: 1; padding: 0 4px;
    }
    .slip-detail-close:hover { color: #333; }
    .slip-detail-body { padding: 16px 20px; overflow-y: auto; }
    .slip-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .slip-detail-table th {
      text-align: left; padding: 8px 6px; background: #f8f9fa;
      border-bottom: 2px solid #e0e0e0; font-weight: 600; color: #555; white-space: nowrap;
    }
    .slip-detail-table td {
      padding: 8px 6px; border-bottom: 1px solid #f0f0f0; color: #333; white-space: nowrap;
    }
    .slip-detail-table tbody tr:hover { background: #fafbfc; }
    .slip-detail-table tfoot td { padding-top: 10px; }
    

    /* ── OT Approve Table Responsive ── */
.ot-approve-table { width:100%; border-collapse:collapse; font-size:13px; }

/* ซ่อน column เวลา และ โปรเจกต์ บนจอเล็ก */
@media (max-width: 900px) {
  .col-time     { display: none; }
  .col-project  { display: none; }
}
/* ซ่อน reason บนจอที่เล็กมาก */
@media (max-width: 680px) {
  .col-reason   { display: none; }
  .col-hours    { display: none; }
}
/* Actions column ติดขวา sticky */
/* ── OT Approve Table Responsive ── */
.ot-approve-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 750px; /* ← บังคับ scroll แทนการซ่อน column */
}

/* Actions ติดขวาเสมอ */
.col-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.08);
  z-index: 1;
}
thead .col-actions {
  background: #f8fafc;
}
tr:hover .col-actions {
  background: #f8fafc;
}

/* wrapper — scroll เฉพาะจอเล็ก */
.ot-approve-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* จอใหญ่ — ปิด overflow เพื่อให้ sticky ทำงาน */
@media (min-width: 1024px) {
  .ot-approve-wrap {
    overflow-x: visible;
  }
  .ot-approve-table {
    min-width: unset;
    table-layout: auto; /* ← เปลี่ยนจาก fixed เป็น auto */
  }
  .col-actions { position: static; box-shadow: none; }
}

/* Claim Approve Table */
.claim-approve-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.claim-approve-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 700px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
@media (min-width: 1024px) {
  .claim-approve-wrap { overflow-x: visible; }
  .claim-approve-table { min-width: unset; }
  .claim-col-actions { position: static; box-shadow: none; }
}
.claim-col-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.08);
  z-index: 1;
}
thead .claim-col-actions { background: #f8fafc; }

