/* ==========================================================================
   TrueFinders UI — account & auth area (Phase 9, agent ui-account)
   Scoped to .tf-auth (login/signup/forgot/reset/verify), .tf-dash (account
   dashboard + business-owner pages) and .tf-submit (submit-company).
   Builds on tokens/components from tf-ui.css. Presentation only.
   ========================================================================== */

/* ---------- Shared form helpers (account scopes) ---------- */
.tf-auth .form-group:has(> .text-danger:not(:empty)) .form-control,
.tf-dash .form-group:has(> .text-danger:not(:empty)) .form-control,
.tf-submit .form-group:has(> .text-danger:not(:empty)) .form-control,
.tf-dash .form-group:has(> .text-danger:not(:empty)) .select2-selection,
.tf-submit .form-group:has(> .text-danger:not(:empty)) .select2-selection { border-color: var(--tf-danger) !important; background-color: #fffafa; }
.tf-auth .form-group > .text-danger:not(:empty)::before,
.tf-dash .form-group > .text-danger:not(:empty)::before,
.tf-submit .form-group > .text-danger:not(:empty)::before { content: "\f06a"; font-family: FontAwesome; margin-right: .35rem; font-weight: normal; }
.tf-auth label .text-danger, .tf-dash label .text-danger, .tf-submit label .text-danger { display: inline; margin: 0; font-size: inherit; }
.tf-auth label .text-danger::before, .tf-dash label .text-danger::before, .tf-submit label .text-danger::before { content: none !important; }

.tf-dash input[type="file"].form-control, .tf-submit input[type="file"].form-control { padding: .45rem; cursor: pointer; background: var(--tf-bg); border-style: dashed; }
.tf-dash input[type="file"].form-control::file-selector-button,
.tf-submit input[type="file"].form-control::file-selector-button {
  border: 0; border-radius: 6px; background: var(--tf-blue-500); color: #fff; font-weight: 600;
  padding: .45rem .9rem; margin-right: .75rem; cursor: pointer; font-family: var(--tf-font);
}
.tf-dash input[type="file"].form-control:hover::file-selector-button,
.tf-submit input[type="file"].form-control:hover::file-selector-button { background: var(--tf-blue-700); }
.tf-dash small, .tf-submit small { display: block; color: var(--tf-muted); font-size: .82rem; margin-top: .3rem; }
.tf-dash label small, .tf-submit label small { display: inline; margin: 0; font-weight: 500; }
.tf-dash textarea.form-control, .tf-submit textarea.form-control { min-height: 130px; }
.tf-dash .form-control[readonly], .tf-submit .form-control[readonly] { background: var(--tf-line-2); color: var(--tf-muted); }

/* Section blocks inside long forms */
.tf-form-section { border: 0; margin: 0 0 1.25rem; padding: 0 0 .5rem; min-width: 0; border-bottom: 1px solid var(--tf-line-2); }
.tf-form-section:last-of-type { border-bottom: 0; }
.tf-form-section-title {
  display: flex; align-items: center; gap: .6rem; width: auto; float: none;
  font-size: 1.02rem !important; font-weight: 700; color: var(--tf-ink); margin: 0 0 1rem; padding: 0;
}
.tf-form-section-title .fa {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--tf-blue-50); color: var(--tf-blue-500); font-size: .95rem;
}
.tf-form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid var(--tf-line-2); }
.tf-form-actions > .row { flex: 1 1 100%; margin: 0; }
.tf-form-actions > .row > [class*="col-"] { padding: 0; flex: 0 0 auto; max-width: none; }
.tf-form-actions .form-group { margin: 0; }
.tf-form-actions .btn { min-width: 170px; }
@media (max-width: 575.98px) { .tf-form-actions .btn, .tf-form-actions > .row > [class*="col-"] { width: 100%; } }

/* Current image preview next to file inputs */
.tf-upload-preview, .tf-dash .uploadimg-box,
.tf-upload-preview-col .form-group { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: .6rem; }
.tf-upload-preview-col .form-group > label[for] { display: none; }
.tf-upload-preview img, .tf-dash .uploadimg-box img, .tf-upload-preview-col img {
  width: auto !important; max-width: 150px; max-height: 110px; object-fit: contain;
  border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); background: #fff; padding: 4px; box-shadow: var(--tf-shadow-sm);
}
.tf-upload-preview label, .tf-dash .uploadimg-box label, .tf-upload-preview-col label:not([for]) {
  display: inline-flex !important; align-items: center; gap: .4rem; margin: 0; padding: .35rem .75rem !important;
  border: 1px solid #f3c6cb; border-radius: 999px; background: var(--tf-danger-50); color: #8e1f29; font-size: .85rem !important; font-weight: 600;
}
.tf-upload-preview input[type="checkbox"], .tf-dash .uploadimg-box input[type="checkbox"], .tf-upload-preview-col input[type="checkbox"] { position: static; accent-color: var(--tf-danger); width: 16px; height: 16px; }

