* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  direction: rtl;
  text-align: right;
  margin: 0;
  background: #f5f1ea;
  color: #2b1d12;
}
header.app-header {
  background: #4a2c1a;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.app-header h1 {
  font-size: 18px;
  margin: 0;
}
header.app-header button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
h2 { font-size: 16px; margin: 0 0 8px; }
label { display: block; font-size: 13px; margin-bottom: 4px; color: #5c4433; }
input, select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #d8cdbd;
  border-radius: 6px;
  margin-bottom: 10px;
}
button.primary {
  background: #a0522d;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}
button.primary:disabled { opacity: 0.5; }
button.secondary {
  background: #eee2d3;
  color: #4a2c1a;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
button.danger {
  background: #b23b3b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.error { color: #b23b3b; font-size: 13px; margin-bottom: 8px; }
.notice { color: #2f6b2f; font-size: 13px; margin-bottom: 8px; }
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.day-block { border-top: 1px solid #eee0cc; padding: 10px 0; }
.day-block:first-child { border-top: none; }
.day-title { font-weight: bold; margin-bottom: 6px; }
.shift-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee0cc;
}
.shift-row:last-child { border-bottom: none; }
.shift-label { font-size: 14px; }
.shift-people { font-size: 12px; color: #6b5c4a; margin-top: 2px; }
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-inline-start: 6px;
}
.badge-pending { background: #fdf0c8; color: #7a5b00; }
.badge-approved { background: #d9f0d3; color: #1f5c1f; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #eee2d3;
  color: #4a2c1a;
  font-size: 14px;
}
.tabs button.active { background: #a0522d; color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { padding: 6px 4px; border-bottom: 1px solid #eee0cc; text-align: right; }
.hidden { display: none !important; }
.small-note { font-size: 12px; color: #7a6a56; }
