body {
    background: #FAFAFA;
	padding: 0;
	margin: 0;
	font-family: 'Inter', sans-serif;
}

.login-container {
    padding-top: 20vh;
	display: flex;
    justify-content: center;
    align-items: center;
} 

.login-box {
    background: #FFF;
    box-shadow:  2px 4px rgb(0 0 0 / 05%);
    border-radius: 15px;
} 
.login-box .login-header {
    display: flex;
    justify-content: center;
    border-radius: 15px 15px 0 0;
    background: #2d2d2d;
} 
.login-box img {
    padding-top: 40px;
    padding-bottom: 40px;
    width: 200px;
} 

.login-box form {
    padding: 40px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    width: 360px;
} 
.login-box form input[type="email"]{
    height: 35px;
    font-size: 16px;
    padding-left: 15px;
    border-radius: 5px;
    border: none !important;
    background-color: #f2f2f2;
} 
.login-box form input[type="password"]{
    height: 35px;
    font-size: 16px;
    padding-left: 15px;
    border-radius: 5px;
    border: none !important;
    background-color: #f2f2f2;
} 
.login-box form button {
    height: 35px;
    font-size: 16px;
    padding-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    border: none !important;
    background-color: #f2f2f2;
    transition:
        background-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-box form button:hover {
    background-color: #CCCCCC;
    transform: translateY(-1px);
}

.login-msg {
    text-align: center;
    padding: 10px 20px 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

.login-msg.error {
    color: #c00;
}

.login-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    text-align: center;
    background: #f2f2f2;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.login-banner.error {
    background: #fef2f2;
    color: #c00;
    border-bottom-color: #fecaca;
}

#content {
	display: flex;
} 
.navbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
	background: #000;
	width: 320px;
}
.navbar-inner-wrapper {
	width: 75%;
}
.img-wrapper {
	padding-top: 5vh;
}
.user-wrapper {
	padding-top: 40px;
	padding-bottom: 30px;
	border-bottom: #FFF 1px solid;
}	
.user-wrapper h4 {
	margin: 0;
	color: #FFF;
	font-size: 22px;
	padding-bottom: 3px;
}
.user-wrapper span {
	margin: 0;
	color: #FFF;
	font-size: 17px;
}
.menu-items ul {
	list-style-type: none;
	padding: 0;
}
.menu-items ul li .menu-item {
    display: flex;
    align-items: center;
	margin-bottom: 2px;
	color: #FFF;

}
.menu-items ul li .submenu {
    padding-bottom: 10px;

}
.menu-items ul li img {
	max-width: 40px;
    margin-right: 25px;
}
.menu-items .submenu li {
    padding-left: 80px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.menu-items a {
    color: #FFF;
    text-decoration: none;
}

.menu-items a:hover {
    opacity: 0.7;
}
.single-menu-item {
    margin-bottom: 15px !important;
}
.main-content {
	width: 100%;
	margin-left: 320px;
}
.inner-wrapper {
	width: 85%;
	max-width: 1200px;
	padding-top: 60px;
	padding-bottom: 80px;
	margin-left: auto;
	margin-right: auto;
}
.category-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 7px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.category-btn:hover {
    border-color: #aaa;
    color: #000;
}

.category-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.category-count {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    border-radius: 25px;
    padding: 1px 7px;
    font-size: 11px;
    margin-left: 4px;
}

.category-btn.active .category-count {
    background: rgba(255,255,255,0.2);
}

.top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
}
.columns-header ul {
	display: flex;
	list-style-type: none;
	gap: 10px;
}
.columns-header ul li {
	font-family: 'Inter', sans-serif;
	font-style: italic;
}
.columns-header ul li:after {
	content: "/";     
  	margin-left: 5px;
}

.columns-header ul li:last-child::after {
  content: "";
}
.upper-wrapper {
	display: flex;
	border-radius: 20px 20px 0 0;
	align-items: center;
	background: #E9E9E9;
	padding-left: 35px;
	padding-right: 35px;
	padding-top: 35px;
	padding-bottom: 20px;
	gap: 30px;
}
.search-bar {
	display: flex;
	flex: 1;
}
.search-bar input {
	height: 40px;
	padding-left: 15px;
	text-align: center;
	border-radius: 25px !important;
	background: #FFF;
	border: none;
	width: 100%;
}
.filter {
	display: flex;
	align-items: center;
	justify-content: center;
}
.filter button {
    background: none;
    cursor: pointer;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}
