/* ============================================================
   Conocido brand overlay — laid on top of main.css.
   Only colors, typography, button/form treatment.
   Layout, grids, modal mechanics stay nextgen_clean.
   ============================================================ */

:root {
    --brand-primary:        #6D92AC;
    --brand-primary-hover:  #5A7E97;
    --brand-primary-soft:   #E8EFF4;
    --brand-accent:         #ED6A35;
    --brand-accent-hover:   #D55623;
    --brand-dark:           #151D33;
    --brand-text:           #333333;
    --brand-muted:          #666666;
    --brand-border:         #E2E8EE;
    --brand-bg:             #FFFFFF;
    --brand-bg-soft:        #F7F9FB;
    --brand-warning:        #F2BF5D;
    --brand-danger:         #BD3A55;
    --brand-success:        #5BA572;
    --brand-radius:         5px;
}

/* ---------- typography ---------- */

body,
input, textarea, select, button {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    color: var(--brand-text);
}

body {
    background: var(--brand-bg) !important;
    font-weight: 500;
    line-height: 1.7em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    color: var(--brand-dark);
    letter-spacing: -0.01em;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }

a {
    color: var(--brand-primary);
    transition: color 0.15s ease;
}
a:hover, a:focus {
    color: var(--brand-primary-hover);
    text-decoration: none;
}

/* ---------- header strook ---------- */

#headpart, #mainpart {
    background: var(--brand-bg) !important;
}
.site-logo, h1.site-logo {
    margin: 12px 0 4px 0;
    padding: 0;
}
.site-logo img {
    max-height: 56px;
    width: auto;
}

/* main navigation bar */
#mainmenu, .et-menu, .navbar, .nav-tabs {
    border-bottom: 1px solid var(--brand-border);
}
.navbar, .nav, ul.menu {
    background: var(--brand-bg);
}
#mainmenu li a, .nav > li > a {
    color: var(--brand-text);
    font-weight: 500;
    padding: 12px 18px;
    transition: color 0.15s ease, background-color 0.15s ease;
}
#mainmenu li a:hover, .nav > li > a:hover,
#mainmenu li.current_page_item > a, #mainmenu li.active > a,
.nav > li.active > a {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}
#mainmenu li.current_page_item > a, #mainmenu li.active > a {
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: -1px;
}

/* ---------- buttons ---------- */

