/*
 * ============================================================
 *  Skillsys Theme - Sidebar Layout for Perfex CRM Client Portal
 *  Version: 1.0.0
 *  Design: Fixed sidebar + sticky header layout
 *  Color System: Slate (Tailwind-inspired)
 *  Primary: #3b82f6 (Blue-500)
 * ============================================================
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --sidebar-width: 260px;
  --header-height: 64px;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --success: #22c55e;
  --success-hover: #16a34a;
  --success-light: #dcfce7;
  --success-dark: #166534;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fef2f2;
  --danger-dark: #991b1b;
  --warning: #f97316;
  --warning-hover: #ea580c;
  --warning-light: #fff7ed;
  --warning-dark: #9a3412;
  --info: #06b6d4;
  --info-hover: #0891b2;
  --info-light: #eff6ff;
  --info-dark: #1e40af;
  --purple: #a855f7;
  --purple-light: #f3e8ff;
  --sidebar-bg: #0f172a;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-text: rgba(255, 255, 255, 0.6);
  --sidebar-text-hover: rgba(255, 255, 255, 0.85);
  --sidebar-active-bg: rgba(255, 255, 255, 0.08);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
  --body-bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-lighter: #475569;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition: 150ms ease;
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-secondary);
  background: var(--body-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
html {
  font-size: 16px;
  overflow-x: hidden;
}

body > * {
  font-size: 14px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-moz-selection {
  background: var(--primary);
  color: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-primary);
}

h1,
h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

.h4,
h4,
.h3,
h3 {
  font-weight: 600;
}

b,
strong {
  font-weight: 600;
}

h5 {
  font-size: 13px;
  font-weight: 600;
}

img {
  max-width: 100%;
}

/* ============================================================
   3. SIDEBAR LAYOUT STRUCTURE
   ============================================================ */

/* --- Layout wrapper --- */
.skillsys-layout {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- Sidebar --- */
.skillsys-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 300ms ease;
}

.skillsys-sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.skillsys-sidebar-logo img {
  max-height: 34px;
  width: auto;
}

.skillsys-sidebar-logo .logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.skillsys-sidebar-logo .logo-text:hover,
.skillsys-sidebar-logo .logo-text:focus {
  color: #fff;
  text-decoration: none;
}

/* Sidebar Navigation */
.skillsys-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
}

.sidebar-nav-section {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin: 2px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
  text-decoration: none;
}

.sidebar-nav-item.active {
  background: var(--sidebar-active-bg);
  color: #fff;
  border-left-color: var(--primary);
}

.sidebar-nav-item i,
.sidebar-nav-item .fa,
.sidebar-nav-item .menu-icon {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  text-align: center;
}

/* Sidebar Profile Section */
.sidebar-profile {
  border-top: 1px solid var(--sidebar-border);
  padding: 16px 20px;
  flex-shrink: 0;
  position: relative;
}

.sidebar-profile-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.sidebar-profile-toggle:hover {
  background: var(--sidebar-hover-bg);
}

.sidebar-profile-chevron {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.sidebar-profile-toggle.active .sidebar-profile-chevron {
  transform: rotate(180deg);
}

.sidebar-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-profile-info {
  flex: 1;
  min-width: 0;
}

.sidebar-profile-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-dropdown {
  position: absolute;
  top: auto;
  bottom: 100%;
  left: 12px;
  right: 12px;
  background: #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 8px;
  margin-bottom: 8px;
  display: none;
  z-index: 1040;
  float: none;
  min-width: 0;
  list-style: none;
  margin: 0 0 8px 0;
}

.sidebar-profile-dropdown > li > a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-profile-dropdown > li > a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.sidebar-profile-dropdown > li > a i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
}

.sidebar-profile-dropdown.open {
  display: block;
}

.sidebar-profile-dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.sidebar-profile-dropdown a i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
}

.sidebar-profile-dropdown .dropdown-submenu {
  position: relative;
  float: none !important;
}

.sidebar-profile-dropdown .dropdown-submenu > .dropdown-menu {
  position: static;
  display: none;
  float: none;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
  min-width: 0;
  margin: 4px 0 4px 20px;
  padding: 4px 0;
}

.sidebar-profile-dropdown .dropdown-submenu:hover > .dropdown-menu,
.sidebar-profile-dropdown .dropdown-submenu.open > .dropdown-menu {
  display: block;
}

.sidebar-profile-dropdown .dropdown-submenu > .dropdown-menu > li > a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.sidebar-profile-dropdown .dropdown-submenu > .dropdown-menu > li > a:hover,
.sidebar-profile-dropdown .dropdown-submenu > .dropdown-menu > li.active > a {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-profile-dropdown .divider {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

/* Sidebar Scrollbar */
.skillsys-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.skillsys-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.skillsys-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.skillsys-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Main Content Area --- */
.skillsys-content-wrapper {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}

#wrapper {
  flex: 1;
}

/* --- Sidebar Overlay (Mobile) --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1020;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================================
   4. TOP HEADER
   ============================================================ */
.skillsys-header {
  position: sticky;
  top: 0;
  z-index: 1010;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.skillsys-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skillsys-header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.skillsys-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.skillsys-header-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.skillsys-header-breadcrumb a:hover {
  color: var(--primary);
}

.skillsys-header-breadcrumb .separator {
  color: var(--text-light);
}

.skillsys-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.header-quick-link span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header-quick-link:hover {
  background: var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
}

.header-quick-link .badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Sidebar Toggle Button (mobile) */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-toggle:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* ============================================================
   5. NAVBAR (Legacy Bootstrap Navbar - integrated into sidebar)
   ============================================================ */
.navbar {
  padding: 0;
  min-height: 60px;
  border-radius: 0;
  margin-bottom: 0;
}

.navbar-default {
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.navbar-default .navbar-nav > li > a {
  color: var(--text-secondary);
  line-height: 60px;
  font-size: 14px;
  display: inline-block;
  margin-right: 3px;
  font-weight: 500;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.navbar-default .navbar-nav > li > a i {
  margin-right: 5px;
  color: inherit;
}

.navbar-default .navbar-nav > li:last-child > a {
  margin-right: 0;
}

@media (min-width: 768px) {
  .navbar-nav > li > a {
    padding: 8px 12px;
  }
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  background: var(--border-light);
}

.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition);
}

.navbar-default .navbar-nav > li.dropdown > a.dropdown-toggle:focus,
.navbar-default .navbar-nav > li.dropdown > a.dropdown-toggle:hover {
  background: transparent;
  border-radius: 0;
}

.navbar a.navbar-brand {
  padding: 13px 0 15px 0;
  height: auto;
  margin-right: 10px;
  margin-left: 0;
}

.navbar a.navbar-brand img {
  width: auto;
  height: 34px;
}

.navbar-default .navbar-nav > li.customers-nav-item-login > a {
  background: var(--primary) !important;
  color: #fff !important;
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md) !important;
  padding: 8px 20px;
  margin-left: 10px;
  line-height: 24px;
}

.navbar-default .navbar-nav > li.customers-nav-item-login > a:hover,
.navbar-default .navbar-nav > li.customers-nav-item-login > a:active {
  background: var(--primary-hover) !important;
  border-radius: var(--radius-md) !important;
}

.navbar-default .navbar-nav > li.customers-nav-item-profile > a {
  padding-right: 0;
}

.navbar-default .navbar-brand.logo-text {
  font-size: 22px;
  margin-top: 12px;
  display: inline-block;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text:hover,
.logo-text:focus,
.logo-text:active {
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: var(--border);
}

.navbar-default .navbar-toggle {
  border-color: transparent;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--text-light);
}

.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover {
  background-color: transparent;
}

/* ============================================================
   6. CONTENT AREA
   ============================================================ */
#content {
  padding: 24px 32px;
  max-width: 100%;
  overflow: hidden;
}

/* Hide duplicate page titles - header already shows the title */
.skillsys-layout .section-heading,
.section-heading-project {
  display: none !important;
}

footer {
  background: var(--surface) !important;
  padding: 24px 32px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 60px !important;
  margin-top: 40px !important;
  border-top: 1px solid var(--border-light) !important;
  color: var(--text-muted) !important;
  font-size: 13px !important;
  text-align: center !important;
}

/* ============================================================
   7. CUSTOMER TOP SUBMENU (moved into sidebar/header)
   ============================================================ */