.filter-btn-img {
    height: 40px;
}
.filter-btn-active .filter-btn-img {
}

.filter-row {
    display: none;
    gap: 50px;
    background: #E9E9E9;
    padding: 0 35px 20px 55px;
}

.filter-row.active {
    display: flex;
}

.filter-group {
    position: relative;
}

.filter-trigger {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
}

.filter-value {
    font-weight: 400;
    padding-left: 10px;
    text-transform: none;
    color: #555;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 130px;
    z-index: 100;
    overflow: hidden;
}

.filter-dropdown.open {
    display: block;
}

.filter-option {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-option:hover {
    background: #f0f0f0;
}

.filter-option.selected {
    font-weight: 600;
}
#table-wrapper {
	width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.table-header-bg {
  width: 100%;
  background-color: #E9E9E9;
}

.table-header-bg table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-header-bg th {
  text-align: left;
  padding: 12px;
}

.table-body-bg {
  width: 100%;
  background-color: #f5f5f5; 
  display: flex;
  justify-content: center;
}

#orders-table,
#companies-table,
#places-table,
#brokers-table,
#categories-table,
#roles-table,
#clients-table {
  width: 100%;
  background-color: #f5f5f5;
}

.order-row {
    display: flex;
    padding: 25px 30px; /* Padding på hela raden - enkelt! */
    transition: background-color 0.2s ease;
    align-items: center;
}
.order-row-header {
    display: flex;
    padding: 20px 30px;
    transition: background-color 0.2s ease;
}
.order-row-header .order-cell{
    font-weight: 600;
}

.order-row:hover {
    background-color: #FFF;
}

.order-row.clickable-row {
    cursor: pointer;
}

.candidate-light .order-row:hover {
    background-color: #d7ecc6;
}

.order-cell {
    flex: 1; /* Alla celler lika breda */
    padding: 0 10px; /* Spacing mellan celler */
    font-style: italic;
}
.cell-sm {
    flex: 0.65 !important;
}
.cell-md-sm {
    flex: 0.70 !important;
}
.cell-1 {
    flex: 2 !important;
}
.cell-md-lg {
    flex: 1.1 !important;
}
.cell-md {
    flex: 1.3 !important;
}
.cell-lg {
    flex: 1.5 !important;
}
.cell-xl {
    flex: 1.7 !important;
}
.cell-xl2 {
    flex: 1.8 !important;
}
.cell-xxl {
    flex: 2 !important;
}
.order-cell:first-child {
    padding-left: 0;
}

.order-cell:last-child {
    padding-right: 0;
}
#create-order-btn {
    background: #D9D9D9;
    width: 100%;
    padding: 20px;
    border-radius: 0px 0px 20px 20px;
    border: none;
}
#create-order-btn:hover {
    background: #cccccc;
}
#candidate-count {
    margin-bottom: 15px;
}

.candidate {
	background: #D7ECC6;
}
.candidate-light {
	background: #FAFFF7;
}
#candidates-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Beställare */
.client {
    background: #D6E4F0;
}
.client-light {
    background: #F5F8FC;
}
.client-light .order-row:hover {
    background-color: #d6e4f0;
}
#clients-table {
    width: 100%;
}
#client-count {
    margin-bottom: 15px;
}

#candidates-table td {
  text-align: left;
  padding: 12px;
  font-style: italic;
}
#candidates-table tr:hover {
    background: #d7ecc6;
    transition: background-color 0.3s ease;
}
#candidates-table td:first-child {
    padding-left: 20px;
}

#candidates-table td:last-child {
    padding-right: 20px;
}

#create-candidate-btn {
    background: #D7ECC6;
    width: 100%;
    padding: 20px;
    border: none;
 }  
 #create-candidate-btn:hover {
    background: #c9e6b3;
 }   
#edit-candidate-btn,
#edit-client-btn {
    background: #D9D9D9;
    width: 100%;
    padding: 20px;
    border: none;
 }
 #edit-candidate-btn:hover,
 #edit-client-btn:hover {
    background: #cccccc;
 }
 .no-files {
    font-size: 14px;
    padding: 1rem !important;
 }
.files-widgets {
    margin-top: 30px;
    display: flex;
    gap: 80px;
}
.file-widget {
    flex: 1;
}
.file-widget h3 {
    font-size: 16px;
}
.kp-files-header {
    background: #E9E9E9;
    display: flex;
    padding: 15px 15px;
    border-radius: 15px 15px 0px 0px;
}
.file-name {
    flex: 2;
    padding-left: 5px;
    font-weight: 600;
    font-size: 15px;
}
.file-uploaded {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}