/* Checkbox chips */
.tf-check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500 !important; color: var(--tf-text) !important; cursor: pointer; margin: 0; }
.tf-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--tf-blue-500); flex: 0 0 auto; margin: 0; }
.tf-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-top: .35rem; }
.tf-check-grid .tf-check { padding: .7rem .85rem; border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); background: #fff; min-height: 46px; transition: border-color .15s ease, background-color .15s ease; }
.tf-check-grid .tf-check:hover { border-color: var(--tf-blue-200); background: var(--tf-blue-50); }
.tf-check-grid .tf-check:has(input:checked) { border-color: var(--tf-blue-500); background: var(--tf-blue-50); color: var(--tf-blue-700) !important; }
.tf-group-label { display: block; width: 100%; font-size: 1rem !important; }

/* bootstrap-tagsinput */
.tf-dash .bootstrap-tagsinput { width: 100%; min-height: 46px; border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); padding: .4rem .6rem; box-shadow: inset 0 1px 1px rgba(9, 26, 60, .03); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tf-dash .bootstrap-tagsinput input { min-width: 140px; padding: .25rem; }
.tf-dash .bootstrap-tagsinput .tag, .tf-dash .bootstrap-tagsinput .label-info { background: var(--tf-blue-500) !important; color: #fff; border-radius: 999px !important; padding: .3em .75em !important; font-size: .8rem !important; font-weight: 600; margin: 0 !important; }

/* CKEditor frame */
.tf-dash .cke_chrome, .tf-submit .cke_chrome { border: 1px solid var(--tf-line) !important; border-radius: var(--tf-r-sm); overflow: hidden; box-shadow: none !important; }
.tf-dash .cke_top, .tf-submit .cke_top { background: var(--tf-line-2) !important; border-bottom: 1px solid var(--tf-line) !important; }

/* select2 inside account forms: full width */
.tf-dash .select2-container, .tf-submit .select2-container { width: 100% !important; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.tf-auth-banner { padding-bottom: clamp(3.5rem, 7vw, 5rem) !important; margin-bottom: 0 !important; }
.tf-auth { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 5vw, 3.5rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tf-auth--plain { margin-top: 0; padding-top: clamp(2rem, 5vw, 3.5rem); }
.tf-auth .alert { margin-bottom: 1rem; box-shadow: var(--tf-shadow); }
.tf-auth-card { border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-lg); overflow: hidden; }
.tf-auth-card .card-body { padding: clamp(1.25rem, 4vw, 2.25rem); }
.tf-auth-head { text-align: center; margin-bottom: 1.25rem; }
.tf-auth-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--tf-blue-500), var(--tf-blue-700)); color: #fff; font-size: 1.45rem;
  box-shadow: 0 8px 20px rgba(43, 99, 208, .3); margin-bottom: .75rem;
}
.tf-auth-lead { color: var(--tf-muted); font-size: .97rem; margin: 0 auto; max-width: 30rem; }
.tf-auth-social { margin-bottom: 0; display: flex; justify-content: center; }
.tf-auth-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: .3rem;
  border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); background: #fff; box-shadow: var(--tf-shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}