.customer-top-submenu,
.submenu {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.customer-top-submenu li,
.submenu li {
  display: inline-block;
  margin-right: 0;
}

.customer-top-submenu li:last-child,
.submenu li:last-child {
  margin-right: 0;
}

.customer-top-submenu li a,
.submenu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-lighter) !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.customer-top-submenu li a:hover,
.customer-top-submenu li a:active,
.customer-top-submenu li a:focus,
.submenu li a:hover,
.submenu li a:active,
.submenu li a:focus {
  background: var(--border-light);
  color: var(--text-primary) !important;
  text-decoration: none;
}

.customer-top-submenu li.active a,
.submenu li.active a {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

/* ============================================================
   8. CARDS & PANELS
   ============================================================ */
.panel_s,
.card-skillsys,
.panel-default {
  background: var(--surface) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-sm) !important;
  border: none !important;
  margin-bottom: 20px;
}

.panel-body {
  padding: 24px !important;
}

.panel-heading {
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--border-light) !important;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  background: transparent !important;
}

.panel-heading .panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-footer {
  padding: 16px 24px !important;
  background: var(--border-light) !important;
  border-top: 1px solid var(--border-light) !important;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
}

/* ============================================================
   9. STAT CARDS
   ============================================================ */
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-card-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-card-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-card-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-card-icon.purple {
  background: var(--purple-light);
  color: var(--purple);
}

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  border-radius: var(--radius-md) !important;
  font-weight: 500 !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  transition: all var(--transition) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.btn:focus,
.btn:active:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

.btn-default {
  background: var(--border-light) !important;
  color: var(--text-lighter) !important;
  border: 1px solid var(--border) !important;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background: var(--border) !important;
  color: var(--text-primary) !important;
}

.btn-success {
  background: var(--success) !important;
  color: #fff !important;
  border: none !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background: var(--success-hover) !important;
  color: #fff !important;
}

.btn-danger {
  background: var(--danger) !important;
  color: #fff !important;
  border: none !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background: var(--danger-hover) !important;
  color: #fff !important;
}

.btn-warning {
  background: var(--warning) !important;
  color: #fff !important;
  border: none !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background: var(--warning-hover) !important;
  color: #fff !important;
}

.btn-info {
  background: var(--info) !important;
  color: #fff !important;
  border: none !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background: var(--info-hover) !important;
  color: #fff !important;
}

.btn-pill {
  border-radius: var(--radius-pill) !important;
}

.btn-lg {
  padding: 12px 28px !important;
  font-size: 16px !important;
  border-radius: var(--radius-lg) !important;
}

.btn-sm {
  padding: 5px 14px !important;
  font-size: 13px !important;
}

.btn-xs {
  padding: 3px 10px !important;
  font-size: 12px !important;
}

.btn.btn-input-group {
  padding: 7px 16px;
  border: 1px solid transparent;
}

.btn-icon {
  padding: 2px 6px !important;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.original-button {
  margin-top: 22px;
  padding: 6px 12px;
}

/* ============================================================
   11. FORM CONTROLS
   ============================================================ */
.form-control {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  height: 44px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  background: var(--surface) !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

.form-control::-webkit-input-placeholder {
  color: var(--text-light);
}

.form-control::-moz-placeholder {
  color: var(--text-light);
}

.form-control:-ms-input-placeholder {
  color: var(--text-light);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  height: auto !important;
  min-height: 100px !important;
  resize: vertical !important;
}

select.form-control {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}

label,
.control-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-lighter) !important;
  margin-bottom: 6px !important;
}

.form-group {
  margin-bottom: 16px !important;
}

.input-group .form-control {
  border-radius: var(--radius-md) !important;
}

.input-group .form-control:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group .form-control:last-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group-addon {
  border: 1px solid var(--border) !important;
  background: var(--border-light) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-md) !important;
  padding: 8px 14px !important;
}