.widget-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #F5F5F5;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.widget-file-item:hover {
    background: #f5f5f5;
}

.file-meta-wrapper {
 flex: 1;
 font-size: 14px;
}

.file-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.file-link {
    padding-left: 5px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    flex: 2;
}

.file-link:hover {
    text-decoration: none;
}

.delete-file-btn {
    width: 24px;
    height: 24px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 50%;
    color: #c00;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
    opacity: 0; 
    transition: opacity 0.2s ease;
}
.add-file-btn {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    background: #D9D9D9;
    border-radius: 0px 0px 15px 15px;
}
.add-file-btn:hover {
   background-color: #cccccc;
}

.widget-file-item:hover .delete-file-btn {
    opacity: 1;  
}

.delete-file-btn:hover {
    background: #fcc;
    border-color: #f99;
}
#order-form-wrapper {
	margin-top: 30px;
	width: 100%;
}

#candidate-form-wrapper {
	margin-top: 30px;
}
#order-form {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.order-details {
	display: flex;
	padding: 45px;
	background: #F5F5F5;
	gap: 60px;
	border-radius: 25px 25px 0 0;
}
.candidate-details {
	display: flex;
	padding: 45px;
	background: #D7ECC6;;
	gap: 60px;
}
.company-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.order-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.order-source {
	display: flex;
	gap: 40px;
	align-items: center;
}
.order-source > label {
	flex: 0 0 100px;
}
.order-source select,
.order-source input,
.order-source .autocomplete-wrapper,
.order-source .end-date-wrapper {
	flex: 1;
	box-sizing: border-box;
}
.order-source select,
.order-source input {
	min-width: 0;
}

.logout-wrapper {
	position: absolute;
	top: 5px;
	right: 5px;
	padding-top: 20px;
	padding-right: 30px;
}
.autocomplete-wrapper {
    position: relative;
}

.end-date-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.end-date-wrapper input[type="date"],
.end-date-wrapper input[type="text"] {
    flex: 1;
}

.end-date-wrapper .indefinite-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
    flex: none;
}

.end-date-wrapper .indefinite-label input[type="checkbox"] {
    flex: none;
}

.autocomplete-input-row {
    display: flex;
    gap: 0;
}

#company-input {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
}

.autocomplete-toggle {
    flex: 0 0 32px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: white;
    cursor: pointer;
    font-size: 10px;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete-toggle:hover {
    background: #f5f5f5;
    color: #555;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item.no-results {
    cursor: default;
    color: #999;
    font-style: italic;
}

.suggestion-item.no-results:hover {
    background: white;
}
.suggestion-item strong {
    font-weight: 600;
    color: #000;
}
/* Style selects like autocomplete */
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

select:focus {
    outline: none;
    border-color: #000;
}

select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* Uppdatera även textinputs för konsistens */
input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus {
    outline: none;
    border-color: #000;
}
input:focus::placeholder {
    opacity: 0;
}

textarea:focus::placeholder {
    opacity: 0;
}
input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

input[type="number"]:focus {
    outline: none;
    border-color: #000;
}
input[type="date"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

input[type="date"]:focus {
    outline: none;
    border-color: #000;
}

.order-source input[type="email"],
.order-source input[type="password"],
.order-source input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.order-description-wrapper {
	display: flex;
	padding-left: 45px;
	padding-right: 45px;
	padding-bottom: 35px;
	background: #f5f5f5;
	flex-direction: column;
}
.candidate-description-wrapper {
	display: flex;
	padding-left: 45px;
	padding-right: 45px;
	padding-bottom: 35px;
	background: #D7ECC6;
	flex-direction: column;
}
textarea {
	margin-top: 15px;
    padding-left: 15px;
	padding-top: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #000;
}
.input-error {
	border: 1px solid #e74c3c !important;
}
.field-error {
	color: #e74c3c;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

/* Toast notifications */
#toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 2000;
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
}
.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #fff;
	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.3s, transform 0.3s;
	max-width: 360px;
	cursor: pointer;
}
.toast-icon {
	font-size: 18px;
	font-weight: 700;
	flex-shrink: 0;
}
.toast-visible {
	opacity: 1;
	transform: translateX(0);
}
.toast-success {
	background: #2d2d2d;
}
.toast-error {
	background: #e74c3c;
}

/* Modal input */
.modal-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}
.modal-box p {
	margin: 0 0 16px;
	font-size: 15px;
}
.submit-wrapper {
	display: flex;
}
.submit-wrapper button {
	flex: 1;
	padding: 20px;
	border: none;
}
.submit-wrapper .submit-btn {
	border-radius: 0px 0px 0px 25px;
}
.submit-wrapper .cancel-btn {
	border-left: 1px solid #e0e0e0;
}
.submit-btn {
	text-transform: uppercase;
	font-size: 14px;
	border-radius: 0px 0px 25px 25px;
	cursor: pointer;
}
.submit-btn:hover {
	background-color: #d9d9d9;
}