.tf-auth-social a:hover, .tf-auth-social a:focus { border-color: var(--tf-blue-200); box-shadow: var(--tf-shadow); }
.tf-auth-social a:active { transform: translateY(1px); }
.tf-auth-social img { max-width: 100%; height: auto; display: block; }
.tf-auth-divider { display: flex; align-items: center; gap: .9rem; margin: 1.25rem 0; color: var(--tf-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tf-auth-divider::before, .tf-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--tf-line); }
.tf-auth-form .form-group > label { display: block; }
.tf-auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.tf-auth-row .form-check { padding-left: 1.6rem; margin: 0; }
.tf-auth-row .form-check-input { width: 17px; height: 17px; margin-top: .2rem; margin-left: -1.6rem; accent-color: var(--tf-blue-500); }
.tf-auth-row .form-check-label { font-size: .92rem; color: var(--tf-text); margin: 0; }
.tf-auth .btn-link { padding: 0; min-height: 0; font-size: .92rem; }
.tf-auth hr { margin: 1.4rem 0 1rem; }
.tf-auth-switch { text-align: center; margin: 0; color: var(--tf-muted); font-size: .95rem; }
.tf-auth-switch a { font-weight: 700; }
.tf-auth-captcha { display: flex; justify-content: center; }
.tf-auth-captcha .float-captcha { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 400px) { .tf-auth-captcha .g-recaptcha { transform: scale(.88); transform-origin: center top; margin-bottom: -8px; } }
.tf-verify-card { text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 1rem; }
.tf-verify-card > .alert { text-align: left; }
.tf-verify-card .card-header { border: 0; background: transparent; font-size: 1.35rem; padding: .25rem 0 .5rem; }
.tf-verify-card .card-body { color: var(--tf-text); font-size: 1rem; padding-top: .25rem; }
.tf-verify-card .card-body a { font-weight: 700; }

/* ==========================================================================
   Account dashboard shell
   ========================================================================== */
.tf-dash { padding-top: .25rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.tf-dash .tf-dash-row { align-items: flex-start; }

/* Sidebar */
.tf-dash .left-sidebar.tf-dash-card {
  background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm);
  padding: 1rem; position: sticky; top: calc(var(--tf-header-h) + 16px);
}
.tf-dash .left-sidebar h2.tf-dash-title { font-size: .75rem !important; font-weight: 700; color: var(--tf-muted); text-transform: uppercase; letter-spacing: .1em; padding: 0 .5rem .5rem; margin: 0; border: 0; }
.tf-dash .profile-box { display: flex; justify-content: flex-start; text-align: left; padding: .75rem .5rem 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--tf-line-2); }
.tf-dash .profile-pic { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.tf-dash .profile-pic > a { min-width: 0; }
.tf-dash .profile-pic h4 { font-size: 1.02rem !important; padding: 0; margin: 0; color: var(--tf-ink); overflow-wrap: anywhere; }
.tf-dash .profile-pic-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--tf-blue-100); }
.tf-dash span.bg-success.dots { right: 0; top: 2px; width: 12px; height: 12px; border: 2px solid #fff; }
.tf-dash .left-sidebar .user-icon-rotated { margin: 6px 10px 6px 6px; flex: 0 0 auto; width: 40px; height: 40px; padding: 7px; }
.tf-dash .left-sidebar .user-icon-rotated:before { width: 40px; height: 40px; }

.tf-dash-nav .nav-tabs { display: flex; flex-direction: column; border: 0; gap: 2px; margin: 0; padding: 0; position: relative; }
.tf-dash-nav .nav-tabs .nav-item { width: 100%; margin: 0; float: none; }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border: 0 !important; border-radius: var(--tf-r-sm);
  color: var(--tf-text); font-weight: 600; font-size: .94rem; background: transparent !important; margin: 0; position: relative; white-space: nowrap;
}
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link .fa { width: 18px; text-align: center; color: var(--tf-muted); font-size: 1rem; }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link:hover { background: var(--tf-blue-50) !important; color: var(--tf-blue-700); }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active { background: var(--tf-blue-50) !important; color: var(--tf-blue-700); }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active .fa,
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link:hover .fa { color: var(--tf-blue-500); }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--tf-orange); }
.tf-dash-nav .tf-dash-logout { margin-top: .35rem !important; padding-top: .35rem; border-top: 1px solid var(--tf-line-2); }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li.tf-dash-logout a.nav-link:hover { background: var(--tf-danger-50) !important; color: var(--tf-danger); }
.tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li.tf-dash-logout a.nav-link:hover .fa { color: var(--tf-danger); }

/* Main column */
.tf-dash .mycount-section.tf-dash-main { background: transparent; padding: 0 15px; margin-top: 0; }
.tf-dash-main > .card, .tf-dash-main > .card1, .tf-dash .tf-upload-card {
  background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm);
  padding: clamp(1rem, 3vw, 1.75rem) !important;
}
.tf-dash-main > .card > .alert, .tf-dash-main > .card1 .alert { margin-bottom: 1.25rem; }
.tf-dash-main > .card > h2 { font-size: 1.25rem !important; margin: 0 0 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--tf-line-2); }
.tf-dash-main .profile-form { margin: 0; }
.tf-dash-main form > button[type="submit"] { min-width: 170px; }

