/* Back-office overrides on top of Flatkit */

/* Header user menu: name and caret stay on one line */
.user-menu-toggle { display: flex !important; align-items: center; white-space: nowrap; }
.user-menu-toggle .user-menu-name { margin: 0 .35rem 0 .5rem; }
.user-menu-toggle .fa-caret-down { margin-left: .1rem; }

/* Brand logo */
.brand-logo { display: flex !important; align-items: center; gap: .5rem; max-width: 100%; overflow: hidden; white-space: nowrap; }
.app-aside .navbar { overflow: hidden; }
.brand-logo img { max-height: 32px; max-width: 150px; width: auto; display: block; }
.folded .brand-logo .brand-name { display: none; }
.auth-brand { justify-content: center; }
.auth-brand .brand-logo { float: none; margin: 0 auto; }
.auth-brand .brand-logo img { max-height: 72px; max-width: 220px; }
.auth-brand .brand-name { font-size: 1.25rem; }

/* Theme settings now live inside the profile page, not a fixed floating panel */
.switcher.theme-card { position: static !important; width: auto !important; right: auto !important; top: auto !important;
  box-shadow: none !important; background: transparent !important; margin: 0 !important; }

/* Whole-row click targets */
tr[data-href], tr[data-click] { cursor: pointer; }
tr[data-href]:hover > td, tr[data-click]:hover > td { background-color: rgba(0, 0, 0, .035); }

/* Nested sidebar sub-menus (site > Invoices > Customers ...) */
.nav-sub .nav-sub { padding-left: .85rem; }
.nav-sub .nav-sub > li > a { font-size: .92em; }

/* Invoice editor */
.line-table td { vertical-align: top; }
.line-table .form-control { min-width: 0; }
.note-block .save-default { font-size: .85em; color: #777; }
.totals-box td { padding: .25rem .5rem; }

/* Buttons inside dropdown menus (forms) look like normal items */
.dropdown-menu .action-btn { background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown-menu .action-btn:hover { background-color: rgba(0, 0, 0, .05); }
.dropdown-menu form { margin: 0; }
/* Let the last rows' dropdowns open without being clipped by the scrolling table wrapper */
.table-responsive.has-actions { padding-bottom: 140px; margin-bottom: -140px; }

input.has-error { border-color: #e4606d; background: #fff5f5; }

/* Team access picker: a service with only some pages ticked shows a grey box with a dash.
   (A fully ticked service keeps the normal coloured tick.) */
.md-check input.service-master.partial + i:before { border-width: 0; background-color: #9aa0a6; }
.md-check input.service-master.partial + i:after { content: ' '; position: absolute; left: 4px; top: 8px; display: table; width: 10px; height: 2px; background: #fff; }
.md-check input.service-master.partial[disabled] + i:before { opacity: .5; }

/* OP Admin brand */
.brand-op { display: inline-flex; align-items: center; padding: 0 !important; }
.brand-op img.brand-mark { width: 32px; height: 32px; display: block; flex: none; }
.brand-op .brand-name { margin-left: 10px; font-size: 20px; font-weight: 700; line-height: 1; color: #1b2b3a; }
.brand-op-light .brand-name { color: #fff; }
.auth-brand .brand-op { justify-content: center; }
.auth-brand .brand-op img.brand-mark { width: 40px; height: 40px; }

/* Hide the up/down spinners on every number input */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0; }
input[type=number] { -moz-appearance: textfield !important; appearance: textfield !important; }

/* Private note: visibly separate from customer-facing text */
.private-note-box { border-left: 4px solid #f5a623; background: #fffaf0; }