.cancel-btn {
	border-radius: 0px 0px 25px 0px;
	text-transform: uppercase;
	font-size: 14px;
	cursor: pointer;
}
.cancel-btn:hover {
	background: #cccccc;
}
/* Order details read-only view */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-text-link {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-text-link:hover {
    color: #000;
}

.back-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.back-btn:hover {
    background: #f5f5f5;
}

.detail-field {
    margin-bottom: 1rem;
}

.detail-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.detail-field span {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.description-content {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    white-space: pre-wrap;
    margin-top: 0.5rem;
    min-height: 100px;
}

#edit-order-btn {
    width: 100%;
    padding: 20px;
    border: none;

}
.readonly-value {
    flex: 4;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #333;
}
.candidate-value {
background: #f1f8ec;
}

.readonly-value.description-content {
    width: 100%;
    min-height: 100px;
    white-space: pre-wrap;
    padding: 12px;
}
/* Comments widget */
#comments-widget-container {
    margin-top: 3rem;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.add-comment {
    flex-direction: column;
    margin-bottom: 2rem;
}
.comment-wrapper {
    border-radius: 15px 15px 0px 0px;
    display: flex;
    padding: 20px;
    background-color: #EBF1FF;
}
#comment-textarea {
    flex: 1;
    padding: 15px;
    margin-top: 0px !important;
}
#candidate-comment-textarea {
    flex: 1;
    padding: 15px;
    margin-top: 0px !important;
}
#add-candidate-comment-btn,
#add-client-comment-btn {
    width: 100%;
    background: #D8E0ED;
    padding: 20px;
    border: none;
    border-radius: 25px 25px 25px 25px;
}
#add-candidate-comment-btn:hover,
#add-client-comment-btn:hover {
    background: #cbd5e7;
}

#add-comment-btn {
    width: 100%;
    background: #D8E0ED;
    padding: 20px;
    border: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: #EBF1FF;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comment-meta {
    background: #D8E0ED;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-user {
    font-weight: 600;
    font-size: 1rem;
}

.comment-date {
    font-style: italic;
    font-size: 0.85rem;
    color: #666;
}

.comment-text {
    white-space: pre-wrap;
    line-height: 1.6;
    padding: 1.5em;
}

.no-comments {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}
/* File upload section */
.file-upload-section {
    position: relative;
	background: #D7ECC6;
    padding: 1rem 0;
}

.file-upload-buttons {
    position: absolute;
    top: 31px;
    right: 66px;
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.file-btn {
    padding: 10px 20px;
    border-radius: 10px 10px 0px 0px;
    border: none;
    background: #D9D9D9;
    cursor: not-allowed;
    font-family: 'Inter', sans-serif;
    opacity: 0.5;
}

.file-btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.file-btn:not(:disabled):hover {
    background: #f5f5f5;
}

/* Candidate comment layout with delete button */
.comment-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.comment-content-wrapper .comment-text {
    flex: 1;
}

.delete-comment-btn {
    width: 24px;
    height: 24px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 50%;
    color: #c00;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.comment-item:hover .delete-comment-btn {
    opacity: 1;
}

.delete-comment-btn:hover {
    background: #fcc;
    border-color: #f99;
}
.candidates-widget {
    margin-top: 60px;
}

.candidates-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.candidates-widget .submit-btn {
    width: 100%;
    background: #D7ECC6;
    padding: 20px;
    border: none;
}

.orders-widget {
    margin-top: 60px;
}

.orders-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.no-candidates {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    opacity: 0.7;
}

.sort-asc::after {
    content: ' ↑';
    font-style: normal;
}

.sort-desc::after {
    content: ' ↓';
    font-style: normal;
}

.stage-plus-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.stage-plus-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

/* Datum delete bredvid datum */
.date-cell-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.date-delete-btn {
    position: absolute;
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 50%;
    color: #c00;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.date-delete-btn:hover {
    background: #fcc;
    border-color: #f99;
}

.date-cell-wrapper:hover .date-delete-btn {
    opacity: 1;
}

/* Kandidat-namn länk */
.candidate-name-link {
    color: inherit;
    text-decoration: none;
}

.candidate-name-link:hover {
    text-decoration: underline;
}

/* Rad delete-knapp (ta bort kandidat från order) */
.candidate-order-row {
    position: relative;
}

.row-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 50%;
    color: #c00;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.candidate-order-row:hover .row-delete-btn,
.order-row:hover .row-delete-btn,
.order-row:hover .row-restore-btn {
    opacity: 1;
}

.row-restore-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 50%;
    color: #2e7d32;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.row-restore-btn:hover {
    background: #c8e6c9;
    border-color: #81c784;
}

