body {background-color: #EEEEEE;}
.checkbox {width:12px;height:12px;}

h1 {font-size: 1.5rem;}
h2 {font-size: 1.3rem;}
h3 {font-size: 1.1rem;}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1,5rem;
    }

container-fluid {
    margin-top: 50px;
}

/*
.kvitto {
	border-top-width: thin;
	border-bottom-width: thin;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
}

.table_admin_list {
	border-bottom-width: thin;
	border-bottom-style: solid;
	border-bottom-color: #CCCCCC;
	border-left-width: thin;
	border-left-style: solid;
	border-left-color: #DBDBDB;
}
*/



span.red {
  background: red;
   border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.red {
  color: red;	
}


span.orange {
  background: orange;
  border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  color: #000000;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.orange {
  color: orange;	
}

span.green {
  background: #5EA226;
  border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.green {
  color: #5EA226;	
}

span.grey {
  background: #C0C0C0;
  border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.grey {
  color: #C0C0C0;	
}

span.blue {
  background: #2DCCFF;
   border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.blue {
  color: #2DCCFF;	
}

span.purple {
  background: #bf00ff;
   border-radius: 0.8em;
  -moz-border-radius: 0.8em;
  -webkit-border-radius: 0.8em;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  line-height: 1.6em;
  margin-right: 15px;
  text-align: center;
  width: 1.6em; 
}

i.purple {
  color: #bf00ff;	
}

  .bo-card {
        border: 1px solid #212529;
    }

    .bo-head {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .bo-total {
        font-size: 0.82rem;
        color: #6c757d;
    }

    .bo-row {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0.42rem 0.6rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        overflow: hidden;
        background: #f8f9fa;
    }

    .bo-row:last-child {
        border-bottom: 0;
    }

    /* Progress-bakgrund */
    .bo-row-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    .bo-row-content {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bo-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-right: 0.5rem;
    }

    .bo-right {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        white-space: nowrap;
        font-weight: 600;
    }

    .bo-count {
        font-family: monospace;
    }

    .bo-badge {
        font-size: 0.7rem;
        padding: 0.18rem 0.42rem;
        border-radius: 999px;
        border: 1px solid rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.65);
    }

    /* ===== Färgteman ===== */

    /* OK */
    .bo-ok {
        border-left: 4px solid #198754;
    }
    .bo-ok .bo-row-fill {
        background: rgba(25,135,84,0.10);
    }
    .bo-ok .bo-right {
        color: #198754;
    }

    /* FÅ KVAR */
    .bo-few {
        border-left: 4px solid #ffc107;
    }
    .bo-few .bo-row-fill {
        background: rgba(255,193,7,0.12);
    }
    .bo-few .bo-right {
        color: #b38600;
    }

    /* FULL */
    .bo-full {
        border-left: 4px solid #dc3545;
    }
    .bo-full .bo-row-fill {
        background: rgba(220,53,69,0.12);
    }
    .bo-full .bo-right {
        color: #dc3545;
    }



/* Enkel adminmeny */
.nav:not(.navbar-nav) {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 8px;
    margin: 0;
    list-style: none;
}

/* Menyval */
.nav:not(.navbar-nav) .nav-link {
    display: block;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

/* Hover */
.nav:not(.navbar-nav) .nav-link:hover {
    background: #e9ecef;
    color: #000;
}

/* Aktiv sida */
.nav:not(.navbar-nav) .nav-link.active {
    background: #0d6efd;
    color: #fff !important;
    font-weight: 600;
}

/* Sista länken utan extra mellanrum */
.nav:not(.navbar-nav) .nav-item:last-child .nav-link {
    margin-bottom: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
}

.navbar-dark .navbar-nav .nav-item:first-child {
    margin-left: 1rem;
}

.navbar-dark .navbar-nav .nav-item:last-child {
    margin-right: 5rem;
}

.navbar-dark .nav-icon-link {
    margin-right: 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .nav-icon-link:hover,
.navbar-dark .nav-icon-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .nav-icon-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.navbar-dark .nav-icon-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
}

.login-nav-input {
    width: 10rem;
}

.settings-check {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.settings-check .form-check-input {
    margin-top: 0;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-dark {
        padding: 0.4rem 0.75rem;
    }

    .navbar-dark .navbar-collapse {
        padding-top: 0.5rem;
    }

    .navbar-dark .navbar-nav {
        width: 100%;
        margin: 0 !important;
        gap: 0.25rem;
    }

    .navbar-dark .navbar-nav .nav-item:first-child,
    .navbar-dark .navbar-nav .nav-item:last-child {
        margin-left: 0;
        margin-right: 0;
    }

    .navbar-dark .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.6rem 0.75rem;
    }

    .navbar-dark .navbar-nav .dropdown-menu {
        width: 100%;
        margin: 0.15rem 0 0.35rem;
        padding: 0.25rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
    }

    .navbar-dark .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.86);
        padding: 0.55rem 0.75rem 0.55rem 1.25rem;
        border-radius: 8px;
    }

    .navbar-dark .navbar-nav .dropdown-item:hover,
    .navbar-dark .navbar-nav .dropdown-item:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

    .navbar-dark .navbar-nav .dropdown-item.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
    }

    .navbar-dark .nav-icon-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0.35rem 0 0;
    }

    .navbar-dark form {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .login-nav-input {
        width: min(10rem, 100%);
    }
}

.detail-hero {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem;
}

.detail-actionbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.detail-metric {
    min-width: 7rem;
    font-size: 0.9rem;
}

.detail-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .detail-card-wide {
        grid-column: 1 / -1;
    }
}

.detail-table {
    margin-bottom: 0;
}

.detail-table td:first-child {
    width: 38%;
    color: #6c757d;
    font-weight: 600;
}

.detail-table td {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    font-size: 0.9rem;
}

.detail-section th {
    background: #f1f3f5 !important;
    color: #212529;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.detail-view input[type="text"],
.detail-view input[type="date"],
.detail-view input[type="number"],
.detail-view select {
    display: block;
    width: 100%;
    max-width: 34rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.detail-invoice-group td {
    background: #f8fafc !important;
    border-left: 2px solid #ced4da;
    border-right: 2px solid #ced4da;
}

.detail-invoice-group-start td {
    border-top: 2px solid #ced4da;
    color: #495057;
    font-weight: 700;
    padding-top: 0.45rem;
}

.detail-invoice-group-end td {
    border-bottom: 2px solid #ced4da;
    padding-bottom: 0.45rem;
}

.konf-se-tinymce .tox-editor-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.konf-se-tinymce .tox-menubar {
    flex: 1 1 auto;
}

.konf-se-tinymce .tox-toolbar-overlord {
    flex: 0 0 auto;
    background: transparent;
}

.konf-se-tinymce .tox-toolbar__primary {
    background: transparent;
}
