* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Futura", Arial, sans-serif;
}
/* ===== Fixed header: SlateGrey theme ===== */
:root{
  --header-h: 64px;              /* skrivs över av JS efter inladdning */
  --hdr-bg: #708090;             /* SlateGrey */
  --hdr-bg-dark: #647383;        /* hover/mörkare nyans */
  --hdr-text: #ffffff;           /* vit text */
  --hdr-accent: #ffd166;         /* varm accent vid hover */
  --dropdown-bg: #ffffff;        /* ljus dropdown för läsbarhet */
  --dropdown-text: #1f2937;
  --dropdown-border: rgba(0,0,0,.08);
  --dropdown-hover: #f3f4f6;
}

#main-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--hdr-bg);
  color: var(--hdr-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body{ padding-top: var(--header-h); }

/* Innehåll i headern */
#main-header .header-top{
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

/* Loggan – ingen filter (vi kör ljus text, logga orörd) */
#main-header .logo-left .logo{
  height: 36px; width: auto; display: block; filter: none;
}

/* Länkar i headern */
#main-header a{
  color: var(--hdr-text);
  text-decoration: none;
}
#main-header a:hover{
  color: var(--hdr-accent);
}

/* Hamburger/close i mobil */
#main-header #hamburger-menu,
#main-header .close-menu{
  color: var(--hdr-text);
}

/* Dropdowns över innehåll */
.header-top, #nav-menu, #nav-menu > ul > li, #nav-menu .dropdown{
  position: relative; z-index: 2001;
}
#nav-menu .dropdown-content{
  position: absolute; top: 100%; left: 0; z-index: 2002;
  background: var(--dropdown-bg);
  color: var(--dropdown-text);
  border: 1px solid var(--dropdown-border);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  min-width: 200px;
}
#nav-menu .dropdown-content a{
  color: var(--dropdown-text);
  display: block;
  padding: .45rem .8rem;
}
#nav-menu .dropdown-content a:hover{
  background: var(--dropdown-hover);
}

/* Mobilmeny */
#main-header .mobile-menu{
  background: var(--dropdown-bg);
  border-top: 1px solid var(--dropdown-border);
}
#main-header .mobile-menu a{ color: var(--dropdown-text); }
#main-header .mobile-menu a:hover{ color: var(--hdr-bg-dark); }

/* För säker fixed/sticky */
html, body, .main-content{ overflow: visible !important; }


/* 🔹 BAKGRUND 🔹 */
body {
    background-image: url('/logo/Textilmatta_original.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  .fancy-button {
    display: inline-block;
    margin: 10px auto;
    padding: 12px 24px;
    font-weight: bold;
    color: white;
    background-color: #0077cc;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }

  .fancy-button:hover {
    background-color: #005fa3;
  }
/* 🔹 HEADER 🔹 */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    position: relative;
}

/* 🔹 TOP-LOGGOR (Golvkedjan & Trust-logga) 🔹 */
.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* 🔹 Golvkedjan-logga (Vänster) 🔹 */
.logo-left img {
    max-width: 140px;
    height: auto;
}

/* 🔹 Trust-logga (Höger) 🔹 */
.trust-logo-container img {
    max-width: 120px;
    height: auto;
}

/* 🔹 HUVUDTITEL 🔹 */
.header-title {
    text-align: center;
    margin-top: 80px; /* Se till att den ligger under loggorna */
    padding: 20px;
    background: transparent;
    border-radius: 15px;
    width: 60%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 2s ease-in-out;
	margin-top: 500px;
}
.hamburger-menu {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
}
/* 🔹 EKONOMIPORTALEN TEXT 🔹 */
.header-title h1 {
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-shadow: 0px 0px 10px rgba(0, 255, 0, 0.8); /* Lime neon */
    animation: shimmer-green 3s infinite alternate;
    margin-bottom: 10px;
}

/* 🔹 Välkomsttext 🔹 */
.header-title h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-shadow: 0px 0px 10px rgba(200, 200, 200, 0.8); /* Grå shimmer */
    animation: shimmer-gray 3s infinite alternate;
}

/* 🔹 Beskrivning 🔹 */
.header-title p {
    font-size: 1.2em;
    color: white;
    text-shadow: 0px 0px 8px rgba(150, 150, 150, 0.8); /* Ljusgrå shimmer */
    animation: shimmer-gray 3s infinite alternate;
	margin-top: 12px;
}

/* 🔹 Skimrande neon-effekt (Lime för H1) 🔹 */
@keyframes shimmer-green {
    0% { text-shadow: 0px 0px 5px rgba(0, 255, 0, 0.5); }
    100% { text-shadow: 0px 0px 15px rgba(0, 255, 0, 1); }
}

