@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/*
  Master Net UI System
  - Modern corporate look
  - Compatible with legacy page structure/classes
*/

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

:root {
  --primary: #0f5cc7;
  --primary-dark: #08439b;
  --primary-light: #deebff;
  --primary-strong: #08439b;
  --primary-soft: #deebff;
  --accent: #0f766e;

  --success: #138a52;
  --warning: #b76d00;
  --danger: #b93b3b;
  --green: var(--success);
  --yellow: var(--warning);
  --red: var(--danger);
  --info: var(--primary);

  --text: #0f172a;
  --muted: #526079;
  --bg: #eef3f8;
  --bg-alt: #e8edf5;
  --card: #ffffff;
  --border: #d7e0ec;
  --white: #ffffff;

  --gray-50: #f7faff;
  --gray-100: #edf3fb;
  --gray-200: #d9e4f2;
  --gray-300: #c1d1e5;
  --gray-400: #93a6c2;
  --gray-500: #6b7f9b;
  --gray-600: #546884;
  --gray-700: #30445f;
  --gray-800: #1f3149;
  --gray-900: #0f172a;

  --sidebar-bg: linear-gradient(180deg, #0f1f37 0%, #132a4b 100%);
  --sidebar-hover: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --shadow-sm: 0 2px 6px rgba(11, 24, 45, 0.08);
  --shadow: 0 10px 24px rgba(11, 24, 45, 0.1);
  --shadow-lg: 0 16px 36px rgba(11, 24, 45, 0.14);

  --sidebar-width: 278px;
  --header-height: 74px;
  --transition: 0.2s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #dcecff 0%, transparent 55%),
    radial-gradient(1000px 700px at 100% -20%, #e2f7f3 0%, transparent 55%),
    var(--bg);
  font-family: 'Manrope', 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  margin: 0;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #f8fbff;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: 0 16px 36px rgba(6, 14, 29, 0.35);
}

.sidebar::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.sidebar-logo img {
  max-height: 60px;
  max-width: 170px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}

.sidebar-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.sidebar-subtitle {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(235, 244, 255, 0.72);
}

.sidebar-module {
  margin: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-module-title {
  font-size: 11px;
  color: rgba(235, 244, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sidebar-module-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-nav {
  padding: 12px 0 18px;
}

.nav-section-title {
  margin: 14px 0 8px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(235, 244, 255, 0.6);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(247, 251, 255, 0.86);
  font-weight: 600;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 92, 199, 0.52), rgba(15, 92, 199, 0.2));
  border: 1px solid rgba(165, 202, 255, 0.4);
}

.nav-icon {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  font-size: 17px;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f04343;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  flex: 1;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(246, 250, 255, 0.86);
  border-bottom: 1px solid rgba(195, 210, 230, 0.85);
}

.page-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: inherit;
  transition: all var(--transition);
}

.user-info:hover {
  border-color: #c7d6eb;
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #1f7ef2 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.content-wrapper {
  padding: 24px 26px 34px;
}

.card,
.request-card,
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 18px;
  animation: riseIn 0.25s ease-out;
}

.card-header,
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5edf7;
}

.card-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.section {
  margin-top: 20px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.grid,
.board,
.kpi-grid,
.stats,
.settings-grid,
.balance-grid,
.stats-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid,
.board,
.stats,
.stats-grid,
.balance-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kpi,
.stat-item,
.stat-card,
.balance-stat,
.setting-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dce7f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.kpi.warn::before,
.kpi.warning::before {
  background: var(--warning);
}

.kpi.ok::before,
.kpi.success::before {
  background: var(--success);
}

.kpi.danger::before {
  background: var(--danger);
}

.kpi .label,
.kpi-label,
.stat-label,
.balance-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kpi .value,
.kpi-value,
.stat-value,
.balance-stat-value {
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
}

.kpi-change {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.kpi-change.up,
.positive {
  color: var(--success);
}

.kpi-change.down,
.negative {
  color: var(--danger);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.col {
  min-width: 0;
  flex: 1 1 240px;
}

.form-row,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #30445f;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdcec;
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9fbbdf;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 92, 199, 0.16);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

input[type='file'] {
  padding: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, #1d6bd8 0%, #0f5cc7 100%);
  box-shadow: 0 3px 10px rgba(15, 92, 199, 0.24);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 92, 199, 0.22);
  filter: saturate(1.05);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 18px;
  font-size: 14px;
}

.btn-secondary,
.btn.secondary {
  border-color: #cfdcec;
  background: #ffffff;
  color: #2f4663;
  box-shadow: none;
}

.btn-secondary:hover,
.btn.secondary:hover {
  border-color: #aac2e1;
  background: #f4f8ff;
}

.btn-success,
.btn.ok,
.ok {
  background: linear-gradient(180deg, #1ca663 0%, #138a52 100%);
  color: #ffffff;
  border-color: #0f7a48;
}

.btn-danger,
.btn.danger,
.danger {
  background: linear-gradient(180deg, #d14f4f 0%, #b93b3b 100%);
  color: #ffffff;
  border-color: #a03232;
}

.btn-warning,
.btn.warn,
.warning,
.warn {
  background: linear-gradient(180deg, #c57f11 0%, #b76d00 100%);
  color: #ffffff;
  border-color: #9d5e00;
}

.btn-primary,
.primary {
  background: linear-gradient(180deg, #1d6bd8 0%, #0f5cc7 100%);
  color: #ffffff;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-container {
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  overflow: auto;
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table thead th,
.table > tbody > tr:first-child > th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4fd 100%);
}

.table th {
  text-align: left;
  padding: 11px 12px;
  color: #2f4663;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #d8e3f0;
}

.table td {
  padding: 11px 12px;
  color: #1f3149;
  border-bottom: 1px solid #e7eef9;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f6f9ff;
}

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

.table small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending,
.badge.warn {
  color: #8b4f00;
  border-color: #efcf9a;
  background: #fff3de;
}

.badge-approved,
.badge.ok {
  color: #0f6a3f;
  border-color: #aee2c7;
  background: #e7f8ef;
}

.badge-rejected,
.badge.danger {
  color: #922f2f;
  border-color: #f0bcbc;
  background: #fdeeee;
}

.alert {
  border-radius: 10px;
  border: 1px solid #cddcf1;
  background: #f2f7ff;
  color: #173356;
  padding: 11px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.alert-info {
  border-color: #bad4f6;
  background: #ebf3ff;
  color: #1f4b86;
}

.alert.info {
  border-color: #bad4f6;
  background: #ebf3ff;
  color: #1f4b86;
}

.alert-success {
  border-color: #abdcc3;
  background: #ebf8f1;
  color: #16653f;
}

.alert.success {
  border-color: #abdcc3;
  background: #ebf8f1;
  color: #16653f;
}

.alert-warning {
  border-color: #efcf9a;
  background: #fff4e2;
  color: #8f5600;
}

.alert.warning,
.alert.warn {
  border-color: #efcf9a;
  background: #fff4e2;
  color: #8f5600;
}

.alert-danger,
.alert.error {
  border-color: #efbebe;
  background: #fdeeee;
  color: #912f2f;
}

.alert.danger,
.alert.err {
  border-color: #efbebe;
  background: #fdeeee;
  color: #912f2f;
}

.search-filter-bar {
  margin: 0 -22px 16px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border-top: 1px solid #e4edf8;
  border-bottom: 1px solid #e4edf8;
}

.search-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
}

.search-input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a7f9e;
  pointer-events: none;
}

.filter-select,
.filter-date {
  width: auto;
  min-width: 132px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  border-radius: 10px;
  border: 1px solid #d7e2ef;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 40;
}

.dropdown-item {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2f4663;
  border-bottom: 1px solid #eef3fb;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f4f8ff;
  color: #0f5cc7;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-link,
.pagination a,
.pagination span {
  min-width: 34px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #cfdbeb;
  color: #2f4663;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
}

.pagination-link:hover,
.pagination a:hover {
  border-color: #a8c3e6;
  background: #f4f8ff;
}

.pagination-link.active,
.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination-link.disabled,
.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tab-bar,
.filter-bar,
.notification-filters,
.year-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-bar a,
.filter-btn,
.year-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdcec;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: #30445f;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}

.tab-bar a:hover,
.filter-btn:hover,
.year-btn:hover {
  border-color: #aac2e1;
  background: #f4f8ff;
}

.tab-bar a.active,
.filter-btn.active,
.year-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #d2deef;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1e3556;
  transition: all var(--transition);
}

.notification-bell:hover {
  border-color: #aac2e1;
  background: #f4f8ff;
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #f04343;
  box-shadow: 0 3px 8px rgba(240, 67, 67, 0.34);
  animation: pulse 1.8s infinite;
}

.mobile-menu-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.toast-container {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #d6e0ec;
  background: #ffffff;
  box-shadow: var(--shadow);
  animation: slideInRight 0.22s ease-out;
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.toast-message {
  flex: 1;
  font-size: 13px;
  color: #1d3554;
}

.toast-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #607896;
  cursor: pointer;
}

.toast-success .toast-icon {
  background: #e6f7ef;
  color: #0f6d40;
}

.toast-error .toast-icon {
  background: #fdeeee;
  color: #993434;
}

.toast-warning .toast-icon {
  background: #fff4e2;
  color: #915700;
}

.toast-info .toast-icon {
  background: #eaf2ff;
  color: #15509e;
}

.toast-enter {
  opacity: 0;
  transform: translateX(10px);
}

.toast-exit {
  animation: slideOutRight 0.2s ease-out forwards;
}

.loading-overlay,
.confirm-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 19, 39, 0.45);
  z-index: 9998;
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.spinner-small {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.loading-message {
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.confirm-dialog,
.modal-dialog {
  width: min(520px, 92vw);
  border-radius: 12px;
  border: 1px solid #d4e0ef;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.18s ease-out;
}

.confirm-header,
.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e6edf8;
  font-size: 16px;
  font-weight: 800;
}

.confirm-body,
.modal-body {
  padding: 16px;
}

.confirm-footer {
  padding: 12px 16px;
  border-top: 1px solid #e6edf8;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #607896;
}

.shortcuts-list {
  max-height: 360px;
  overflow: auto;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3fb;
}

.shortcut-item:last-child {
  border-bottom: none;
}

kbd {
  border: 1px solid #ccdaee;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f5f9ff;
  font-size: 12px;
  font-family: 'IBM Plex Sans', monospace;
  font-weight: 700;
  color: #30445f;
}

.password-requirements {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.password-strength {
  height: 7px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: width var(--transition), background var(--transition);
}

.password-strength-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 16px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.no-approvals,
.empty-state,
.empty-transactions,
.install-wrap {
  animation: fadeIn 0.25s ease-out;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  background: #132a4b;
  color: #ffffff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1120px) {
  .content-wrapper {
    padding: 18px 18px 28px;
  }

  .top-header {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 19, 39, 0.45);
    z-index: 950;
  }

  .sidebar-backdrop.show {
    display: block;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    position: fixed;
    left: 14px;
    top: 14px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9cbe4;
    border-radius: 10px;
    background: #ffffff;
    color: #244164;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
  }

  .main-content {
    margin-left: 0;
  }

  .top-header {
    height: 64px;
    padding-left: 64px;
  }

  .user-name {
    display: none;
  }

  .search-filter-form {
    align-items: stretch;
  }

  .search-input-wrapper,
  .filter-select,
  .filter-date {
    width: 100%;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    max-width: unset;
  }

  .notification-actions,
  .bulk-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .card,
  .request-card,
  .chart-card {
    padding: 16px;
  }

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

  .bulk-toolbar .btn {
    width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* ===========================================================
   Design Elevation Layer (v2)
   - visual refresh over existing component names
   - preserves legacy classes and layout behavior
   =========================================================== */

:root {
  --font-display: 'Sora', 'Manrope', 'IBM Plex Sans', sans-serif;
  --font-body: 'Manrope', 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Sans', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --page-content-max: 1540px;
  --surface-1: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(164, 185, 214, 0.38);
  --ring: 0 0 0 3px rgba(16, 97, 205, 0.18);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 700px at -10% -20%, rgba(22, 133, 232, 0.24) 0%, transparent 58%),
    radial-gradient(900px 540px at 108% -22%, rgba(16, 154, 120, 0.2) 0%, transparent 58%),
    radial-gradient(760px 480px at 104% 118%, rgba(16, 97, 205, 0.15) 0%, transparent 62%),
    var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(41, 72, 114, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 72, 114, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 92%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.card-title {
  font-family: var(--font-display);
}

kbd {
  font-family: var(--font-mono);
}

.main-content {
  position: relative;
}

.content-wrapper {
  width: 100%;
  max-width: var(--page-content-max);
  margin: 0 auto;
  padding: 24px 30px 38px;
}

.sidebar {
  border-right: 1px solid rgba(174, 194, 223, 0.2);
  background:
    radial-gradient(560px 300px at -4% -4%, rgba(98, 157, 245, 0.26) 0%, transparent 52%),
    radial-gradient(460px 250px at 112% -8%, rgba(50, 172, 149, 0.18) 0%, transparent 56%),
    var(--sidebar-bg);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 198, 255, 0.36) 0%, rgba(143, 198, 255, 0) 72%);
  pointer-events: none;
}

.sidebar-logo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.sidebar-brand {
  letter-spacing: 0.02em;
}

.nav-link {
  position: relative;
  border: 1px solid transparent;
}

.nav-link:hover {
  border-color: rgba(199, 224, 255, 0.34);
}

.nav-link.active {
  box-shadow: 0 8px 22px rgba(10, 61, 130, 0.35);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: #bdddff;
}

.top-header {
  min-height: var(--header-height);
  height: auto;
  margin: 14px 18px 0;
  padding: 12px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  box-shadow: 0 10px 26px rgba(13, 35, 72, 0.1);
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.page-title {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.55rem);
  letter-spacing: -0.02em;
}

.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-chip,
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-chip {
  border: 1px solid rgba(20, 94, 198, 0.28);
  background: rgba(218, 234, 255, 0.72);
  color: #0f4b9e;
}

.role-chip {
  border: 1px solid rgba(42, 104, 188, 0.2);
  background: rgba(233, 240, 252, 0.82);
  color: #36547e;
}

.user-info {
  border-color: rgba(157, 185, 220, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 250, 255, 0.95) 100%);
}

.user-avatar {
  box-shadow: 0 8px 14px rgba(14, 88, 192, 0.3);
}

.card,
.request-card,
.chart-card {
  border-color: var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 253, 255, 0.94) 100%);
  box-shadow: 0 6px 18px rgba(13, 41, 86, 0.08);
  backdrop-filter: blur(3px);
}

.card:hover,
.request-card:hover,
.chart-card:hover {
  box-shadow: 0 16px 34px rgba(12, 46, 96, 0.12);
  transform: translateY(-1px);
}

.card-header,
.header {
  border-bottom-color: rgba(179, 200, 228, 0.55);
}

.kpi,
.stat-item,
.stat-card,
.balance-stat,
.setting-card {
  border-color: rgba(172, 196, 227, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 255, 0.98) 100%),
    radial-gradient(160px 80px at 100% 0%, rgba(122, 175, 245, 0.2) 0%, transparent 70%);
}