.btn, button.btn, input[type="submit"].btn, input[type="button"].btn {
    border-radius: var(--brand-radius);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 18px;
    border: none;
    transition: background-color 0.15s ease, transform 0.05s ease;
    text-shadow: none;
    background-image: none;
    box-shadow: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-primary:focus {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: none;
}
.btn-primary:hover {
    background: var(--brand-primary-hover) !important;
    color: #fff !important;
}

/* "Pay invoice", "Open ticket" → orange accent */
.btn-warning, .btn-orange, .btn-cta,
.btn-primary.btn-cta {
    background: var(--brand-accent) !important;
    color: #fff !important;
}
.btn-warning:hover, .btn-cta:hover {
    background: var(--brand-accent-hover) !important;
    color: #fff !important;
}

.btn-default,
.btn-default:focus {
    background: var(--brand-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
}
.btn-default:hover {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary);
    color: var(--brand-text);
}

.btn-danger { background: var(--brand-danger) !important; color: #fff !important; }
.btn-danger:hover { background: #a02e46 !important; }

.btn-success { background: var(--brand-success) !important; color: #fff !important; }
.btn-success:hover { background: #4a8d5e !important; }

/* Bootstrap dropdown-toggle picks up the gradient/shadow — flatten to brand */
.btn-primary.dropdown-toggle,
.btn-success.dropdown-toggle,
.btn-warning.dropdown-toggle {
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.btn-primary.dropdown-toggle:hover, .btn-primary.dropdown-toggle:focus {
    background: var(--brand-primary-hover) !important;
}

/* Cart button (nextgen header uses .btn-success for cart) — bring to accent */
.btn-success.cart-btn,
.menus_cart .btn,
[class*="winkelwagen"], [class*="cart"] .btn-success {
    background: var(--brand-accent) !important;
}
.btn-success.cart-btn:hover,
.menus_cart .btn:hover {
    background: var(--brand-accent-hover) !important;
}

/* ---------- forms ---------- */

.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
textarea, select {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: none;
    padding: 8px 12px;
    color: var(--brand-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(109, 146, 172, 0.15) !important;
    outline: none;
}

label, .control-label {
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 4px;
}

/* ---------- panels & cards ---------- */

.panel,
.panel-default,
.box,
.well {
    border: 1px solid var(--brand-border) !important;
    border-radius: var(--brand-radius);
    box-shadow: none;
    background: var(--brand-bg);
}
.panel-heading {
    background: var(--brand-bg-soft) !important;
    border-bottom: 1px solid var(--brand-border) !important;
    color: var(--brand-dark) !important;
    font-weight: 600;
    border-top-left-radius: var(--brand-radius);
    border-top-right-radius: var(--brand-radius);
}
.panel-title {
    font-weight: 600;
    color: var(--brand-dark);
}

/* ---------- tables ---------- */

table, .table {
    border-collapse: collapse;
}
.table thead th, table.table th {
    background: var(--brand-bg-soft);
    color: var(--brand-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--brand-border) !important;
    border-top: none !important;
}
.table td, .table th {
    border-top: 1px solid var(--brand-border) !important;
    padding: 10px 12px;
    vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--brand-bg-soft);
}
.table-hover > tbody > tr:hover {
    background: var(--brand-primary-soft);
}

/* ---------- alerts / labels ---------- */

.alert {
    border-radius: var(--brand-radius);
    border: 1px solid transparent;
    padding: 12px 16px;
}
.alert-success { background: #ecf5ee; border-color: #c4e0cb; color: #2e6b40; }
.alert-info    { background: var(--brand-primary-soft); border-color: #c8d6e0; color: var(--brand-dark); }
.alert-warning { background: #fdf5e2; border-color: #e8d59a; color: #8a6d2e; }
.alert-danger  { background: #f8e3e7; border-color: #dfb1bb; color: #7d2434; }

.label, .badge {
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
}
.label-primary, .badge-primary { background: var(--brand-primary); color: #fff; }
.label-success, .badge-success { background: var(--brand-success); color: #fff; }
.label-warning, .badge-warning { background: var(--brand-warning); color: var(--brand-dark); }
.label-danger,  .badge-danger  { background: var(--brand-danger);  color: #fff; }
.label-default                  { background: #d8dee5; color: var(--brand-text); }

/* ---------- service status indicators ---------- */
.label-livemode.label-success-invert,
.label-livemode[data-value="Active"] {
    background: #ecf5ee !important;
    color: #2e6b40 !important;
    border: 1px solid #c4e0cb;
}

/* ---------- sidebar / left-rail nav ---------- */

#leftpart,
.sidemenu,
.cl_sidemenu {
    background: var(--brand-bg);
}
#leftpart .menu li a,
.sidemenu li a,
.cl_sidemenu li a {
    color: var(--brand-text);
    border-radius: 3px;
}
#leftpart .menu li.current > a,
#leftpart .menu li a:hover,
.sidemenu li.active > a,
.cl_sidemenu li.active > a {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-weight: 600;
}

/* ---------- footer ---------- */

#footpart, footer {
    background: var(--brand-dark);
    color: #d4dae5;
    padding: 18px 20px;
    margin-top: 30px;
    border-top: 3px solid var(--brand-primary);
}
#footpart a, footer a { color: #d4dae5; }
#footpart a:hover, footer a:hover { color: #fff; }

/* Custom Conocido footer */
.con-footer {
    margin-top: 48px;
    padding: 40px 32px 24px !important;
}
.con-footer__cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}
@media (max-width: 768px) {
    .con-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .con-footer__cols { grid-template-columns: 1fr; }
}
.con-footer__col--brand .con-footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.con-footer__tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.con-footer__heading {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px 0;
}
.con-footer__address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    font-size: 13px;
    margin: 0 0 12px 0;
}
.con-footer__meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.con-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.con-footer__links li {
    margin-bottom: 6px;
}
.con-footer__links a {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
}
.con-footer__links a:hover {
    color: #fff !important;
}
.con-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
    text-align: left;
}

/* ---------- misc cleanup ---------- */

.dropdown-menu {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    box-shadow: 0 4px 12px rgba(21, 29, 51, 0.08);
}
.dropdown-menu > li > a:hover {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

hr {
    border: 0;
    border-top: 1px solid var(--brand-border);
    margin: 18px 0;
}

/* Replace pattern background defined in main.css */
body {
    background-image: none !important;
}

/* ============================================================
   Conocido home — full custom layout
   ============================================================ */

.conocido-home {
    margin: -10px -15px 0;
}

/* ---------- Hero ---------- */

.con-hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1f2a4d 100%);
    color: #fff;
    padding: 64px 32px 56px;
    border-radius: var(--brand-radius);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.con-hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(109, 146, 172, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.con-hero::after {
    content: "";
    position: absolute;
    bottom: -100px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(237, 106, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.con-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 60%;
}
.con-hero__art {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 1100px) {
    .con-hero__inner { max-width: 100%; }
    .con-hero__art { display: none; }
}
.con-hero__title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #fff;
    letter-spacing: -0.02em;
}
.con-hero__subtitle {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px 0;
    font-weight: 400;
}
.con-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.con-hero__cta .btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}
.con-hero__cta .btn i {
    margin-right: 6px;
}
.con-hero__cta .btn-primary {
    background: var(--brand-primary) !important;
    box-shadow: 0 6px 20px rgba(109, 146, 172, 0.35);
}
.con-hero__cta .btn-cta {
    background: var(--brand-accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(237, 106, 53, 0.35);
}
.con-hero__cta .btn-cta:hover { background: var(--brand-accent-hover) !important; }

@media (max-width: 768px) {
    .con-hero { padding: 40px 24px; }
    .con-hero__title { font-size: 28px; }
    .con-hero__subtitle { font-size: 15px; }
}

/* ---------- Service cards ---------- */

.con-cards {
    margin-bottom: 36px;
}
.con-cards .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}
.con-cards .span4 {
    flex: 1 1 300px;
    margin: 0;
    width: auto;
    float: none;
}

.con-card {
    display: block;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 28px 24px 24px;
    text-decoration: none;
    color: var(--brand-text);
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}
.con-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(21, 29, 51, 0.10);
    border-color: var(--brand-primary);
    text-decoration: none;
    color: var(--brand-text);
}

.con-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 16px;
    font-size: 24px;
    color: #fff;
}
.con-card__icon--primary {
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(109, 146, 172, 0.30);
}
.con-card__icon--accent {
    background: var(--brand-accent);
    box-shadow: 0 4px 12px rgba(237, 106, 53, 0.30);
}
.con-card__icon--dark {
    background: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(21, 29, 51, 0.20);
}

.con-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.con-card__desc {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.5;
    margin: 0;
}
.con-card__arrow {
    position: absolute;
    bottom: 20px;
    right: 22px;
    font-size: 20px;
    color: var(--brand-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.con-card:hover .con-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- News section ---------- */

.con-news {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--brand-border);
}
.con-news__heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 20px 0;
}
.con-news__item {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.con-news__tags {
    margin-bottom: 8px;
}
.con-news__tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    margin-right: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.con-news__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.con-news__title a { color: var(--brand-dark); }
.con-news__title a:hover { color: var(--brand-primary); }
.con-news__date {
    font-size: 12px;
    color: var(--brand-muted);
    margin-bottom: 12px;
    display: inline-block;
}
.con-news__body {
    color: var(--brand-text);
    line-height: 1.6;
    margin: 8px 0 12px 0;
}
.con-news__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Hide the legacy "post-it stack" pseudo-elements that nextgen used behind cards */
#welcomeback::before, #welcomeback::after,
.darkshadow::before, .darkshadow::after {
    display: none !important;
}

/* ---------- Home: status stripje for logged-in users ---------- */

.con-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.con-home-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    text-decoration: none;
    color: var(--brand-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.con-home-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 29, 51, 0.06);
    border-color: var(--brand-primary);
    text-decoration: none;
    color: var(--brand-text);
}
.con-home-stat--alert { border-left: 3px solid var(--brand-accent); }
.con-home-stat__icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
}
.con-home-stat__icon--primary { background: var(--brand-primary); }
.con-home-stat__icon--accent  { background: var(--brand-accent); }
.con-home-stat__icon--dark    { background: var(--brand-dark); }
.con-home-stat__body { display: flex; flex-direction: column; }
.con-home-stat__value {
    font-size: 18px; font-weight: 700; color: var(--brand-dark); line-height: 1;
}
.con-home-stat__label {
    font-size: 11px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px;
}

/* ============================================================
   Conocido client dashboard (logged-in /clientarea/)
   ============================================================ */

.con-dash {
    margin: 0 0 30px 0;
}

/* ---------- Greeting header ---------- */
.con-dash__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--brand-border);
}
.con-dash__title {
    font-size: 26px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}
.con-dash__subtitle {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
}
.con-dash__search {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: stretch;
}
.con-dash__search input { width: 220px; }
.con-dash__search .btn { white-space: nowrap; }

/* ---------- Status tiles ---------- */
.con-dash__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.con-dash__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    text-decoration: none;
    color: var(--brand-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.con-dash__stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 29, 51, 0.06);
    border-color: var(--brand-primary);
    text-decoration: none;
    color: var(--brand-text);
}
.con-dash__stat--alert {
    border-left: 3px solid var(--brand-accent);
}
.con-dash__stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.con-dash__stat-icon--primary { background: var(--brand-primary); }
.con-dash__stat-icon--accent  { background: var(--brand-accent);  }
.con-dash__stat-icon--dark    { background: var(--brand-dark);    }
.con-dash__stat-icon--success { background: var(--brand-success); }
.con-dash__stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.1;
}
.con-dash__stat-label {
    font-size: 12px;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* ---------- Section titles ---------- */
.con-dash__section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 16px 0;
}

/* ---------- Service blocks ---------- */
.con-dash__services { margin-bottom: 28px; }
.con-dash__service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.con-dash__service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    text-decoration: none;
    color: var(--brand-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}
.con-dash__service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 29, 51, 0.06);
    border-color: var(--brand-primary);
    color: var(--brand-text);
    text-decoration: none;
}
.con-dash__service-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.con-dash__service-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
}
.con-dash__service-warning {
    margin-top: 8px;
    font-size: 11px;
    color: var(--brand-danger);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.con-dash__service-card--add {
    background: var(--brand-bg-soft);
    border-style: dashed;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.con-dash__service-add-icon {
    font-size: 32px;
    font-weight: 300;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 4px;
}

/* ---------- Empty state ---------- */
.con-dash__empty {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border: 1px dashed var(--brand-border);
    border-radius: var(--brand-radius);
    margin-bottom: 28px;
}
.con-dash__empty-icon {
    color: var(--brand-primary);
    margin-bottom: 12px;
    opacity: 0.5;
}
.con-dash__empty h2 {
    font-size: 20px;
    color: var(--brand-dark);
    margin: 0 0 8px 0;
}
.con-dash__empty p {
    color: var(--brand-muted);
    margin: 0 0 20px 0;
}

/* ---------- Two-column due-invoices / open-tickets row ---------- */
.con-dash__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
@media (min-width: 1024px) {
    .con-dash__row:has(.con-dash__panel + .con-dash__panel) {
        grid-template-columns: 1fr 1fr;
    }
}
.con-dash__panel {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    overflow: hidden;
}
.con-dash__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--brand-bg-soft);
    border-bottom: 1px solid var(--brand-border);
}
.con-dash__panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
}
.con-dash__table {
    margin: 0;
}
.con-dash__table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
    background: transparent;
    border-bottom: 1px solid var(--brand-border) !important;
}
.con-dash__table td {
    border-top: 1px solid var(--brand-border) !important;
    padding: 10px 14px;
    font-size: 13px;
}
.con-dash__table tr:first-child td { border-top: none !important; }

