/**
 * Tagsprinter - Modern Professional B2B Design System
 * 
 * DESIGN STRATEGY: "Layered Contrast"
 * 1. Base (Information): Pure White (#ffffff)
 * 2. Form Area (Work Zone): Ghost Blue Tint (#f4f7f9) - defines focus.
 * 3. Interaction Points (Inputs): Pure White (#ffffff) - invites interaction.
 * 4. Control Elements (Buttons): Professional Slate (#34495e) - clearly actionable.
 * 5. Accents: Tagsprinter Blue (#3498db) - consistent brand identity.
 * 6. Content Tips/Highlights: Soft Gold (#fff3cd) - distinct from functional areas.
 */

span.plus_icon {
	background-image: url(/en/forms/images/add2-min.png);
}
span.import_icon {
	background-image: url(/en/forms/images/import5-min.png);
}

/* Brand and Navigation */
.navbar, .navbar * {
  box-sizing: border-box;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2c3e50;
  padding: 0 1rem;
  min-height: 60px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: white;
}

.navbar .nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Desktop Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-menu a, 
.navbar .nav-menu .nav-item {
  color: #ecf0f1;
  text-decoration: none;
  padding: 1rem;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent; /* Prevent jitter on active state */
}

@media (hover: hover) {
  .navbar .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

.navbar .nav-menu a.active {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-weight: 600;
  border-bottom: 3px solid #3498db; /* Blue accent line on desktop */
}

/* On mobile, move the accent to the left for better visual hierarchy */
@media screen and (max-width: 768px) {
  .navbar .nav-menu a.active {
    border-bottom: none;
    border-left: 4px solid #3498db;
    background-color: rgba(0, 0, 0, 0.15);
  }
}

.nav-menu .language-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 8px;
}

.nav-menu select {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.nav-menu select option {
  color: #333;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.4);
    z-index: 1000;
  }

  .nav-menu.is-active {
    display: flex;
  }

  .navbar .nav-menu a, 
  .navbar .nav-menu .nav-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar .nav-menu select {
    width: 100% !important; 
    max-width: 200px;
  }
}

span.display-contents {
  display: contents;
}

.main-content {
  box-sizing: border-box;
  max-width: 1024px;
  margin: 0 auto 20px auto;
  padding: 0 5px; /* Reduced to 5px to maximize form width on mobile */
  word-wrap: break-word; /* Prevent long text from overflowing */
}

@media screen and (min-width: 1034px) {
  .main-content {
    padding: 0; 
  }
}

.homepage-hero {
  text-align: center;
  padding: 2rem 0;
}

.homepage-menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  font-size: 2.5rem; /* Balanced base size */
  font-weight: 300;
}

.homepage-menu li {
  margin-bottom: 1.5rem;
}

.homepage-menu a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.2s;
}

.homepage-menu a:hover {
  color: #2980b9;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .homepage-menu {
    font-size: 1.75rem; /* Smaller for mobile */
  }
}

/* --- Professional B2B Content Blocks --- */

/* --- Professional B2B Content Blocks (Layered Design) --- */