.table-container {
  border-color: rgba(172, 196, 227, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.table th {
  background: linear-gradient(180deg, #f6f9ff 0%, #edf4ff 100%);
}

.table tbody tr:nth-child(even) {
  background: rgba(244, 249, 255, 0.42);
}

.table tbody tr:hover {
  background: rgba(222, 236, 255, 0.56);
}

input,
select,
textarea {
  border-color: rgba(180, 201, 228, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 252, 255, 0.95) 100%);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: var(--ring);
}

.btn {
  border-radius: 11px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-secondary,
.btn.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.badge {
  box-shadow: 0 1px 2px rgba(11, 24, 45, 0.08);
}

.alert {
  border-color: rgba(175, 198, 228, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dropdown-menu {
  border-color: rgba(166, 191, 224, 0.52);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
}

.toast {
  border-color: rgba(168, 192, 222, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 251, 255, 0.97) 100%);
}

@media (max-width: 1120px) {
  .content-wrapper {
    padding: 16px 16px 28px;
  }

  .top-header {
    margin: 10px 10px 0;
    padding: 10px 12px;
  }
}

@media (max-width: 900px) {
  .top-header {
    height: auto;
    min-height: 64px;
    border-radius: 12px;
    margin: 10px 8px 0;
    padding-left: 56px;
  }

  .header-actions {
    gap: 8px;
  }

  .page-meta {
    gap: 6px;
  }

  .module-chip,
  .role-chip {
    font-size: 10px;
    padding: 4px 8px;
  }

  .mobile-menu-toggle {
    top: 10px;
    left: 10px;
    border-radius: 12px;
    border-color: rgba(160, 186, 221, 0.8);
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================================================
   Premium Surfaces: modules, dashboards, reports
   =========================================================== */

.modules-page-body {
  min-height: 100vh;
  background: #0b1525 url('arka.jpg') center/cover no-repeat fixed;
  position: relative;
}
.modules-page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 35, 0.5);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.modules-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

.modules-shell {
  width: 100%;
  max-width: 1080px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modules-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modules-hero-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modules-logo {
  width: auto;
  height: 64px;
  max-width: 220px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modules-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.9rem);
  line-height: 1.2;
  color: #fff;
}

.modules-subtitle {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.modules-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modules-meta-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.module-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  animation: riseIn 0.28s ease both;
  animation-delay: var(--delay, 0s);
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.module-card.active {
  border-color: rgba(100, 180, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(100, 180, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.module-card.active::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a9d60;
  box-shadow: 0 0 0 4px rgba(31, 178, 113, 0.18);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.module-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 800;
}

.module-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.45;
}

.module-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-card.active .module-badge {
  border-color: rgba(100, 180, 255, 0.4);
  background: rgba(100, 180, 255, 0.15);
  color: #fff;
}

.modules-announcement-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.modules-announcement-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.45);
  color: #fff;
}
.modules-announcement-arrow {
  margin-left: auto;
  font-size: 1.2rem;
}

.modules-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: right;
}

.modules-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.modules-footer a:hover {
  color: #fff;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b6ca5;
  font-weight: 800;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(1.18rem, 1.3vw + 0.8rem, 1.7rem);
}

.dashboard-subtitle {
  margin-top: 8px;
  max-width: 78ch;
}

.dashboard-meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(156, 182, 218, 0.5);
  background: rgba(238, 246, 255, 0.78);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #31527d;
}

.dashboard-grid-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.chart-panel {
  border: 1px solid rgba(170, 194, 225, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 251, 255, 0.82) 100%);
  padding: 14px;
}

.chart-panel h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-actions .btn {
  min-height: 36px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.report-filter-grid .field {
  min-width: 0;
}

.report-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 12px 0 14px;
}

.report-kpi {
  border: 1px solid rgba(170, 194, 225, 0.5);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 251, 255, 0.86) 100%);
  padding: 12px;
}

.report-kpi .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.report-kpi .v {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.report-table-wrap {
  border: 1px solid rgba(170, 194, 225, 0.52);
  border-radius: 12px;
  overflow: auto;
}

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

@media (max-width: 760px) {
  .modules-shell {
    padding: 16px;
    border-radius: 16px;
  }

  .modules-hero {
    padding: 12px;
    border-radius: 14px;
  }

  .modules-logo {
    width: auto;
    height: 52px;
    max-width: 170px;
    border-radius: 10px;
    padding: 5px 8px;
  }

  .modules-announcement-alert {
    font-size: 0.82rem;
    padding: 10px 14px;
    gap: 8px;
    border-radius: 8px;
    margin-bottom: 14px;
  }
}

/* ---------------- Auth Experience ---------------- */

.auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(900px 500px at 5% 0%, rgba(18, 102, 214, 0.2) 0%, transparent 60%),
    radial-gradient(850px 520px at 100% 0%, rgba(18, 143, 120, 0.2) 0%, transparent 58%),
    linear-gradient(170deg, #ecf3fb 0%, #e7f2ef 100%);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(170, 194, 225, 0.58);
  background: #fff;
  box-shadow: 0 24px 44px rgba(11, 24, 45, 0.16);
}

.auth-aside {
  position: relative;
  color: #e9f3ff;
  padding: clamp(26px, 3.6vw, 44px);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(152, 194, 255, 0.45) 0%, transparent 70%),
    radial-gradient(380px 220px at 100% 100%, rgba(77, 228, 191, 0.28) 0%, transparent 75%),
    linear-gradient(158deg, #0d2b50 0%, #133c6e 54%, #0b4e76 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px;
}

.auth-brand-text {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.auth-headline {
  max-width: 34ch;
}

.auth-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(193, 217, 247, 0.36);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  color: #d6eaff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-headline h1 {
  margin: 0;
  font-size: clamp(1.46rem, 2.2vw, 2.14rem);
  line-height: 1.18;
  color: #f5fbff;
}

.auth-headline p {
  margin: 10px 0 0;
  color: rgba(217, 235, 255, 0.88);
  max-width: 44ch;
}

.auth-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.auth-list li {
  border-radius: 10px;
  border: 1px solid rgba(175, 206, 240, 0.26);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  font-size: 13px;
  color: #e2f0ff;
}

.auth-card {
  background: #fff;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-header {
  margin-bottom: 14px;
}

.auth-card-header h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.5vw, 1.68rem);
}

.auth-card-header p {
  margin-top: 7px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.auth-links a {
  font-weight: 700;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.auth-alert {
  margin-bottom: 12px;
}

.auth-card .btn {
  min-height: 42px;
}

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

  .auth-aside {
    padding: 22px 20px;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 12px;
  }

  .auth-card {
    padding: 20px 16px;
  }
}

/* ---------------- System Cohesion Layer (v3) ---------------- */

:root {
  --focus-ring: 0 0 0 3px rgba(15, 92, 199, 0.2);
  --focus-ring-dark: 0 0 0 3px rgba(119, 177, 255, 0.26);
}

a,
button,
input,
select,
textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a {
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.app-container {
  --module-rgb: 15, 92, 199;
  --module-color: rgb(var(--module-rgb));
}

.app-container.module-izin {
  --module-rgb: 21, 92, 199;
}

.app-container.module-avans {
  --module-rgb: 199, 122, 24;
}

.app-container.module-mesai {
  --module-rgb: 30, 129, 112;
}

.app-container.module-yemek {
  --module-rgb: 208, 115, 24;
}

.app-container.module-sehirdisi {
  --module-rgb: 23, 108, 186;
}

.app-container.module-sos {
  --module-rgb: 180, 52, 64;
}

.app-container.module-ayarlar {
  --module-rgb: 91, 102, 124;
}

.app-container .nav-link.active {
  background: linear-gradient(90deg, rgba(var(--module-rgb), 0.5), rgba(var(--module-rgb), 0.17));
  border-color: rgba(var(--module-rgb), 0.56);
}

.app-container .nav-link.active::before {
  background: rgba(232, 244, 255, 0.95);
}

.app-container .module-chip,
.app-container .dashboard-chip,
.app-container .modules-meta-chip {
  border-color: rgba(var(--module-rgb), 0.28);
  color: rgba(30, 56, 94, 0.95);
}

.app-container .module-icon {
  background: linear-gradient(180deg, rgba(var(--module-rgb), 0.92) 0%, rgba(var(--module-rgb), 0.72) 100%);
  box-shadow: 0 10px 18px rgba(var(--module-rgb), 0.3);
}

.app-container .btn:not(.btn-secondary):not(.secondary):not(.btn-success):not(.ok):not(.btn-danger):not(.danger):not(.btn-warning):not(.warn),
.app-container .btn-primary {
  background: linear-gradient(180deg, rgba(var(--module-rgb), 0.96) 0%, rgba(var(--module-rgb), 0.8) 100%);
  border-color: rgba(var(--module-rgb), 0.82);
}

.app-container .btn:not(.btn-secondary):not(.secondary):not(.btn-success):not(.ok):not(.btn-danger):not(.danger):not(.btn-warning):not(.warn):hover,
.app-container .btn-primary:hover {
  box-shadow: 0 10px 18px rgba(var(--module-rgb), 0.26);
}

.app-container .table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.module-page-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.module-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(174, 198, 228, 0.52);
}

.module-tab-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(169, 192, 222, 0.55);
  background: rgba(245, 250, 255, 0.86);
  color: #2a4568;
  font-weight: 700;
}

.module-tab-bar a.active {
  background: linear-gradient(180deg, rgba(var(--module-rgb), 0.14) 0%, rgba(var(--module-rgb), 0.07) 100%);
  border-color: rgba(var(--module-rgb), 0.48);
  color: rgb(var(--module-rgb));
  box-shadow: 0 6px 16px rgba(var(--module-rgb), 0.18);
}

.module-tab-bar a:hover {
  border-color: rgba(var(--module-rgb), 0.4);
}

.section-spaced {
  margin-top: 24px;
}

.inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form input[type='text'] {
  width: 170px;
}

.inline-form .note-input {
  flex: 1;
  min-width: 140px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.check-row label {
  margin: 0;
}

.stack-gap-sm {
  margin-top: 12px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown {
  position: relative;
}

.btn-icon-split {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-caret {
  font-size: 10px;
  opacity: 0.82;
}

.table-name {
  font-weight: 700;
}

.pagination-wrap {
  margin-top: 24px;
  padding: 0 0 4px;
}

.empty-state {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 42px;
  opacity: 0.36;
  margin-bottom: 10px;
}

.empty-state-icon .icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.empty-state-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.03rem;
}

@media (max-width: 900px) {
  .module-tab-bar {
    margin-top: 10px;
  }

  .inline-form input[type='text'] {
    width: 100%;
    min-width: 0;
  }
}

/* ---------------- Crafted Corporate Layer (v4) ---------------- */

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
  vertical-align: middle;
}

.icon-14 {
  width: 14px;
  height: 14px;
}

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

.icon-18 {
  width: 18px;
  height: 18px;
}

body {
  background:
    linear-gradient(155deg, #edf3fb 0%, #e7eff9 52%, #e8f1ec 100%);
}

body::before {
  opacity: 0.48;
  background-size: 42px 42px;
}

.sidebar {
  background:
    linear-gradient(180deg, #0f213b 0%, #112846 56%, #0f2d4d 100%);
  box-shadow: 0 14px 32px rgba(7, 18, 36, 0.34);
}

.sidebar::before {
  opacity: 0.8;
}

.sidebar-module-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 0;
}

.top-header {
  backdrop-filter: saturate(130%) blur(9px);
  border-color: rgba(159, 184, 216, 0.5);
  box-shadow: 0 9px 22px rgba(10, 31, 62, 0.11);
}

.module-chip,
.role-chip {
  padding-top: 4px;
  padding-bottom: 4px;
}

.module-chip .icon,
.dashboard-chip .icon,
.modules-meta-chip .icon {
  opacity: 0.9;
}

.notification-bell,
.notification-bell .icon,
.mobile-menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.card,
.request-card,
.chart-card {
  box-shadow: 0 8px 18px rgba(11, 28, 54, 0.09);
  border-color: rgba(171, 195, 224, 0.62);
}

.card-header,
.header {
  border-bottom-color: rgba(196, 214, 238, 0.72);
}

.table-container,
.report-table-wrap {
  border-color: rgba(165, 191, 224, 0.6);
}

.table th {
  color: #2a4362;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf3fb 100%);
}

.table td {
  color: #203553;
}

.table tbody tr:hover {
  background: rgba(219, 231, 248, 0.55);
}

.module-icon {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.module-icon .module-icon-svg {
  width: 26px;
  height: 26px;
  stroke: #f5fbff;
  stroke-width: 2;
}

.modules-hero,
.dashboard-hero {
  position: relative;
  overflow: hidden;
}

.modules-hero::after,
.dashboard-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 178, 244, 0.26) 0%, rgba(128, 178, 244, 0) 70%);
  pointer-events: none;
  animation: haloFloat 14s ease-in-out infinite;
}

