@import url("https://cdnjs.cloudflare.com/ajax/libs/remixicon/4.6.0/remixicon.min.css");
.ri-lg,[class^="ri-"],[class*=" ri-"]{vertical-align:-.12em}
nav.icelis-primary [class^="ri-"]{font-size:1.15rem;width:22px;text-align:center}
/* ICELIS admin theme: design only (colours, type, spacing, cards, tables, buttons). No content or behaviour is changed. */
@font-face{font-family:'Dubai';font-weight:400;font-display:swap;src:url('https://icelisglobal.com/wp-content/uploads/fonts/Dubai-Regular.ttf') format('truetype')}
@font-face{font-family:'Dubai';font-weight:500;font-display:swap;src:url('https://icelisglobal.com/wp-content/uploads/fonts/Dubai-Medium.ttf') format('truetype')}
@font-face{font-family:'Dubai';font-weight:700;font-display:swap;src:url('https://icelisglobal.com/wp-content/uploads/fonts/Dubai-Bold.ttf') format('truetype')}
:root{--t:#168785;--td:#0f6b69;--tl:#eaf6f5;--ink:#1f3744;--line:#e3efee;--bg:#f4faf9}
html body{font-family:'Dubai','Segoe UI',Arial,sans-serif !important;background:var(--bg) !important;color:#2d3a42;font-size:15.5px;line-height:1.6}
body h1,body h2,body h3,body h4{color:var(--ink);font-weight:700;letter-spacing:0}
body h1{font-size:1.75rem !important}body h2{font-size:1.35rem !important}body h3{font-size:1.1rem !important}
/* page frame */
body > .container,body .container.mx-auto:not(nav .container){max-width:1280px !important;padding-left:24px;padding-right:24px}
body > .container.py-8,body .container.mx-auto.py-8{padding-top:32px !important;padding-bottom:48px !important}
/* navbar: white, like the public site */
nav.icelis-primary{background:#fff !important;color:var(--ink) !important;box-shadow:none !important;border-bottom:1px solid var(--line)}
nav.icelis-primary .container{max-width:1280px !important}
nav.icelis-primary .py-4{padding-top:14px !important;padding-bottom:14px !important}
nav.icelis-primary .text-white,nav.icelis-primary h1{color:var(--ink) !important}
nav.icelis-primary h1{font-size:1.2rem !important}
nav.icelis-primary .text-blue-200,nav.icelis-primary a{color:#4b5b63}
nav.icelis-primary a{font-weight:500;font-size:.95rem;border-radius:10px !important;transition:background-color .25s ease,color .25s ease}
nav.icelis-primary a:hover{color:var(--t) !important;background:var(--bg) !important}
nav.icelis-primary a.bg-white{background:var(--tl) !important;color:var(--td) !important}
nav.icelis-primary img{height:40px !important;width:auto !important}
nav.icelis-primary button{color:var(--ink) !important}
/* cards */
body .bg-white.rounded-lg,body .bg-white.rounded-xl,body .bg-white.rounded-md.shadow{border:1px solid var(--line);border-radius:20px !important;box-shadow:0 10px 30px rgba(13,23,59,.05) !important}
body .bg-white.rounded-lg.p-6{padding:26px !important}
body .card-hover{transition:transform .35s cubic-bezier(.4,0,.2,1),box-shadow .35s cubic-bezier(.4,0,.2,1) !important}
body .card-hover:hover{transform:translateY(-3px) !important;box-shadow:0 16px 36px rgba(13,23,59,.09) !important}
body .mb-8{margin-bottom:28px !important}
/* tables */
body table{width:100%;border-collapse:separate;border-spacing:0}
body thead,body thead tr,body thead th{background:var(--bg) !important;color:#4b5b63 !important;font-size:.74rem !important;letter-spacing:.08em;text-transform:uppercase;font-weight:600 !important}
body th,body td{padding:12px 16px !important;border-bottom:1px solid var(--line) !important}
body tbody tr:hover{background:#f9fdfc !important}
body .divide-y>*+*{border-color:var(--line) !important}
/* buttons + accents: blue -> teal */
body .bg-blue-500,body .bg-blue-600,body .bg-blue-700,body .bg-indigo-600,body .icelis-primary:not(nav){background-color:var(--t) !important}
body .hover\:bg-blue-700:hover,body .hover\:bg-blue-600:hover,body .hover\:bg-blue-800:hover{background-color:var(--td) !important}
body .bg-blue-50,body .bg-blue-100{background-color:var(--tl) !important}
body .text-blue-500,body .text-blue-600,body .text-blue-700,body .text-blue-800,body .text-indigo-600{color:var(--t) !important}
body .border-blue-200,body .border-blue-300,body .border-blue-500,body .border-blue-600{border-color:var(--t) !important}
body button,body a.rounded,body a.rounded-md,body a.rounded-lg{border-radius:12px !important;font-weight:600}
body button{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
/* forms */
body input:not([type=checkbox]):not([type=radio]),body select,body textarea{border:1px solid var(--line) !important;border-radius:12px !important;padding:9px 12px;background:#fff}
body input:focus,body select:focus,body textarea:focus{outline:none !important;border-color:var(--t) !important;box-shadow:0 0 0 3px rgba(22,135,133,.16) !important}
body label{color:var(--ink);font-weight:600;font-size:.88rem}
/* badges / pills */
body .rounded-full{font-weight:600}
@media (max-width:640px){body > .container,body .container.mx-auto{padding-left:14px;padding-right:14px}body h1{font-size:1.4rem !important}}

/* ---------- responsive fixes ---------- */
html,body{overflow-x:hidden;max-width:100%}
img,video,iframe{max-width:100%}
/* navbar: full menu only on wide screens, otherwise hamburger (the menu has 9+ items) */
nav.icelis-primary #mobile-menu{background:#fff;border-top:1px solid var(--line) !important;padding:10px 4px !important}
nav.icelis-primary #mobile-menu a{padding:12px 14px !important}
/* lists, rows, headers */
body .flex.justify-between{gap:8px 16px}
@media (max-width:767px){
  body .flex.justify-between,body .flex.items-center.justify-between{flex-wrap:wrap}
  body .flex.justify-between>*{min-width:0;max-width:100%}
  body .space-x-3>*,body .space-x-4>*{min-width:0}
  body .grid{gap:14px !important}
  body .bg-white.rounded-lg.p-6{padding:18px !important}
  body table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  body .overflow-x-auto{-webkit-overflow-scrolling:touch}
  body .text-3xl{font-size:1.6rem !important}
  body .flex.space-x-2,body .flex.gap-2{flex-wrap:wrap}
  body .w-full.md\:w-auto,body form .flex{flex-wrap:wrap}
  body .fixed.inset-0>div,body [id$="Modal"]>div{max-width:calc(100vw - 24px) !important;margin:12px !important}
}

/* ---------- rebuilt layout: sidebar navigation on desktop ---------- */
@media (min-width:1024px) and (max-width:1099px){nav.icelis-primary .hidden.lg\:flex{display:none !important}nav.icelis-primary #mobile-menu-button{display:block !important}nav.icelis-primary #mobile-menu:not(.hidden){display:block !important}}
@media (min-width:1100px){
  nav.icelis-primary{position:fixed !important;top:0;left:0;bottom:0;width:260px;height:100vh;overflow-y:auto;border-right:1px solid var(--line);border-bottom:0 !important;background:#fff !important;z-index:40}
  nav.icelis-primary > .container{max-width:none !important;padding:0 14px !important;height:100%}
  nav.icelis-primary > .container > .flex{flex-direction:column;align-items:stretch !important;justify-content:flex-start !important;height:100%;padding:20px 0 16px !important;gap:6px}
  nav.icelis-primary .flex-shrink-0{padding:0 8px 18px;margin-bottom:8px;border-bottom:1px solid var(--line)}
  nav.icelis-primary .flex-shrink-0 h1{font-size:1rem !important;margin:0 0 0 10px}
  nav.icelis-primary .flex-shrink-0 img{height:36px !important}
  nav.icelis-primary .hidden.lg\:flex{display:flex !important;flex-direction:column;align-items:stretch !important;gap:3px;flex:1 1 auto;margin:0 !important}
  nav.icelis-primary .hidden.lg\:flex>:not([hidden])~:not([hidden]){margin:0 !important}
  nav.icelis-primary .hidden.lg\:flex a{padding:11px 14px !important;font-size:1rem;width:100%}
  nav.icelis-primary .hidden.lg\:flex a span:first-child{width:22px;text-align:center}
  nav.icelis-primary > .container > .flex > .flex.items-center:last-child{margin-top:auto;display:block}
  nav.icelis-primary .hidden.md\:flex{display:flex !important;flex-direction:column;align-items:stretch !important;gap:10px;padding:14px 8px 0;border-top:1px solid var(--line)}
  nav.icelis-primary .hidden.md\:flex .text-right{text-align:left}
  nav.icelis-primary .hidden.md\:flex a{background:var(--bg) !important;color:#b91c1c !important;text-align:center;padding:10px !important}
  nav.icelis-primary .hidden.md\:flex a:hover{background:#fee2e2 !important}
  nav.icelis-primary #mobile-menu-button,nav.icelis-primary #mobile-menu{display:none !important}
  html body{padding-left:260px}
  body > .container,body .container.mx-auto:not(nav .container){max-width:1180px !important;margin-left:auto;margin-right:auto}
}
/* calmer dashboard: less crowding */
body .bg-white.rounded-lg.p-6.mb-8{margin-bottom:22px !important}
body .grid.gap-6{gap:20px !important}
body .card-hover .text-3xl,body .card-hover .text-2xl{font-weight:700}
body h2.text-xl,body h2.text-lg{font-size:1.15rem !important;margin-bottom:14px !important}
body .bg-gray-50{background:var(--bg) !important;border:1px solid var(--line)}

/* ---------- dashboard page redesign (layout only) ---------- */
@media (min-width:1100px){
  body.page-dashboard > .container{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:start}
  body.page-dashboard > .container > *{grid-column:1 / -1;margin:0 !important}
  /* top KPI cards (first grid) */
  body.page-dashboard > .container > .grid.md\:grid-cols-2{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}
  /* the two overview boxes side by side */
  body.page-dashboard > .container > .bg-white:nth-of-type(2){grid-column:span 6}
  body.page-dashboard > .container > .bg-white:nth-of-type(3){grid-column:span 6}
  /* recent messages + recent notifications side by side */
  body.page-dashboard > .container > .bg-white:nth-of-type(4){grid-column:span 7}
  body.page-dashboard > .container > .bg-white:nth-of-type(5){grid-column:span 5}
  /* quick-link cards repeat the sidebar: keep them but compact */
  body.page-dashboard > .container > .grid.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.page-dashboard > .container > .grid.xl\:grid-cols-3 .card-hover{padding:18px !important}
  body.page-dashboard > .container > .grid.xl\:grid-cols-3 p{font-size:.9rem}
}
body.page-dashboard > .container > .bg-white .grid.grid-cols-2,body.page-dashboard > .container > .bg-white .grid.grid-cols-3{gap:12px !important}

/* ---------- dashboard: remove duplicated blocks ---------- */
body.page-dashboard > .container > .bg-white:nth-of-type(2),      /* Contact Messages Overview: same numbers as the top card */
body.page-dashboard > .container > .grid.xl\:grid-cols-3 { display: none !important; }  /* quick-link cards: same as the sidebar */
@media (min-width:1100px){
  body.page-dashboard > .container > .bg-white:nth-of-type(3){grid-column:1 / -1}
  body.page-dashboard > .container > .bg-white:nth-of-type(3) .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.page-dashboard > .container > .bg-white:nth-of-type(3) .flex.justify-center{justify-content:flex-start}
  body.page-dashboard > .container > .bg-white:nth-of-type(4){grid-column:span 7}
  body.page-dashboard > .container > .bg-white:nth-of-type(5){grid-column:span 5}
}
/* recent lists: tighter */
body.page-dashboard .space-y-3>*{padding:10px 12px !important}
