/* FortyPharma REG-09: Admin shell, fixed footer + independently scrolling content.
   Scoped to existing admin master, not auth/landing views. */
html, body { min-height: 100%; }
.section-container { min-height: 100dvh; display: flex; flex-direction: column; }
.section-container > .header-bg { flex: 0 0 auto; }
.section-container > .fp-admin-scroll { flex: 1 1 auto; min-height: 0; padding-top: 16px; padding-bottom: 20px; overscroll-behavior-y: contain; }
.section-container > .footer-container { flex: 0 0 auto; position: relative; z-index: 4; }
.section-container > .footer-container .footer-content { margin-top: 0 !important; padding-top: 12px !important; padding-bottom: 12px !important; }
@media (min-width: 768px) {
  html, body { height: 100%; overflow: hidden; }
  .section-container { height: 100dvh; min-height: 0; overflow: hidden; }
  .section-container > .fp-admin-scroll { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
}
@media (max-width: 767.98px) {
  html, body { height: auto; overflow: auto; }
  .section-container > .fp-admin-scroll { overflow: visible; }
}
/* Store List */
.fp-store-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:10px; padding:16px 18px; border-top:1px solid #e7efeb; }
.fp-store-toolbar form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; flex:1 1 720px; }
.fp-store-toolbar .fp-filter-field { display:flex; flex-direction:column; gap:4px; min-width:135px; }
.fp-store-toolbar .fp-filter-search { min-width:210px; flex:1 1 260px; }
.fp-store-toolbar .fp-filter-field label { font-size:11px; font-weight:700; color:#527065; text-transform:uppercase; letter-spacing:.025em; }
.fp-store-toolbar .form-control { min-height:39px; border-radius:9px; border-color:#d5e4dc; padding:7px 10px; }
.fp-store-toolbar .fp-search-btn { min-height:39px; background:#047857; color:#fff; border:0; border-radius:9px; padding:0 18px; font-weight:600; }
.fp-store-toolbar .fp-clear { color:#047857; font-weight:600; padding:9px 4px; }
.fp-store-summary { display:flex; gap:8px; flex-wrap:wrap; padding:0 18px 5px; color:#55746a; font-size:12px; }
.fp-store-summary span { background:#ecfdf5; border:1px solid #d1fae5; border-radius:40px; padding:5px 10px; }
.fp-store-table-shell { width:100%; overflow-x:auto; overflow-y:visible; padding:0 14px 12px; }
.fp-store-table { min-width:1240px; margin-bottom:0 !important; }
.fp-store-table thead th { text-align:left; white-space:nowrap; font-size:12px; background:#eef5f1 !important; color:#34594c; border-bottom:1px solid #d6e6dd !important; padding:13px 12px !important; }
.fp-store-table tbody td { text-align:left; vertical-align:middle; padding:14px 12px !important; border-bottom:1px solid #edf2ef; }
.fp-store-table tbody tr:hover td { background:#f7fbf9; }
.fp-store-name { font-size:14px; font-weight:750; color:#022c22; display:block; line-height:1.4; }
.fp-store-sub { color:#698076; font-size:11px; display:block; margin-top:3px; line-height:1.4; }
.fp-store-chip { display:inline-flex; padding:4px 9px; font-size:11px; font-weight:650; border-radius:30px; background:#e2f7ed; color:#065f46; }
.fp-store-chip.muted { background:#f1f4f2; color:#66756e; }
.fp-store-chip.danger { background:#fef2f2; color:#b91c1c; }
.fp-store-avatar { display:inline-flex; width:32px; height:32px; border-radius:9px; align-items:center; justify-content:center; font-weight:800; color:#047857; background:#d1fae5; flex:none; }
.fp-store-identity { display:flex; gap:10px; align-items:center; }
.fp-store-table .dropdown .dropdown-menu { min-width:210px; box-shadow:0 16px 38px rgba(0,0,0,.14); border-radius:10px; border:1px solid #dcebe3; padding:5px; }
.fp-store-table .dropdown-menu a { font-size:13px; padding:8px 10px; border-radius:7px; text-decoration:none; }
.fp-store-table .dropdown-menu a:hover { background:#ecfdf5; color:#047857; }
.fp-store-table .fp-action-trigger { border:1px solid #e4eee8; border-radius:8px; background:white; min-width:32px; min-height:32px; color:#064e3b; }
.fp-store-pagination { padding:8px 18px 18px; }
.fp-profile-modal .modal-content { border:0; border-radius:18px; overflow:hidden; }
.fp-profile-modal .modal-header { background:linear-gradient(125deg,#022c22,#047857); color:#fff; padding:20px 24px; border:0; }
.fp-profile-modal .modal-header .btn-close { filter:brightness(0) invert(1); }
.fp-profile-modal .modal-title { color:white; font-weight:800; }
.fp-profile-modal .modal-body { background:#f8fbf9; max-height:min(70dvh,720px); overflow-y:auto; padding:20px 24px; }
.fp-profile-section { background:white; border:1px solid #e0eee6; border-radius:12px; padding:16px; margin-bottom:14px; }
.fp-profile-section h6 { margin:0 0 12px; color:#047857; font-weight:800; font-size:13px; text-transform:uppercase; }
.fp-profile-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
.fp-profile-details dt { margin:0 0 3px; font-size:11px; color:#78877f; text-transform:uppercase; font-weight:650; }
.fp-profile-details dd { margin:0; font-size:13px; color:#183a2d; overflow-wrap:anywhere; }
.fp-profile-header-summary { font-size:12px; color:#d1fae5; margin-top:5px; }
.fp-profile-modal .modal-footer { border:0; padding:12px 24px; }
.fp-profile-modal .fp-contact-btn { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:8px; color:#047857; border:1px solid #b5deca; text-decoration:none; font-weight:650; font-size:12px; }
.fp-profile-modal .fp-contact-btn:hover { background:#ecfdf5; }
@media (max-width:640px) { .fp-profile-details { grid-template-columns:1fr; } .fp-profile-modal .modal-body { padding:14px; } .fp-store-toolbar { padding:12px; } }
@media print {
 html, body { height:auto !important; overflow:visible !important; }
 .section-container { height:auto !important; overflow:visible !important; }
 .fp-admin-scroll { overflow:visible !important; }
 .fp-store-table-shell { overflow:visible !important; }
 .fp-store-table { min-width:0; }
 .fp-store-toolbar, .fp-store-pagination { display:none !important; }
}

.fp-store-ported-menu { min-width: 210px; z-index: 1100 !important; background:#fff; border:1px solid #dcebe3; border-radius:10px; padding:5px; box-shadow:0 16px 38px rgba(0,0,0,.14); }
.fp-store-ported-menu a { display:block; padding:8px 10px; font-size:13px; border-radius:7px; text-decoration:none; color:#244539; }
.fp-store-ported-menu a:hover { background:#ecfdf5; color:#047857; }