.module-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.module-card:hover .module-icon {
  transform: translateY(-1px) scale(1.03);
}

@keyframes haloFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.62;
  }
  50% {
    transform: translate3d(-12px, 10px, 0);
    opacity: 0.88;
  }
}

/* ---------------- Meal Module Refinement ---------------- */

.app-container.module-yemek .meal-hero {
  border-color: rgba(214, 155, 85, 0.42);
  background:
    radial-gradient(460px 220px at 100% 0%, rgba(222, 157, 76, 0.2) 0%, rgba(222, 157, 76, 0) 72%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.95) 0%, rgba(255, 247, 236, 0.92) 100%);
}

.app-container.module-yemek .meal-hero-main {
  display: grid;
  gap: 10px;
  min-width: min(580px, 100%);
}

.app-container.module-yemek .meal-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-container.module-yemek .meal-hero-glance {
  display: grid;
  gap: 9px;
  min-width: 220px;
  align-self: stretch;
}

.app-container.module-yemek .meal-glance-item {
  border: 1px solid rgba(211, 154, 89, 0.44);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 248, 238, 0.84) 100%);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.app-container.module-yemek .meal-glance-item span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6231;
  font-weight: 700;
}

.app-container.module-yemek .meal-glance-item strong {
  color: #5b3c13;
  font-size: 1.05rem;
  line-height: 1.2;
}

.app-container.module-yemek .meal-kpi-grid .kpi {
  min-height: 126px;
}

.app-container.module-yemek .meal-kpi-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-container.module-yemek .meal-insight-grid {
  align-items: stretch;
}

.app-container.module-yemek .meal-chart-panel {
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 10px;
}

.app-container.module-yemek .meal-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}

.app-container.module-yemek .meal-panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.app-container.module-yemek #chartMealTrend,
.app-container.module-yemek #chartMealStatus {
  width: 100%;
  min-height: 240px;
  max-height: 280px;
}

.app-container.module-yemek .meal-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.app-container.module-yemek .meal-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #35506f;
}

.app-container.module-yemek .meal-status-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.app-container.module-yemek .meal-status-legend .dot.warn {
  background: #d49a36;
}

.app-container.module-yemek .meal-status-legend .dot.ok {
  background: #1f8a5d;
}

.app-container.module-yemek .meal-status-legend .dot.danger {
  background: #c44c4c;
}

.app-container.module-yemek .meal-flow-card {
  border-color: rgba(208, 150, 82, 0.44);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94) 0%, rgba(255, 248, 239, 0.9) 100%);
}

.app-container.module-yemek .meal-flow-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 14px;
}

.app-container.module-yemek .meal-flow-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-container.module-yemek .meal-flow-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-container.module-yemek .meal-step {
  border: 1px solid rgba(212, 164, 106, 0.44);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 11px 12px;
}

.app-container.module-yemek .meal-step b {
  display: block;
  margin-bottom: 5px;
  color: #5d3e1a;
}

.app-container.module-yemek .meal-step p {
  margin: 0;
  color: #5e6f86;
  font-size: 13px;
}

.app-container.module-yemek .meal-step.is-active {
  border-color: rgba(208, 115, 24, 0.62);
  background: rgba(255, 240, 219, 0.84);
}

.app-container.module-yemek .meal-step.is-done {
  border-color: rgba(37, 142, 97, 0.5);
  background: rgba(229, 247, 239, 0.82);
}

.app-container.module-yemek .meal-tab-bar {
  margin-top: 8px;
}

.app-container.module-yemek .meal-overview-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}

.app-container.module-yemek .meal-form-card,
.app-container.module-yemek .meal-guide-card {
  border: 1px solid rgba(208, 150, 83, 0.38);
  border-radius: 13px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 247, 236, 0.82) 100%);
}

.app-container.module-yemek .meal-form-card h3,
.app-container.module-yemek .meal-guide-card h4 {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-container.module-yemek .meal-guide-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.app-container.module-yemek .meal-guide-card li {
  color: #556d8a;
}

.app-container.module-yemek .meal-guide-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(211, 161, 102, 0.42);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-container.module-yemek .meal-guide-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #537094;
  font-size: 12px;
}

.app-container.module-yemek .meal-guide-foot strong {
  color: #4f3413;
}

@media (max-width: 1020px) {
  .app-container.module-yemek .meal-overview-layout,
  .app-container.module-yemek .meal-flow-steps {
    grid-template-columns: 1fr;
  }

  .app-container.module-yemek .meal-hero-main {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .app-container.module-yemek .meal-hero-glance {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .app-container.module-yemek .meal-chart-panel {
    grid-template-rows: auto minmax(210px, 1fr) auto;
  }

  .app-container.module-yemek .meal-status-legend {
    gap: 8px;
  }
}

/* ---------------- Meal Workflow v5 ---------------- */

.app-container.module-yemek .meal-hero-v5 {
  align-items: stretch;
}

.app-container.module-yemek .meal-responsible-card {
  margin-top: 14px;
  border: 1px solid rgba(204, 152, 83, 0.42);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(255, 245, 232, 0.88) 100%);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.app-container.module-yemek .meal-settings-form {
  margin: 10px 0 14px;
  border: 1px solid rgba(166, 190, 217, 0.48);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.96) 0%, rgba(241, 250, 255, 0.92) 100%);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.app-container.module-yemek .meal-settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-container.module-yemek .meal-settings-row input[type='number'] {
  width: 180px;
  max-width: 100%;
}

.app-container.module-yemek .meal-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.app-container.module-yemek .meal-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(197, 152, 93, 0.38);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
  font-size: 13px;
  color: #6d4a20;
}

.app-container.module-yemek .meal-toggle-item input {
  margin: 0;
}

.app-container.module-yemek .meal-guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.app-container.module-yemek .meal-entry-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.app-container.module-yemek .meal-entry-card {
  border: 1px solid rgba(205, 149, 80, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 247, 237, 0.86) 100%);
  padding: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-container.module-yemek .meal-entry-card h4 {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-container.module-yemek .meal-qty-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.app-container.module-yemek .meal-qty-box {
  border: 1px solid rgba(196, 152, 96, 0.34);
  border-radius: 10px;
  background: rgba(255, 251, 245, 0.9);
  padding: 9px;
}

.app-container.module-yemek .meal-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-container.module-yemek .meal-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(197, 151, 95, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 239, 225, 0.95) 100%);
  color: #6a4418;
  font-weight: 800;
  cursor: pointer;
}

.app-container.module-yemek .meal-qty-btn:hover {
  border-color: rgba(208, 115, 24, 0.65);
}

.app-container.module-yemek .meal-qty-input {
  width: 76px;
  text-align: center;
  font-weight: 700;
}

.app-container.module-yemek .meal-entry-card:not(.is-hidden):hover {
  border-color: rgba(208, 115, 24, 0.62);
  box-shadow: 0 10px 16px rgba(208, 115, 24, 0.15);
  transform: translateY(-1px);
}

.app-container.module-yemek .meal-entry-card.is-hidden {
  display: none;
}

.app-container.module-yemek .meal-inline-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-container.module-yemek .meal-inline-filter label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.app-container.module-yemek .meal-submit-bar {
  margin-top: 14px;
  border: 1px solid rgba(205, 150, 84, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 247, 235, 0.9) 100%);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.app-container.module-yemek .meal-submit-bar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.app-container.module-yemek .meal-submit-bar label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.app-container.module-yemek .meal-month-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 12px;
}

.app-container.module-yemek .meal-month-card {
  border: 1px solid rgba(170, 194, 225, 0.52);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(252, 255, 255, 0.95) 0%, rgba(245, 250, 255, 0.9) 100%);
  padding: 10px;
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-container.module-yemek .meal-month-card:hover {
  border-color: rgba(208, 115, 24, 0.52);
  box-shadow: 0 8px 14px rgba(208, 115, 24, 0.14);
}

.app-container.module-yemek .meal-month-card.active {
  border-color: rgba(208, 115, 24, 0.64);
  box-shadow: 0 10px 16px rgba(208, 115, 24, 0.18);
  background: linear-gradient(180deg, rgba(255, 246, 232, 0.98) 0%, rgba(255, 240, 219, 0.96) 100%);
}

.app-container.module-yemek .meal-month-card .month-title {
  font-size: 14px;
  font-weight: 800;
  color: #4a3315;
}

.app-container.module-yemek .meal-month-card .month-meta {
  font-size: 12px;
  color: #4f6787;
}

.app-container.module-yemek .meal-month-card .month-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-container.module-yemek .meal-process-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid rgba(149, 167, 186, 0.45);
  background: rgba(245, 251, 255, 0.9);
  color: #2f4f73;
}

.app-container.module-yemek .meal-process-chip.warn {
  border-color: rgba(205, 145, 60, 0.48);
  background: rgba(255, 246, 228, 0.95);
  color: #83500e;
}

.app-container.module-yemek .meal-process-chip.ok {
  border-color: rgba(69, 157, 111, 0.45);
  background: rgba(231, 251, 241, 0.94);
  color: #1d714a;
}

.app-container.module-yemek .meal-process-chip.danger {
  border-color: rgba(193, 90, 90, 0.45);
  background: rgba(255, 239, 239, 0.94);
  color: #8f2d2d;
}

.app-container.module-yemek .meal-approval-track {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.app-container.module-yemek .meal-approval-step {
  border: 1px solid rgba(167, 185, 205, 0.45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(249, 253, 255, 0.95) 0%, rgba(244, 249, 255, 0.92) 100%);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.app-container.module-yemek .meal-approval-step.is-active {
  border-color: rgba(203, 143, 61, 0.56);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.96) 0%, rgba(255, 241, 216, 0.94) 100%);
}

.app-container.module-yemek .meal-approval-step.is-done {
  border-color: rgba(74, 155, 115, 0.5);
  background: linear-gradient(180deg, rgba(233, 251, 243, 0.96) 0%, rgba(224, 246, 235, 0.94) 100%);
}

.app-container.module-yemek .meal-approval-step.is-rejected {
  border-color: rgba(183, 90, 90, 0.5);
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.96) 0%, rgba(255, 231, 231, 0.94) 100%);
}

@media (max-width: 900px) {
  .app-container.module-yemek .meal-submit-bar form {
    align-items: stretch;
  }

  .app-container.module-yemek .meal-submit-bar input[type='month'],
  .app-container.module-yemek .meal-submit-bar button {
    width: 100%;
  }
}

/* ---------------- Meal Design Overhaul (v6) ---------------- */

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

.app-container.module-yemek {
  --meal-gold: #b36a18;
  --meal-gold-soft: rgba(179, 106, 24, 0.12);
  --meal-ink: #2c2418;
  --meal-muted: #5f6f85;
  --meal-border: rgba(171, 127, 77, 0.34);
  --meal-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 248, 236, 0.93) 100%);
}

.app-container.module-yemek .content-wrapper {
  position: relative;
}

.app-container.module-yemek .content-wrapper::before,
.app-container.module-yemek .content-wrapper::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.3;
}

.app-container.module-yemek .content-wrapper::before {
  width: 360px;
  height: 360px;
  top: -80px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(226, 161, 83, 0.52), rgba(226, 161, 83, 0));
}

.app-container.module-yemek .content-wrapper::after {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -120px;
  background: radial-gradient(circle at 70% 70%, rgba(80, 149, 203, 0.4), rgba(80, 149, 203, 0));
}

.app-container.module-yemek .content-wrapper > * {
  position: relative;
  z-index: 1;
}

.app-container.module-yemek .card,
.app-container.module-yemek .kpi,
.app-container.module-yemek .chart-panel {
  animation: mealLiftIn 0.38s ease both;
}

.app-container.module-yemek .meal-hero-v5 {
  border: 1px solid rgba(180, 120, 56, 0.42);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(214, 145, 66, 0.16) 0%, rgba(214, 145, 66, 0) 75%),
    radial-gradient(520px 260px at 0% 100%, rgba(70, 135, 191, 0.14) 0%, rgba(70, 135, 191, 0) 70%),
    linear-gradient(152deg, rgba(255, 252, 246, 0.96) 0%, rgba(250, 242, 229, 0.94) 100%);
  box-shadow: 0 18px 34px rgba(98, 69, 30, 0.14);
}

.app-container.module-yemek .meal-hero .dashboard-title {
  color: #2f2518;
  font-size: clamp(1.22rem, 1.9vw, 1.64rem);
  letter-spacing: -0.015em;
}