.input-group-addon:first-child {
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group-addon:last-child {
  border-left: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group-btn {
  position: relative !important;
  white-space: nowrap !important;
  font-size: 0 !important;
}

.input-group-btn > .btn {
  position: relative !important;
  border-radius: 0 !important;
}

.input-group-btn:first-child > .btn {
  border-top-left-radius: var(--radius-md) !important;
  border-bottom-left-radius: var(--radius-md) !important;
  margin-right: -1px !important;
}

.input-group-btn:last-child > .btn {
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-right-radius: var(--radius-md) !important;
  margin-left: -1px !important;
}

.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}

.has-error .form-control {
  border-color: var(--danger) !important;
}

.has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.has-success .form-control {
  border-color: var(--success) !important;
}

.help-block {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

.has-error .help-block {
  color: var(--danger) !important;
}

.checkbox label,
.radio label {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* ============================================================
   12. BOOTSTRAP SELECT OVERRIDES
   ============================================================ */
.bootstrap-select .dropdown-toggle {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  height: 44px !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
  padding: 8px 16px !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  box-shadow: none !important;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select.open .dropdown-toggle {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

.bootstrap-select .dropdown-menu {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  padding: 6px !important;
  margin-top: 4px;
}

.bootstrap-select .dropdown-menu li a {
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  transition: all var(--transition) !important;
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li a:focus {
  background: var(--border-light) !important;
  color: var(--text-primary);
}

.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

.bootstrap-select .dropdown-menu .divider {
  margin: 4px 0;
  background: var(--border-light);
}

.bootstrap-select .bs-searchbox .form-control {
  border-radius: var(--radius-sm);
  height: 38px;
  font-size: 13px;
}

[dir="rtl"] .bootstrap-select .dropdown-toggle .filter-option {
  right: 0;
  margin-right: auto;
  text-align: right;
  padding-right: 16px;
}

/* ============================================================
   13. TABLES & DATATABLES
   ============================================================ */
.table-responsive {
  background: var(--surface) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
  border: none !important;
}

.table {
  margin-bottom: 0 !important;
  border-collapse: collapse !important;
}

.table > thead > tr > th {
  background: var(--body-bg) !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-top: none !important;
  padding: 14px 16px !important;
  white-space: nowrap !important;
}

.table > tbody > tr > td {
  padding: 14px 16px !important;
  border-top: none !important;
  border-bottom: 1px solid var(--border-light) !important;
  vertical-align: middle !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
}

.table > tbody > tr:last-child > td {
  border-bottom: none !important;
}

.table > tbody > tr:hover > td {
  background: var(--body-bg) !important;
}

/* Remove vertical borders */
.table > thead > tr > th,
.table > tbody > tr > td {
  border-left: none !important;
  border-right: none !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(248, 250, 252, 0.5);
}

.table-bordered {
  border: 1px solid var(--border-light);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border: 1px solid var(--border-light);
}

/* DataTables specific */
.dataTables_wrapper {
  padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  padding: 16px 20px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: 13px;
  color: var(--text-muted);
}

.dataTables_wrapper .dataTables_length select {
  padding: 5px 12px;
  height: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 0 4px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.dataTables_wrapper .dataTables_info {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.dataTables_wrapper .dataTables_paginate {
  padding: 16px 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
  padding: 6px 12px !important;
  margin: 0 2px;
  font-size: 13px;
  transition: all var(--transition);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--border-light) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dataTables_empty {
  padding: 40px !important;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

[dir="rtl"] div.dataTables_wrapper div.dataTables_filter {
  text-align: left;
}

[dir="rtl"] div.dataTables_wrapper {
  direction: rtl;
}

[dir="rtl"] div.dataTables_wrapper div.dataTables_filter .input-group-addon {
  border-right: 1px solid var(--border);
}

/* Items Table */
.table.items {
  margin-top: 25px;
  font-size: 13.5px;
}

.table.items thead {
  background: var(--border-light);
  color: var(--text-primary);
}

.table.items > thead:first-child > tr:first-child > th {
  border-top: 1px solid var(--border);
}

.table.items thead th {
  border-right: 1px solid var(--border);
}

.table.items thead th:first-child {
  border-left: 1px solid var(--border);
}

.table.items tbody > tr > td,
.table.items thead > tr > th {
  padding: 8px 10px;
}

/* Proposal Items Table */
.table.proposal-items thead > tr > th {
  padding-left: 10px;
}

.table.proposal-items tbody > tr > td,
.table.proposal-items thead > tr > th {
  text-align: left;
}

/* ============================================================
   14. STATUS BADGES / LABELS
   ============================================================ */
.label {
  border-radius: var(--radius-pill) !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

.label-success,
.success-bg {
  background: var(--success-light) !important;
  color: var(--success-dark) !important;
  border: none !important;
}

.label-danger,
.danger-bg {
  background: var(--danger-light) !important;
  color: var(--danger-dark) !important;
  border: none !important;
}

.label-warning,
.warning-bg {
  background: var(--warning-light) !important;
  color: var(--warning-dark) !important;
  border: none !important;
}

.label-info,
.info-bg {
  background: var(--info-light) !important;
  color: var(--info-dark) !important;
  border: none !important;
}

.label-primary,
.primary-bg {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
  border: none !important;
}

.label-default {
  background: var(--border-light) !important;
  color: var(--text-lighter) !important;
}

.label-href:visited,
.label-href {
  outline: 0 !important;
  border: 0 !important;
}

/* ============================================================
   15. ALERTS
   ============================================================ */
.alert {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  margin-bottom: 16px !important;
}

.alert-success {
  background: #f0fdf4 !important;
  color: var(--success-dark) !important;
}

.alert-danger {
  background: var(--danger-light) !important;
  color: var(--danger-dark) !important;
}

.alert-warning {
  background: #fffbeb !important;
  color: #92400e !important;
}

.alert-info {
  background: var(--info-light) !important;
  color: var(--info-dark) !important;
}

.alert .close {
  opacity: 0.5 !important;
  text-shadow: none !important;
}

.alert .close:hover {
  opacity: 0.8 !important;
}

.alert-validation {
  margin-top: 5px;
}

body.viewinvoice .alert {
  margin-top: 10px;
  margin-bottom: -7px;
  border-radius: var(--radius-lg);
}

/* ============================================================
   16. MODALS
   ============================================================ */
.modal-content {
  border-radius: var(--radius-xl) !important;
  border: none !important;
  box-shadow: var(--shadow-xl) !important;
  overflow: hidden !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-light) !important;
  padding: 20px 24px !important;
  background: var(--surface) !important;
}

.modal-header .modal-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.modal-header .close {
  font-size: 20px !important;
  opacity: 0.4 !important;
  text-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
}

.modal-header .close:hover {
  opacity: 0.8 !important;
  background: var(--border-light) !important;
}

.modal-body {
  padding: 24px !important;
  background: var(--surface) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-light) !important;
  padding: 16px 24px !important;
  background: var(--surface) !important;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.modal-backdrop.in {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Modal Animation */
.modal.fade .modal-dialog {
  transform: scale(0.95);
  opacity: 0;
  transition: all 200ms ease;
}

.modal.in .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

/* Full Screen Modal */
.full-screen-modal {
  width: 90%;
  height: 90%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow-y: initial !important;
}

.full-screen-modal .modal-content {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}

.full-screen-modal .modal-footer {
  bottom: 0;
  position: absolute;
  width: 100%;
}

/* ============================================================
   17. DROPDOWNS
   ============================================================ */
.dropdown-menu {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  padding: 6px !important;
  margin-top: 4px !important;
  background: var(--surface) !important;
}

.dropdown-menu > li > a {
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--border-light) !important;
  color: var(--text-primary) !important;
}

.dropdown-menu .divider {
  margin: 4px 0 !important;
  background: var(--border-light) !important;
}

/* ============================================================
   18. DROPZONE
   ============================================================ */
form.dropzone {
  border-radius: var(--radius-xl) !important;
  border: 2px dashed #cbd5e1 !important;
  background: var(--body-bg) !important;
  transition: all var(--transition) !important;
  padding: 30px !important;
  text-align: center !important;
  cursor: pointer !important;
}

form.dropzone:hover,
form.dropzone.dz-drag-hover {
  background: var(--info-light) !important;
  border-color: var(--primary) !important;
}

.dropzone .dz-message {
  margin-top: 20px !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
}

.dropzone .dz-message .dz-button {
  background: none !important;
  border: none !important;
  color: var(--primary) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.dropzone .dz-preview {
  border-radius: var(--radius-lg) !important;
}

/* ============================================================
   19. AUTH PAGES (Login, Register, Forgot Password)
   ============================================================ */
body.auth-page {
  background: var(--surface);
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

body.auth-page .skillsys-sidebar {
  display: none;
}

body.auth-page #wrapper {
  margin-left: 0;
  flex: 1;
  display: flex;
}

body.auth-page .skillsys-header {
  display: none;
}

.auth-wrapper {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Hide overflow, navbar, and footer when auth wrapper is present */
body:has(.auth-wrapper) {
  overflow-x: hidden;
}

body:has(.auth-wrapper) #wrapper {
  overflow: hidden;
}

body:has(.auth-wrapper) .navbar.header,
body:has(.auth-wrapper) .skillsys-footer,
body:has(.auth-wrapper) footer {
  display: none;
}

body:has(.auth-wrapper) #wrapper,
body:has(.auth-wrapper) #content,
body:has(.auth-wrapper) #content > .container,
body:has(.auth-wrapper) #content > .container > .row {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.auth-left {
  width: 45%;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-left .auth-logo,
.auth-left .sidebar-brand {
  margin-bottom: 40px;
  display: inline-block;
}

.auth-left .auth-logo img,
.auth-left .sidebar-brand img {
  max-height: 40px;
}

.auth-tagline {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
  max-width: 380px;
}

.auth-right {
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.auth-form-wrapper .form-group {
  margin-bottom: 20px;
}

.auth-form-wrapper label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 14px;
}

/* Input with icon */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon {
  padding-left: 40px !important;
}

/* Remember me + forgot password row */
.auth-form-wrapper .form-group .checkbox {
  display: inline-block;
  margin: 0;
}

.auth-forgot-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  float: right;
  line-height: 20px;
}

.auth-forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Remember me + forgot password row */
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-remember-row .checkbox {
  margin: 0;
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md) !important;
}

/* Register text + link */
.auth-register-text {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-register-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
  font-size: 14px;
}

.auth-register-link:hover {
  text-decoration: underline;
}

/* Back to login link */
.auth-back-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.auth-back-link i {
  margin-right: 4px;
}

/* Register page */
.auth-right-wide {
  width: 60%;
}

.auth-form-wide {
  max-width: 780px;
}

.register-section-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 0;
}

/* ============================================================
   20. KNOWLEDGE BASE
   ============================================================ */
.kb-search-jumbotron {
  margin-top: -20px;
  margin-bottom: 10px;
  background: var(--body-bg);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 40px 20px;
}

.kb-category-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 250ms ease;
  border: 1px solid transparent;
}

.kb-category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-2px);
}

.kb-category-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.kb-category-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.kb-article-content {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text-secondary);
}

.kb-article-content h1,
.kb-article-content h2,
.kb-article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.kb-article-content p {
  margin-bottom: 16px;
}

.kb-article-content img {
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

.has-feedback.has-feedback-left .form-control-feedback {
  left: 0;
}

.kb-search .form-control-feedback {
  left: 6px !important;
  top: 17px;
  font-size: 16px;
}

.kb-search input[type="search"] {
  padding-left: 45px;
  height: 50px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.kb-search button[type="submit"] {
  height: 50px;
  padding-left: 25px;
  padding-right: 25px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-weight: 600;
}

/* ============================================================
   21. TICKETS
   ============================================================ */
.ticket-reply {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.ticket-reply.client-reply {
  background: var(--info-light);
  margin-left: 40px;
}

.ticket-reply.client-reply .panel-body {
  background: transparent !important;
}

.ticket-reply.staff-reply {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-right: 40px;
}

.client-reply .panel-body {
  background: #fefce8 !important;
  color: #854d0e;
}

.ticket-reply .reply-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.ticket-reply .reply-meta img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.ticket-reply .reply-meta .reply-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ticket-reply .reply-content {
  font-size: 14px;
  line-height: 1.6;
}

.ticket-info p:last-child {
  margin-bottom: 0;
}

.tickets table tr.text-danger a {
  color: var(--danger);
}

/* ============================================================
   21B. HORIZONTAL SCROLLABLE TABS
   ============================================================ */
.horizontal-scrollable-tabs {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: var(--surface) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 0 !important;
}

.horizontal-scrollable-tabs .scroller {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--border-light) !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--text-secondary) !important;
  transition: all var(--transition) !important;
  font-size: 18px !important;
}

.horizontal-scrollable-tabs .scroller:hover {
  background: var(--border) !important;
  color: var(--text-primary) !important;
}

.horizontal-scrollable-tabs .scroller.arrow-left {
  border-right: none !important;
}

.horizontal-scrollable-tabs .scroller.arrow-right {
  border-left: none !important;
}

.horizontal-scrollable-tabs .horizontal-tabs {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  border: none !important;
}

.horizontal-scrollable-tabs .horizontal-tabs::-webkit-scrollbar {
  display: none !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal {
  display: flex !important;
  flex-wrap: nowrap !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal > li {
  flex-shrink: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  transition: all var(--transition) !important;
  white-space: nowrap !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal > li > a:hover,
.horizontal-scrollable-tabs .nav-tabs-horizontal > li > a:focus {
  color: var(--text-primary) !important;
  background: var(--border-light) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal > li.active > a,
.horizontal-scrollable-tabs .nav-tabs-horizontal > li.active > a:hover,
.horizontal-scrollable-tabs .nav-tabs-horizontal > li.active > a:focus {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
  border: none !important;
  border-bottom: 3px solid var(--primary) !important;
  font-weight: 600 !important;
}

.horizontal-scrollable-tabs .nav-tabs-horizontal > li > a .menu-icon {
  font-size: 14px !important;
  color: inherit !important;
}

/* Remove any borders from preview-tabs-top and panel-full-width-tabs */
.preview-tabs-top,
.panel-full-width-tabs {
  border: none !important;
}

.preview-tabs-top::before,
.preview-tabs-top::after,
.panel-full-width-tabs::before,
.panel-full-width-tabs::after {
  display: none !important;
}

/* Hide duplicate project overview heading (already shown in tabs) */
.card-skillsys .row.mtop15 > .col-md-6:first-child > h4:first-child {
  display: none !important;
}

/* ============================================================
   22. PROJECTS
   ============================================================ */
.project-tabs,
.nav-tabs.project-tabs {
  border-bottom: none;
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-tabs > li > a,
.nav-tabs.project-tabs > li > a {
  border: none !important;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
  margin: 0;
}

.project-tabs > li > a:hover,
.nav-tabs.project-tabs > li > a:hover {
  color: var(--text-primary);
  background: var(--border-light);
}

.project-tabs > li.active > a,
.project-tabs > li.active > a:focus,
.project-tabs > li.active > a:hover,
.nav-tabs.project-tabs > li.active > a,
.nav-tabs.project-tabs > li.active > a:focus,
.nav-tabs.project-tabs > li.active > a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
}

/* Progress Bars */
.progress {
  border-radius: var(--radius-pill) !important;
  height: 20px !important;
  background: #d1d5db !important;
  box-shadow: none !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.progress-bar {
  border-radius: var(--radius-pill) !important;
  transition: width 500ms ease !important;
  line-height: 20px !important;
  font-size: 12px !important;
}

.progress-bar-success {
  background: var(--success) !important;
}

/* Mini progress bar variant */
.progress.progress-bar-mini {
  height: 12px !important;
  margin-bottom: 0 !important;
}

.progress.progress-bar-mini .progress-bar {
  line-height: 12px !important;
}

.progress-bar-info {
  background: var(--info) !important;
}

.progress-bar-warning {
  background: var(--warning) !important;
}

.progress-bar-danger {
  background: var(--danger) !important;
}

/* Gantt Chart Container */
.gantt-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Project Info */
.project-info-bg {
  background: var(--body-bg) !important;
  color: var(--text-secondary) !important;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 500;
}

/* Project overview label/value pairs */
.col-md-6 > .tw-flex.tw-space-x-4 {
  display: flex !important;
  gap: 16px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.col-md-6 > .tw-flex.tw-space-x-4:last-of-type {
  border-bottom: none !important;
}

.col-md-6 > .tw-flex.tw-space-x-4 p {
  margin: 0 !important;
  font-size: 14px !important;
}

.col-md-6 > .tw-flex.tw-space-x-4 p.bold {
  min-width: 180px !important;
  flex-shrink: 0 !important;
}

/* Project progress card */
.project-info {
  color: var(--text-primary) !important;
  font-size: 14px !important;
}

.project-percent {
  position: absolute;
  font-size: 33px;
  font-weight: 600;
  top: 35%;
  left: 0;
  right: 0;
  color: var(--text-primary);
}

.project-file-image {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-right: 15px;
}

/* Tailwind fallbacks for project overview */
.tw-flex {
  display: flex !important;
}

.tw-items-center {
  align-items: center !important;
}

.tw-justify-between {
  justify-content: space-between !important;
}

.tw-space-x-4 > * + * {
  margin-left: 16px !important;
}

.tw-space-x-2 > * + * {
  margin-left: 8px !important;
}

.-tw-space-x-1 > * + * {
  margin-left: -4px !important;
}

.tw-mb-3 {
  margin-bottom: 12px !important;
}

.tw-mb-2 {
  margin-bottom: 8px !important;
}

.tw-mb-0 {
  margin-bottom: 0 !important;
}

.tw-my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.tw-mt-0 {
  margin-top: 0 !important;
}

.tw-ml-3 {
  margin-left: 12px !important;
}

.tw-mr-1 {
  margin-right: 4px !important;
}

.tw-py-2 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.tw-px-3 {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.tw-rounded-md {
  border-radius: var(--radius-md) !important;
}

.tw-rounded-full {
  border-radius: 50% !important;
}

.tw-border {
  border-width: 1px !important;
  border-style: solid !important;
}

.tw-border-solid {
  border-style: solid !important;
}

.tw-border-neutral-100 {
  border-color: var(--border-light) !important;
}

.tw-bg-neutral-50 {
  background-color: var(--body-bg) !important;
}

.tw-font-semibold {
  font-weight: 600 !important;
}

.tw-font-bold {
  font-weight: 700 !important;
}

.tw-font-medium {
  font-weight: 500 !important;
}

.tw-text-base {
  font-size: 16px !important;
}

.tw-text-lg {
  font-size: 18px !important;
}

.tw-text-neutral-700 {
  color: var(--text-primary) !important;
}

.tw-text-neutral-500 {
  color: var(--text-muted) !important;
}

.tw-tracking-tight {
  letter-spacing: -0.025em !important;
}

.tw-inline-flex {
  display: inline-flex !important;
}

.tw-inline-block {
  display: inline-block !important;
}

.tw-h-7 {
  height: 28px !important;
}

.tw-w-7 {
  width: 28px !important;
}

.tw-ring-2 {
  box-shadow: 0 0 0 2px var(--surface) !important;
}

.tw-ring-white {
  --tw-ring-color: var(--surface) !important;
}

.project-overview-progress-bar {
  height: 50px;
  background-color: var(--text-muted);
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.project-overview-progress-bar .project-progress-number {
  font-size: 16px;
  position: absolute;
  display: block;
  width: 100%;
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.progress-bg-dark {
  background-color: var(--text-muted);
}

.panel-body.project-description {
  padding: 11px;
}

/* Team Members */
.team-members .panel-body {
  padding: 0;
}

.team-members .media-left {
  padding: 10px;
}

.team-members .media-body {
  padding-right: 10px;
  padding-top: 12px;
}

.team-members .media:last-child {
  border-bottom: 0;
}

.team-members .media {
  margin-top: 0;
  border-bottom: 1px solid var(--border-light);
}

/* Kanban / Tasks Phases */
.tasks-phases {
  overflow: scroll hidden;
}

.tasks-phases .kan-ban-col .panel-heading {
  padding: 10px 15px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tasks-phases .panel-body {
  background: var(--body-bg);
  padding: 10px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tasks-phases ._task_wrapper {
  background: var(--surface);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: box-shadow var(--transition);
}

.tasks-phases ._task_wrapper:hover {
  box-shadow: var(--shadow-sm);
}

.kan-ban-col {
  width: 326px;
  height: 416px;
  margin-right: 6px;
  display: inline-block;
}

.tasks-phases .kan-ban-col .panel-body {
  height: 100%;
  overflow-y: auto;
}

._task_wrapper.overdue-task {
  background: var(--danger-light) !important;
  border-color: #fca5a5 !important;
}

/* ============================================================
   23. CALENDAR
   ============================================================ */
.fc-event {
  padding: 8px !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  margin: 4px 8px !important;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.fc-view {
  overflow-y: auto;
}

#calendar .fc-header-toolbar button {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

#calendar .fc-header-toolbar button:hover {
  background: var(--border-light);
}

#calendar .fc-header-toolbar button.fc-state-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#calendar .fc-day-header,
#calendar .fc-toolbar .fc-center {
  text-transform: capitalize;
}

#calendar .fc-day-header {
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#client-home-chart {
  max-width: 100%;
}

/* ============================================================
   24. JQUERY COMMENTS OVERRIDES
   ============================================================ */
.jquery-comments [contentEditable="true"]:empty:not(:focus):before {
  color: var(--text-light);
  font-size: 14px;
}

.jquery-comments ul.main {
  list-style: none !important;
}

.jquery-comments.tc-content ul.main ul:not(.child-comments) {
  list-style: initial !important;
}

.jquery-comments ul.navigation li,
.jquery-comments ul.main li.comment .actions > *,
.jquery-comments ul.main li.comment .name,
.jquery-comments .highlight-font-bold {
  font-weight: 500 !important;
}

.jquery-comments ul.main li.comment .name {
  color: var(--primary);
}

.jquery-comments ul.main li.comment .wrapper .content {
  padding: 5px 0;
}

.jquery-comments ul.navigation li {
  color: var(--text-primary);
}

.jquery-comments .textarea-wrapper .control-row > span.upload {
  padding: 5px 20px;
  background-color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.jquery-comments .highlight-background {
  background: var(--primary) !important;
}

.jquery-comments .textarea-wrapper .control-row > span {
  padding: 5px 20px !important;
  border-radius: var(--radius-sm);
}

.jquery-comments .textarea-wrapper .control-row {
  margin-top: 10px;
}

.jquery-comments ul.main li.comment .actions > * {
  color: var(--text-muted);
}

.jquery-comments ul.navigation .navigation-wrapper {
  padding: 10px 0 0 0;
}

.jquery-comments ul.navigation {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5em;
}

.jquery-comments .textarea-wrapper {
  padding-left: 21px;
}

.jquery-comments .textarea-wrapper:before {
  border: 0;
}

.jquery-comments .textarea-wrapper .textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 14px;
}

/* ============================================================
   25. PROPOSALS & CONTRACTS
   ============================================================ */
#proposal-wrapper {
  overflow: hidden;
  min-height: 100%;
}

#proposal-wrapper .proposal-left img {
  margin-left: 10px;
  margin-right: 10px;
}

div.proposal-wrapper img:not(.media-object) {
  display: block;
  max-width: 100%;
  height: auto;
}

.proposal-comment {
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
}

/* TC Content (used in proposals, contracts, etc.) */
.tc-content ul,
.tc-content ol {
  list-style: inherit;
  margin-left: 15px;
}

.tc-content ol {
  list-style-type: decimal;
}

.tc-content ul {
  list-style-type: disc;
}

.tc-content table {
  margin-top: 0;
  border-collapse: initial;
}

.tc-content table > tbody > tr > td {
  padding: 5px 10px;
}

.tc-content img {
  max-width: 100%;
}

.tc-content table[border="1"],
.tc-content table[border="1"] td {
  border: 1px solid;
}

.tc-content em {
  font-style: italic;
}

.tc-content p:empty:before {
  content: ' ';
  white-space: pre;
}

.proposal-view .tc-content ul,
.proposal-view .tc-content ol,
.contract-view .tc-content ul,
.contract-view .tc-content ol {
  margin-left: 0;
}

/* ============================================================
   26. SIGNATURES
   ============================================================ */
.signature-pad--body {
  border-radius: var(--radius-sm);
  position: relative;
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ============================================================
   27. GDPR
   ============================================================ */
.gdpr-right {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 35px 15px;
  text-align: center;
  margin-bottom: 25px;
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition);
}

.gdpr-right:hover {
  box-shadow: var(--shadow-sm);
}

.gdpr-right .gdpr-right-heading {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

.gdpr-purpose {
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
}

.gdpr-purpose .gdpr-purpose-heading {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   28. TASKS
   ============================================================ */
#task h4 {
  font-size: 15px;
}

#task h5 {
  font-size: 14px;
}

#task .task-info {
  font-size: 10px;
  vertical-align: middle;
  padding: 10px;
}

#task .task-info h5 {
  font-size: 13px;
  font-weight: 400;
}

#task-comments {
  background: var(--body-bg);
  margin-right: -20px;
  margin-left: -20px;
  padding: 20px;
  display: inline-block;
  border-radius: var(--radius-lg);
}

#task-tracking-stats-modal {
  z-index: 999999999999;
}

.task-user {
  border: 1px solid var(--border-light);
  padding: 2px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  position: relative;
}

.task-checklist-indicator {
  border-radius: 50%;
  border: 1px solid var(--border-light);
  width: 20px;
  height: 21px;
  display: inline-block;
}

.task-checklist-indicator i {
  margin: 0 auto;
  vertical-align: middle;
  margin-left: 3px;
}

.task-single-status .label {
  float: left;
}

.task-attachment {
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  max-height: 255px;
  min-height: 255px;
  overflow: hidden;
}

.task-attachment .task-attachment-no-preview {
  margin-top: 45px;
  text-align: center;
}

.task-attachment .preview_image {
  margin: 0;
  width: 100%;
}

.task-attachment .open-in-external {
  position: absolute;
  right: 30px;
}

.task-attachment .task-attachment-user {
  padding-bottom: 10px;
  display: inline-block;
  width: 100%;
  margin-left: 0;
  border-bottom: 1px solid var(--border-light);
}

.task-comment .task-attachment-col-more {
  display: block !important;
}

.comment-content .task-attachment-col:nth-child(2),
.comment-content .task-attachment-col:nth-child(3),
.comment-content .task-attachment-col:nth-child(4) {
  margin-top: 15px;
}

.task-comment .task-attachment-col {
  margin-left: 0;
  padding-left: 0;
}

.phase-logged-time {
  color: var(--success-dark);
}

/* ============================================================
   29. INVOICES & ESTIMATES
   ============================================================ */
.invoices-stats,
.estimates-stats {
  display: flex;
  flex-wrap: wrap;
}

.invoices-stats > [class*="col-"],
.estimates-stats > [class*="col-"] {
  margin-bottom: 10px;
}

.invoices-stats .stats-status a,
.estimates-stats .stats-status a {
  font-size: 13px;
  word-break: break-word;
}

/* Always use 2 columns for stats inside sidebar layout */
.skillsys-layout .invoices-stats > .col-md-3,
.skillsys-layout .estimates-stats > .col-md-3,
.skillsys-layout .estimates-stats > .col-md-5ths {
  width: 50% !important;
  float: left;
}

@media (max-width: 991px) {
  .invoices-stats > .col-md-3,
  .estimates-stats > .col-md-3,
  .estimates-stats > .col-md-5ths {
    width: 50% !important;
  }
}

@media (max-width: 575px) {
  .invoices-stats > .col-md-3,
  .estimates-stats > .col-md-3,
  .estimates-stats > .col-md-5ths {
    width: 100% !important;
  }
}

.invoice-quick-info h5 {
  margin-top: 0;
}

.preview-sticky-header {
  z-index: 1;
  background: var(--surface);
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 0 1px 15px 1px rgba(0, 0, 0, 0.06);
  width: 100% !important;
  left: 0 !important;
}

.preview-sticky-header .sticky-hidden {
  display: none !important;
}

.preview-sticky-header .sticky-visible {
  display: inherit !important;
}

.mobile .preview-sticky-header {
  padding: 15px;
}

@media (min-width: 1281px), (min-width: 1025px) and (max-width: 1280px) {
  .preview-top-wrapper {
    margin-top: 25px;
  }
}

/* ============================================================
   30. ACTIVITY FEED
   ============================================================ */
.activity-feed {
  padding: 15px;
}

.activity-feed .feed-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 30px;
  border-left: 2px solid var(--primary);
}

.activity-feed .feed-item:last-child {
  border-color: transparent;
}

.activity-feed .feed-item:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
}

.activity-feed .feed-item .date {
  position: relative;
  top: -5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.activity-feed .feed-item .text {
  position: relative;
  top: -3px;
}

/* ============================================================
   31. LIST STATUS
   ============================================================ */
.list-status h3 {
  margin-top: 0;
}

.list-status:last-child {
  border-right: 0;
}

.list-status a {
  border: 1px solid var(--border);
  padding: 15px;
  display: inline-block;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.list-status a:hover {
  background: var(--border-light);
}

.list-status a.active {
  background: var(--body-bg);
  border-color: var(--primary);
}

/* ============================================================
   32. PROFILE IMAGES
   ============================================================ */
.staff-profile-image-small,
.client-profile-image-small {
  height: 32px !important;
  width: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.staff-profile-xs-image {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
}

.staff-profile-image-thumb,
.client-profile-image-thumb {
  height: 160px !important;
  width: 160px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Team member avatars in project header */
.team-members img,
.team-members .staff-profile-image {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--surface) !important;
  background: var(--primary-light) !important;
}

/* Avatar placeholder when no image */
.team-members span[data-toggle="tooltip"] img[src*="placeholder"],
.team-members span[data-toggle="tooltip"] img:not([src]),
img.staff-profile-image[src=""],
img[src*="no-avatar"],
img[src*="placeholder"] {
  background: var(--primary-light) !important;
  border: 2px solid var(--surface) !important;
}

/* ============================================================
   33. PREVIEW IMAGES
   ============================================================ */
.preview_image {
  height: auto;
  width: 250px;
  overflow: hidden;
  margin-bottom: 15px;
  margin-top: 15px;
}

.preview_image:last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.preview_image img {
  width: 100%;
  height: auto;
}

.table-image {
  height: 75px;
  width: 250px;
  margin: 15px 0;
}

/* ============================================================
   34. ANNOUNCEMENTS
   ============================================================ */
.announcement small {
  font-size: 12px;
  color: var(--text-secondary);
}

.announcement {
  font-size: 14px;
}

/* ============================================================
   35. MIME ICON CLASSES
   ============================================================ */
.mime {
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 1px 0 4px 26px;
}

.mime-word {
  background-image: url(../../../images/mime/word.png);
}

.mime-excel {
  background-image: url(../../../images/mime/excel.png);
}

.mime-powerpoint {
  background-image: url(../../../images/mime/powerpoint.png);
}

.mime-pdf {
  background-image: url(../../../images/mime/pdf.png);
}

.mime-zip {
  background-image: url(../../../images/mime/zip.png);
}

.mime-image {
  background-image: url(../../../images/mime/image.png);
}

.mime-file {
  background-image: url(../../../images/mime/file.png);
}

.mime-photoshop {
  background-image: url(../../../images/mime/photoshop.png);
}

.mime-illustrator {
  background-image: url(../../../images/mime/illustrator.png);
}

.mime-video {
  background-image: url(../../../images/mime/video.png);
}

.mime-audio {
  background-image: url(../../../images/mime/audio.png);
}

.mime > a {
  color: var(--text-secondary) !important;
  text-decoration: none;
}

.files-container {
  margin: 0 0 10px;
}

.files {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

/* ============================================================
   36. NAVIGATION SCROLLSPY LINKS
   ============================================================ */
#toplink,
#botlink {
  position: fixed;
  right: 7.5%;
  bottom: 53%;
  padding: 10px;
  margin: 0 -20px 0 0;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 1.5em;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#botlink {
  top: 47%;
  padding: 10px;
  bottom: auto;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

#toplink:hover,
#botlink:hover {
  color: var(--primary);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   37. GOOGLE PICKER & MISC INTEGRATIONS
   ============================================================ */
.gpicker {
  opacity: 0;
}

.gpicker + div[id^="dropbox-chooser"] {
  float: right;
  margin-left: 5px;
}

.gpicker {
  height: 14px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: #4c4c4c;
  text-decoration: none;
  padding: 1px 7px 5px 3px;
  border: 1px solid var(--border);
  border-radius: 2px;
  border-bottom-color: #d4d4d4;
  background: var(--surface);
  line-height: 18px !important;
  text-decoration: none !important;
  box-sizing: content-box !important;
  -webkit-box-sizing: content-box !important;
  -moz-box-sizing: content-box !important;
}

/* ============================================================
   38. RECAPTCHA
   ============================================================ */
@media screen and (max-height: 575px),
  screen and (min-width: 992px) and (max-width: 1199px) {
  #rc-imageselect,
  .g-recaptcha {
    transform: scale(0.83);
    -webkit-transform: scale(0.83);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

.g-recaptcha > div {
  margin: 0 auto;
}

/* ============================================================
   39. HONEYPOT FIELD
   ============================================================ */
.honey-element {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* ============================================================
   40. CUSTOM FIELDS
   ============================================================ */
.custom-field-inline-edit-link {
  float: left;
  margin-right: 5px;
}

/* ============================================================
   41. ADVANCED EDITOR
   ============================================================ */
.advanced-editor-wrapper {
  border: 1px solid var(--border);
  margin-bottom: 15px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================================
   42. TOOLTIP FIX
   ============================================================ */
.tooltip {
  position: fixed !important;
}

.tooltip-inner {
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  background: var(--sidebar-bg) !important;
}

.tooltip.top .tooltip-arrow {
  border-top-color: var(--sidebar-bg) !important;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: var(--sidebar-bg) !important;
}

.tooltip.left .tooltip-arrow {
  border-left-color: var(--sidebar-bg) !important;
}

.tooltip.right .tooltip-arrow {
  border-right-color: var(--sidebar-bg) !important;
}

/* ============================================================
   43. POPOVER
   ============================================================ */
.popover {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  background: var(--surface) !important;
}

.popover-title {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  background: var(--border-light) !important;
  border-bottom: 1px solid var(--border-light) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
}

.popover-content {
  padding: 12px 16px !important;
  font-size: 14px !important;
}

/* ============================================================
   44. ANIMATIONS & KEYFRAMES
   ============================================================ */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInRight {
  -webkit-animation-name: fadeInRight;
  animation-name: fadeInRight;
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInLeft {
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
}

@-webkit-keyframes fadeOutLeft {
  from { opacity: 1; }
  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes fadeOutLeft {
  from { opacity: 1; }
  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

.fadeOutLeft {
  -webkit-animation-name: fadeOutLeft;
  animation-name: fadeOutLeft;
}

@-webkit-keyframes fadeOutRight {
  from { opacity: 1; }
  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes fadeOutRight {
  from { opacity: 1; }
  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

.fadeOutRight {
  -webkit-animation-name: fadeOutRight;
  animation-name: fadeOutRight;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ============================================================
   45. UTILITY CLASSES
   ============================================================ */

/* Text Colors */
.text-white {
  color: #fff !important;
}

.color-white {
  color: #fff !important;
}

.white {
  color: #fff;
}

/* Background */
.bgwhite {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Display */
rt.display-block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Border */
.border-right {
  border-right: 1px solid var(--border-light);
}

/* Text Decoration */
.line-throught {
  text-decoration: line-through;
}

/* Width */
.full-width {
  width: 100%;
}

/* Position */
.relative {
  position: relative;
}

/* Font Size */
.font-medium {
  font-size: 15px;
}

/* No Margin */
.no-margin {
  margin: 0 !important;
}

.no-mtop {
  margin-top: 0 !important;
}

.no-mbot {
  margin-bottom: 0;
}

/* No Padding */
.no-p-left {
  padding-left: 0 !important;
}

.no-p-right {
  padding-right: 0;
}

/* No Radius */
.no-radius {
  border-radius: 0 !important;
}

/* Cursor */
.pointer {
  cursor: pointer;
}

/* Text Utilities */
.bold {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.font-medium {
  font-weight: 500 !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-primary {
  color: var(--primary) !important;
}

/* Padding Utilities */
.p7 {
  padding: 7px;
}

.p8 {
  padding: 8px;
}

.p8-half {
  padding: 8.5px;
}

.p15 {
  padding: 15px;
}

.padding-30 {
  padding: 30px !important;
}

/* Vertical Align */
.valign-middle {
  vertical-align: middle;
}

/* Margin Top */
.mtop5 {
  margin-top: 5px;
}

.mtop7 {
  margin-top: 7px;
}

.mtop10 {
  margin-top: 10px;
}

.mtop15 {
  margin-top: 15px;
}

.mtop20 {
  margin-top: 20px;
}

.mtop25 {
  margin-top: 25px;
}

.mtop30 {
  margin-top: 30px;
}

.mtop40 {
  margin-top: 40px;
}

/* Margin Bottom */
.mbot5 {
  margin-bottom: 5px;
}

.mbot10 {
  margin-bottom: 10px;
}

.mbot15 {
  margin-bottom: 15px;
}

.mbot20 {
  margin-bottom: 20px;
}

.mbot25 {
  margin-bottom: 25px;
}

.mbot30 {
  margin-bottom: 30px;
}

.mbot40 {
  margin-bottom: 40px;
}

/* Margin Left */
.mleft5 {
  margin-left: 5px;
}

.mleft10 {
  margin-left: 10px;
}

/* Margin Right */
.mright5 {
  margin-right: 5px;
}

.mright10 {
  margin-right: 10px;
}

/* HR Utilities */
.hr-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Media Body */
.media-body {
  word-break: break-word;
}

/* ============================================================
   46. 5-COLUMN GRID
   ============================================================ */
.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.col-xs-5ths {
  width: 20%;
  float: left;
}

@media (min-width: 768px) {
  .col-sm-5ths {
    width: 20%;
    float: left;
  }
}

@media (min-width: 992px) {
  .col-md-5ths {
    width: 20%;
    float: left;
  }
}

@media (min-width: 1200px) {
  .col-lg-5ths {
    width: 20%;
    float: left;
  }
}

/* ============================================================
   47. PROJECT FILE AREAS
   ============================================================ */
.project_file_discusssions_area,
.project_file_area {
  overflow-y: scroll;
  height: 400px;
}

/* ============================================================
   48. NAV TABS (General Override)
   ============================================================ */
.nav-tabs {
  border-bottom: 1px solid var(--border) !important;
}

.nav-tabs > li > a {
  border: none !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  transition: all var(--transition) !important;
  margin-right: 0 !important;
  background: transparent !important;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  background: var(--border-light) !important;
  border-color: transparent !important;
  color: var(--text-primary) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  border: none !important;
  border-bottom: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  background: transparent !important;
}

.tab-content {
  padding-top: 16px !important;
}

/* ============================================================
   49. PAGINATION (Non-DataTables)
   ============================================================ */
.pagination > li > a,
.pagination > li > span {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  padding: 6px 14px !important;
  margin: 0 2px !important;
  transition: all var(--transition) !important;
  background: var(--surface) !important;
}

.pagination > li > a:hover {
  background: var(--border-light) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  opacity: 0.4 !important;
}

/* ============================================================
   49B. BADGES
   ============================================================ */
.badge {
  display: inline-block !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-radius: var(--radius-pill) !important;
  background: var(--text-light) !important;
  color: #fff !important;
}

.badge-primary {
  background: var(--primary) !important;
  color: #fff !important;
}

.badge-success {
  background: var(--success) !important;
  color: #fff !important;
}

.badge-danger {
  background: var(--danger) !important;
  color: #fff !important;
}

.badge-warning {
  background: var(--warning) !important;
  color: #fff !important;
}

.badge-info {
  background: var(--info) !important;
  color: #fff !important;
}

.badge-secondary,
.badge-default {
  background: var(--border) !important;
  color: var(--text-secondary) !important;
}

/* ============================================================
   49C. LIST GROUP
   ============================================================ */
.list-group {
  margin-bottom: 20px !important;
  padding-left: 0 !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
}

.list-group-item {
  position: relative !important;
  display: block !important;
  padding: 12px 16px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-bottom-width: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
}

.list-group-item:first-child {
  border-top-left-radius: var(--radius-lg) !important;
  border-top-right-radius: var(--radius-lg) !important;
}

.list-group-item:last-child {
  border-bottom-width: 1px !important;
  border-bottom-left-radius: var(--radius-lg) !important;
  border-bottom-right-radius: var(--radius-lg) !important;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

a.list-group-item:hover,
a.list-group-item:focus,
button.list-group-item:hover,
button.list-group-item:focus {
  background: var(--border-light) !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}

.list-group-item-heading {
  font-weight: 600 !important;
  margin-bottom: 5px !important;
  color: var(--text-primary) !important;
}

.list-group-item-text {
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
  color: var(--text-muted) !important;
}

/* ============================================================
   50. BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  font-size: 13px !important;
}

.breadcrumb > li + li:before {
  color: var(--text-light) !important;
  content: "\203A" !important;
  padding: 0 8px !important;
}

.breadcrumb > .active {
  color: var(--text-muted) !important;
}

/* ============================================================
   51. WELL
   ============================================================ */
.well {
  background: var(--border-light) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  padding: 20px !important;
}

/* ============================================================
   52. FORM VALIDATION
   ============================================================ */
.form-group + p.alert-validation {
  margin-top: -10px;
}

/* ============================================================
   53. REGISTER PAGE
   ============================================================ */
@media (max-width: 991px) {
  .register-heading.text-right {
    text-align: center;
  }
}

/* ============================================================
   54. RTL SUPPORT
   ============================================================ */
[dir="rtl"] .skillsys-sidebar {
  left: auto;
  right: 0;
}

[dir="rtl"] .skillsys-content-wrapper {
  margin-left: 0;
  margin-right: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
}

[dir="rtl"] .sidebar-nav-item {
  border-left: none;
  border-right: 3px solid transparent;
}

[dir="rtl"] .sidebar-nav-item.active {
  border-right-color: var(--primary);
}

[dir="rtl"] .sidebar-nav-item i,
[dir="rtl"] .sidebar-nav-item .fa,
[dir="rtl"] .sidebar-nav-item .menu-icon {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .sidebar-nav-item .nav-badge {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .mright5 {
  margin-right: 0;
  margin-left: 5px;
}

[dir="rtl"] .mright10 {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .mleft5 {
  margin-left: 0;
  margin-right: 5px;
}

[dir="rtl"] .mleft10 {
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] .input-group-addon:last-child {
  border-left: 1px solid var(--border);
}

[dir="rtl"] .colorpicker.colorpicker-visible.dropdown-menu {
  left: 0 !important;
  right: auto;
  padding-left: 3px;
  margin-left: 45px;
}

[dir="rtl"] th[align="left"],
[dir="rtl"] td[align="left"] {
  text-align: right !important;
}

[dir="rtl"] th[align="right"],
[dir="rtl"] td[align="right"] {
  text-align: left !important;
}

[dir="rtl"] .activity-feed .feed-item {
  padding-left: 0;
  padding-right: 30px;
  border-left: none;
  border-right: 2px solid var(--primary);
}

[dir="rtl"] .activity-feed .feed-item:after {
  left: auto;
  right: -6px;
}

[dir="rtl"] .customer-top-submenu,
[dir="rtl"] .submenu {
  float: left;
}

[dir="rtl"] .custom-field-inline-edit-link {
  float: right;
  margin-right: 0;
  margin-left: 5px;
}

[dir="rtl"] .task-single-status .label {
  float: right;
}

[dir="rtl"] .task-user {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .task-checklist-indicator i {
  margin-left: 0;
  margin-right: 3px;
}

[dir="rtl"] .project-file-image {
  margin-right: 0;
  margin-left: 15px;
}

[dir="rtl"] .gpicker + div[id^="dropbox-chooser"] {
  float: left;
  margin-left: 0;
  margin-right: 5px;
}

[dir="rtl"] select.form-control {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 36px;
}

[dir="rtl"] .ticket-reply.client-reply {
  margin-left: 0;
  margin-right: 40px;
}

[dir="rtl"] .ticket-reply.staff-reply {
  margin-right: 0;
  margin-left: 40px;
}

[dir="rtl"] .jquery-comments .textarea-wrapper {
  padding-left: 0;
  padding-right: 21px;
}

[dir="rtl"] #proposal-wrapper .proposal-left img {
  margin-left: 10px;
  margin-right: 10px;
}

[dir="rtl"] .no-p-left {
  padding-left: initial !important;
  padding-right: 0 !important;
}

[dir="rtl"] .no-p-right {
  padding-right: initial;
  padding-left: 0;
}

[dir="rtl"] {
  overflow-x: hidden;
}

body[dir="rtl"].safari .table-responsive .table {
  max-width: none;
  -webkit-overflow-scrolling: touch !important;
}

/* ============================================================
   55. ALIGNMENT CLASSES
   ============================================================ */
th[align="left"],
td[align="left"] {
  text-align: left;
}

th[align="right"],
td[align="right"] {
  text-align: right;
}

th[align="center"],
td[align="center"] {
  text-align: center !important;
}

/* ============================================================
   56. MOBILE RESPONSIVE (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  /* Sidebar: hidden off-screen */
  .skillsys-sidebar {
    transform: translateX(-260px);
    transition: transform 300ms ease;
    z-index: 1050;
  }

  .skillsys-sidebar.open {
    transform: translateX(0);
  }

  /* Content: full width */
  .skillsys-content-wrapper,
  #wrapper {
    margin-left: 0;
    width: 100%;
  }

  /* Mobile hamburger toggle */
  .sidebar-toggle {
    display: flex;
  }

  /* Header adjustments */
  .skillsys-header {
    padding: 0 16px;
  }

  .skillsys-header-title {
    font-size: 16px;
  }

  /* Content padding */
  #content {
    padding: 16px;
  }

  /* Footer */
  footer {
    padding: 15px 16px;
  }

  /* Auth page: single column */
  .auth-left {
    display: none;
  }

  .auth-right {
    width: 100%;
    padding: 24px;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  /* Navbar */
  .navbar a.navbar-brand {
    padding: 13px 0 19px 0;
  }

  .navbar a.navbar-brand img {
    margin-left: 25px;
  }

  .navbar-default .navbar-brand.logo-text {
    margin-left: 15px;
    margin-top: 15px;
  }

  .navbar-toggle {
    margin-top: 15px;
  }

  .navbar-default .navbar-nav > li > a {
    line-height: 35px;
    color: var(--text-muted);
  }

  .navbar-default .navbar-nav > .active > a,
  .navbar-default .navbar-nav > .active > a:focus,
  .navbar-default .navbar-nav > .active > a:hover,
  .navbar-default .navbar-nav > li > a:focus,
  .navbar-default .navbar-nav > li > a:hover {
    background: transparent;
  }

  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--text-lighter);
  }

  .navbar-default .navbar-nav > li.customers-nav-item-login {
    padding-bottom: 10px;
  }

  .navbar-default .navbar-nav > li.customers-nav-item-login > a {
    margin-left: 15px;
  }

  .customers-nav-item-languages {
    display: none;
  }

  /* Staff logged in banner */
  #staff_logged_in {
    display: none;
  }

  /* Invoice & Estimate panel */
  .viewestimate .panel-body,
  .viewinvoice .panel-body {
    padding: 0;
  }

  /* Buttons responsive */
  ._buttons .mleft5 {
    margin-left: 0 !important;
  }

  ._buttons .mright10 {
    margin-right: 0 !important;
  }

  ._buttons .pull-left,
  ._buttons .pull-right {
    float: none !important;
  }

  ._buttons .btn,
  ._buttons .btn-group {
    display: inline-block;
    margin-left: 0 !important;
    width: 100%;
    margin-bottom: 5px !important;
    float: none !important;
  }

  /* Projects */
  .project-overview-column {
    margin-top: 15px;
  }

  /* Kanban */
  .kan-ban-col {
    width: 216px;
    height: 416px;
    margin-right: 6px;
    display: inline-block;
  }

  /* Preview */
  .preview-sticky-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* Stat cards */
  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-card-value {
    font-size: 20px;
  }

  /* Full screen modal */
  .full-screen-modal {
    width: auto;
    height: auto;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 10px;
    overflow-y: initial !important;
  }

  .full-screen-modal .modal-footer {
    width: auto;
    position: relative !important;
  }

  .project_file_discusssions_area,
  .project_file_area {
    height: auto !important;
  }

  .project_file_discusssions_area {
    margin-top: 30px;
  }

  /* Ticket replies */
  .ticket-reply.client-reply {
    margin-left: 0;
  }

  .ticket-reply.staff-reply {
    margin-right: 0;
  }

  /* Tables */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    padding: 12px 16px;
    text-align: left;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    padding: 12px 16px;
    text-align: center;
  }

  /* Submenu */
  .customer-top-submenu,
  .submenu {
    float: none;
    display: flex;
    flex-wrap: wrap;
  }

  .customer-top-submenu li a,
  .submenu li a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* RTL Mobile adjustments */
@media (max-width: 767px) {
  [dir="rtl"] .skillsys-sidebar {
    transform: translateX(260px);
  }

  [dir="rtl"] .skillsys-sidebar.open {
    transform: translateX(0);
  }

  [dir="rtl"] .skillsys-content-wrapper,
  [dir="rtl"] #wrapper {
    margin-right: 0;
    width: 100%;
  }
}

/* ============================================================
   57. TABLET RESPONSIVE (768px - 991px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  .skillsys-sidebar {
    width: 220px;
  }

  .skillsys-content-wrapper,
  #wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  [dir="rtl"] .skillsys-content-wrapper,
  [dir="rtl"] #wrapper {
    margin-left: 0;
    margin-right: 220px;
    width: calc(100% - 220px);
  }

  .skillsys-header {
    padding: 0 20px;
  }

  #content {
    padding: 20px;
  }

  .sidebar-nav-item {
    padding: 9px 12px;
    font-size: 13px;
    margin: 2px 8px;
  }

  .sidebar-nav-item i {
    width: 18px;
    margin-right: 10px;
    font-size: 14px;
  }
}

/* ============================================================
   58. LARGE SCREENS (1400px+)
   ============================================================ */
@media (min-width: 1400px) {
  #content {
    padding: 32px 40px;
  }

  .skillsys-header {
    padding: 0 40px;
  }
}

/* ============================================================
   59. PRINT STYLES
   ============================================================ */
@media print {
  .skillsys-sidebar,
  .sidebar-overlay,
  .sidebar-toggle,
  .skillsys-header,
  .customer-top-submenu,
  .submenu,
  .btn,
  footer {
    display: none !important;
  }

  .skillsys-content-wrapper,
  #wrapper {
    margin-left: 0 !important;
  }

  body {
    background: #fff;
  }

  .panel_s,
  .card-skillsys,
  .panel-default {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a[href]:after {
    content: none !important;
  }
}

/* ============================================================
   60. COLORPICKER OVERRIDES
   ============================================================ */
.colorpicker {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ============================================================
   61. DATE PICKER OVERRIDES
   ============================================================ */
.datepicker {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
}

.datepicker table tr td.today {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
}

.datepicker table tr td,
.datepicker table tr th {
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
}

/* ============================================================
   62. TIMEPICKER OVERRIDES
   ============================================================ */
.bootstrap-timepicker-widget {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ============================================================
   63. EDITABLE FIELDS
   ============================================================ */
.editable-click,
a.editable-click {
  border-bottom: 1px dashed var(--primary);
  color: var(--primary);
}

.editable-click:hover {
  border-bottom-color: var(--primary-hover);
  color: var(--primary-hover);
}

/* ============================================================
   64. STAFF LOGGED IN BANNER
   ============================================================ */
#staff_logged_in {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
}

#staff_logged_in a {
  color: var(--primary-light);
  font-weight: 500;
}

/* ============================================================
   65. NOTIFICATION / TOAST STYLES
   ============================================================ */
.toast-container {
  z-index: 99999;
}

.toast {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  opacity: 1 !important;
  padding: 16px 20px !important;
  font-size: 14px;
}

.toast-success {
  background: var(--success) !important;
}

.toast-error {
  background: var(--danger) !important;
}

.toast-warning {
  background: var(--warning) !important;
}

.toast-info {
  background: var(--primary) !important;
}

/* ============================================================
   66. LOADING / SPINNER STYLES
   ============================================================ */
.dt-loader {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ============================================================
   67. CONVERSATION / CHAT STYLES
   ============================================================ */
.conversation-message {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  max-width: 80%;
}

.conversation-message.outgoing {
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-left: auto;
}

.conversation-message.incoming {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ============================================================
   68. IMAGE LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   69. SCROLLBAR GLOBAL
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* ============================================================
   70. FOCUS VISIBLE (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* ============================================================
   71. HIGH CONTRAST / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skillsys-sidebar {
    transition: none;
  }

  .modal.fade .modal-dialog {
    transition: none;
  }
}

/* ============================================================
   72. EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--text-light);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================================
   73. SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #e2e8f0 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   END OF SKILLSYS THEME CSS
   ============================================================ */