/* Unified Form Container (The "Work Zone") */
.formdiv, .new-form.default-style {
  background-color: #f4f7f9; /* Subtle "Ghost Blue" tint */
  border: 1px solid #d1d8e0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#print-settings {
  background-color: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Form Elements (The "Interaction Points") */
input[type="text"], 
input[type="password"], 
textarea, 
select {
  background-color: #ffffff !important; /* Pure white makes inputs 'pop' on the tinted background */
  border: 1px solid #c8d1d9 !important;
  border-radius: 3px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

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

/* Grid & Modals */
.grid-header, .grid-root {
  border-radius: 3px;
}

.grid-header {
  background-color: #2c3e50;
  color: white;
  border: none;
}

.grid {
  background-color: #f8f9fa;
  border: 1px solid #d1d8e0;
}

.grid-item {
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

/* Modal/Featherlight Overrides */
.featherlight .featherlight-content {
  background-color: #ffffff;
  border: 1px solid #d1d8e0;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Global Elements */
a, a:link, a:visited,
span.reg_text, 
span.enter_text, 
span.sendpass_text {
  color: #2980b9; /* Darker blue for accessibility (WCAG AA) */
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

a:hover,
span.reg_text:hover, 
span.enter_text:hover, 
span.sendpass_text:hover {
  color: #1c5a85; /* Even darker on hover */
  text-decoration: underline;
}

hr {
  background-color: #d1d8e0;
  color: #d1d8e0;
  height: 1px;
}

/* Content Tips/Highlights (Soft Gold) */
.tinytip {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #2c3e50;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Brand and Navigation */

/* CRUD Tables & Controls - Unified "Work Zone" Palette */
.crudcontainer th, 
.crudcontainer div.buttons, 
.crudcontainer li a.active, 
.crudcontainer .active,
.tabulator .tabulator-header,
.tabulator .tabulator-header .tabulator-col {
  background: #f4f7f9 !important;
  color: #2c3e50;
  border-bottom: none; /* Removed divider */
  font-weight: 700;
}

/* Unselected Tabs - Lighter & Clean */
.crudcontainer li a:not(.active) {
  background-color: #ffffff;
  color: #7f8c8d;
  border: 1px solid #dcdde1;
  border-bottom: none;
  font-weight: 500;
}

.crudcontainer li a.active,
.crudcontainer .active {
  border-top: 3px solid #3498db;
  border-bottom: 2px solid #f4f7f9; /* Merge with the header below */
}

.crudcontainer ul {
  background-color: transparent;
  border-bottom: none;
  margin-bottom: 0;
}


/* --- Context-Specific Table Headers (Inside Forms) --- */
.formdiv th, 
.new-form th,
.formdiv .crudcontainer th,
.new-form .crudcontainer th {
  background-color: #e2e6ea; /* Medium Gray to stand out against Ghost Blue */
  color: #2c3e50;
  border-bottom: 1px solid #d1d8e0;
  font-weight: 700;
}

/* Modernize .forms Table Container */
.forms {
  border: 1px solid #d1d8e0;
  margin: 10px 0; /* Fixed vertical margin, remove side margins */
  width: 100%; /* Take full container width */
  border-radius: 3px;
  border-collapse: collapse;
  box-sizing: border-box;
}

.forms td {
  border: 1px solid #e2e6ea;
}

/* Secondary/Action Links as Buttons (Moved below generic buttons) */

/* Tiny Buttons (Moved below generic buttons) */

/* Tabulator & CRUD Table Cleanup - Borderless Design */


/* Friendly Professional Buttons */
/* Using selectors that match or exceed common.css specificity */
button,
.new-form button,
input[type="submit"],
#formdiv input[type="submit"],
.formdiv input[type="submit"],
.new-form input[type="submit"],
input[type="button"],
.new-form input[type="button"],
.fd-buttons button.fd-btn-primary,
.fd-buttons button.fd-confirm-btn {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  cursor: pointer;
  padding: 8px 16px;
}

button:hover,
.new-form button:hover,
input[type="submit"]:hover,
#formdiv input[type="submit"]:hover,
.formdiv input[type="submit"]:hover,
.new-form input[type="submit"]:hover,
input[type="button"]:hover,
.new-form input[type="button"]:hover,
.fd-buttons button.fd-btn-primary:hover,
.fd-buttons button.fd-confirm-btn:hover {
  background: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

button:active,
.new-form button:active,
input[type="submit"]:active,
#formdiv input[type="submit"]:active,
.formdiv input[type="submit"]:active,
.new-form input[type="submit"]:active,
input[type="button"]:active,
.new-form input[type="button"]:active,
.fd-buttons button.fd-btn-primary:active,
.fd-buttons button.fd-confirm-btn:active {
  transform: translateY(1px);
}

/* Tiny Buttons - specific override */
button.tinybutton {
  background: #3498db; /* Tagsprinter Blue */
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s;
  padding: 4px 12px; /* Smaller padding */
}

button.tinybutton:hover {
  background: #2980b9;
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Secondary/Action Links as Buttons */
/* Specificity boost + Order to beat the inputs above */
.action_link, 
.button_as_link,
input[type="submit"].button_as_link,
#formdiv input[type="submit"].button_as_link,
button.button_as_link,
#formdiv button.button_as_link,
.formdiv input[type="submit"].button_as_link,
.new-form input[type="submit"].button_as_link {
  color: #3498db;
  font-weight: 600;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.button_as_link:hover {
  color: #2980b9;
}

/* Tabulator Pagination (Note: Tabulator CSS must load BEFORE this file for overrides) */
.tabulator .tabulator-footer {
  background: #f4f7f9;
  color: #2c3e50;
  border-top: 1px solid #d1d8e0;
}

.tabulator .tabulator-footer .tabulator-page.active {
  color: #2c3e50;
}

/* Explicit override for Tabulator buttons to ensure Blue background */
.tabulator .tabulator-footer .tabulator-page {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  padding: 8px 16px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.tabulator .tabulator-footer .tabulator-page:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tabulator .tabulator-footer .tabulator-page:active {
  transform: translateY(1px);
}
/* --- End of Styles --- */