.app-container.module-yemek .meal-hero .dashboard-subtitle {
  color: #605337;
  max-width: 760px;
}

.app-container.module-yemek .meal-hero .dashboard-chip {
  background: rgba(255, 252, 246, 0.88);
  border-color: rgba(176, 136, 88, 0.42);
  color: #624018;
}

.app-container.module-yemek .meal-glance-item {
  border-radius: 14px;
  border-color: rgba(174, 127, 75, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 249, 239, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 16px rgba(121, 86, 43, 0.12);
}

.app-container.module-yemek .meal-glance-item span {
  color: #7b5a2f;
}

.app-container.module-yemek .meal-glance-item strong {
  color: #422b10;
}

.app-container.module-yemek .meal-kpi-grid .kpi {
  border-radius: 16px;
  border-color: rgba(161, 123, 79, 0.32);
  background: var(--meal-surface);
  box-shadow: 0 12px 22px rgba(90, 64, 29, 0.08);
}

.app-container.module-yemek .meal-kpi-grid .kpi .value {
  color: #2c2418;
}

.app-container.module-yemek .meal-chart-panel {
  border-radius: 16px;
  border-color: rgba(166, 123, 73, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 246, 238, 0.94) 100%);
  box-shadow: 0 12px 24px rgba(108, 75, 34, 0.1);
}

.app-container.module-yemek .meal-panel-head h2 {
  color: #2f2518;
}

.app-container.module-yemek .meal-status-legend span {
  color: #4c617d;
  font-weight: 600;
}

.app-container.module-yemek .module-tab-bar {
  border-bottom-color: rgba(177, 137, 90, 0.28);
}

.app-container.module-yemek .module-tab-bar a {
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.86);
  border-color: rgba(169, 130, 86, 0.38);
  color: #5b4121;
}

.app-container.module-yemek .module-tab-bar a.active {
  color: #7b460f;
  border-color: rgba(179, 106, 24, 0.54);
  box-shadow: 0 8px 18px rgba(179, 106, 24, 0.2);
  background: linear-gradient(180deg, rgba(255, 245, 227, 0.98) 0%, rgba(255, 236, 206, 0.95) 100%);
}

.app-container.module-yemek .meal-form-card,
.app-container.module-yemek .meal-guide-card {
  border-radius: 16px;
  border: 1px solid var(--meal-border);
  background: var(--meal-surface);
  box-shadow: 0 14px 28px rgba(95, 67, 31, 0.11);
  padding: 16px;
}

.app-container.module-yemek .meal-form-card h3,
.app-container.module-yemek .meal-guide-card h4 {
  color: var(--meal-ink);
  font-weight: 800;
}

.app-container.module-yemek .meal-toggle-item {
  border-color: rgba(164, 125, 81, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 246, 232, 0.9) 100%);
  color: #5b4121;
  font-weight: 700;
}

.app-container.module-yemek .meal-toggle-item input[type='checkbox'] {
  accent-color: #b36a18;
}

.app-container.module-yemek .meal-live-strip {
  margin: 10px 0 4px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.app-container.module-yemek .meal-live-item {
  border: 1px solid rgba(161, 126, 87, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 245, 235, 0.9) 100%);
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.app-container.module-yemek .meal-live-item span {
  font-size: 11px;
  font-weight: 700;
  color: #6f5737;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-container.module-yemek .meal-live-item strong {
  color: #2f2618;
  font-size: 1.02rem;
}

.app-container.module-yemek .meal-live-item.emphasis {
  border-color: rgba(179, 106, 24, 0.56);
  background: linear-gradient(180deg, rgba(255, 245, 227, 0.98) 0%, rgba(255, 235, 206, 0.95) 100%);
}

.app-container.module-yemek .meal-live-item.emphasis strong {
  color: #7c460f;
}

.app-container.module-yemek .meal-entry-card {
  border: 1px solid rgba(167, 123, 75, 0.44);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 247, 236, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.app-container.module-yemek .meal-entry-card h4 {
  color: #342615;
  font-weight: 800;
}

.app-container.module-yemek .meal-qty-box {
  border-color: rgba(165, 124, 82, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 236, 0.94) 100%);
}

.app-container.module-yemek .meal-qty-btn {
  border-color: rgba(170, 126, 79, 0.56);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(251, 242, 227, 0.95) 100%);
}

.app-container.module-yemek .meal-qty-btn:hover {
  box-shadow: 0 8px 14px rgba(179, 106, 24, 0.2);
}

.app-container.module-yemek .meal-qty-input {
  border-radius: 10px;
  border-color: rgba(168, 129, 88, 0.45);
  background: rgba(255, 255, 255, 0.95);
  color: #3a2b19;
}

.app-container.module-yemek textarea,
.app-container.module-yemek input[type='date'],
.app-container.module-yemek input[type='month'],
.app-container.module-yemek input[type='number'],
.app-container.module-yemek input[type='text'],
.app-container.module-yemek input[type='file'] {
  border-radius: 11px;
  border-color: rgba(160, 124, 83, 0.4);
  background: rgba(255, 255, 255, 0.92);
}

.app-container.module-yemek .meal-guide-card li {
  color: #526886;
  font-weight: 500;
}

.app-container.module-yemek .meal-guide-foot {
  border-top-color: rgba(166, 124, 80, 0.34);
}

.app-container.module-yemek .meal-guide-foot strong {
  color: #3f2a10;
}

.app-container.module-yemek .meal-submit-bar {
  border-radius: 14px;
  border-color: rgba(164, 124, 81, 0.46);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.97) 0%, rgba(255, 244, 227, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-container.module-yemek .meal-month-card {
  border-radius: 14px;
  border-color: rgba(160, 125, 84, 0.36);
  box-shadow: 0 10px 18px rgba(82, 62, 33, 0.08);
}

.app-container.module-yemek .meal-month-card .month-title {
  color: #3a2b16;
}

.app-container.module-yemek .meal-month-card.active {
  border-color: rgba(179, 106, 24, 0.62);
  box-shadow: 0 14px 22px rgba(179, 106, 24, 0.22);
}

.app-container.module-yemek .report-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(160, 124, 83, 0.32);
}

.app-container.module-yemek .table th {
  background: linear-gradient(180deg, rgba(255, 247, 233, 0.97) 0%, rgba(249, 236, 215, 0.95) 100%);
  color: #5d421d;
}

.app-container.module-yemek .table tr:hover td {
  background: rgba(255, 243, 223, 0.52);
}

.app-container.module-yemek .meal-process-chip {
  font-weight: 700;
}

.app-container.module-yemek .meal-approval-step {
  border-radius: 12px;
  padding: 11px 12px;
}

.app-container.module-yemek .meal-approval-step strong {
  color: #3b2d1c;
}

.app-container.module-yemek .meal-settings-shell {
  border-radius: 18px;
  border: 1px solid rgba(164, 124, 81, 0.38);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(218, 152, 73, 0.14) 0%, rgba(218, 152, 73, 0) 75%),
    linear-gradient(148deg, rgba(255, 255, 255, 0.97) 0%, rgba(253, 245, 231, 0.93) 100%);
}

.app-container.module-yemek .meal-settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 14px;
}

.app-container.module-yemek .meal-settings-hero-chip {
  border: 1px solid rgba(174, 129, 79, 0.46);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.92);
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  min-width: 180px;
}

.app-container.module-yemek .meal-settings-hero-chip span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7c613c;
  font-weight: 700;
}

.app-container.module-yemek .meal-settings-hero-chip strong {
  color: #3f2a10;
  font-size: 1.1rem;
}

.app-container.module-yemek .meal-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.app-container.module-yemek .meal-settings-panel,
.app-container.module-yemek .meal-settings-preview {
  border: 1px solid rgba(163, 124, 83, 0.4);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 237, 0.92) 100%);
  padding: 14px;
}

.app-container.module-yemek .meal-settings-panel h3,
.app-container.module-yemek .meal-settings-preview h3 {
  margin: 0 0 10px;
  color: #352717;
}

.app-container.module-yemek .meal-settings-form-v2 {
  gap: 10px;
}

.app-container.module-yemek .meal-preview-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.app-container.module-yemek .meal-preview-item {
  border: 1px solid rgba(158, 126, 90, 0.34);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-container.module-yemek .meal-preview-item span {
  color: #536884;
  font-weight: 600;
}

.app-container.module-yemek .meal-preview-item strong {
  color: #3a2b19;
}

.app-container.module-yemek .meal-preview-item.emphasis {
  border-color: rgba(179, 106, 24, 0.5);
  background: linear-gradient(180deg, rgba(255, 246, 227, 0.97) 0%, rgba(255, 237, 209, 0.95) 100%);
}

.app-container.module-yemek .meal-preview-item.emphasis strong {
  color: #7b470f;
}

.app-container.module-yemek .meal-settings-note {
  margin-top: 14px;
  border: 1px dashed rgba(160, 124, 83, 0.44);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 252, 247, 0.86);
}

.app-container.module-yemek .meal-settings-note h4 {
  margin: 0 0 8px;
  color: #3a2d1a;
}

.app-container.module-yemek .meal-settings-note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #536985;
}

@media (max-width: 980px) {
  .app-container.module-yemek .meal-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   YEMEK MODULE v2 — Complete Redesign (ym- prefix)
   ================================================================ */

/* ── Page Container ────────────────────────────────────────────── */
.ym-page { display: grid; gap: 20px; }

/* ── Header ────────────────────────────────────────────────────── */
.ym-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 22px;
  border-radius: 14px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(214,136,15,.12) 0%, transparent 70%),
    linear-gradient(135deg, var(--card) 0%, #fffaf2 100%);
  border: 1px solid rgba(214,155,85,.28);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ym-header-info h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.ym-header-info p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}
.ym-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ym-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(214,136,15,.1);
  color: #8b5e14;
  border: 1px solid rgba(214,155,85,.22);
}
.ym-header-glance {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ym-glance-box {
  text-align: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(214,136,15,.06);
  border: 1px solid rgba(214,155,85,.18);
  min-width: 100px;
}
.ym-glance-box span {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.ym-glance-box strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Stats Strip ───────────────────────────────────────────────── */
.ym-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ym-stat {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ym-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ym-stat-icon .icon { width: 18px; height: 18px; }
.ym-stat-warn .ym-stat-icon { background: rgba(183,109,0,.1); color: var(--warning); }
.ym-stat-ok   .ym-stat-icon { background: rgba(19,138,82,.1);  color: var(--success); }
.ym-stat-err  .ym-stat-icon { background: rgba(185,59,59,.1);  color: var(--danger); }
.ym-stat-info .ym-stat-icon { background: rgba(214,136,15,.1); color: #8b5e14; }
.ym-stat-body { min-width: 0; }
.ym-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.ym-stat-label {
  font-size: .72rem;
  color: var(--muted);
}

/* ── Tab Navigation (pill style) ───────────────────────────────── */
.ym-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--gray-100);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.ym-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
  transition: all .15s ease;
  white-space: nowrap;
}
.ym-nav-item .icon { width: 14px; height: 14px; }
.ym-nav-item:hover { color: var(--text); background: rgba(255,255,255,.6); }
.ym-nav-item.active {
  color: #6d3f06;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border: 1px solid rgba(214,155,85,.25);
}
.ym-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(214,136,15,.15);
  color: #8b5e14;
  border-radius: 10px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.ym-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
}
.ym-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.ym-card-head h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.ym-card-head h2 .icon { width: 16px; height: 16px; }
.ym-card-head p { margin: 0; font-size: .76rem; color: var(--muted); }
.ym-card-body { padding: 22px; }
.ym-card-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}

/* ── Type Picker (Radio Cards) ─────────────────────────────────── */
.ym-type-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.ym-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.ym-type-option:hover {
  border-color: rgba(214,136,15,.4);
  background: rgba(214,136,15,.03);
}
.ym-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ym-type-option.is-active {
  border-color: #d4880f;
  background: linear-gradient(180deg, rgba(214,136,15,.06) 0%, rgba(214,136,15,.02) 100%);
  box-shadow: 0 0 0 3px rgba(214,136,15,.12);
}
.ym-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214,136,15,.08);
  color: #8b5e14;
  transition: all .15s ease;
}
.ym-type-icon .icon { width: 20px; height: 20px; }
.ym-type-option.is-active .ym-type-icon {
  background: rgba(214,136,15,.18);
  color: #6d3f06;
}
.ym-type-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}
.ym-type-desc {
  font-size: .68rem;
  color: var(--muted);
}
.ym-subtype-picker {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.ym-subtype-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: all .15s ease;
}
.ym-subtype-option:hover {
  border-color: rgba(214,136,15,.4);
}
.ym-subtype-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ym-subtype-option.is-active {
  border-color: #d4880f;
  background: rgba(214,136,15,.08);
  color: #8b5e14;
}
.ym-fixed-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(214,136,15,.06);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.ym-fixed-line strong {
  margin-left: auto;
  color: #8b5e14;
}
.ym-mesai-toggle {
  margin-top: 10px;
}
.ym-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.ym-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4880f;
  cursor: pointer;
}
.ym-mesai-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(214,136,15,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
}
.ym-mesai-qty label {
  font-weight: 600;
  white-space: nowrap;
}
.ym-mesai-qty input[type="number"] {
  width: 64px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  text-align: center;
}
.ym-mesai-price {
  margin-left: auto;
  font-weight: 700;
  color: #8b5e14;
}

