/* Temple look — red and gold on cream, with temple artwork. Colour tokens are in app.css. */

/* Page background */
body.erp { background: var(--paper) linear-gradient(180deg, #fff7de 0, var(--paper) 340px, #fde8ad 100%); }
body.erp .page-wrapper { background: url("../images/gopuram-faint.svg") right 40px top 70px / 230px auto no-repeat; }
body.erp .page-wrapper .content { padding-bottom: 28px; }
body.erp .page-head h1 { color: var(--red); font-size: 23px; }

/* Header */
body.erp .header { background: linear-gradient(180deg, #fffcf0, #fff3d2); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(140,60,0,.08); }
body.erp .header .icon-btn { color: var(--red); }
body.erp .header .avatar-i { background: var(--red-deep); color: var(--gold-bright); border: 2px solid var(--gold); }
.icon-btn .count { background: var(--red); }
body.erp .form-control, body.erp .form-select { background-color: #fffdf5; }
body.erp .form-control[readonly], body.erp .form-control:disabled, body.erp .form-select:disabled { background-color: #fbf0d4; }
body.erp .select2-container .select2-selection--single, body.erp .select2-dropdown { background: #fffdf5; }
body.erp .dropdown-menu, body.erp .modal-content, body.erp .search-results, body.erp .erp-toast, body.erp .swal2-popup { background-color: var(--card); }
body.erp .page-link { background-color: var(--card); border-color: var(--line); }
body.erp .page-item.active .page-link { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.badge-s.info { background: #e3ebfb; color: #2455b0; }
body.erp table.erp-table, body.erp table.grid, body.erp .table { --bs-table-bg: transparent; }

/* Sidebar: red with a gopuram and ornamental band at the foot */
body.erp .sidebar {
  background:
    url("../images/border.svg") left bottom repeat-x,
    url("../images/gopuram-side.svg") center bottom 20px / auto min(260px, 28vh) no-repeat,
    linear-gradient(180deg, #8e0b0b 0%, #b51212 55%, #8e0b0b 100%);
  border-right: 2px solid var(--gold);
  padding-bottom: 20px;
}
.brand { border-bottom-color: rgba(255,201,40,.45); }
.brand img { width: 42px; height: 42px; }
.brand b { white-space: normal; line-height: 1.2; font-size: 13.5px; }
.brand small { color: var(--gold-bright); }
.side-hdr { color: var(--gold-bright); font-size: 11px; font-weight: 800; }
body.erp a.side-link.active { background: linear-gradient(180deg, #ffd740, #fbb515); color: #4a0d00; box-shadow: 0 3px 8px rgba(60,0,0,.35); }
body.erp a.side-link:not(.active):hover { background: rgba(255,201,40,.16); }
.side-foot { border-top-color: rgba(255,201,40,.3); color: #ffe3b8; }

/* Footer band with lotus */
.app-footer {
  position: relative; align-items: center; min-height: 52px; padding: 12px 62px; color: #ffeccc; border-top: 3px solid var(--gold);
  background: url("../images/lotus.svg") center bottom 4px / auto 40px no-repeat, linear-gradient(180deg, #b51212, #820a0a);
}
.app-footer::before, .app-footer::after { content: ""; position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; background: url("../images/mandala.svg") center / contain no-repeat; }
.app-footer::before { left: 18px; }
.app-footer::after { right: 18px; }

/* Buttons */
body.erp .btn.btn-primary { background: linear-gradient(180deg, #c81616, #9d0c0c) !important; border-color: #8f0c0c !important; box-shadow: 0 2px 6px rgba(140,20,0,.25); }
body.erp .btn.btn-primary:hover, body.erp .btn.btn-primary:focus, body.erp .btn.btn-primary:active { background: var(--red-deep) !important; }
body.erp .btn.btn-light { background: var(--card) !important; }
body.erp .btn.btn-light:hover { background: var(--gold-soft) !important; }
body.erp .btn.btn-gold { background: linear-gradient(180deg, #ffd23f, #f5a90f) !important; color: #4a0d00 !important; }
body.erp .btn.btn-gold:hover { background: #f5a90f !important; }

/* Cards and panels */
.stat, .panel, .quick, .fest-card, .pos-item, .choice { background: linear-gradient(180deg, #fffdf4, var(--card)); border-color: var(--line); box-shadow: 0 2px 8px rgba(160,90,0,.1); }
.stat .ico { border-radius: 50%; width: 46px; height: 46px; }
.stat.gold .ico { background: var(--gold-soft); color: #b86e00; }
.stat.saffron .ico { background: #ffe3c4; color: #e0640a; }
.stat .lbl { color: #8f2a14; }
.stat .val { color: var(--red-deep); }
.panel > .panel-h h2 { color: var(--red-deep); }
.panel > .panel-h h2 i { color: var(--saffron); }
.tag { color: #8a4b00; }

/* Dashboard banner and shortcuts */
.hero {
  background: url("../images/hero-art.svg") right 12px bottom / auto 100% no-repeat, linear-gradient(100deg, #8a0909 0%, #b31010 55%, #d9480c 100%);
  border: 1px solid var(--gold); border-bottom: 4px solid var(--gold); box-shadow: 0 4px 14px rgba(140,40,0,.22); min-height: 128px;
}
.hero .chips span { background: rgba(110,5,5,.65); border-color: var(--gold); color: #ffe9b0; }
.quick { color: var(--ink); }
.quick:hover { background: var(--red); color: #fff; }
.quick:hover i { color: var(--gold-bright); }

/* Dialogs */
body.erp .modal-header { background: linear-gradient(90deg, #8a0909, #bd1313); }

@media (max-width: 767px) {
  body.erp .page-wrapper { background-image: none; }
  .app-footer { background: linear-gradient(180deg, #b51212, #820a0a); justify-content: center; text-align: center; padding: 10px 52px; }
}
@media (max-width: 575px) { .hero { background: linear-gradient(100deg, #8a0909, #c22a0e); } }
