/* =====================================
   Modern Design System - Inspired by Login Page
   ===================================== */
:root {
  --container-max: 1500px;
  
  --text: #1e293b;                   /* Dark slate text */
  --title-text: #0f172a;             /* Darker title text */
  --btn-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Purple gradient */
  --btn-text: #ffffff;
  --btn-radius: 10px;                 /* Sharp corners */
  --title-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --title-weight: 600;
  --body-weight: 400;
  --accent: #667eea;                 /* Purple accent */
  --accent-light: #a5b4fc;           /* Light purple */
  --muted: #f1f5f9;                  /* Light gray background */
  --border: #ffffff;                 /* Light border */
  --radius: 0px;                     /* Border radius */
  --radius-xl: 0px;
  --sidebar-bg: #1a1a1a; /* Black sidebar */
  --card-bg: #ffffff;                /* White cards */
  --success: #10b981;                /* Green */
  --warning: #f59e0b;                /* Amber */
  --error: #ef4444;                  /* Red */
}

html { scroll-behavior: smooth; background: #f5f5f5; }
body {
  margin: 0; color: var(--text); background: #f5f5f5;
  font-family: var(--body-font); font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh; overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-family: var(--title-font); font-weight: var(--title-weight); color: var(--title-text); margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p, small { line-height: 1.6; }

/* Layout */
.container { 
    width: 100%; 
    max-width: 1500px; 
    margin: 0 auto; 
    padding: 0 1rem; 
    box-sizing: border-box;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo-container {
    margin-bottom: 0rem;
    text-align: center;
}

.sidebar-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    margin: 0;
    color: var(--accent-light);
    font-size: 0.92rem;
    line-height: 1.4;
}

/* User Info Section */
.user-info-section {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: transparent;
    margin: 0 1rem 0 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    margin-right: 25px;
}

.user-avatar i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #ffffff;
}

.user-role {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.logout-btn {
    width: 80%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    margin: 0 0 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--body-font);
    display: flex;
    align-items: center;
}

.nav-section h3 i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section li {
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    margin: 0 1rem 0.25rem 1rem;
    border-radius: var(--radius);
}

.nav-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.nav-section li.active::before {
    transform: scaleY(1);
}

.nav-section li:hover {
    border-left-color: var(--accent);
    background: rgba(102, 126, 234, 0.1);
}

.nav-section li.active {
    border-left-color: var(--accent);
}

.nav-section li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: var(--radius);
}

.nav-section li a:hover {
    color: #ffffff;
    background-color: transparent;
    transform: translateX(4px);
}

.nav-section li i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.nav-section li:hover i {
    color: var(--accent);
}

.nav-section li.active a {
    color: #ffffff;
    background-color: transparent;
    box-shadow: none;
}

.nav-section li.active i {
    color: var(--accent);
}

.nav-section li.active span {
    color: #ffffff;
    font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border-right: 3px solid transparent;
}

.nav-item:hover {
  background: #2a2a2a;
  color: #fff;
}

.nav-item.active {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-right-color: #000;
}

.nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.nav-item.expanded .nav-arrow {
  transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
  display: none;
  background: #2a2a2a;
  border-top: 1px solid #333;
}

.nav-submenu.show {
  display: block;
}

.nav-subitem {
  display: block;
  padding: 0.5rem 1.5rem 0.5rem 3.5rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.nav-subitem:hover {
  background: #333;
  color: #fff;
}

/* Divider */
.nav-divider {
  height: 1px;
  background: #333;
  margin: 1rem 1.5rem;
}

/* Main content adjustment for sidebar */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--bg);
}

.content-header {
    margin-bottom: 2rem;
  
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.content-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--title-text);
    font-family: var(--title-font);
    font-size: 2.5rem;
    font-weight: 700;
}