/* ── Form Fields ───────────────────────────────────────────────── */
.ym-form { display: grid; gap: 16px; }
.ym-form[hidden] { display: none; }
.ym-field label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.ym-field input,
.ym-field textarea,
.ym-field select {
  width: 100%;
  padding: 9px 12px;
  font-size: .84rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  transition: border-color .15s;
}
.ym-field input:focus,
.ym-field textarea:focus {
  outline: none;
  border-color: #d4880f;
  box-shadow: 0 0 0 3px rgba(214,136,15,.1);
}
.ym-field textarea { resize: vertical; min-height: 60px; }
.ym-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ym-section-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ym-section-title .icon { width: 14px; height: 14px; }

/* ── Quantity Stepper ──────────────────────────────────────────── */
.ym-qty-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ym-qty-group { flex: 0 0 auto; }
.ym-qty-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.ym-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
}
.ym-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-50);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s;
}
.ym-qty-btn:hover { background: var(--gray-200); }
.ym-qty-val {
  width: 46px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text);
  -moz-appearance: textfield;
}
.ym-qty-val::-webkit-inner-spin-button,
.ym-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Live Preview Strip ────────────────────────────────────────── */
.ym-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(214,136,15,.06) 0%, rgba(214,136,15,.02) 100%);
  border: 1px solid rgba(214,155,85,.18);
  margin-top: 4px;
}
.ym-preview-item {
  display: flex;
  flex-direction: column;
}
.ym-preview-item span {
  font-size: .66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ym-preview-item strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.ym-preview-item.is-total strong {
  color: #6d3f06;
  font-size: 1.05rem;
}
.ym-preview-sep {
  width: 1px;
  height: 28px;
  background: rgba(214,155,85,.25);
}

/* ── Action Button ─────────────────────────────────────────────── */
.ym-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-size: .84rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.ym-btn .icon { width: 14px; height: 14px; }
.ym-btn-primary {
  background: linear-gradient(180deg, #d4880f 0%, #b87310 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(214,136,15,.25);
}
.ym-btn-primary:hover {
  background: linear-gradient(180deg, #e8960f 0%, #c47d10 100%);
  box-shadow: 0 3px 10px rgba(214,136,15,.3);
}
.ym-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.ym-btn-danger {
  background: rgba(185,59,59,.08);
  color: var(--danger);
  border: 1px solid rgba(185,59,59,.2);
}
.ym-btn-danger:hover { background: rgba(185,59,59,.14); }
.ym-btn-ghost {
  background: var(--gray-50);
  color: var(--text);
  border: 1px solid var(--border);
}
.ym-btn-ghost:hover { background: var(--gray-100); }
.ym-btn-ok {
  background: rgba(19,138,82,.08);
  color: var(--success);
  border: 1px solid rgba(19,138,82,.2);
}
.ym-btn-ok:hover { background: rgba(19,138,82,.14); }

/* ── Draft Activity Panel (approve tab) ───────────────────────── */
.ym-draft-activity {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}
.ym-draft-activity-head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(245,158,11,.2);
}
.ym-draft-activity-head h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ym-draft-activity-body {
  padding: 6px 0;
}
.ym-draft-activity-card {
  border-bottom: 1px solid rgba(245,158,11,.12);
}
.ym-draft-activity-card:last-child { border-bottom: none; }
.ym-draft-activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.ym-draft-activity-row:hover {
  background: rgba(245,158,11,.06);
}
.ym-draft-activity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ym-draft-activity-info strong {
  font-size: .88rem;
  color: #18181b;
}
.ym-draft-activity-info small {
  font-size: .78rem;
  color: #78716c;
}
.ym-draft-activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.ym-draft-activity-stats {
  font-size: .78rem;
  color: #78716c;
  font-weight: 500;
}
.ym-draft-activity-dates {
  font-size: .72rem;
  color: #a8a29e;
}
.ym-draft-activity-detail {
  display: none;
  padding: 0 18px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ym-draft-activity-card.is-open .ym-draft-activity-detail {
  display: block;
}
.ym-draft-activity-card.is-open .ym-person-toggle {
  transform: rotate(180deg);
}
.ym-draft-activity-detail .ym-table { font-size: .8rem; }
.ym-draft-activity-detail .ym-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 10px;
}
.ym-draft-activity-detail .ym-table td { padding: 7px 10px; }
.ym-draft-activity-detail .ym-table tfoot td {
  border-top: 2px solid var(--gray-200, #e5e7eb);
  font-weight: 600;
}
/* ── Draft List ────────────────────────────────────────────────── */
.ym-draft-list { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ym-draft-empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
}
.ym-draft-item {
  display: grid;
  grid-template-columns: 100px 110px 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  transition: background .1s;
}
.ym-draft-item:last-child { border-bottom: none; }
.ym-draft-item:hover { background: var(--gray-50); }
.ym-draft-date { font-weight: 600; color: var(--text); }
.ym-draft-type {}
.ym-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(214,136,15,.1);
  color: #8b5e14;
}
.ym-draft-desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.ym-draft-amount { font-weight: 600; text-align: right; }
.ym-draft-receipt a {
  font-size: .76rem;
  color: var(--primary);
  text-decoration: none;
}
.ym-draft-receipt a:hover { text-decoration: underline; }
.ym-draft-item .ym-btn { padding: 6px 10px; font-size: .76rem; border-radius: 8px; }

/* ── Submit Area ───────────────────────────────────────────────── */
.ym-submit-area {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--gray-50) 0%, rgba(214,136,15,.04) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ym-submit-area label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
}
.ym-submit-area input[type="month"] {
  padding: 7px 10px;
  font-size: .82rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.ym-submit-area .ym-submit-note {
  margin-left: auto;
  font-size: .72rem;
  color: var(--muted);
}

/* ── Month Filter ──────────────────────────────────────────────── */
.ym-month-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ym-month-filter label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
}
.ym-month-filter input[type="month"] {
  padding: 6px 10px;
  font-size: .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

/* ── History Month Cards ───────────────────────────────────────── */
.ym-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 18px 22px;
}
.ym-month-card {
  display: block;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
}
.ym-month-card:hover {
  border-color: rgba(214,136,15,.35);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ym-month-card.is-active {
  border-color: #d4880f;
  background: rgba(214,136,15,.05);
  box-shadow: 0 0 0 3px rgba(214,136,15,.1);
}
.ym-month-card .ym-mc-title {
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 4px;
}
.ym-month-card .ym-mc-meta {
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.ym-month-card .ym-mc-badges {
  display: flex;
  gap: 4px;
}
.ym-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: .64rem;
  font-weight: 600;
  border-radius: 5px;
}
.ym-badge-warn  { background: rgba(183,109,0,.1);  color: var(--warning); }
.ym-badge-ok    { background: rgba(19,138,82,.1);   color: var(--success); }
.ym-badge-err   { background: rgba(185,59,59,.1);   color: var(--danger); }
.ym-badge-muted { background: var(--gray-100); color: var(--muted); }

/* ── History Table ─────────────────────────────────────────────── */
.ym-table-wrap {
  overflow-x: auto;
  padding: 0 22px 18px;
}
.ym-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.ym-table th {
  padding: 10px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.ym-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ym-table tr:last-child td { border-bottom: none; }
.ym-table tr:hover td { background: var(--gray-50); }

/* ── Process Chip ──────────────────────────────────────────────── */
.ym-process {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 6px;
}
.ym-process-warn { background: rgba(183,109,0,.08); color: var(--warning); }
.ym-process-ok   { background: rgba(19,138,82,.08);  color: var(--success); }
.ym-process-err  { background: rgba(185,59,59,.08);  color: var(--danger); }

/* ── Approval Progress Track ───────────────────────────────────── */
.ym-track {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.ym-track-step {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}
.ym-track-step strong {
  display: block;
  font-size: .78rem;
  margin-bottom: 2px;
}
.ym-track-step span {
  font-size: .7rem;
  color: var(--muted);
}
.ym-track-step.is-active {
  border-color: var(--warning);
  background: rgba(183,109,0,.04);
}
.ym-track-step.is-done {
  border-color: var(--success);
  background: rgba(19,138,82,.04);
}
.ym-track-step.is-rejected {
  border-color: var(--danger);
  background: rgba(185,59,59,.04);
}

/* ── Queue Summary ─────────────────────────────────────────────── */
.ym-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.ym-summary-item {
  text-align: center;
}
.ym-summary-item .k {
  font-size: .66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ym-summary-item .v {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Decision Form ─────────────────────────────────────────────── */
.ym-decision-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ym-decision-form .ym-note-input {
  padding: 5px 10px;
  font-size: .78rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 150px;
  background: var(--card);
}

/* ── Person Cards (Approve Tab) ────────────────────────────────── */
.ym-person-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.ym-person-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.ym-person-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ym-person-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.ym-person-header:hover {
  background: rgba(212,136,15,.04);
}
.ym-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4880f 0%, #8b5e14 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .88rem;
  flex-shrink: 0;
}
.ym-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ym-person-info strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym-person-info small {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ym-person-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ym-person-stat {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ym-person-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform .25s ease, background .15s ease;
}
.ym-person-toggle .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.ym-person-card.is-open .ym-person-toggle {
  transform: rotate(180deg);
}
.ym-person-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0;
}
.ym-person-card.is-open .ym-person-body {
  display: block;
}
.ym-sub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ym-sub-row:last-child {
  border-bottom: none;
}
.ym-sub-row-standalone {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 0;
}
.ym-sub-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.ym-sub-code {
  font-size: .82rem;
  white-space: nowrap;
}
.ym-sub-code strong {
  color: var(--text);
  font-weight: 700;
}
.ym-sub-date {
  font-size: .76rem;
  color: var(--muted);
  white-space: nowrap;
}
.ym-sub-dist {
  font-size: .76rem;
  color: var(--text);
  padding: 2px 8px;
  background: rgba(212,136,15,.08);
  border-radius: 6px;
  white-space: nowrap;
}
.ym-sub-amount {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ── Detail Accordion (Approve Tab) ─────────────────────────── */
.ym-sub-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ym-sub-detail-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.ym-sub-detail-toggle.is-open {
  background: var(--primary);
  color: #fff;
}
.ym-sub-details {
  display: none;
  width: 100%;
  padding: 10px 0 4px;
}
.ym-sub-details.is-open {
  display: block;
}
.ym-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .76rem;
}
.ym-detail-table th,
.ym-detail-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ym-detail-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ym-detail-table tbody tr:last-child td {
  border-bottom: none;
}
.ym-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.ym-receipt-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ── Step Visual (dot-line-dot) ──────────────────────────────── */
.ym-step-visual {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.ym-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--muted);
  position: relative;
}
.ym-step-dot.is-active {
  border-color: #d4880f;
  background: #d4880f;
  color: #fff;
}
.ym-step-dot.is-done {
  border-color: #1f8a5d;
  background: #1f8a5d;
  color: #fff;
}
.ym-step-dot.is-pending {
  border-color: var(--border);
  background: var(--card);
  color: var(--muted);
}
.ym-step-line {
  width: 22px;
  height: 2px;
  background: var(--border);
}
.ym-step-line.is-done {
  background: #1f8a5d;
}

/* ── Person Foot (Bulk Actions) ──────────────────────────────── */
.ym-person-foot {
  border-top: 2px solid var(--border);
  padding: 14px 18px;
  background: rgba(212,136,15,.03);
}
.ym-person-bulk-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ym-person-bulk-form .ym-note-input {
  flex: 1;
  min-width: 140px;
}

/* ── Mesai Person Cards (ms-person-*) ─────────────────────────── */
.ms-person-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.ms-person-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.ms-person-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ms-person-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease;
}
.ms-person-header:hover {
  background: rgba(212,136,15,.04);
}
.ms-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4880f 0%, #8b5e14 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .88rem;
  flex-shrink: 0;
}
.ms-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ms-person-info strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-person-info small {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-person-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ms-person-stat {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ms-person-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform .25s ease, background .15s ease;
}
.ms-person-toggle .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.ms-person-card.is-open .ms-person-toggle {
  transform: rotate(180deg);
}
.ms-person-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0;
}
.ms-person-card.is-open .ms-person-body {
  display: block;
}
.ms-req-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ms-req-row:last-child {
  border-bottom: none;
}
.ms-req-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.ms-req-date {
  font-weight: 700;
  font-size: .82rem;
  color: var(--text);
  white-space: nowrap;
}
.ms-req-time {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.ms-req-type {
  font-size: .74rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(212,136,15,.1);
  color: #8b5e14;
  font-weight: 600;
  white-space: nowrap;
}
.ms-req-hours {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.ms-req-vehicle {
  font-size: .74rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59,130,246,.1);
  color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ms-req-reason {
  font-size: .76rem;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.5;
  width: 100%;
  flex-basis: 100%;
}
.ms-reason-cell {
  max-width: 300px;
  word-break: break-word;
  white-space: normal;
  font-size: .78rem;
  line-height: 1.5;
}
.ms-decision-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ms-note-input {
  font-size: .78rem;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 120px;
}
/* ── Aylık Kesinti Bölümü ── */
.ms-ded-section {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  background: rgba(185,59,59,.02);
}
.ms-ded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ms-ded-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ms-ded-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  color: var(--muted);
}
.ms-ded-stat strong {
  color: var(--text);
  font-weight: 700;
}
.ms-ded-minus { color: var(--danger); }
.ms-ded-minus strong { color: var(--danger); }
.ms-ded-net strong { color: var(--text); }
.ms-ded-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--danger);
  background: none;
  border: 1px solid rgba(185,59,59,.25);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.ms-ded-toggle:hover {
  background: rgba(185,59,59,.06);
  border-color: rgba(185,59,59,.4);
}
.ms-ded-section.is-open .ms-ded-toggle {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.ms-ded-form-wrap {
  display: none;
  margin-top: 10px;
}
.ms-ded-section.is-open .ms-ded-form-wrap {
  display: block;
}
.ms-ded-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.ms-ded-field label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 3px;
}
.ms-ded-field input {
  font-size: .82rem;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
}
.ms-ded-field input:focus {
  outline: none;
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185,59,59,.08);
}
.ms-ded-field input[name="ded_hours"] {
  width: 80px;
  text-align: center;
  font-weight: 600;
}
.ms-ded-field-reason {
  flex: 1;
  min-width: 160px;
}
.ms-ded-field-reason input {
  width: 100%;
}
.ms-ded-field-btn {
  padding-bottom: 1px;
}
.ms-ded-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ms-ded-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  padding: 5px 10px;
  background: rgba(185,59,59,.04);
  border: 1px solid rgba(185,59,59,.1);
  border-radius: 8px;
  flex-wrap: wrap;
}
.ms-ded-item-hours {
  font-weight: 700;
  color: var(--danger);
  white-space: nowrap;
}
.ms-ded-item-note {
  flex: 1;
  color: var(--text);
  min-width: 80px;
}
.ms-ded-item-by {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
}
.ms-ded-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: all .15s;
  display: inline-flex;
}
.ms-ded-del:hover {
  color: var(--danger);
  background: rgba(185,59,59,.08);
}