.company-toggle-btn {
    background: #ddd;
    border: none;
    border-radius: 25px;
    height: 58px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.company-toggle-btn:hover {
    background: #ccc;
}

.create-company-btn {
    background: #D9D9D9;
    width: 100%;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
}

.create-company-btn:hover {
    background: #ccc;
}

.row-delete-btn:hover {
    background: #fcc;
    border-color: #f99;
}

/* Kontaktstatus-färger på kandidatrader */
.contact-green {
    background-color: #e8f5e9;
}
.contact-green:hover {
    background-color: #c8e6c9;
}
.contact-yellow {
    background-color: #fff8e1;
}
.contact-yellow:hover {
    background-color: #ffecb3;
}
.contact-red {
    background-color: #ffebee;
}
.contact-red:hover {
    background-color: #ffcdd2;
}

/* Snabbkontakt-knapp i kandidatlistan */
.quick-contact-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.order-row:hover .quick-contact-btn {
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.modal-box h3 {
    margin: 0 0 16px;
}
.modal-box textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.modal-actions button {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}
.modal-actions .submit-btn {
    background: #D8E0ED;
}
.modal-actions .submit-btn:hover {
    background: #cbd5e7;
}
.modal-actions .cancel-btn {
    background: #e9e9e9;
}
.modal-actions .cancel-btn:hover {
    background: #cccccc;
}

#present-candidate-btn {
    background: #D7ECC6;
    width: 100%;
    padding: 20px;
    border: none;
}
#present-candidate-btn:hover {
    background: #c9e6b3;
}

.present-search-panel {
    position: relative;
    padding: 16px 20px;
    background: #D7ECC6;
}

.present-search-panel input[type="text"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    box-sizing: border-box;
}

.present-search-panel input[type="text"]:focus {
    outline: none;
    border-color: #a0d08a;
    box-shadow: 0 0 0 3px rgba(167, 208, 138, 0.2);
}

#candidate-search-results {
    position: absolute;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 6px;
}

.candidate-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.candidate-search-item:last-child {
    border-bottom: none;
}

.candidate-search-item:hover {
    background: #f9fdf7;
}

.already-presented {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.present-new-btn {
    background: #D7ECC6;
    border: 1px solid #b8dcaa;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.present-new-btn:hover {
    background: #c9e6b3;
    border-color: #a0d08a;
}

.settings-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.setting-item {
    padding: 2rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-item:hover {
    background: #f9f9f9;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.setting-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.setting-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-only {
    display: none;
}


.settings-wrapper {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.settings-toggle {
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.settings-toggle img {
    max-width: 40px;
    margin-right: 25px;
}

.settings-toggle:hover span {
    opacity: 0.7;
}

.settings-dropdown {
    list-style: disc;
    padding: 0 0 0 65px;
    margin: 0;
    display: none;
}

.settings-dropdown.open {
    display: block;
}

.settings-dropdown li {
    padding: 8px 0 8px 0;
    color: #fff;
}

.settings-dropdown li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}

.settings-dropdown li a:hover {
    opacity: 1;
}

.cal-dropdown {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 16px;
    width: 260px;
    font-family: 'Inter', sans-serif;
}

.cal-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-month-label {
    font-weight: 600;
    font-size: 14px;
}

.cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 0 6px;
    color: #333;
    line-height: 1;
}

.cal-nav:hover {
    color: #000;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    padding-bottom: 6px;
}

.cal-day {
    text-align: center;
    padding: 7px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.1s ease;
}

.cal-day:hover {
    background: #f0f0f0;
}

.cal-empty {
    cursor: default;
}

.cal-empty:hover {
    background: none;
}

.cal-today {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.cal-today:hover {
    background: #333;
}