/* ---------- Quick actions ---------- */
.con-dash__quick { margin-bottom: 28px; }
.con-dash__quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.con-dash__quick-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    text-decoration: none;
    color: var(--brand-text);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.con-dash__quick-link:hover {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary);
    text-decoration: none;
    color: var(--brand-text);
}
.con-dash__quick-link i {
    color: var(--brand-primary);
    font-size: 18px;
    margin-top: 2px;
}
.con-dash__quick-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 2px;
}
.con-dash__quick-link small {
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* ---------- Hide leftover stock dashboard styles ---------- */
.dashrow, .dashboardblock, .nice-sidemenu, .darkheader, .greenbox, #slides, .divider {
    /* let our new layout dominate; if HostBill core re-injects these elsewhere, neutralize */
}
@media (max-width: 768px) {
    .con-dash__header { flex-direction: column; }
    .con-dash__search input { width: 100%; }
}

/* ---------- hide admin-only / migration custom fields from public forms ---------- */
/* These fields exist for HostFact migration and Mollie linkage — they should never
   be shown on the public signup form. Admin area uses a different template so it
   keeps showing them. */
input[name="hostfact_debtorcode"],
input[name="hostfact_identifier"],
input[name="hostfact_synced"],
input[name="mollieid"] {
    display: none !important;
}
/* Hide their wrapping form-group / table-row so the label disappears too.
   Use direct-child :has() — otherwise the outer wrapping <tr> (which contains
   the entire form table as a descendant) also gets matched and the whole form
   disappears. */