.ms-person-foot {
  border-top: 2px solid var(--border);
  padding: 14px 18px;
  background: rgba(212,136,15,.03);
}
.ms-bulk-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ms-bulk-form .ms-note-input {
  flex: 1;
  min-width: 140px;
}

/* Responsive overrides for ms-person */
@media (max-width: 640px) {
  .ms-person-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ms-person-meta {
    width: 100%;
    justify-content: flex-start;
  }
  .ms-req-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ms-req-reason {
    width: 100%;
    max-width: none;
    font-size: .74rem;
  }
  .ms-reason-cell {
    max-width: none;
    font-size: .74rem;
  }
  .ms-decision-form,
  .ms-bulk-form {
    width: 100%;
  }
  .ms-bulk-form .ms-note-input {
    min-width: 100px;
  }
}

/* ── Analytics (Charts) ────────────────────────────────────────── */
.ym-analytics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ym-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ym-chart-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.ym-chart-card h3 .icon { width: 16px; height: 16px; }
.ym-chart-card canvas {
  width: 100% !important;
  max-height: 200px;
}
.ym-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: center;
}
.ym-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--muted);
}
.ym-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ym-legend-dot.warn   { background: #d49a36; }
.ym-legend-dot.ok     { background: #1f8a5d; }
.ym-legend-dot.danger { background: #c44c4c; }

/* ── Alerts ────────────────────────────────────────────────────── */
.ym-alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 500;
}
.ym-alert-ok {
  background: rgba(19,138,82,.06);
  border: 1px solid rgba(19,138,82,.2);
  color: var(--success);
}
.ym-alert-err {
  background: rgba(185,59,59,.06);
  border: 1px solid rgba(185,59,59,.2);
  color: var(--danger);
}
.ym-alert-warn {
  background: rgba(183,109,0,.06);
  border: 1px solid rgba(183,109,0,.2);
  color: var(--warning);
}

/* ── Guide Panel ───────────────────────────────────────────────── */
.ym-form-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
}
.ym-guide {
  padding: 18px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  align-self: start;
}
.ym-guide h4 {
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.ym-guide h4 .icon { width: 14px; height: 14px; }
.ym-guide ol {
  margin: 0;
  padding-left: 18px;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.7;
}
.ym-guide-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  font-size: .76rem;
}
.ym-guide-stat span { color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ym-guide-stat span .icon { width: 12px; height: 12px; }
.ym-guide-stat strong { color: var(--text); font-weight: 700; }

/* ── Draft Table Header ────────────────────────────────────────── */
.ym-draft-head {
  display: grid;
  grid-template-columns: 100px 110px 50px 1fr auto;
  gap: 10px;
  padding: 8px 22px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  background: var(--gray-50);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ym-header { flex-direction: column; }
  .ym-header-glance { width: 100%; overflow-x: auto; }
  .ym-stats { grid-template-columns: repeat(2, 1fr); }
  .ym-analytics { grid-template-columns: 1fr; }
  .ym-summary { grid-template-columns: repeat(2, 1fr); }
  .ym-type-picker { grid-template-columns: 1fr 1fr; }
  .ym-draft-head,
  .ym-draft-item {
    grid-template-columns: 80px 90px 40px 1fr auto;
  }
}
@media (max-width: 640px) {
  .ym-stats { grid-template-columns: 1fr 1fr; }
  .ym-nav { flex-wrap: wrap; }
  .ym-field-row { grid-template-columns: 1fr; }
  .ym-draft-head { display: none; }
  .ym-draft-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
  }
  .ym-draft-desc { width: 100%; order: 10; }
  .ym-draft-item > :last-child { margin-left: auto; }
  .ym-submit-area { flex-direction: column; align-items: stretch; }
  .ym-person-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ym-person-meta {
    width: 100%;
    order: 3;
    padding-left: 52px;
    gap: 8px;
  }
  .ym-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ym-sub-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ym-decision-form {
    width: 100%;
  }
  .ym-person-bulk-form {
    flex-direction: column;
    align-items: stretch;
  }
  .ym-person-bulk-form .ym-note-input {
    width: 100%;
  }
  .ym-detail-table {
    font-size: .7rem;
  }
  .ym-detail-table th,
  .ym-detail-table td {
    padding: 5px 6px;
  }
  .ym-detail-table th:nth-child(5),
  .ym-detail-table td:nth-child(5) {
    white-space: nowrap;
  }
}

/* ── Per-item checkbox ─────────────────────────────────────────── */
.ym-item-check { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ── GM extras ─────────────────────────────────────────────────── */
.ym-extras-section { border-top: 2px dashed var(--border); margin-top: 12px; padding-top: 12px; }
.ym-extra-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(19,138,82,.05); border-radius: 8px; font-size: .82rem; margin-top: 4px; }
.ym-add-extra-form { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: end; }

/* ── Returned badge ────────────────────────────────────────────── */
.ym-badge-returned { background: rgba(183,109,0,.15); color: #8b5e14; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; }

/* ── Draft edit mode ───────────────────────────────────────────── */
.ym-draft-item.is-editing { background: rgba(59,130,246,.05); }
.ym-draft-item.is-editing input,
.ym-draft-item.is-editing textarea { font-size: .8rem; padding: 4px 8px; }

/* ── Draft locked (mesai olan tarih) ──────────────────────────── */
.ym-draft-item.ym-draft-locked {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(185,59,59,.04) 8px,
    rgba(185,59,59,.04) 16px
  );
  opacity: .75;
}
.ym-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: #8b5e14;
  background: rgba(183,109,0,.12);
  white-space: nowrap;
}

/* ── Muhasebe page ─────────────────────────────────────────────── */
.mh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mh-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-align: center; }
.mh-stat .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.mh-stat .v { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.mh-person { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.mh-person-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; cursor: pointer; transition: background .15s; }
.mh-person-head:hover { background: rgba(212,136,15,.04); }
.mh-person-body { display: none; padding: 0 18px 14px; }
.mh-person.is-open .mh-person-body { display: block; }
.mh-total-row { font-weight: 700; background: rgba(19,138,82,.04); }
.mh-person.mh-paid { border-left: 3px solid var(--success, #22c55e); }

/* ── Mesai meal check box ──────────────────────────────────────── */
.mesai-meal-check { padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: .84rem; line-height: 1.6; }
.mesai-meal-check .mmc-header { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; font-size: .88rem; }
.mesai-meal-check .mmc-header .icon { flex-shrink: 0; }
.mesai-meal-check .mmc-body { padding-left: 28px; }
.mesai-meal-check .mmc-body p { margin: 0 0 6px; }
.mesai-meal-check .mmc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-left: 28px; }
.mesai-meal-check.info { background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.18); color: var(--text); }
.mesai-meal-check.info .mmc-header { color: #2563eb; }
.mesai-meal-check.warn { background: rgba(234,179,8,.07); border: 1px solid rgba(234,179,8,.22); color: var(--text); }
.mesai-meal-check.warn .mmc-header { color: #b76d00; }
.mesai-meal-check.success { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.18); color: var(--text); }
.mesai-meal-check.success .mmc-header { color: #138a52; }
.mesai-meal-check.loading { background: var(--gray-50); border: 1px solid var(--border); color: var(--muted); }

/* ── Mesai Takvimi ───────────────────────────────────────────── */
.mc-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mc-summary-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(214,136,15,.06) 0%, rgba(139,94,20,.03) 100%);
  border: 1px solid rgba(214,136,15,.15);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.mc-summary-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214,136,15,.1);
}
.mc-summary-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4880f, #e8a838);
  border-radius: 14px 14px 0 0;
}
.mc-summary-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.mc-summary-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.mc-calendar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mc-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--card) 100%);
  border-bottom: 2px solid var(--border);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.mc-head-cell {
  padding: 12px 4px;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.mc-head-cell:nth-child(6),
.mc-head-cell:nth-child(7) {
  color: var(--danger, #dc2626);
  background: rgba(220,38,38,.03);
}
.mc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.mc-cell {
  position: relative;
  min-height: 100px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px;
  transition: all .2s ease;
}
.mc-cell:nth-child(7n) { border-right: none; }
/* Son satır köşe yuvarlatma: sadece sağ alt her zaman son hücre */
.mc-grid .mc-cell:last-child { border-radius: 0 0 16px 0; border-bottom: none; }
/* Son satırdaki tüm hücrelerin alt border'ını kaldır */
.mc-grid .mc-cell:nth-last-child(-n+7) { border-bottom: none; }
.mc-cell-empty {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,.015) 4px,
    rgba(0,0,0,.015) 8px
  );
}
.mc-cell.mc-weekend {
  background: rgba(220,38,38,.02);
}
.mc-cell.mc-today {
  background: rgba(59,130,246,.04);
  box-shadow: inset 0 0 0 2px rgba(59,130,246,.5);
}
.mc-cell.mc-today .mc-day-num {
  background: var(--primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .74rem;
}
.mc-cell.mc-has-data {
  cursor: pointer;
}
.mc-cell.mc-has-data:hover {
  background: rgba(214,136,15,.06);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(214,136,15,.12);
}
.mc-cell.mc-open {
  background: rgba(214,136,15,.08);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(214,136,15,.15);
}
.mc-day-num {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.mc-weekend .mc-day-num {
  color: var(--danger, #dc2626);
}
.mc-day-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.mc-day-people {
  font-size: .66rem;
  font-weight: 700;
  color: #8b5e14;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(214,136,15,.1);
  padding: 2px 6px;
  border-radius: 6px;
}
.mc-day-people .icon { width: 10px; height: 10px; }
.mc-day-hours {
  font-size: .66rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d4880f, #b87108);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .01em;
}
.mc-day-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.mc-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4880f, #8b5e14);
  color: #fff;
  font-size: .56rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(139,94,20,.25);
  border: 1.5px solid rgba(255,255,255,.6);
}
.mc-dot-more {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
  font-size: .54rem;
  border-color: rgba(255,255,255,.4);
}

/* Detay panel */
.mc-detail {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: -1px;
  z-index: 50;
  background: var(--card);
  border: 1px solid rgba(214,136,15,.2);
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.14), 0 2px 8px rgba(214,136,15,.08);
  padding: 0;
  min-width: 320px;
  max-width: 400px;
  max-height: 60vh;
  overflow-y: auto;
  animation: mcSlideIn .2s ease;
}
@keyframes mcSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Sağ taraftaki hücreler için detayı sola aç */
.mc-cell:nth-child(7n) .mc-detail,
.mc-cell:nth-child(7n-1) .mc-detail {
  left: auto;
  right: -1px;
  border-radius: 14px 0 14px 14px;
}
.mc-cell.mc-open .mc-detail {
  display: block;
}
/* Alttaki hücreler için detayı yukarı aç */
.mc-cell.mc-open-up .mc-detail {
  top: auto;
  bottom: calc(100% - 2px);
  border-radius: 14px 14px 14px 0;
}
.mc-cell.mc-open-up:nth-child(7n) .mc-detail,
.mc-cell.mc-open-up:nth-child(7n-1) .mc-detail {
  border-radius: 14px 14px 0 14px;
}
.mc-detail-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(214,136,15,.08), rgba(214,136,15,.03));
  border-radius: 14px 14px 0 0;
}
.mc-cell:nth-child(7n) .mc-detail .mc-detail-head,
.mc-cell:nth-child(7n-1) .mc-detail .mc-detail-head {
  border-radius: 14px 0 0 0;
}
.mc-detail-head strong {
  font-size: .88rem;
  display: block;
  color: var(--text);
  font-family: 'Sora', sans-serif;
}
.mc-detail-stat {
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.mc-detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background .1s;
}
.mc-detail-row:hover {
  background: rgba(214,136,15,.03);
}
.mc-detail-row:last-child { border-bottom: none; }
.mc-detail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4880f, #8b5e14);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(139,94,20,.2);
}
.mc-detail-info {
  flex: 1;
  min-width: 0;
}
.mc-detail-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.mc-detail-name small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
  font-size: .72rem;
}
.mc-detail-meta {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.6;
}
.mc-detail-meta .icon { width: 10px; height: 10px; }
.mc-detail-type {
  background: linear-gradient(135deg, rgba(214,136,15,.15), rgba(214,136,15,.08));
  color: #8b5e14;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .68rem;
  border: 1px solid rgba(214,136,15,.15);
}
.mc-detail-reason {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--gray-50);
  border-radius: 6px;
  border-left: 3px solid rgba(214,136,15,.3);
  line-height: 1.5;
}