/* 🔹 Skimrande effekt (Grå för H2 och P) 🔹 */
@keyframes shimmer-gray {
    0% { text-shadow: 0px 0px 5px rgba(200, 200, 200, 0.5); }
    100% { text-shadow: 0px 0px 15px rgba(200, 200, 200, 1); }
}

/* 🔹 Fade-in animation 🔹 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 🔹 NAVIGATION - Transparent & Modern 🔹 */
nav {
    width: 90%;
    display: flex;
    justify-content: center;
    background: transparent;
    padding: 15px 0;
    transition: background 0.5s ease-in-out;
}

/* 🔹 När man scrollar får menyn en lätt bakgrund 🔹 */
nav.scrolled {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 10px;
}

/* 🔹 MENYLÄNKAR 🔹 */
nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* 🔹 Hover-effekt 🔹 */
nav ul li a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease-in-out;
}
#uploaded-list a:hover {
  text-decoration: underline;
  color: #0055aa;
}

#uploaded-list button:hover {
  background-color: #e60000;
}

nav ul li a:hover::before {
    width: 100%;
    left: 0;
}

/* 🔹 DROPDOWN-MENY 🔹 */
.dropdown {
    position: relative;
}

/* 🔹 Dropdown-innehåll 🔹 */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    min-width: 200px;
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(8px);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* 🔹 Visa dropdown 🔹 */
.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* 🔹 Dropdown-länkar 🔹 */
.dropdown-content li {
    padding: 10px;
}

.dropdown-content li a {
    color: white;
    font-size: 1.2em;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* 🔹 Hover-effekt på dropdown 🔹 */
.dropdown-content li a:hover {
    background: white;
    color: black;
}
/* 🔹 HUVUDINNEHÅLL - Texten är längre ner 🔹 */
main {
    text-align: center;
    color: oldlace;
    margin-top: 354px; /* Flyttad ner mer */
}

main h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

main p {
    font-size: 1.3em;
}

/* 🔹 SCROLLA-TILL-TOPP-KNAPP 🔹 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: lime;
    color: black;
    padding: 12px 15px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    display: none;
}

.scroll-to-top:hover {
    background: white;
    color: black;
}
/* 🔹 Mobil huvudmeny - Stängd som standard 🔹 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Mörk transparent bakgrund */
    display: none; /* Göm som standard */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ligger över allt */
}

/* 🔹 Visa mobilmeny 🔹 */
.mobile-menu.show {
    display: flex;
}

/* 🔹 Stäng-knapp 🔹 */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

/* 🔹 Menylänkar 🔹 */
.mobile-menu a,
.submenu a {
    color: white;
    font-size: 1.8em;
    margin: 10px 0;
    text-decoration: none;
}

/* 🔹 Hover-effekt 🔹 */
.mobile-menu a:hover,
.submenu a:hover {
    text-decoration: underline;
}

/* 🔹 Undermeny (gömd som standard) 🔹 */
.submenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Ovanför huvudmenyn */
}

/* 🔹 Visa undermeny 🔹 */
.submenu.show {
    display: flex;
}

/* 🔹 Tillbaka-knapp 🔹 */
.back-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

/* 🔹 RESULTATRÄKNING GK - SIDANS STIL 🔹 */

/* 🔹 Sektionens layout */
section {
    width: 100%;
    max-width: 2000px;
    background: darksalmon;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    text-align: center;
}

/* 🔹 Rubrik */
section h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 🔹 FORMULÄR - Justerat layouten */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    padding: 15px;
}

form label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    width: 100%;
    text-align: left;
}

/* 🔹 Fält & Input */
form select,
form input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8;
}

/* 🔹 Form-knapp */
form button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

form button:hover {
    background: #2980b9;
}
.attest-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.attest-table th, .attest-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
	color: black;
}

.attest-table th {
  background-color: #f2f2f2;
}

.attest-table a {
  color: #007bff;
  text-decoration: none;
}

.attest-table textarea {
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .attest-table {
    font-size: 14px;
  }

  .attest-table th, .attest-table td {
    padding: 0.5rem;
	  color: black;
  }
}

/* 🔹 TABELL - Justering av rapportens design */
#reportTable {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.report-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.report-box:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.report-box p {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.report-box a {
  display: inline-block;
  margin-bottom: 10px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.report-box a:hover {
  text-decoration: underline;
}