.content-header p {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Hero / Page title */
.hero { padding: 2rem 0 1.25rem; }
.subtle { color: #444; }

/* Toolbar */
.toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .5rem 0 1rem; }

/* Buttons */
.btn { 
    appearance: none; 
    border: 1px solid transparent; 
    border-radius: var(--btn-radius); 
    padding: 12px 20px; 
    font: 500 0.95rem var(--body-font); 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-weight: 500;
}
.btn:active { transform: translateY(1px); }
.btn-primary { 
    background: var(--btn-bg); 
    color: var(--btn-text); 
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}
.btn-ghost { 
    background: transparent; 
    border-color: var(--border); 
    color: var(--text); 
}
.btn-ghost:hover { 
    background: var(--muted); 
    border-color: var(--accent);
}

/* Cards */
.cards { 
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap: 1.5rem; 
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}
.card { 
    grid-column: span 6; 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow); 
    padding: 1.5rem; 
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card.small { grid-column: span 3; }
.card.wide { grid-column: span 12; }
.card h3 { margin-bottom: .35rem; }

/* Highlighted section */
.highlighted { background: var(--muted); border-radius: var(--radius-xl); padding: 1rem; border: 1px solid #eef0f3; }

/* Status Grid */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.status-item { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--muted); border-radius: var(--radius-xl); border: 1px solid #eef0f3; }
.status-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff; border: 1px solid #eee; }
.status-info h3 { margin: 0; font-size: 1rem; }
.status-info p { margin: 0; font-size: 0.9rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; 
    margin-bottom: .5rem; 
    font-weight: 600; 
    color: var(--text); 
    font-size: 0.95rem; 
}
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    font-size: 0.95rem; 
    font-family: var(--body-font); 
    background: var(--card-bg); 
    color: var(--text); 
    transition: all 0.3s ease; 
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-help { 
    display: block; 
    margin-top: .25rem; 
    font-size: 0.85rem; 
    color: var(--text);
    opacity: 0.7;
}

/* Company Data */
.company-info { 
    background: var(--card-bg); 
    border-radius: var(--radius-xl); 
    padding: 1.5rem; 
    margin: 1rem 0; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.company-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 1rem; 
    padding-bottom: .75rem; 
    border-bottom: 1px solid var(--border); 
}
.company-header h3 { 
    color: var(--title-text); 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin: 0; 
    line-height: 1.3; 
}
.company-details { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: .75rem; 
}
.detail-item { 
    padding: .5rem 0; 
    border-bottom: 1px solid var(--border); 
}
.detail-item:last-child { 
    border-bottom: none; 
}
.detail-item strong { 
    color: var(--text);
    opacity: 0.7;
    display: block; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: .25rem; 
    font-weight: 600; 
}
.detail-item span { 
    color: var(--text); 
    font-size: 0.95rem; 
    font-weight: 500; 
}

/* Save Actions */
.save-actions { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    padding: 1.5rem; 
    border: 1px solid var(--border); 
    border-left: 4px solid var(--accent); 
    margin-top: 1rem; 
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.save-actions h3 { 
    margin-bottom: .75rem; 
    color: var(--title-text); 
    font-size: 1rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: .5rem; 
}

/* Messages */
.message { 
    padding: 1rem 1.5rem; 
    border-radius: var(--radius); 
    margin-bottom: 1rem; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: .75rem; 
    border: 1px solid; 
    font-size: 0.95rem; 
    box-shadow: var(--shadow);
}
.message.success { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--success); 
    border-color: rgba(16, 185, 129, 0.2); 
}
.message.error { 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--error); 
    border-color: rgba(239, 68, 68, 0.2); 
}
.message.info { 
    background: rgba(102, 126, 234, 0.1); 
    color: var(--accent); 
    border-color: rgba(102, 126, 234, 0.2); 
}

/* Mock Notice */
.mock-notice { margin-bottom: 1rem; }

/* Results */
.result-item { 
    background: var(--card-bg); 
    border-radius: var(--radius-xl); 
    padding: 1.5rem; 
    margin-bottom: 1rem; 
    border: 1px solid var(--border); 
    transition: all 0.3s ease; 
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
.result-item:hover { 
    background: var(--card-bg); 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-4px); 
}
.result-item h3 { 
    color: var(--title-text); 
    margin-bottom: .75rem; 
    font-size: 1rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: .5rem; 
}
.result-item p { 
    color: var(--text);
    opacity: 0.8;
    margin-bottom: .5rem; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: .5rem; 
}
.result-item strong { 
    color: var(--text); 
    font-weight: 600; 
    min-width: 100px; 
}

/* Records Container */
.records-container { 
    margin-top: 1rem; 
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading States */
.loading { text-align: center; color: #666; padding: 1.5rem; font-size: 0.9rem; }
.no-results { text-align: center; color: #666; padding: 2rem; font-size: 0.95rem; font-style: italic; }

/* User Profile in Sidebar */
.sidebar-user {
  padding: 1rem 1.5rem;
  border-top: 1px solid #333;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  flex: 1;
}

.user-name {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.user-email {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Welcome Page Styles */
.welcome-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.welcome-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.getting-started {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.getting-started h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.getting-started-intro {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.step-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.step-link:hover {
  color: #1d4ed8;
}

/* Risk Factors Page Styles */
.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.risk-checklist {
  background: var(--muted);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #eef0f3;
}

.risk-checklist li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text);
}

.risk-checklist li:last-child {
  margin-bottom: 0;
}

.notice-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--btn-radius);
  padding: 1rem;
  margin: 1.5rem 0;
  color: #2563eb;
}

.risk-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.risk-controls .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.risk-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.risk-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.2s ease;
}

.risk-card:hover {
  box-shadow: var(--shadow);
}

.risk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--muted);
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.risk-card.expanded .risk-card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.risk-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.risk-card-actions {
  display: flex;
  gap: 0.5rem;
}

.expand-arrow {
  font-size: 0.8rem;
  color: #666;
  transition: transform 0.2s ease;
}

.risk-card.expanded .expand-arrow {
  transform: rotate(90deg);
}

.risk-card-content {
  padding: 1.5rem;
  display: none;
}

.risk-card.expanded .risk-card-content {
  display: block;
}

.risk-detail {
  margin-bottom: 1.5rem;
}

.risk-detail:last-child {
  margin-bottom: 0;
}

.risk-detail strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-detail p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.risk-assessment {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.risk-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-badge.elevated {
  background: #f3f4f6;
  color: #6b7280;
}

/* Customer Card Page Styles */
.customer-header {
  background: #f8fafc;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.customer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.customer-icon {
  font-size: 2rem;
  color: #2563eb;
}

.customer-details h1 {
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

.customer-id {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--muted);
  border-bottom: 1px solid #eee;
}

.card-icon {
  font-size: 1.5rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.card-content {
  padding: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-item strong {
  color: #666;
  font-size: 0.9rem;
  min-width: 200px;
  flex-shrink: 0;
}

.info-item span {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.info-value {
  text-align: right;
}

.highlight {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.info-description {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  font-weight: normal;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f1f1;
}

/* Tab Navigation */
.tab-navigation {
  margin: 2rem 0;
  border-bottom: 1px solid #eee;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.tab {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

.tab:hover {
  color: var(--text);
  background: var(--muted);
}

.tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Services Section */
.services-section {
  margin: 2rem 0;
}

.services-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.services-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-tag {
  background: var(--muted);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #eef0f3;
}

/* Footer */
.site-footer { border-top: 1px solid #eee; margin-top: 2rem; padding: 1rem 0; color: #666; font-size: .9rem; }

/* Responsive */
@media (max-width: 1024px) {
  .card { grid-column: span 12; }
  .card.small { grid-column: span 6; }
  .status-grid { grid-template-columns: 1fr; }
  
  /* Sidebar adjustments */
  .sidebar { width: 260px; }
  .main-content { margin-left: 260px; }
  
  /* Container adjustments for smaller screens */
  .container,
  .cards,
  .company-info,
  .save-actions,
  .result-item,
  .records-container,
  .search-card,
  .company-card,
  .recent-card,
  .status-card,
  .content-card,
  .filter-card,
  .risk-assessment-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  .sidebar { 
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content { margin-left: 0; }
  
  .toolbar { gap: .4rem; }
  .company-details { grid-template-columns: 1fr; }
  .status-item { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .toolbar { gap: .3rem; }
  .company-details { grid-template-columns: 1fr; }
  .status-item { flex-direction: column; text-align: center; }
}

/* Navigation Styles */
.sidebar-nav li {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-nav li:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.sidebar-nav li.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid #007bff;
}

.sidebar-nav li span {
    pointer-events: none;
}

/* Tab Navigation Styles */
.tab-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f8f9fa;
}

.tab-btn.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Make sure navigation items are clearly interactive */
.sidebar-nav li:not(.nav-section) {
    position: relative;
}

.sidebar-nav li:not(.nav-section):hover::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.sidebar-nav li:not(.nav-section)::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Search Section Styles */
.search-section {
    margin-bottom: 2rem;
}

.search-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.search-header h2 {
    margin: 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
}

.search-description {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.search-form .form-group {
    margin-bottom: 1.5rem;
}

.search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.search-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Validation styles */
.search-form input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-form input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.search-form input.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.search-form input.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.search-form small {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Company Information Styles - Clean Version */
.company-info-section {
    margin-bottom: 2rem;
}

.company-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Clean Company Info Layout - Modern Design */
.company-info-clean {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Company Header - New Layout */
.company-header-section {
    text-align: left;
    padding: 0;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.company-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.company-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.company-title {
    flex: 1;
}

.company-name {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.org-number {
    font-size: 0.9rem;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.company-form-tag {
    font-size: 0.8rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/* Contact Information Section */
.contact-info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.contact-item label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-item span {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
}

.contact-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Detailed Information Section */
.detailed-info-section {
    margin-top: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.info-item span {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    line-height: 1.4;
}

/* SNI Code Styling within info items */
.info-item .sni-code {
    color: var(--accent);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-right: 0.5rem;
}

.info-item .sni-text {
    color: #212529;
    font-weight: 500;
}

.no-data {
    color: #6c757d;
    font-style: italic;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-line {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.address-line strong {
    min-width: 120px;
    color: #6c757d;
    font-size: 0.9rem;
}

.address-line.full-address {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e1e5e9;
}

.company-names-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-names-list li {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.company-header h2 {
    margin: 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-header i {
    color: #007bff;
    font-size: 1.5rem;
}

.company-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-item span {
    color: #2c3e50;
    font-size: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.company-address,
.company-contact,
.company-names,
.company-verksamhet,
.company-sni {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    max-width: 100%;
}

.company-address h4,
.company-contact h4,
.company-names h4,
.company-verksamhet h4,
.company-sni h4,
.company-additional h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
}

.company-names ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-names li {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.company-verksamhet p {
    line-height: 1.6;
    color: #2c3e50;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    margin: 0;
}

.full-address {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    font-weight: 500;
}

.company-additional .detail-item {
    margin-bottom: 1rem;
}

.sni-codes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sni-code {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.sni-code strong {
    color: #2563eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    min-width: 80px;
}

.sni-code span {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
}

.no-sni-codes {
    color: #6c757d;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    margin: 0;
}

.no-sni-codes p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #495057;
}

.no-sni-codes small {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.company-address p,
.company-contact p {
    margin: 0.5rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-contact i {
    color: #007bff;
    width: 16px;
}

/* Recent Searches Styles */
.recent-searches {
    margin-bottom: 2rem;
}

.recent-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.recent-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
}

.recent-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.recent-search-item:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-search-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recent-search-info strong {
    color: #2c3e50;
}

.recent-search-info .org-number {
    font-size: 0.875rem;
    color: #6c757d;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.recent-search-item small {
    color: #6c757d;
    font-size: 0.875rem;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.message.show {
    transform: translateX(0);
}

.message-success {
    border-left: 4px solid #28a745;
}

.message-error {
    border-left: 4px solid #dc3545;
}

.message-info {
    border-left: 4px solid #17a2b8;
}

.message i {
    font-size: 1.25rem;
}

.message-success i {
    color: #28a745;
}

.message-error i {
    color: #dc3545;
}

.message-info i {
    color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .company-actions .btn {
        flex: 1;
    }
    
    .company-details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Status Section Styles */
.status-section {
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.status-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.status-item i {
    font-size: 1.25rem;
    color: #6c757d;
}

.status-item span {
    font-weight: 600;
    color: #2c3e50;
}

.status-item small {
    margin-left: auto;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Status indicator styles */
.status-checking {
    color: #6c757d;
    background: #e9ecef;
}

.status-connected {
    color: #155724;
    background: #d4edda;
}

.status-error {
    color: #721c24;
    background: #f8d7da;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Content Section Styles */
.content-section {
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.content-card h2 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-family: 'Merriweather Sans', sans-serif;
}

.content-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-card .form-group {
    margin-bottom: 1.5rem;
}

.content-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.content-card input,
.content-card select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.content-card input:focus,
.content-card select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.content-card select[multiple] {
    min-height: 120px;
}

.content-card .btn {
    margin-top: 1rem;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar Container */
.sidebar-container {
    flex-shrink: 0;
}

/* Hide Font Awesome icons in sidebar navigation */
.sidebar-nav i {
    display: none !important;
}

/* Error Message Styles */
.error-section {
    margin-bottom: 2rem;
}

.error-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-header i {
    font-size: 1.5rem;
    color: #dc2626;
}

.error-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
}

.error-content {
    margin-bottom: 1rem;
}

.error-content p {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

.error-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.error-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.error-details pre {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: pre-wrap;
    word-break: break-word;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.error-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Loading state for error messages */
.error-card.loading {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.error-card.loading .error-header {
    color: #0369a1;
}

.error-card.loading .error-header i {
    color: #0369a1;
}

.error-card.loading .error-header h3 {
    color: #0369a1;
}

/* Risk Assessment Styles */
.filter-section {
    margin-bottom: 2rem;
}

.filter-card {
    background: transparent;
    border-radius: 0px;
    padding: 1rem;
    border: 0px solid #e1e8ed;
}

.filter-header {
    margin-bottom: 1.5rem;
}

.filter-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-header h3 i {
    margin-right: 0.5rem;
    color: #3498db;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-select {
    padding: 0.75rem;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    width: 200px;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.risk-assessment-section {
        background: #dc545400;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgb(255 255 255 / 10%);
        overflow: hidden;
        border: 1px solid #ffffff;
}

.risk-list-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.risk-list-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.risk-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.stat-item i {
    font-size: 1rem;
}

.text-warning {
    color: #e74c3c;
}

.text-success {
    color: var(--accent);
}

.risk-list {
    padding: 1.5rem;
}

.risk-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.risk-item {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 1.5rem;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.risk-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.risk-item.risk-high {
    border-left: 0px solid #e74c3c;
}

.risk-item.risk-medium {
    border-left: 0px solid var(--accent);
}

.risk-item.risk-low {
    border-left: 0px solid #27ae60;
}

.risk-item.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.risk-title h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.risk-type {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.risk-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.risk-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-level.risk-high {
    background: #fdf2f2;
    color: #e74c3c;
}

.risk-level.risk-medium {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
}

.risk-level.risk-low {
    background: #f0f9f0;
    color: #27ae60;
}

.approval-date {
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 500;
}

.risk-content {
    margin-bottom: 1.5rem;
}

.risk-section {
    margin-bottom: 1rem;
}

.risk-section:last-child {
    margin-bottom: 0;
}

.risk-section h5 {
    color: #34495e;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.risk-section h5 i {
    margin-right: 0.5rem;
    color: #3498db;
    font-size: 0.8rem;
}

.risk-description,
.risk-action {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.5;
}

.risk-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #c0392b;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.modal-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    min-width: 300px;
    border-left: 4px solid #3498db;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #27ae60;
}

.notification-error i {
    color: #e74c3c;
}

.notification span {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Risk Assessment Page Specific Styles */
.risk-header {
    background: transparent;
    color: var(--title-text);
    position: relative;
    overflow: hidden;
}

.risk-header-content {
    position: relative;
    z-index: 1;
}

.risk-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--title-text);
}

.risk-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--text);
}

/* Enhanced Risk Items */
.risk-item {
    border: none;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.08);
}

/* Removed the colored left border from risk items */

.risk-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.risk-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 0px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.risk-item.expanded .risk-item-header {
    background: #ffffff;
    border-bottom: 0px solid var(--accent);
}

.risk-item-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.risk-status-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.risk-status-indicator.checked {
    background: var(--accent);
}

.risk-status-indicator.unchecked {
    background: #95a5a6;
}

.risk-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.risk-task-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-text);
    margin: 0;
}

.risk-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.risk-level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level-badge.risk-high {
    background: #fdf2f2;
    color: #e74c3c;
}

.risk-level-badge.risk-medium {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
}

.risk-level-badge.risk-low {
    background: #f0f9f0;
    color: #27ae60;
}

.risk-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.expand-toggle:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.expand-toggle.expanded {
    transform: rotate(180deg);
}

.risk-item-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.risk-item.expanded .risk-item-content {
    padding: 1.5rem;
    max-height: 1000px;
}

.risk-content-section {
    margin-bottom: 1.5rem;
}

.risk-content-section:last-child {
    margin-bottom: 0;
}

.risk-content-section h5 {
    color: var(--title-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-content-section h5 i {
    color: var(--accent);
    font-size: 0.8rem;
}

.risk-content-text {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.risk-item-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

/* Enhanced Filter Section */
.filter-card {
    background: transparent;
    border: 0px solid #e9ecef;
    border-radius: 12px;
 
}

.filter-header h3 {
    color: var(--title-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-header h3 i {
    color: var(--accent);
    font-size: 1rem;
}

/* Enhanced Risk List Header */
.risk-list-header {

    border-bottom: 2px solid var(--accent);
}

.risk-list-header h3 {
    color: var(--title-text);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading and Empty States */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h3 {
    color: var(--title-text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.no-results i {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    display: block;
}

.no-results p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Enhanced User Filter Styles */
.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.users-header h3 {
    color: var(--title-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* User Item Enhancements */
.user-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-details h4 {
    color: var(--title-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.user-details p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.user-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role.administratör,
.user-role.admin {
    background: #e74c3c;
    color: white;
}

.user-role.ledare,
.user-role.manager {
    background: #f39c12;
    color: white;
}

.user-role.anställd,
.user-role.employee,
.user-role.user {
    background: #3498db;
    color: white;
}

.user-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.active {
    background: #27ae60;
    color: white;
}

.status.inactive {
    background: #95a5a6;
    color: white;
}

.last-login {
    color: #6c757d;
    font-size: 0.8rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-actions button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.user-actions .btn-secondary:hover {
    background: #5a6268;
}

.user-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.user-actions .btn-danger:hover {
    background: #c82333;
}

.user-actions .btn-success {
    background: #28a745;
    color: white;
}

.user-actions .btn-success:hover {
    background: #218838;
}

/* Log Item Enhancements */
.log-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
    display: grid;
    grid-template-columns: 150px 150px 120px 1fr;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
}

.log-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.log-time {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.log-user {
    color: var(--title-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.log-action {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-details {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Filter Button Enhancements */
#clear-user-filters,
#clear-log-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#clear-user-filters:hover,
#clear-log-filters:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#clear-user-filters i,
#clear-log-filters i {
    font-size: 0.8rem;
}

/* User Access Info Styles */
.user-access-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.access-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-role-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.user-role-badge.clientflowadmin {
    background: #e74c3c;
}

.user-role-badge.ledare {
    background: #f39c12;
}

.user-role-badge.anställd {
    background: #3498db;
}

.user-byra-info {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.access-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

/* Tab Navigation */
.company-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.tab-button:hover {
    color: var(--accent);
    background: #f8f9fa;
}

.tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: #f8f9fa;
}

.tab-button i {
    font-size: 0.85rem;
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Overview Section */
.company-overview-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.overview-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.overview-icon {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.overview-content {
    flex: 1;
}

.overview-content label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.overview-content span {
    display: block;
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info Sections */
.info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

.section-header h4 {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Address Details */
.address-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.address-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-item label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-item span {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.address-item.full-address {
    grid-column: 1 / -1;
}

.address-item.full-address span {
    background: #e3f2fd;
    border-color: #2196f3;
    font-weight: 500;
}

/* Business Details */
.business-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.business-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.business-item label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-item span {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    line-height: 1.5;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* SNI Codes Container */
.sni-codes-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sni-code-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.sni-code-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.sni-code-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.sni-description {
    color: #212529;
    font-weight: 500;
    line-height: 1.4;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.missing-data {
    color: #dc3545;
    font-style: italic;
    font-weight: 500;
}

/* Company Names List */
.company-names-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-name-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.company-name-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.company-name-item.primary {
    background: #e3f2fd;
    border-color: #2196f3;
}

.name-number {
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.name-text {
    flex: 1;
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
}

.primary-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Additional Details */
.additional-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.additional-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.additional-item label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.additional-item span {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Tab Placeholder */
.tab-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.tab-placeholder h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.tab-placeholder p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.tab-placeholder small {
    color: #adb5bd;
    font-style: italic;
}

/* =====================================
   Customer List Styles
   ===================================== */

/* Customer Header */
.kund-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0;
}

.kund-header-content h1 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kund-header-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.kund-header-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.kund-header-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.kund-header-content ul {
    color: rgba(255,255,255,0.9);
    margin-left: 1.5rem;
}

.kund-header-content li {
    margin-bottom: 0.5rem;
}





.btn-icon {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--accent);
    color: white;
}

.btn-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
}



.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: var(--success);
    color: white;
}

.status-inactive {
    background: var(--warning);
    color: white;
}





/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text);
}

.no-results i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.no-results p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--text);
    font-size: 1rem;
}