/* ── Responsive additions ──────────────────────────────────────── */
@media (max-width: 640px) {
  .ym-add-extra-form { grid-template-columns: 1fr; }
  .mh-stats { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================
   MOBILE-FIRST: Mesai & Yemek tam mobil uyumluluk
   =========================================================== */

/* ── 980px: Tablet ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ym-form-layout {
    grid-template-columns: 1fr;
  }
  .ym-guide {
    order: -1;
  }
}

/* ── 640px: Mobil ──────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* ── Genel: Card & Section padding azalt ─────────────────────── */
  .card {
    border-radius: 10px;
  }
  .card > .header,
  .card > .header.module-page-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .module-tab-bar {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .module-tab-bar a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: .82rem;
  }
  .section.section-spaced {
    padding: 0 16px;
  }
  .section h2 {
    font-size: .95rem;
  }

  /* ── KPI Board: 2 kolon ──────────────────────────────────────── */
  .board {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
  .kpi {
    padding: 12px;
    border-radius: 10px;
  }
  .kpi .label {
    font-size: 10px;
  }
  .kpi .value {
    font-size: 1.25rem;
    margin-top: 4px;
  }

  /* ── Alert mesajları ─────────────────────────────────────────── */
  .alert {
    margin: 8px 16px;
    padding: 10px 14px;
    font-size: .82rem;
    border-radius: 10px;
  }

  /* ── Mesai Form: Satır başına 1 alan ─────────────────────────── */
  .row {
    flex-direction: column;
    gap: 12px;
  }
  .col {
    flex: 1 1 100%;
    min-width: 0;
  }
  .col label {
    font-size: .82rem;
    margin-bottom: 4px;
  }
  .col input,
  .col select,
  .col textarea {
    font-size: 16px; /* iOS zoom engelle */
    padding: 12px 14px;
    border-radius: 10px;
  }
  .col textarea {
    min-height: 60px;
  }
  .stack-gap-sm {
    padding: 0;
  }
  #mesaiSubmitBtn {
    width: 100%;
    padding: 14px;
    font-size: .92rem;
    border-radius: 12px;
  }

  /* ── Mesai Meal Check Box (mobil optimize) ────────────────────── */
  .mesai-meal-check {
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: .82rem;
  }
  .mesai-meal-check .mmc-header {
    font-size: .84rem;
    flex-wrap: wrap;
  }
  .mesai-meal-check .mmc-body {
    padding-left: 0;
    margin-top: 8px;
    font-size: .8rem;
  }
  .mesai-meal-check .mmc-body ul {
    padding-left: 16px;
    margin: 6px 0 0;
  }
  .mesai-meal-check .mmc-actions {
    padding-left: 0;
    margin-top: 10px;
    flex-direction: column;
  }
  .mesai-meal-check .mmc-actions .btn,
  .mesai-meal-check .mmc-actions a.btn {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: .84rem;
    border-radius: 10px;
    justify-content: center;
  }

  /* ── Mesai Taleplerim tablosu → kart görünüm ─────────────────── */
  .section-spaced > .table {
    display: block;
    border: none;
    box-shadow: none;
  }
  /* Tarayıcı <tbody> olmadan da otomatik <tbody> oluşturur */
  .section-spaced > .table > thead,
  .section-spaced > .table > tbody > tr.table-head-row {
    display: none;
  }
  .section-spaced > .table > tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .section-spaced > .table > tbody > tr:not(.table-head-row):not(.table-empty-row) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .section-spaced > .table > tbody > tr.table-empty-row {
    text-align: center;
  }
  .section-spaced > .table > tbody > tr.table-empty-row td {
    border: none;
  }
  .section-spaced > .table > tbody > tr > td {
    padding: 2px 0;
    border: none;
    font-size: .82rem;
    display: flex;
    flex-direction: column;
  }
  .section-spaced > .table > tbody > tr > td::before {
    content: attr(data-label);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 2px;
  }
  /* data-label boş olan hücrelerde pseudo-element gizle */
  .section-spaced > .table > tbody > tr > td:not([data-label])::before {
    display: none;
  }
  /* Durum, Not ve Oluşturma tam genişlik */
  .section-spaced > .table > tbody > tr > td:nth-child(7),
  .section-spaced > .table > tbody > tr > td:nth-child(8),
  .section-spaced > .table > tbody > tr > td:nth-child(9) {
    grid-column: 1 / -1;
  }

  /* Taleplerim header + ay filtresi mobil */
  .section-spaced > div[style*="display:flex"] {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .section-spaced > div[style*="display:flex"] form[style*="display:flex"] {
    width: 100%;
    flex-wrap: wrap;
  }
  .section-spaced > div[style*="display:flex"] form input[type="month"] {
    flex: 1;
    font-size: 16px;
    padding: 10px 12px;
  }

  /* ── Kesinti özeti box ───────────────────────────────────────── */
  .section-spaced > div[style*="rgba(185,59,59"] {
    margin: 10px 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  /* ── Yemek Card: padding azalt ───────────────────────────────── */
  .ym-card {
    border-radius: 10px;
  }
  .ym-card-head {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .ym-card-head h2 {
    font-size: .9rem;
  }
  .ym-card-body {
    padding: 16px;
  }

  /* ── Yemek form alanları ─────────────────────────────────────── */
  .ym-form {
    gap: 14px;
  }
  .ym-field label {
    font-size: .78rem;
    margin-bottom: 4px;
  }
  .ym-field input,
  .ym-field textarea,
  .ym-field select {
    font-size: 16px; /* iOS zoom engelle */
    padding: 12px 14px;
    border-radius: 10px;
  }
  .ym-field textarea {
    min-height: 60px;
  }
  .ym-field input[type="file"] {
    font-size: 14px;
    padding: 10px 12px;
  }
  .ym-field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ── Yemek type picker: 2x2 grid ─────────────────────────────── */
  .ym-type-picker {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .ym-type-option {
    padding: 14px 8px;
    border-radius: 10px;
    gap: 4px;
  }
  .ym-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .ym-type-icon .icon {
    width: 18px;
    height: 18px;
  }
  .ym-type-name {
    font-size: .8rem;
  }

  /* ── Yemek section title ─────────────────────────────────────── */
  .ym-section-title {
    font-size: .78rem;
    padding: 8px 0;
  }

  /* ── Yemek fixed line (fiyat bilgisi) ────────────────────────── */
  .ym-fixed-line {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .84rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* ── Mesai toggle & qty ──────────────────────────────────────── */
  .ym-mesai-toggle {
    flex-direction: column;
    gap: 10px;
  }
  .ym-checkbox-label {
    font-size: .84rem;
  }
  .ym-mesai-qty {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ym-mesai-qty input[type="number"] {
    font-size: 16px;
    padding: 10px 12px;
    width: 70px;
  }

  /* ── Şehirdışı subtype ───────────────────────────────────────── */
  .ym-subtype-picker {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ym-subtype-option {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .82rem;
    justify-content: center;
  }

  /* ── Yemek submit butonu ─────────────────────────────────────── */
  .ym-btn {
    width: 100%;
    padding: 14px;
    font-size: .88rem;
    border-radius: 12px;
    justify-content: center;
  }
  .ym-btn-primary {
    text-align: center;
  }

  /* ── Yemek draft list (kayıtlarım) ──────────────────────────── */
  .ym-draft-head {
    display: none;
  }
  .ym-draft-item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .ym-draft-desc {
    width: 100%;
    order: 10;
  }

  /* ── Yemek month filter ──────────────────────────────────────── */
  .ym-month-filter form {
    flex-wrap: wrap;
  }
  .ym-month-filter input[type="month"] {
    font-size: 16px;
    padding: 10px 12px;
    flex: 1;
    min-width: 140px;
  }

  /* ── Yemek header hero ───────────────────────────────────────── */
  .ym-header {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .ym-header-main {
    width: 100%;
  }
  .ym-header h1 {
    font-size: 1.1rem;
  }
  .ym-header-pills {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ym-header-glance {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ym-header-glance-box {
    min-width: 100px;
    padding: 10px 14px;
  }

  /* ── Yemek stats strip ───────────────────────────────────────── */
  .ym-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 0 10px;
  }
  .ym-stats > div {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .ym-stats .ym-stat-val {
    font-size: 1.1rem;
  }
  .ym-stats .ym-stat-label {
    font-size: .68rem;
  }

  /* ── Yemek tab nav ───────────────────────────────────────────── */
  .ym-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 2px;
  }
  .ym-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: .82rem;
    border-radius: 10px;
  }

  /* ── Yemek submit area ───────────────────────────────────────── */
  .ym-submit-area {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ym-submit-area input[type="month"] {
    font-size: 16px;
    padding: 12px 14px;
  }
  .ym-submit-area .ym-btn {
    width: 100%;
  }

  /* ── Yemek analytics ─────────────────────────────────────────── */
  .ym-analytics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ym-chart-card {
    padding: 16px;
    border-radius: 12px;
  }

  /* ── Yemek guide panel ───────────────────────────────────────── */
  .ym-form-layout {
    grid-template-columns: 1fr;
  }
  .ym-guide {
    order: -1;
    padding: 14px;
    border-radius: 10px;
  }

  /* ── Yemek history month grid ────────────────────────────────── */
  .ym-month-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* ── Yemek approval person cards ─────────────────────────────── */
  .ym-person-list {
    padding: 10px;
    gap: 10px;
  }
  .ym-person-header {
    padding: 12px 14px;
    gap: 8px;
  }
  .ym-person-avatar {
    width: 36px;
    height: 36px;
    font-size: .78rem;
  }
  .ym-person-info strong {
    font-size: .82rem;
  }
  .ym-person-info small {
    font-size: .68rem;
  }
  .ym-person-body {
    padding: 12px 14px;
  }
  .ym-sub-row {
    flex-direction: column;
    gap: 10px;
  }
  .ym-sub-main {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .ym-decision-form {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .ym-decision-form .ym-note-input {
    width: 100%;
    font-size: 16px;
    padding: 10px 12px;
  }
  .ym-decision-form .ym-btn {
    width: 100%;
    padding: 12px;
  }

  /* ── Yemek detail table (responsive overflow) ────────────────── */
  .ym-detail-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px;
    padding: 0 14px;
  }
  .ym-detail-table {
    font-size: .72rem;
    min-width: 500px;
  }
  .ym-detail-table th,
  .ym-detail-table td {
    padding: 6px 8px;
  }

  /* ── Yemek summary strip ─────────────────────────────────────── */
  .ym-summary {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* ── Yemek bulk form ─────────────────────────────────────────── */
  .ym-person-bulk-form {
    flex-direction: column;
    gap: 8px;
  }
  .ym-person-bulk-form .ym-note-input {
    width: 100%;
    font-size: 16px;
  }
  .ym-person-bulk-form .ym-btn {
    width: 100%;
  }

  /* ── Mesai approval person cards ─────────────────────────────── */
  .ms-person-list {
    padding: 10px;
    gap: 10px;
  }
  .ms-person-header {
    padding: 12px 14px;
  }
  .ms-person-avatar {
    width: 36px;
    height: 36px;
    font-size: .78rem;
  }
  .ms-person-info strong {
    font-size: .82rem;
  }
  .ms-person-info small {
    font-size: .68rem;
  }
  .ms-req-row {
    padding: 12px 14px;
  }
  .ms-req-main {
    gap: 8px;
  }
  .ms-note-input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
  }
  .ms-decision-form {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .ms-decision-form .btn {
    width: 100%;
    padding: 12px;
    justify-content: center;
  }
  .ms-bulk-form {
    flex-direction: column;
    gap: 8px;
  }
  .ms-bulk-form .btn {
    width: 100%;
    padding: 12px;
    justify-content: center;
  }

  /* ── Mesai deduction section ─────────────────────────────────── */
  .ms-ded-section {
    padding: 12px 14px;
  }
  .ms-ded-header {
    flex-direction: column;
    gap: 8px;
  }
  .ms-ded-summary {
    flex-direction: column;
    gap: 6px;
  }
  .ms-ded-fields {
    flex-direction: column;
  }
  .ms-ded-field input[name="ded_hours"] {
    width: 100%;
  }
  .ms-ded-field-reason {
    width: 100%;
    min-width: 0;
  }
  .ms-ded-form-wrap .btn {
    width: 100%;
    margin-top: 6px;
  }

  /* ── Yemek draft activity panel ──────────────────────────────── */
  .ym-draft-act-panel {
    border-radius: 10px;
    padding: 14px;
  }

  /* ── Yemek history table (responsive) ────────────────────────── */
  .ym-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* ── Touch-friendly: Tüm tıklanabilir alanlar min 44px ──────── */
  input[type="date"],
  input[type="time"],
  input[type="month"],
  input[type="number"],
  select {
    min-height: 44px;
    font-size: 16px;
  }
  button,
  .btn,
  .ym-btn {
    min-height: 44px;
  }

  /* ── Mesai Takvimi mobil ───────────────────────────────────────── */
  .mc-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }
  .mc-summary-item {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .mc-summary-val {
    font-size: 1.1rem;
  }

  .mc-calendar {
    border-radius: 10px;
  }
  .mc-head-cell {
    padding: 8px 2px;
    font-size: .62rem;
  }
  .mc-cell {
    min-height: 62px;
    padding: 4px;
  }
  .mc-day-num {
    font-size: .72rem;
    margin-bottom: 2px;
  }
  .mc-day-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .mc-day-people,
  .mc-day-hours {
    font-size: .58rem;
  }
  .mc-day-dots {
    display: none;
  }
  /* Mobilde detay panel tam ekran overlay */
  .mc-cell.mc-has-data:hover {
    transform: none;
    box-shadow: none;
  }
  .mc-detail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    max-width: 100%;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.22);
    z-index: 1000;
    min-width: 0;
    animation: mcSlideUp .25s ease;
  }
  @keyframes mcSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mc-detail-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 16px;
    border-radius: 16px 16px 0 0;
  }
  .mc-detail-head::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--gray-300, #cbd5e1);
    border-radius: 2px;
    margin: 0 auto 10px;
  }
  .mc-detail-row {
    padding: 12px 16px;
  }
  .mc-detail-name {
    font-size: .84rem;
  }
  .mc-detail-meta {
    font-size: .74rem;
    line-height: 1.5;
  }

  /* Overlay arkaplan */
  .mc-cell.mc-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 999;
  }

  /* ── Confirm dialog mobil ────────────────────────────────────── */
  .confirm-overlay .confirm-box {
    margin: 16px;
    max-width: calc(100vw - 32px);
    border-radius: 14px;
  }
  .confirm-overlay .confirm-actions {
    flex-direction: column;
    gap: 8px;
  }
  .confirm-overlay .confirm-actions .btn {
    width: 100%;
  }
}

/* ── 400px: Çok küçük ekranlar ─────────────────────────────────── */
@media (max-width: 400px) {
  .board {
    grid-template-columns: 1fr;
  }
  .ym-stats {
    grid-template-columns: 1fr;
  }
  .ym-type-picker {
    grid-template-columns: 1fr;
  }
  .ym-month-grid {
    grid-template-columns: 1fr;
  }
  .ym-summary {
    grid-template-columns: 1fr;
  }
  .mc-summary {
    grid-template-columns: 1fr;
  }
  .mc-cell {
    min-height: 50px;
    padding: 3px;
  }
  .mc-day-num {
    font-size: .64rem;
  }
  .mc-day-info {
    display: none;
  }
  .mc-cell.mc-has-data {
    background: rgba(214,136,15,.08);
  }
  .mc-cell.mc-has-data .mc-day-num::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4880f;
    margin-left: 3px;
    vertical-align: middle;
  }
}

/* ═══════════════════════════════════════════════
   Tutar Gizle/Göster (Mobil Bankacılık Stili)
   ═══════════════════════════════════════════════ */
.amount-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #d2deef;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e3556;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .15s, background .15s, transform .1s;
}
.amount-toggle-btn:hover {
  border-color: #aac2e1;
  background: #f4f8ff;
  transform: translateY(-1px);
}
.amount-toggle-btn .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
}
.amount-toggle-btn .amount-icon-hidden { display: none; }
.amount-toggle-btn .amount-icon-visible { display: inline-block; }
body.amounts-hidden .amount-toggle-btn .amount-icon-hidden { display: inline-block; }
body.amounts-hidden .amount-toggle-btn .amount-icon-visible { display: none; }
body.amounts-hidden .amount-toggle-btn {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobil uyum */
@media (max-width: 900px) {
  .amount-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .amount-toggle-btn .icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .amount-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .amount-toggle-btn .icon {
    width: 16px;
    height: 16px;
  }
}

/* Gizlenecek elementler */
body.amounts-hidden .mn-amount {
  color: transparent !important;
  text-shadow: 0 0 9px rgba(0,0,0,.4) !important;
  user-select: none !important;
}

/* ═══════════════════════════════════════════════
   Yurt Dışı Bilgilendirme Modülü
   ═══════════════════════════════════════════════ */

/* Tab navigasyon */
.yd-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.yd-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.yd-tab:hover { color: var(--text); }
.yd-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Filtre bar */
.yd-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.yd-filters input,
.yd-filters select {
  max-width: 200px;
  padding: 8px 10px;
  font-size: .85rem;
}

/* Aktif yurt dışındakiler grid */
.yd-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.yd-active-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #c8e6c9;
}
.yd-active-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.yd-active-info { flex: 1; min-width: 0; }
.yd-active-name { font-weight: 700; font-size: .92rem; color: var(--text); }
.yd-active-dept { font-size: .76rem; color: var(--muted); margin-bottom: 5px; }
.yd-active-dest { font-size: .84rem; color: #2e7d32; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.yd-active-dates { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.yd-active-contact { font-size: .76rem; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.yd-active-remaining {
  text-align: center;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(46, 125, 50, .1);
}
.yd-remaining-num { display: block; font-size: 1.4rem; font-weight: 800; color: #2e7d32; line-height: 1; }
.yd-remaining-label { display: block; font-size: .66rem; color: #558b2f; font-weight: 600; margin-top: 2px; }

/* Kayıtlarım kartları */
.yd-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.yd-record {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--card);
  border-left: 4px solid var(--border);
  transition: box-shadow .2s;
}
.yd-record:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.yd-record-active { border-left-color: var(--success); background: linear-gradient(90deg, rgba(56,142,60,.03) 0%, transparent 30%); }
.yd-record-upcoming { border-left-color: var(--warning); background: linear-gradient(90deg, rgba(255,152,0,.03) 0%, transparent 30%); }
.yd-record-past { border-left-color: #bdbdbd; }
.yd-record-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.yd-record-dest { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.yd-record-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.yd-record-meta span { display: flex; align-items: center; gap: 3px; }
.yd-record-purpose { font-size: .86rem; color: var(--text); margin-bottom: 4px; }
.yd-record-contact { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.yd-record-desc { font-size: .8rem; color: var(--muted); margin-top: 4px; font-style: italic; }
.yd-record-attach { margin-top: 6px; }
.yd-record-attach a { font-size: .8rem; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.yd-record-attach a:hover { text-decoration: underline; }
.yd-record-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* Durum badge'leri */
.yd-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.yd-status-active { background: #e8f5e9; color: #2e7d32; }
.yd-status-upcoming { background: #fff3e0; color: #e65100; }
.yd-status-past { background: #f5f5f5; color: #757575; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all .15s;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 20px; }
.modal-body label { margin-top: 10px; }
.modal-body .row { margin-bottom: 0; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .yd-active-grid { grid-template-columns: 1fr; }
  .yd-record-header { flex-direction: column; align-items: flex-start; }
  .yd-filters input,
  .yd-filters select { max-width: 100%; flex: 1; }
}
@media (max-width: 480px) {
  .yd-active-card { flex-direction: column; text-align: center; }
  .yd-active-avatar { margin: 0 auto; }
  .yd-active-dest { justify-content: center; }
  .yd-active-remaining { margin: 0 auto; }
  .yd-tabs { overflow-x: auto; }
  .yd-tab { padding: 10px 14px; font-size: .82rem; white-space: nowrap; }
  .modal-box { border-radius: 12px; margin: 10px; }
  .yd-record-actions { flex-direction: column; }
  .yd-record-actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════
   MOBİL UYUM — Yurt Dışı, Muhasebe, Sistem Ayarları
   ═══════════════════════════════════════════════ */

/* ── Yurt Dışı: Tablo → Kart (640px) ─────────────────────────── */
@media (max-width: 640px) {
  /* Yaklaşan seyahatler tablosu kart görünüm */
  .yd-active-grid + .section .table-wrap .table,
  #ydAllTable {
    border: none;
    box-shadow: none;
  }
  .table-wrap .table thead { display: none; }
  .table-wrap .table tbody { display: flex; flex-direction: column; gap: 10px; }
  .table-wrap .table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .table-wrap .table tbody tr td {
    padding: 2px 0;
    border: none;
    font-size: .82rem;
    display: flex;
    flex-direction: column;
  }
  .table-wrap .table tbody tr td::before {
    content: attr(data-label);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .table-wrap .table tbody tr td:not([data-label])::before { display: none; }
  /* Amaç ve İletişim ve Durum tam genişlik */
  .table-wrap .table tbody tr td[data-label="Amaç"],
  .table-wrap .table tbody tr td[data-label="İletişim"],
  .table-wrap .table tbody tr td[data-label="Durum"] {
    grid-column: 1 / -1;
  }

  /* Yurt dışı form butonları */
  .section#form .btn {
    width: 100%;
    padding: 14px;
    font-size: .92rem;
    border-radius: 12px;
    justify-content: center;
  }

  /* Modal tam genişlik */
  .modal-overlay { padding: 10px; }
  .modal-box { max-width: 100% !important; border-radius: 14px; }
  .modal-body { padding: 16px; }
  .modal-body .row { margin-bottom: 0; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; justify-content: center; padding: 14px; }

  /* Yurt dışı filtreler dikey */
  .yd-filters {
    flex-direction: column;
  }
  .yd-filters input,
  .yd-filters select {
    max-width: 100%;
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }
}

/* ── Muhasebe Modülü Mobil ────────────────────────────────────── */
@media (max-width: 900px) {
  /* Header & pills */
  .ym-page .ym-header { flex-direction: column; gap: 10px; }
  .ym-pills { flex-wrap: wrap; }

  /* Özet istatistikler */
  .mh-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Aksiyon butonları */
  .mh-action-bar {
    flex-direction: column;
  }

  /* Kişi akordeon head */
  .mh-person-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .mh-person-head > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }

  /* Kişi akordeon body: tablo responsive */
  .mh-person-body .ym-detail-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .78rem;
  }

  /* Kişi özet alt bar */
  .mh-person-footer {
    flex-direction: column;
    gap: 10px;
  }
  .mh-person-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  /* Dönem seçimi card */
  .ym-card-head {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start !important;
  }
  .ym-month-filter form {
    width: 100%;
    flex-wrap: wrap;
  }
  .ym-month-filter input[type="month"] {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  /* Muhasebe stats */
  .mh-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mh-stat { padding: 10px 12px; border-radius: 10px; }
  .mh-stat .k { font-size: .66rem; }
  .mh-stat .v { font-size: .95rem; }

  /* Akordeon detay tablosu kart görünüm */
  .mh-person-body .ym-detail-table thead { display: none; }
  .mh-person-body .ym-detail-table tbody { display: flex; flex-direction: column; gap: 8px; }
  .mh-person-body .ym-detail-table tbody tr:not(.mh-total-row) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.5);
  }
  .mh-person-body .ym-detail-table tbody tr:not(.mh-total-row) td {
    padding: 2px 0;
    border: none;
    font-size: .8rem;
  }
  .mh-person-body .ym-detail-table tbody tr.mh-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border: none;
  }
  .mh-person-body .ym-detail-table tbody tr.mh-total-row td {
    border: none;
    padding: 0;
  }
  .mh-person-body .ym-detail-table tbody tr.mh-total-row td[colspan] {
    text-align: left;
    font-size: .82rem;
  }

  /* Kişi akordeon padding */
  .mh-person-head { padding: 10px 14px; }
  .mh-person-body { padding: 0 14px 12px; }

  /* Aksiyon bar tam genişlik */
  .mh-action-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .mh-action-bar > a,
  .mh-action-bar > form { width: 100%; }
  .mh-action-bar > a.ym-btn-ghost,
  .mh-action-bar > form button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Kişi footer: ödeme formu & butonlar */
  .mh-person-footer {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .mh-person-actions {
    width: 100%;
    flex-direction: column !important;
  }
  .mh-person-actions > a,
  .mh-person-actions > form,
  .mh-person-actions > span {
    width: 100%;
  }
  .mh-person-actions > a { text-align: center; justify-content: center; }
  .mh-person-actions > form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100%;
  }
  .mh-person-actions > form input[type="text"] {
    width: 100% !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
  }
  .mh-person-actions > form button {
    width: 100%;
    padding: 12px !important;
    font-size: .85rem !important;
  }
  .mh-person-actions > span {
    font-size: .74rem !important;
    text-align: center;
  }

  /* Genel toplam */
  .mh-grand-total {
    text-align: center !important;
    font-size: .88rem;
  }
}

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

/* ── Sistem Ayarları Mobil ────────────────────────────────────── */
@media (max-width: 640px) {
  /* Ayar kartları tek kolon */
  .settings-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .setting-card {
    padding: 16px;
    border-radius: 10px;
  }
  .setting-card h3 { font-size: 16px; }
  .setting-card p { font-size: 13px; margin-bottom: 12px; }
  .setting-card .btn {
    padding: 12px;
    font-size: .88rem;
    border-radius: 10px;
  }

  /* İstatistikler */
  .stats {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .stat-item { padding: 12px; border-radius: 8px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }

  /* Modül grid */
  .module-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .module-row {
    padding: 14px 16px;
    border-radius: 10px;
  }
  .module-row .module-info { font-size: .88rem; }

  /* Diğer işlemler */
  .section > div[style*="display:flex"][style*="flex-wrap:wrap"] {
    flex-direction: column;
  }
  .section > div[style*="display:flex"] > a.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Save mesajı */
  .save-msg { font-size: 12px; }

  /* Genel card padding */
  .card > h1 { font-size: 1.2rem; }
  .card > p.muted { font-size: .82rem; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr !important; }
  .stat-item { padding: 10px; }
  .stat-value { font-size: 22px; }
}
