html,body{max-width:100%;overflow-x:hidden}
.property-gallery.multiple{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:5px}
.property-gallery.multiple .gallery-main{grid-row:1/-1}
.property-gallery.multiple .gallery-extra:nth-of-type(n+4){display:none}
.edit-link{display:block;margin-top:14px;color:var(--green);font-size:12px;font-weight:800}
.existing-images{display:flex;gap:9px;overflow:auto;margin-bottom:18px;padding-bottom:4px}
.existing-images img{width:105px;height:76px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
@media(max-width:740px){
  .topbar{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
  .main-nav{bottom:0!important;top:auto!important}
  .hero{display:flex;min-height:0!important;padding-bottom:28px;align-items:stretch;flex-direction:column;justify-content:flex-start;overflow:visible}
  .hero-content{width:calc(100% - 30px);margin:0 auto!important;padding:90px 0 180px}
  .search-panel{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;width:calc(100% - 30px);margin:0 auto;grid-template-columns:1fr!important;padding:10px}
  .search-panel>*{min-width:0}
  .search-panel label{padding:12px 10px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  .search-panel label:last-of-type{border-bottom:0!important}
  .search-panel .btn{grid-column:auto;width:100%;margin:8px 0 0}
  .content-shell{margin-top:34px!important}
  .header-actions{margin-left:auto;white-space:nowrap}
  .user-name+form{display:block}
  .panel-head{align-items:stretch;flex-direction:column}
  .table-search{width:100%}
  .table-wrap{overflow:visible}
  .table-card table,.table-card tbody,.table-card tr,.table-card td{display:block;width:100%;min-width:0}
  .table-card table{min-width:0}
  .table-card thead{display:none}
  .table-card tbody tr{margin-top:14px;padding:10px;background:#f8faf8;border:1px solid var(--line);border-radius:9px}
  .table-card td{position:relative;min-height:35px;padding:8px 8px 8px 106px;border:0;border-bottom:1px solid #e7ece9;overflow-wrap:anywhere}
  .table-card td:last-child{border-bottom:0}
  .table-card td::before{position:absolute;left:8px;top:9px;width:88px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(1)::before{content:'Gost'}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(2)::before{content:'Objekat'}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(3)::before{content:'Termin'}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(4)::before{content:'Iznos'}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(5)::before{content:'Status'}
  .dashboard-shell:not(.admin-shell) .table-card td:nth-child(6)::before{content:'Akcija'}
  .admin-shell .table-card td:nth-child(1)::before{content:'Partner'}
  .admin-shell .table-card td:nth-child(2)::before{content:'Portal'}
  .admin-shell .table-card td:nth-child(3)::before{content:'Paket'}
  .admin-shell .table-card td:nth-child(4)::before{content:'Objekti'}
  .admin-shell .table-card td:nth-child(5)::before{content:'Licenca'}
  .admin-shell .table-card td:nth-child(6)::before{content:'Promena'}
  .inline-license{align-items:stretch;flex-direction:column}
  .inline-license select,.inline-license input{width:100%;min-width:0}
  .property-gallery.multiple{grid-template-columns:1fr}
  .property-gallery.multiple .gallery-main{grid-row:auto}
  .property-gallery.multiple .gallery-extra{display:none}
}
@media(max-width:380px){
  .topbar{padding-inline:12px}
  .topbar>.brand>span:last-child{display:none}
  .header-actions{gap:4px}
  .header-actions .link-button{font-size:11px;padding:6px}
  .header-actions .btn.small{font-size:10px;padding:8px 10px}
}
