.rr-app,
.rr-app * { box-sizing: border-box; }
.rr-app {
  --rr-green: #1f6f4a;
  --rr-green-dark: color-mix(in srgb, var(--rr-green) 78%, #000);
  --rr-green-soft: color-mix(in srgb, var(--rr-green) 10%, #fff);
  --rr-bg: #f4f7f5;
  --rr-card: #fff;
  --rr-text: #1f2937;
  --rr-muted: #6b7280;
  --rr-line: #d9e2dc;
  color: var(--rr-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--rr-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(22, 43, 32, .10);
}
.rr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--rr-green), var(--rr-green-dark));
}
.rr-header h2 { color: inherit; font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
.rr-header p { margin: 0; color: inherit; opacity: .9; font-size: 13px; }
.rr-sync { flex: 0 0 auto; font-size: 11px; opacity: .82; }
.rr-sync:not(:empty)::before { content: "●"; color: #86efac; margin-right: 5px; }
.rr-sync.is-error::before { color: #fecaca; }
.rr-user-area { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px 10px; font-size: 11px; }
.rr-user-name { opacity: .9; }
.rr-logout { padding: 5px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 700; }
.rr-logout:hover { color: #fff; background: rgba(255,255,255,.13); }
.rr-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 14px 2px; }
.rr-app button,
.rr-app input,
.rr-app select,
.rr-app textarea { font: inherit; }
.rr-tab,
.rr-button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.rr-tab { background: #e8f0eb; color: var(--rr-green-dark); font-size: 13px; }
.rr-tab.is-active { color: #fff; background: var(--rr-green); }
.rr-button { width: 100%; color: #fff; background: var(--rr-green); }
.rr-button:hover, .rr-tab:hover { transform: translateY(-1px); }
.rr-button:disabled { cursor: wait; opacity: .65; transform: none; }
.rr-button-secondary { color: var(--rr-green-dark); background: #eef4f0; border: 1px solid #cfe0d5; }
.rr-button-danger { color: #fff; background: #b42318; }
.rr-page { display: none; padding: 14px; }
.rr-page.is-active { display: block; }
.rr-card { padding: 16px; margin-bottom: 14px; border: 1px solid var(--rr-line); border-radius: 16px; background: var(--rr-card); box-shadow: 0 2px 8px rgba(0, 0, 0, .035); }
.rr-card:last-child { margin-bottom: 0; }
.rr-card h3 { color: var(--rr-text); font-size: 17px; line-height: 1.3; margin: 0 0 13px; }
.rr-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.rr-card-title h3 { margin: 0; }
.rr-edit-label, .rr-export { color: var(--rr-green-dark); font-size: 12px; font-weight: 700; }
.rr-export { text-decoration: none; }
.rr-grid { display: grid; gap: 11px; }
.rr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rr-grid-full { grid-column: 1 / -1; }
.rr-align-end { align-items: end; }
.rr-space-top { margin-top: 11px; }
.rr-app label { display: block; color: var(--rr-muted); font-size: 12px; line-height: 1.25; }
.rr-app label > span { display: block; margin-bottom: 6px; }
.rr-app input,
.rr-app select,
.rr-app textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--rr-text);
  background: #fff;
  border: 1px solid #cfd8d2;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
}
.rr-app input:focus,
.rr-app select:focus,
.rr-app textarea:focus { border-color: var(--rr-green); box-shadow: 0 0 0 3px var(--rr-green-soft); }
.rr-app textarea { min-height: 86px; resize: vertical; }
.rr-actions, .rr-item-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.rr-item-actions > :only-child { grid-column: 1 / -1; }
.rr-alert { display: none; padding: 11px 12px; margin-bottom: 12px; border: 1px solid #f2d46f; border-radius: 12px; color: #6f5200; background: #fff8db; font-size: 13px; }
.rr-alert.is-visible { display: block; }
.rr-alert.is-success { color: #166534; border-color: #86efac; background: #f0fdf4; }
.rr-alert.is-error { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.rr-alert.is-info { color: #1e40af; border-color: #bfdbfe; background: #eff6ff; }
.rr-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.rr-room { min-height: 68px; padding: 12px; border: 1px solid var(--rr-line); border-radius: 13px; }
.rr-room.is-free { background: #dff5e7; }
.rr-room.is-busy { background: #ffe0e0; }
.rr-room strong { display: block; font-size: 14px; }
.rr-room span { display: block; margin-top: 4px; color: var(--rr-muted); font-size: 12px; }
.rr-list { display: flex; flex-direction: column; gap: 9px; }
.rr-item { padding: 13px; border: 1px solid var(--rr-line); border-radius: 14px; background: #fff; }
.rr-item.is-cancelled { opacity: .68; }
.rr-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rr-item-top strong { font-size: 14px; }
.rr-small { color: var(--rr-muted); font-size: 12px; line-height: 1.5; }
.rr-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #166534; background: #dcfce7; font-size: 10px; font-weight: 800; }
.rr-status-pending { color: #854d0e; background: #fef9c3; }
.rr-status-cancelled { color: #991b1b; background: #fee2e2; }
.rr-finance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; padding: 9px; border-radius: 10px; background: #f8faf9; }
.rr-finance span { min-width: 0; }
.rr-finance small { display: block; color: var(--rr-muted); font-size: 10px; }
.rr-finance strong { display: block; overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; }
.rr-item-details { margin-top: 9px; }
.rr-item-details a { color: var(--rr-green-dark); }
.rr-loading, .rr-empty { grid-column: 1 / -1; padding: 13px 2px; color: var(--rr-muted); font-size: 13px; }
.rr-loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid #cad5ce; border-top-color: var(--rr-green); border-radius: 50%; vertical-align: -2px; animation: rr-spin .7s linear infinite; }
.rr-text-error { color: #991b1b; }
.rr-access-message { padding: 18px; border: 1px solid #d9e2dc; border-radius: 12px; color: #4b5563; background: #fff; }
.rr-login-card,
.rr-login-card * { box-sizing: border-box; }
.rr-login-card { width: 100%; max-width: 440px; margin: 30px auto; padding: 28px; border: 1px solid #d9e2dc; border-radius: 18px; color: #1f2937; background: #fff; box-shadow: 0 12px 38px rgba(22,43,32,.12); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.rr-login-brand { margin-bottom: 21px; text-align: center; }
.rr-login-brand .dashicons { width: 48px; height: 48px; padding: 12px; border-radius: 50%; color: #fff; background: var(--rr-green); font-size: 24px; }
.rr-login-brand h2 { margin: 12px 0 5px; color: #1f2937; font-size: 23px; line-height: 1.25; }
.rr-login-brand p { margin: 0; color: #6b7280; font-size: 13px; }
.rr-login-form { display: flex; flex-direction: column; gap: 13px; }
.rr-login-form label { display: block; color: #4b5563; font-size: 13px; }
.rr-login-form label > span { display: block; margin-bottom: 6px; }
.rr-login-form input[type="text"],
.rr-login-form input[type="password"] { width: 100%; min-height: 47px; padding: 11px 13px; color: #1f2937; background: #fff; border: 1px solid #cfd8d2; border-radius: 11px; outline: none; box-shadow: none; }
.rr-login-form input:focus { border-color: var(--rr-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rr-green) 11%, #fff); }
.rr-login-form .rr-remember { display: flex; align-items: center; gap: 7px; }
.rr-login-form .rr-remember input { width: auto; margin: 0; }
.rr-login-form .rr-remember span { display: inline; margin: 0; }
.rr-login-card .rr-button { display: block; width: 100%; padding: 13px 15px; border: 0; border-radius: 11px; color: #fff !important; background: var(--rr-green); text-align: center; text-decoration: none; font-weight: 700; cursor: pointer; }
.rr-login-link { margin-top: 12px; }
.rr-login-error { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; background: #fef2f2; font-size: 13px; }
.rr-lost-password { display: block; margin-top: 15px; color: var(--rr-green); text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.rr-admin-wrap { max-width: 940px; margin-top: 24px; }
@keyframes rr-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .rr-app { border-radius: 14px; }
  .rr-header { align-items: flex-start; padding: 18px 15px; }
  .rr-header h2 { font-size: 19px; }
  .rr-sync { display: none; }
  .rr-user-area { max-width: 125px; }
  .rr-login-card { margin: 16px auto; padding: 21px 17px; }
  .rr-tabs { gap: 6px; padding: 10px 10px 0; }
  .rr-tab { padding: 10px 5px; font-size: 12px; }
  .rr-page { padding: 10px; }
  .rr-card { padding: 13px; }
  .rr-grid-2, .rr-actions { grid-template-columns: 1fr; }
  .rr-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-item-top { align-items: flex-start; }
  .rr-finance { gap: 5px; }
}

@media (max-width: 380px) {
  .rr-rooms { grid-template-columns: 1fr; }
  .rr-item-top { display: block; }
  .rr-badge { display: inline-block; margin-top: 7px; }
}