.form-group:has(> input[name="hostfact_debtorcode"]),
.form-group:has(> input[name="hostfact_identifier"]),
.form-group:has(> input[name="hostfact_synced"]),
.form-group:has(> input[name="mollieid"]),
tr:has(> td > input[name="hostfact_debtorcode"]),
tr:has(> td > input[name="hostfact_identifier"]),
tr:has(> td > input[name="hostfact_synced"]),
tr:has(> td > input[name="mollieid"]) {
    display: none !important;
}
/* Fallback for browsers without :has() — hide labels by [for] */
label[for="field_register_hostfact_debtorcode"],
label[for="field_register_hostfact_identifier"],
label[for="field_register_hostfact_synced"],
label[for="field_register_mollieid"] {
    display: none !important;
}

/* ============================================================
   Hide HostBill ticket system links — wij gebruiken SupportPal extern
   ============================================================ */
a[href*="/tickets"],
a[href*="cmd=tickets"],
a[href*="cmd=support"],
li:has(> a[href*="/tickets"]),
li:has(> a[href*="cmd=support"]),
.menu-tickets,
[data-feature="tickets"] {
    display: none !important;
}

/* The "Support" main-nav dropdown: hide entirely */
#mainmenu li.dropdown:has(a[href*="/tickets/"]),
#mainmenu li.dropdown:has(a[href*="cmd=tickets"]),
#mainmenu li.dropdown:has(a[href*="cmd=support"]) {
    display: none !important;
}