.report-box button {
  margin-right: 10px;
  padding: 6px 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.report-box button:nth-of-type(1) {
  background-color: #28a745;
  color: white;
}

.report-box button:nth-of-type(2) {
  background-color: #dc3545;
  color: white;
}

.report-box textarea {
  margin-top: 10px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 6px;
  font-size: 14px;
  resize: vertical;
}
/* Container för rapporterna */
#report-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* Två kolumner på desktop */
@media (min-width: 768px) {
  #report-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

table {
    width: 100%;
    border-collapse: collapse;
	max-width:100%;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    background: white;
    border-radius: 10px;
    overflow: hidden;
	height: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
th, td {
    width: 20%; /* Fördela kolumnerna jämnt */
    height: 50px; /* Justera detta beroende på innehållet */
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    border: 1px solid #ccc;
	color: black;
}
/* 🔹 Tabellen - Rubriker */
th {
    background: #2c3e50;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    text-align: left;
}

/* 🔹 Tabellen - Celler */
td {
    background: #ecf0f1;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* 🔹 Tabellen - Hover Effekt */
tbody tr:hover {
    background: #d0d3d4;
}
/* 🔹 Wrappa tabellen i en container som möjliggör scroll */
.table-container {
    width: 100%;
    overflow-x: auto; /* Skapar horisontell scroll om tabellen blir för bred */
}

/* 🔹 Justera tabellens bredd och layout */
table {
    width: 100%;
    min-width: 1200px; /* Sätter en minsta bredd så att stora siffror inte trängs ihop */
    border-collapse: collapse;
    table-layout: auto; /* Dynamisk layout */
}

@media (max-width: 1024px) {
    .header-title {
        margin-top: 250px; /* Flyttar ner texten för iPad */
    }
	.header-title h1 {
		font-size: 1.5em;
		left: 10px;
	}
}

@media (max-width: 768px) {
    /* Visa hamburgermeny och dölj vanliga menyn */
	.table-container {
        overflow-x: scroll;
        display: block;
    }
	th, td {
        font-size: 1em;
        padding: 8px;
    }
	
	form {
        flex-direction: column;
    }

    form select, form input {
        width: 100%;
    }

    table {
        font-size: 0.9em;
    }
    .hamburger-menu {
        display: block;
		position: relative;
        left: -4px;
    }
	.header-title h1 {
		font-size: 2.4em;
        position: relative;
        left: -80px;
	}
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px;
        text-align: center;
    }

    /* Visa menyn när den öppnas */
    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li a {
        font-size: 1.5em;
        padding: 15px;
    }

    .header-title {
        margin-top: 200px; /* Justerar textpositionen för iPhone */
    }
}

@media (max-width: 420px) { /* iPhone SE */
	form {
        width: 100%; /* Täcker hela bredden */
        max-width: 100%; /* Säkerställer att det inte krymper */
        margin: 0; /* Ta bort sidmarginaler */
        padding: 20px; /* Lägg till lite padding */
    }

    .table-container {
        overflow-x: auto; /* Scrolla horisontellt om det behövs */
        width: 100%;
    }
	th, td {
        font-size: 0.9em;
        padding: 8px;
    }
    section h1 {
        font-size: 1.6em;
    }
    .header-title {
        margin-top: 250px; /* Flyttar ner texten mer på iPhone SE */
    }
	.header-title h1 {
		font-size: 1.9em;
        position: relative;
        left: -68px;
	}
	.header-title h2 {
		font-size: -0.2em;
		font-weight: bold;
		color: white;
		text-shadow: 0px 0px 10px rgba(200, 200, 200, 0.8);
		animation: shimmer-gray 3s infinite alternate;
		position: relative;
		left: -13px;
	}
	.header-title p {
		font-size: 1.2em;
		color: white;
		text-shadow: 0px 0px 8px rgba(150, 150, 150, 0.8);
		animation: shimmer-gray 3s infinite alternate;
		margin-top: 12px;
		position: relative;
		left: -5px;
	}
	.logo-left img {
		max-width: 140px;
		height: auto;
		position: relative;
		left: -33px;
	}
	.trust-logo-container img {
		max-width: 94px;
        height: auto;
        position: relative;
        left: 34px;
	}}
/* === Tidrapportering: översiktshover & status === */
.summary-item:hover {
  background: rgba(0, 0, 0, 0.06); /* lätt grå overlay istället för vit */
}

.summary-item:hover .summary-date,
.summary-item:hover .summary-meta,
.summary-item:hover .summary-status {
  color: inherit;
}
/* === Tidrapportering: multi-select i kalendern === */
.calendar-day.multi-selected {
  outline: 3px solid #28a745;   /* grön markering */
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(40,167,69,.4);
}
.calendar-day.multi-selected.selected {
  background: #28a745 !important;
  color: #fff !important;
}

/* Panel för multiåtgärder */
.multi-bar {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 10px auto 0;
  padding: 10px;
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.multi-bar .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.multi-bar input[type="number"],
.multi-bar textarea {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 180px;
}
.multi-bar .pill {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f6f6;
  font-weight: 600;
}
.multi-bar .preset {
  background: #e9f5ff;
  border: 1px solid #bcdcff;
  border-radius: 16px;
  padding: 6px 10px;
  cursor: pointer;
}
.multi-bar .preset:hover { background: #d7ecff; }
