/* Compact filter form styling */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  max-width: 100%;

  background-color: white;
}
.filter-form label {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--primary-dark);
}
.filter-form input,
.filter-form select {
  width: auto;
  min-width: 120px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0;
  font-size: 1rem;
}
.filter-form button {
  padding: 0.3rem 1rem;
  font-size: 1rem;
  margin-top: 0;
}
form.formated {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  margin-right: 2rem;
  border: 1px solid var(--border);
 
}
form.formated .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
form.formated .form-row label {
  min-width: 120px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 0;
  margin-right: 1rem;
}
form.formated .form-row input,
form.formated .form-row textarea,
form.formated .form-row select {
  flex: 1;
  margin-bottom: 0;
}
form.formated input,
form.formated textarea,
form.formated select {
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  transition: border 0.2s;
}
form.formated input:focus,
form.formated textarea:focus,
form.formated select:focus {
  outline: none;
  border: 1.5px solid var(--primary);
}
form.formated button,
form.formated input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
form.formated button:hover,
form.formated input[type="submit"]:hover {
  background: var(--primary-dark);
}
/* TailAdmin-inspired admin panel stylesheet */
:root {
  --primary: #1c5bb9;
  --primary-dark: #0c3064;
  --bg: #f3f4f6;
  --sidebar-bg: #ffffff;
  --sidebar-text: #1c5bb9;
  --header-bg: #fff;
  --card-bg: #fff;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}
body {
  background: var(--bg);
  font-family: var(--font);
  color: #222;
  margin: 0;
}
#header {
  background: var(--header-bg);
  box-shadow: var(--shadow);
  padding: 0.5rem 2rem;
  padding-left: 280px;
  
  
  border-bottom: 1px solid var(--border);
}
.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
}
#sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  width: 220px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem 1rem;
  box-shadow: var(--shadow);
  border-right: solid 1px var(--border);
}
.menu-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem 0;
  color: var(--primary);
}
/* Sidebar menu flex for inline icons */
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
#sidebar ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
#sidebar ul li a {
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
}
#sidebar ul li a:hover {
  background: #d4dff0;
}
#content {
  margin-left: 270px;
  margin-right: 10px;
  padding: 0rem;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
thead {
  background: var(--bg);
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  font-weight: 600;
  color: var(--primary-dark);
}
tr:last-child td {
  border-bottom: none;
}
button, input, select {
  font-family: var(--font);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
}
button, input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}
button, input[type="submit"]:hover {
  background: var(--primary-dark);
}

input:focus, select:focus {
  outline: 2px solid var(--primary);
}

.flash {
    position: relative; /* For positioning the close button */
    padding: 10px 50px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    opacity: 1; /* Ensure they are initially fully visible */
    transition: opacity 0.5s ease-in-out; /* Add a transition for the opacity property */
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.flash.warning {
    background-color: #fff3cd;
    color: #85640a;
    border-color: #ffeeba;
}
.flash.info {
    background-color: #e0f7fa;
    color: #00838f;
    border-color: #b2ebf2;
}
.flash-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: x-large;
    line-height: 1;
    border: none;
    background: none;
    padding: 0;
    opacity: 0.7;
}

.flash-close-btn:hover {
    opacity: 1;
}


.customer-message {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}


.icon-delete,.icon-edit,.icon-view,.icon-action{
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: lighter;
  padding: 3px;
  border-radius: 5px;
  color:black;
  font-size: 24px;
}

.icon-edit {
  color: #f7a50f;
  border: solid 1px #f7a50f;
}
.icon-view{
border: solid 1px #2563d4;
color: #2563d4
}
.icon-delete{
  background:#e74c3c;
  border: solid 1px #e74c3c;
  color:#fff;
}
.icon-action{
  background:#4bb354;
  border: solid 1px #4bb354;
  color:#fff;
}
.skryte{
  display: none;
}

/* Small screen */
@media (max-width: 900px) {
  #sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 1rem;
  }
  #content {
    margin-left: 0;
    padding: 1rem;
  }
  #header {
    padding-left: 1rem;
  }
  .mobile-only {
    display: block;
  }
  .screen-only {
    display: none;
  }
  .on {
    display: block;
}
    .off {
        display: none;
    }
    }
/* Big screen */
@media (min-width: 900px) {
    .mobile-only {
        display: none;
    }
    .screen-only {
        display: block;
    }
    
}
.pagination-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  margin: .6rem 0 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pagination-bar .summary {
  color: #374151;
  font-weight: 500;
}
.pagination-bar .controls {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
a.button, button.button, span.button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .7rem;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  background: #e0e7ef;
  color: #222;
  text-decoration: none;
  line-height: 1.1;
  font: inherit;
  cursor: pointer;
}
a.button:hover, button.button:hover {
  background: #d4dff0;
}
.button.disabled {
  opacity: .6;
  pointer-events: none;
  cursor: default;
}
.button.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button.subtle {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--border);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dashboard-card .icon-wrapper {
  padding: 1.2rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.dashboard-card p {
  color: #666;
  margin: 0.5rem 0 0 0;
  text-align: center;
}