/* Toolbar (Add buttons) */
.tf-dash-toolbar { display: flex; justify-content: flex-end; gap: .5rem; margin: 0 0 .85rem; }
.tf-dash-toolbar .btn { min-height: 40px; padding: .5rem 1rem; }

/* Business-owner tabs (my-company-menu) */
.tf-dash .tabs-box { margin-bottom: 1.1rem; }
.tf-dash .tabs-box ul.nav.nav-tabs.myac {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 5px; background: #fff; border: 1px solid var(--tf-line);
  border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); overflow: visible; position: relative;
}
.tf-dash .tabs-box ul.nav.nav-tabs li.nav-item { width: auto; margin: 0; background: transparent !important; flex: 0 0 auto; }
.tf-dash .tabs-box ul.nav.nav-tabs a.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: .5rem .9rem; border: 0 !important; border-radius: var(--tf-r-sm);
  color: var(--tf-text); font-weight: 600; font-size: .92rem; white-space: nowrap; background: transparent; margin: 0;
}
.tf-dash .tabs-box ul.nav.nav-tabs a.nav-link:hover { background: var(--tf-blue-50); color: var(--tf-blue-700); border: 0; }
.tf-dash .tabs-box ul.nav.nav-tabs li.nav-item.active a.nav-link { background: var(--tf-blue-500); color: #fff; box-shadow: 0 4px 12px rgba(43, 99, 208, .25); }

/* Mobile: sidebar becomes a compact header + horizontally scrollable tab bar */
@media (max-width: 991.98px) {
  .tf-dash .left-sidebar.tf-dash-card { position: static; padding: .75rem; margin-bottom: 1rem; }
  .tf-dash .left-sidebar h2.tf-dash-title { display: none; }
  .tf-dash .profile-box { padding: .25rem .25rem .75rem; margin-bottom: .6rem; }
  .tf-dash .profile-pic-img img { width: 44px; height: 44px; }
  .tf-dash-nav .nav-tabs, .tf-dash .tabs-box ul.nav.nav-tabs.myac {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    scrollbar-width: thin; gap: 6px;
  }
  .tf-dash-nav .nav-tabs { padding-bottom: 2px; }
  .tf-dash-nav .nav-tabs .nav-item, .tf-dash .tabs-box ul.nav.nav-tabs li.nav-item { width: auto !important; flex: 0 0 auto; scroll-snap-align: start; }
  .tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link { border: 1px solid var(--tf-line) !important; min-height: 42px; padding: .5rem .8rem; font-size: .9rem; }
  .tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active { border-color: var(--tf-blue-500) !important; background: var(--tf-blue-500) !important; color: #fff; }
  .tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active .fa { color: #fff; }
  .tf-dash .left-sidebar .tf-dash-nav ul.nav.nav-tabs li a.nav-link.active::before { display: none; }
  .tf-dash-nav .tf-dash-logout { margin: 0 !important; padding: 0; border: 0; }
}

/* ---------- Tables ---------- */
.tf-dash .tf-table-wrap { margin-bottom: .5rem; }
.tf-dash .tf-table-wrap .table { font-size: .93rem; }
.tf-dash .tf-table-wrap .table thead tr.active th { background: var(--tf-line-2); }
.tf-dash .tf-table-wrap td { overflow-wrap: anywhere; }
.tf-dash .tf-td-img img { width: auto !important; max-width: 110px; max-height: 80px; object-fit: cover; border-radius: var(--tf-r-sm); border: 1px solid var(--tf-line); background: #fff; }
.tf-dash .tf-td-actions { white-space: nowrap; }
.tf-dash .tf-td-actions .btn { min-width: 36px; min-height: 36px; padding: .35rem .6rem; margin: 2px 0; }
.tf-dash .label { display: inline-flex; align-items: center; padding: .25em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.tf-dash .label-success { background: var(--tf-success-50); color: var(--tf-success); }
.tf-dash .label-danger { background: var(--tf-danger-50); color: var(--tf-danger); }
.tf-dash td.tf-empty { text-align: center; padding: 2.5rem 1rem !important; color: var(--tf-muted); font-weight: 600; }
.tf-dash td.tf-empty::before { content: "\f115"; font-family: FontAwesome; display: block; font-size: 2rem; color: var(--tf-blue-200); margin-bottom: .4rem; font-weight: normal; }
.tf-dash .noprint .col-sm-12 { display: none; }
.tf-dash .noprint .col-sm-8 { flex: 0 0 100%; max-width: 100%; }
.tf-dash .dataTables_paginate { float: none !important; display: flex; justify-content: center; }

@media (max-width: 767.98px) {
  .tf-dash .tf-table-stack { overflow: visible; border: 0; background: transparent; }
  .tf-dash .tf-table-stack table, .tf-dash .tf-table-stack tbody, .tf-dash .tf-table-stack tr, .tf-dash .tf-table-stack td { display: block; width: 100% !important; }
  .tf-dash .tf-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tf-dash .tf-table-stack tbody tr { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); margin-bottom: .75rem; padding: .35rem .9rem; }
  .tf-dash .tf-table-stack tbody tr:hover { background: #fff; }
  .tf-dash .tf-table-stack td { border: 0 !important; border-bottom: 1px solid var(--tf-line-2) !important; padding: .6rem 0 !important; display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: .75rem; align-items: start; text-align: left; }
  .tf-dash .tf-table-stack td:last-child { border-bottom: 0 !important; }
  .tf-dash .tf-table-stack td[data-label]::before { content: attr(data-label); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tf-muted); padding-top: .15rem; }
  .tf-dash .tf-table-stack td.tf-td-actions { white-space: normal; }
  .tf-dash .tf-table-stack td.tf-empty { display: block; }
}

/* ---------- Empty states (existing headings) ---------- */
.tf-dash-main > h4, .tf-dash-main .jumbotron > h4 {
  background: #fff; border: 1px dashed var(--tf-blue-200); border-radius: var(--tf-r); padding: 2.5rem 1.25rem; text-align: center;
  color: var(--tf-muted); font-size: 1.05rem !important; font-weight: 600; margin: 0;
}
.tf-dash-main > h4::before, .tf-dash-main .jumbotron > h4::before { content: "\f0f6"; font-family: FontAwesome; display: block; font-size: 2.1rem; color: var(--tf-blue-200); margin-bottom: .5rem; font-weight: normal; }

/* ---------- My reviews (review cards) ---------- */
.tf-dash-main.acnt > .card { padding: 0 !important; background: transparent; border: 0; box-shadow: none; }
.tf-dash .jumbotron { background: transparent !important; padding: 0; margin: 0; }
.tf-dash .jumbotron .col-md-12.p-0 { padding: 0 !important; margin-bottom: .85rem; }
.tf-dash .card.mycontac-review { padding: 1.15rem 1.25rem; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); transition: box-shadow .2s ease, border-color .2s ease; }
.tf-dash .card.mycontac-review:hover { box-shadow: var(--tf-shadow); border-color: var(--tf-blue-200); }
.tf-dash .card.mycontac-review .row { margin: 0; }
.tf-dash .card.mycontac-review .row > [class*="col-"] { padding: 0; }
.tf-dash .card.mycontac-review .nametitle { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; padding-right: 9rem; }
.tf-dash .card.mycontac-review .user-icon-rotated { flex: 0 0 auto; margin: 6px; width: 40px; height: 40px; padding: 7px; }
.tf-dash .card.mycontac-review .user-icon-rotated:before { width: 40px; height: 40px; }
.tf-dash .card.mycontac-review .compnytext p { margin: 0; color: var(--tf-text); }
.tf-dash .card.mycontac-review .compnytext a { font-weight: 700; font-size: 1.02rem; }
.tf-dash .card.mycontac-review p.text-warning { position: absolute; top: 1.15rem; right: 1.25rem; margin: 0; white-space: nowrap; }
.tf-dash .card.mycontac-review p.text-warning .fa-star { color: var(--tf-star); }
.tf-dash .card.mycontac-review .text-pera h3 { font-size: 1rem !important; color: var(--tf-ink); margin: .25rem 0; }
.tf-dash .card.mycontac-review .text-pera p { color: var(--tf-text); }
@media (max-width: 575.98px) {
  .tf-dash .card.mycontac-review .nametitle { padding-right: 0; }
  .tf-dash .card.mycontac-review p.text-warning { position: static; margin: 0 0 .35rem; }
}

/* ---------- Business / wishlist cards ---------- */
.tf-dash-filter { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); padding: 1rem 1rem .25rem; margin-bottom: 1.25rem; }
.tf-dash-filter .row > [class*="col-"] { margin-bottom: .75rem; }
.tf-dash-filter .search-label { display: block; font-size: .85rem; }
.tf-dash-filter .col-md-4:last-child { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.tf-dash-filter .col-md-4:last-child .search-label-btn { flex: 0 0 100%; margin: 0; }
.tf-dash-filter .btn { min-height: 46px; flex: 1 1 auto; }
.tf-dash-filter a.btn.btnblue2 { background: #fff; border-color: var(--tf-line); color: var(--tf-ink); }
.tf-dash-filter a.btn.btnblue2:hover { background: var(--tf-blue-50); color: var(--tf-blue-700); }
@media (max-width: 767.98px) { .tf-dash-filter .col-md-4:last-child .search-label-btn { display: none; } }

.tf-dash .myacompany-card-box { margin: 0 0 1rem; }
.tf-dash .myacompany-card-box .card.card-absolute { position: relative; display: flex; flex-direction: column; border: 1px solid var(--tf-line); border-radius: var(--tf-r); box-shadow: var(--tf-shadow-sm); transition: box-shadow .2s ease, border-color .2s ease; padding: 0 !important; }
.tf-dash .myacompany-card-box .card.card-absolute:hover { box-shadow: var(--tf-shadow); border-color: var(--tf-blue-200); }
.tf-dash .myacompany-card-box .rowoverflow-hidden { display: flex; align-items: stretch; }
.tf-dash .myacompany-card-box .rowoverflow-hidden .item-card9-img { flex: 0 0 170px; width: 170px; position: relative; top: 0; height: auto; background: var(--tf-line-2); border-right: 1px solid var(--tf-line-2); }
.tf-dash .myacompany-card-box .item-card9-imgs { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 140px; padding: 12px; }
.tf-dash .myacompany-card-box .item-card9-imgs img { max-width: 100%; max-height: 130px; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.tf-dash .myacompany-card-box .card.border-0.mb-0 { flex: 1 1 auto; width: auto; min-width: 0; border: 0 !important; box-shadow: none; background: transparent; }
.tf-dash .myacompany-card-box .card-body { padding: 1rem 1.15rem !important; }
.tf-dash .myacompany-card-box .item-card9 h4, .tf-dash .myacompany-card-box .item-card9 h2 { font-size: 1.12rem !important; font-weight: 700; color: var(--tf-ink); margin: 0 0 .35rem !important; padding-right: 8.5rem; line-height: 1.3; }
.tf-dash .myacompany-card-box .item-card9 h4 i.fa-ban { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--tf-danger-50); vertical-align: middle; }
.tf-dash .myacompany-card-box .item-card9 h4 i.fa-ban.text-warning { background: #fff7e6; }
.tf-dash .myacompany-card-box .edit-buttons-absolute { position: absolute; top: 12px; right: 12px; bottom: auto; display: flex; gap: 6px; z-index: 5; }
.tf-dash .myacompany-card-box .edit-buttons-absolute .btn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; box-shadow: var(--tf-shadow-sm); }
.tf-dash .myacompany-card-box .edit-buttons-absolute .btn-secondary { background: var(--tf-navy-2); border-color: var(--tf-navy-2); }
.tf-dash .myacompany-card-box a { font-size: .9rem; }
.tf-dash .myacompany-card-box .item-card9 > a.text-dark { font-size: inherit; }
.tf-dash .myacompany-card-box h6.text-dark.font-weight-normal { font-size: .88rem !important; margin: 0 !important; color: var(--tf-text) !important; }
.tf-dash .myacompany-card-box .cat-lc, .tf-dash .myacompany-card-box .nmbr-dr, .tf-dash .myacompany-card-box .ratingbx { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .45rem; }
.tf-dash .myacompany-card-box .dvd-line { color: var(--tf-line); }
.tf-dash .myacompany-card-box .btn.mke { min-height: 32px; padding: .2rem .75rem; border-radius: 999px; background: var(--tf-orange-50); border: 1px solid #fbd7b1; }
.tf-dash .myacompany-card-box .btn.mke a { color: var(--tf-orange-600); font-weight: 700; font-size: .82rem; }
.tf-dash .myacompany-card-box .ratingbx { font-size: .88rem; color: var(--tf-muted); }
.tf-dash .myacompany-card-box .ratingbx .reviews { display: flex; align-items: center; gap: .5rem; }
.tf-dash .myacompany-card-box .stargroup .fa-star { color: #d5dbe6; }
.tf-dash .myacompany-card-box .stargroup .fa-star.is--active { color: var(--tf-star); }
.tf-dash .myacompany-card-box .card-footer { background: var(--tf-line-2); border-top: 1px solid var(--tf-line); font-size: .85rem; border-radius: 0 0 var(--tf-r) var(--tf-r); }
.tf-dash .myacompany-card-box .card-footer .row { gap: .35rem 0; }
.tf-dash .myacompany-card-box .card-footer a { color: var(--tf-muted); font-size: .85rem; }
.tf-dash .myacompany-card-box .rating-star { color: #d5dbe6; }
.tf-dash .myacompany-card-box .rating-star.is--active { color: var(--tf-star); }
@media (max-width: 575.98px) {
  .tf-dash .myacompany-card-box .rowoverflow-hidden { flex-direction: column; }
  .tf-dash .myacompany-card-box .rowoverflow-hidden .item-card9-img { flex: 0 0 auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--tf-line-2); }
  .tf-dash .myacompany-card-box .item-card9-imgs { min-height: 120px; }
  .tf-dash .myacompany-card-box .item-card9 h4, .tf-dash .myacompany-card-box .item-card9 h2 { padding-right: 0; }
  .tf-dash .myacompany-card-box .card-footer .col, .tf-dash .myacompany-card-box .card-footer .col-auto { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Opening hours ---------- */
.tf-hours-head { margin-bottom: .75rem; }
.tf-check-lg { padding: .65rem 1rem; border: 1px solid var(--tf-blue-100); border-radius: var(--tf-r-sm); background: var(--tf-blue-50); color: var(--tf-blue-700) !important; font-weight: 700 !important; font-size: 1rem !important; }
.tf-hours-row { align-items: flex-end; padding: .75rem 0; border-bottom: 1px solid var(--tf-line-2); margin-left: -15px; margin-right: -15px; }
.tf-hours-row:last-of-type { border-bottom: 0; }
.tf-hours-row .form-group { margin-bottom: 0; }
.tf-hours-row .tf-day-name { display: block; width: 100%; font-size: 1rem !important; font-weight: 700; color: var(--tf-ink); margin-bottom: .2rem; }
.tf-hours-row .tf-check { font-size: .9rem; }
.tf-hours-row label[for$="OpeningHours"]:not(.tf-day-name), .tf-hours-row label[for$="ClosedHours"] { font-size: .8rem; color: var(--tf-muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 767.98px) {
  .tf-hours-row > [class*="col-"] { margin-bottom: .6rem; }
  .tf-hours-row > [class*="col-"]:last-child { margin-bottom: 0; }
}

/* ---------- Highlights rows ---------- */
.tf-hl > .row:first-child .form-group { margin-bottom: .35rem; }
.tf-hl [id^="maindivc_"] { align-items: flex-start; }
.tf-hl [id^="maindivc_"] .form-group { margin-bottom: .6rem; }
.tf-hl [id^="maindivc_"] .form-control-sm { min-height: 44px; }
.tf-hl [id^="maindivc_"] > .col-md-6 { flex: 1 1 auto; max-width: none; width: auto; }
.tf-hl [id^="maindivc_"] > .col-md-1 { flex: 0 0 auto; max-width: none; width: auto; padding-left: 0; }
.tf-dash .icnpm { display: inline-flex; }
.tf-dash .icnpm a { display: inline-flex; }
.tf-dash .icnpm i.btn.fa { font-family: FontAwesome !important; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--tf-r-sm); font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 767.98px) {
  .tf-hl [id^="maindivc_"] { flex-wrap: nowrap; }
}

/* ---------- Gallery upload (Dropzone) ---------- */
.tf-upload-hint { display: flex; align-items: center; gap: .6rem; color: var(--tf-muted); font-size: .92rem; margin: 0 0 1rem; }
.tf-upload-hint .fa { font-size: 1.4rem; color: var(--tf-blue-500); }
.tf-dash .tf-upload-card .box, .tf-dash .tf-upload-card .content { padding: 0; margin: 0; border: 0; background: transparent; }
.tf-dash form.dropzone {
  min-height: 240px; border: 2px dashed var(--tf-blue-200) !important; border-radius: var(--tf-r); background: var(--tf-blue-50) !important;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 1.5rem !important; transition: border-color .15s ease, background-color .15s ease; cursor: pointer;
}
.tf-dash form.dropzone:hover, .tf-dash form.dropzone.dz-drag-hover { border-color: var(--tf-blue-500) !important; background: var(--tf-blue-100) !important; }
.tf-dash form.dropzone .dz-message { flex: 0 0 100%; margin: 0; text-align: center; color: var(--tf-blue-700); font-weight: 700; font-size: 1.05rem; }
.tf-dash form.dropzone .dz-message::before { content: "\f0ee"; font-family: FontAwesome; display: block; font-size: 2.6rem; color: var(--tf-blue-500); margin-bottom: .35rem; font-weight: normal; }
.tf-dash form.dropzone.dz-started .dz-message { display: none; }
.tf-dash form.dropzone .dz-preview { margin: 6px; }
.tf-dash form.dropzone .dz-preview .dz-image { border-radius: var(--tf-r-sm); box-shadow: var(--tf-shadow-sm); }

/* ---------- Submit company ---------- */
.tf-submit { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.tf-submit .tf-form-card { border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow); padding: clamp(1.1rem, 3.5vw, 2rem) !important; }
.tf-submit .tf-form-card > .alert { margin-bottom: 1.25rem; }
.tf-submit .tf-form-actions .btn-block { min-height: 52px; font-size: 1.05rem; }

/* ---------- Blog form helpers ---------- */
.tf-slug-link { float: right; display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--tf-orange-600) !important; }
.tf-slug-link:hover { color: var(--tf-orange) !important; }

/* legacy app.css sizes inputs inline-block/auto: restore full-width controls in account scopes */
.tf-auth .form-control, .tf-dash .form-control, .tf-submit .form-control { display: block; width: 100%; max-width: 100%; }
.titlebox-top.tf-auth-banner { position: relative; z-index: 0; }
.container.tf-auth { z-index: 5; }
.tf-dash .myacompany-card-box { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.tf-dash .myacompany-card-box .card.card-absolute { background: #fff !important; }
.tf-dash .tabs-box ul.nav.nav-tabs.myac { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (min-width: 992px) and (max-width: 1199.98px) { .tf-dash .tabs-box ul.nav.nav-tabs a.nav-link { padding: .5rem .65rem; font-size: .88rem; } }
@media (min-width: 992px) { .tf-dash .tabs-box ul.nav.nav-tabs a.nav-link { padding: .5rem .7rem; font-size: .88rem; } }
/* opening-hours select2 (admin-panel select2.css is loaded later in the footer) */
.tf-dash .tf-hours-row .select2-container .select2-selection--single { height: 46px !important; min-height: 46px; border: 1px solid var(--tf-line) !important; border-radius: var(--tf-r-sm) !important; background: #fff !important; background-image: none !important; padding: 8px 6px !important; }
.tf-dash .tf-hours-row .select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; color: var(--tf-ink); }
.tf-dash .tf-hours-row .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; top: 0; border: 0 !important; background: transparent !important; background-image: none !important; }
.tf-dash .tf-hours-row .select2-container .select2-choice { height: 46px; line-height: 44px; border: 1px solid var(--tf-line); border-radius: var(--tf-r-sm); background: #fff; background-image: none; box-shadow: none; padding-left: .85rem; color: var(--tf-ink); }
.tf-dash .tf-hours-row .select2-container .select2-choice .select2-arrow { border: 0; background: transparent; background-image: none; width: 28px; }
.tf-dash .tf-hours-row .select2-container .select2-choice .select2-arrow b { background-position: 0 9px; }
.tf-dash .tf-hours-row .select2-container-active .select2-choice, .tf-dash .tf-hours-row .select2-dropdown-open .select2-choice { border-color: var(--tf-blue-500); box-shadow: var(--tf-focus); }
.tf-dash .tf-hours-row .select2-container .select2-choice .select2-arrow b { background: none !important; display: flex; align-items: center; justify-content: center; height: 100%; }
.tf-dash .tf-hours-row .select2-container .select2-choice .select2-arrow b::after { content: "\f107"; font-family: FontAwesome; color: var(--tf-muted); font-size: 1rem; }
@media (max-width: 767.98px) {
  .tf-dash .tf-table-stack td.tf-td-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .tf-dash .tf-table-stack td.tf-td-actions::before { flex: 0 0 calc(34% - .5rem); min-width: 84px; }
  .tf-dash .tf-table-stack td.tf-td-actions .btn { width: 44px; min-height: 40px; }
}
@media (max-width: 767.98px) { .tf-dash .tf-table-stack tbody tr:has(> td.tf-empty) { border-style: dashed; box-shadow: none; } }
