:root { --admin: #1f6b3a; --admin-dark: #143f24; --line: #e6e6e6; --ink: #17211b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Work Sans", sans-serif; background: #f6f7f4; color: var(--ink); }
a { color: var(--admin); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--admin-dark); color: #fff; padding: 22px 14px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side a { color: #d7eadc; text-decoration: none; display: block; padding: 10px 12px; border-radius: 8px; }
.side a.active, .side a:hover { background: rgba(255,255,255,.12); color: #fff; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 6px; }
.side-foot form { margin: 0; }
.side-foot .logout { width: 100%; text-align: left; background: transparent; color: #ffd4d4; border: 1px solid rgba(255,180,180,.5); border-radius: 8px; padding: 10px 12px; font: inherit; cursor: pointer; }
.side-foot .logout:hover { background: #9b1c1c; color: #fff; border-color: #9b1c1c; }
.brand { font-family: Merriweather, serif; font-size: 18px; margin: 0 0 18px; line-height: 1.3; }
.main { padding: 28px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card strong { display: block; font-size: 28px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { background: #f0f4f1; }
.btn { background: var(--admin); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; text-decoration: none; display: inline-block; cursor: pointer; }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #9b1c1c; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid .full, .filters .full { grid-column: 1 / -1; }
.filters { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 18px; align-items: end; }
.filters > div { grid-column: span 4; }
.filters > .span-12 { grid-column: span 12; }
.filters .hint { margin: 0; align-self: center; }
h2, h3 { margin: 8px 0 0; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }
input[type="checkbox"] { width: auto; padding: 0; }
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.pager a, .pager .current { min-width: 36px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; text-decoration: none; }
.pager .current { background: var(--admin); color: #fff; }
textarea { min-height: 110px; }
.hint { color: #667; font-size: 12px; margin-top: 4px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.flash.ok { background: #e8f6ea; }
.flash.error { background: #fde8e8; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; }
.rate-scroll { overflow-x: auto; }
.rate-editor { width: 100%; border-collapse: collapse; min-width: 860px; }
.rate-editor th, .rate-editor td { padding: 6px; }
.rate-editor select, .rate-editor input { min-width: 110px; }
.rate-editor input[type="date"] { min-width: 158px; }
.search-select { position: relative; min-width: 0; width: 100%; }
.search-select-list { position: fixed; z-index: 30; max-height: 220px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.search-select-list button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; cursor: pointer; font: inherit; }
.search-select-list button:hover { background: #f0f4f1; }
.status { text-transform: capitalize; font-size: 12px; padding: 3px 8px; border-radius: 99px; background: #eef3ef; }
@media (max-width: 991px) {
  .admin-shell { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .filters > div { grid-column: span 6; }
  .filters > .span-12 { grid-column: span 12; }
  .side { height: auto; position: relative; }
  .side-nav { flex-direction: row; overflow: auto; gap: 8px; }
  .side a { white-space: nowrap; }
  .side-foot { margin-top: 12px; flex-direction: row; align-items: center; }
  .side-foot .logout { width: auto; }
}
@media (max-width: 700px) {
  .filters > div, .filters > .span-12 { grid-column: span 12; }
}
.dt-container { margin-top: 14px; }
.dt-container .dt-layout-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.dt-container .dt-search input,
.dt-container .dt-length select { width: auto; padding: 6px 8px; }
.dt-container .dt-paging .dt-paging-button { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-left: 4px; padding: 6px 10px; cursor: pointer; }
.dt-container .dt-paging .dt-paging-button.current { background: var(--admin); color: #fff; border-color: var(--admin); }
.bulk-bar { margin: 0 0 12px; }
