/* ALHAMBRA PHASE 50.2 - CLEAN LOGO / HEADER / BUTTON FIX */

:root{
  --alh-dark:#120c06;
  --alh-dark2:#24180d;
  --alh-gold:#d7b15a;
  --alh-gold2:#8f6826;
  --alh-red:#8b1e2d;
  --alh-cream:#fff8ea;
  --alh-line:#eadcc8;
}

/* Prethodni agresivni logo duplikati */
.alh-app-topbar span[style*="width: 56px"] + span[style*="width: 56px"],
header span[style*="width: 56px"] + span[style*="width: 56px"],
.alh-side-shell span[style*="width: 56px"] + span[style*="width: 56px"],
.sidebar span[style*="width: 56px"] + span[style*="width: 56px"]{
  display:none !important;
}

/* Ako JS/HTML napravi više logo slika jednu do druge, ostavi prvu */
.alh-app-topbar img.alh-real-logo-mark + img.alh-real-logo-mark,
.alh-public-top img.alh-real-logo-mark + img.alh-real-logo-mark,
header img.alh-real-logo-mark + img.alh-real-logo-mark,
.sidebar img.alh-real-logo-mark + img.alh-real-logo-mark,
.alh-side-shell img.alh-real-logo-mark + img.alh-real-logo-mark{
  display:none !important;
}

/* Standardni logo */
.alh-clean-logo,
.alh-real-logo-mark{
  width:54px !important;
  height:54px !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:16px !important;
  background:#fff8ea !important;
  padding:4px !important;
  border:2px solid rgba(215,177,90,.45) !important;
  box-shadow:0 10px 24px rgba(32,20,8,.14) !important;
}

.alh-logo-mark,
.logo-mark,
.brand-mark,
.brand-icon,
.app-logo-mark,
.alh-brand-mark{
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  min-height:58px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  background:#fff8ea !important;
  color:transparent !important;
}

/* Header: jedan red, bez bežanja desno */
.alh-public-top,
.alh-app-topbar,
header{
  overflow:hidden !important;
}

.alh-public-top-inner{
  max-width:100% !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding-left:42px !important;
  padding-right:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
}

.alh-nav,
header nav,
.alh-public-top nav{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:nowrap !important;
  min-width:0 !important;
  max-width:calc(100vw - 190px) !important;
  overflow:visible !important;
}

.alh-nav a,
header nav a,
.alh-public-top nav a{
  white-space:nowrap !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:180px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:15px !important;
}

/* Online bestellen dugme - vidljivo i kraće */
.alh-nav a[href="/order/"],
.alh-nav a[href="/order"],
.alh-nav a[href*="/order/?"],
header nav a[href="/order/"],
header nav a[href="/order"],
header nav a[href*="/order/?"],
.alh-public-top a[href="/order/"],
.alh-public-top a[href="/order"],
.alh-public-top a[href*="/order/?"]{
  color:#fff !important;
  background:linear-gradient(135deg,#2a190c,#050302) !important;
  border:2px solid rgba(215,177,90,.75) !important;
  box-shadow:0 12px 30px rgba(32,20,8,.20) !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:0 1px 1px rgba(0,0,0,.45) !important;
  max-width:170px !important;
  min-width:145px !important;
  text-align:center !important;
}

/* Na početnoj skrati prikaz ako nema mesta */
@media(min-width:901px) and (max-width:1240px){
  .alh-nav a,
  header nav a,
  .alh-public-top nav a{
    font-size:14px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    max-width:145px !important;
  }

  .alh-nav a[href="/order/"],
  .alh-nav a[href="/order"],
  .alh-public-top a[href="/order/"],
  .alh-public-top a[href="/order"]{
    max-width:150px !important;
    min-width:130px !important;
  }
}

/* Kitchen/Admin header */
.alh-app-topbar,
.kitchen-top,
.admin-top,
body[class*="kitchen"] header{
  min-height:82px !important;
}

.alh-app-topbar .alh-clean-logo,
body[class*="kitchen"] header .alh-clean-logo,
.admin-top .alh-clean-logo{
  width:58px !important;
  height:58px !important;
}

/* Skloni sat dole desno */
#alh50-admin-clock,
.alh50-admin-clock{
  display:none !important;
}

/* Kitchen: ukloni sivu fleku na dnu i poravnaj */
body{
  background:
    radial-gradient(circle at 10% 10%,rgba(215,177,90,.12),transparent 25%),
    radial-gradient(circle at 90% 20%,rgba(139,30,45,.06),transparent 28%),
    linear-gradient(135deg,#fff,#fff8ea 60%,#fff) !important;
}

html,
body{
  overflow-x:hidden !important;
}

/* Admin orders tabela - čitljivije kolone */
table{
  table-layout:auto !important;
}

.admin-orders table,
.orders-table,
table:has(th){
  width:100% !important;
}

.admin-orders th,
.admin-orders td,
.orders-table th,
.orders-table td,
table th,
table td{
  vertical-align:top !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}

.admin-orders td:nth-child(2),
.orders-table td:nth-child(2),
table td:nth-child(2){
  min-width:120px !important;
  font-weight:900 !important;
}

.admin-orders td:nth-child(4),
.orders-table td:nth-child(4),
table td:nth-child(4){
  min-width:220px !important;
}

.admin-orders td:last-child,
.orders-table td:last-child,
table td:last-child{
  min-width:170px !important;
}

/* Dugmad u tabeli */
table a,
table button{
  white-space:nowrap !important;
}

/* Order stranica: kategorije da ne prave ružan scroll */
.alh-tabs{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  max-width:100% !important;
}

.alh-tabs button,
.alh-tab{
  flex:0 0 auto !important;
}

/* Mobile */
@media(max-width:900px){
  .alh-public-top-inner{
    padding:12px 14px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .alh-nav,
  header nav,
  .alh-public-top nav{
    max-width:100% !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .alh-nav a,
  header nav a,
  .alh-public-top nav a{
    max-width:none !important;
    width:100% !important;
    text-align:center !important;
    font-size:13px !important;
  }

  .alh-nav a[href="/order/"],
  .alh-nav a[href="/order"],
  .alh-public-top a[href="/order/"],
  .alh-public-top a[href="/order"]{
    grid-column:1 / -1 !important;
    max-width:none !important;
    width:100% !important;
  }

  .alh-clean-logo,
  .alh-real-logo-mark{
    width:48px !important;
    height:48px !important;
  }

  table{
    display:block !important;
    overflow-x:auto !important;
    white-space:normal !important;
  }
}

/* Jako mali ekran */
@media(max-width:520px){
  .alh-nav,
  header nav,
  .alh-public-top nav{
    grid-template-columns:1fr !important;
  }
}
