/* =========================================================
   AR5 Endringsanalyse
   Styling calibrated against the original Groovy screen
   ========================================================= */


/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html,
body.statistics1-body {
    overflow-x: hidden;
	margin: 0;
    padding: 0;
    background: white;
	font-family: Arial, Helvetica, sans-serif;
    color: #111;
    font-size: 12px;
    line-height: 1.25;
}


/* ---------------------------------------------------------
   MAIN CONTENT
   --------------------------------------------------------- */

.container {
    width: 100%; /*520px;  */
    max-width: 580px; /*520px;  */
    margin: 0;
    padding: 12px 10px 30px 10px;
	font-family: Arial, Helvetica, sans-serif;
}


/* ---------------------------------------------------------
   PAGE TITLE
   --------------------------------------------------------- */

h1 {
    margin: 0 0 20px 0;
    padding: 0;

    font-size: 23px; /*23px; font-weight: 400;*/
    font-weight: 400;
    line-height: 1.2;

    color: rgb(35, 87, 77);
}

h2 {
    margin: 0 0 12px 0;
    padding: 0;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;

    color: rgb(23, 87, 77);
}

h3 {
    margin: 0 0 12px 0;
    padding: 0;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;

    color: rgb(35, 87, 77);
}

h4 {
    margin: 0 0 12px 0;
    padding: 0;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;

    color: rgb(35, 87, 77);
}

/* ---------------------------------------------------------
   SEARCH AREA
   --------------------------------------------------------- */

form {
    margin: 0;
    padding: 0;
}

.form-row {
    display: block;

    width: 100%;
    margin: 0 0 18px 0;
    padding: 0;
}

.form-group {
    display: block;

    width: 190px;
    margin: 0 0 10px 0;
    padding: 0;
}

.form-group label {
    display: block;

    margin: 0 0 3px 0;

    font-size: 11px;
    font-weight: 700;

    color: #111;
}

.form-group select {
    display: block;

    width: 190px;
    height: 20px;

    padding: 0 4px;

    border: 1px solid #999;
    border-radius: 1px;

    background: white;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #111;
}


/* ---------------------------------------------------------
   RESULT BUTTON
   --------------------------------------------------------- */

.button-group {
    margin-top: 2px;
    margin-bottom: 15px;
}

.result-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 77px;
    min-width: 77px;
    height: 22px;

    padding: 0 7px;

    border: 0;
    border-radius: 3px;

    background-color: rgb(23, 87, 77);
    color: white;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1;
    white-space: nowrap;

    cursor: pointer;
}

.result-button:hover {
    background-color: rgb(18, 70, 62);
}


/* ---------------------------------------------------------
   ANALYSIS SET TABLE
   --------------------------------------------------------- */

.section {
    width: 100%;
    margin: 0 0 14px 0;
    padding: 0;
}

.analysis-table {
    width: 100%;
}


/* ---------------------------------------------------------
   TABLES
   --------------------------------------------------------- */

.styled-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;

    font-size: 11px;
}


/* Standard table cells */

.styled-table td {
    padding: 3px 5px;

    border-bottom: 1px solid #e2e2e2;

    background: white;

    vertical-align: middle;
}


/* Analysis table header */

.analysis-table thead th {
    padding: 5px 5px;

    background-color: rgb(203, 203, 203);

    color: #111;

    font-size: 10px;
    font-weight: 700;

    text-align: left;
}


/* Analysis table column widths */

.analysis-table th:nth-child(1),
.analysis-table td:nth-child(1) {
    width: 18%;
}

.analysis-table th:nth-child(2),
.analysis-table td:nth-child(2) {
    width: 16%;
}

.analysis-table th:nth-child(3),
.analysis-table td:nth-child(3) {
    width: 15%;
}

.analysis-table th:nth-child(4),
.analysis-table td:nth-child(4) {
    width: 15%;
}

.analysis-table th:nth-child(5),
.analysis-table td:nth-child(5) {
    width: 16%;
}

.analysis-table th:nth-child(6),
.analysis-table td:nth-child(6) {
    width: 13%;
}

.analysis-table th:nth-child(7),
.analysis-table td:nth-child(7) {
    width: 7%;
}


/* Row hover */

.styled-table tbody tr:hover td {
    background-color: rgb(245, 245, 245);
}


/* ---------------------------------------------------------
   "OPEN / SE TABELL" LINK
   --------------------------------------------------------- */

.analysis-table td:last-child {
    text-align: left;
}

.analysis-table td:last-child a {
    display: inline-block;

    color: rgb(23, 87, 77);

    font-size: 19px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;
}

.analysis-table td:last-child a:hover {
    color: rgb(15, 65, 58);
}


/* ---------------------------------------------------------
   SUMMARY AREA
   --------------------------------------------------------- */

.toolbar {
    display: flex;

    width: 100%;

    margin: 0 0 10px 0;
    padding: 0;

    align-items: flex-end;
}


/* Summary information */

.summary-table {
    width: 270px;

    margin: 0;
    padding: 0;

    border-collapse: collapse;

    font-size: 11px;
}

.summary-table tr {
    height: 17px;
}

.summary-table th {
    width: 105px;

    padding: 1px 5px 1px 0;

    color: #111;

    font-size: 11px;
    font-weight: 700;

    text-align: left;
    vertical-align: top;
}

.summary-table td {
    padding: 1px 0;

    color: #111;

    font-size: 11px;

    text-align: left;
    vertical-align: top;
}


/* ---------------------------------------------------------
   DETAILS + MAP BUTTONS
   --------------------------------------------------------- */

.action-links {
    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 7px;

    margin-left: auto;
    margin-bottom: 1px;
}

.action-links > div {
    margin: 0 !important;
    padding: 0;
}

.action-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 77px;
    min-width: 77px;
    height: 22px;

    padding: 0 7px;

    border: 0;
    border-radius: 3px;

    background-color: rgb(23, 87, 77);
    color: white;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;
    white-space: nowrap;
}

.action-links a:hover {
    background-color: rgb(18, 70, 62);
}


/* ---------------------------------------------------------
   STATISTICS GROUPS
   --------------------------------------------------------- */

.statistics-group {
    width: 100%;

    margin: 0 0 10px 0;
    padding: 0;
}


/* Colored group header */

.group-header {
    display: grid;

    grid-template-columns: 1fr;

    width: 100%;

    margin: 0;
    padding: 5px 6px 4px 6px;

    border-radius: 3px 3px 0 0;

    color: #111;

    font-size: 11px;
    font-weight: 700;
}


/* Group title */

.group-title {
    margin: 0 0 5px 0;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.1;
}


/* Fra / Til / Dekar row */

.group-columns {
    display: grid;

    grid-template-columns: 35% 40% 25%;

    width: 100%;

    margin: 0;
    padding: 0;
}

.group-columns div {
    padding: 0;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.1;
}

.group-columns div:last-child {
    text-align: right;
}


/* ---------------------------------------------------------
   GROUP COLORS
   --------------------------------------------------------- */

.group-red {
    background-color: rgb(210, 112, 108);
}

.group-green {
    background-color: rgb(158, 203, 150);
}

.group-yellow {
    background-color: rgb(240, 244, 94);
}

.group-purple {
    background-color: rgb(185, 145, 218);
}


/* ---------------------------------------------------------
   GROUP DATA TABLE
   --------------------------------------------------------- */

/* =========================================================
   STATISTICS TABLE - FIXED COLUMNS
   ========================================================= */

.statistics-group .styled-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Fra column */
.statistics-group .styled-table th:nth-child(1),
.statistics-group .styled-table td:nth-child(1) {
    width: 40%;
}

/* Til column */
.statistics-group .styled-table th:nth-child(2),
.statistics-group .styled-table td:nth-child(2) {
    width: 50%;
	/*white-space: normal;
    overflow-wrap: normal;
    word-break: normal;*/
}

/* Dekar column */
.statistics-group .styled-table th:nth-child(3),
.statistics-group .styled-table td:nth-child(3) {
    width: 10%;
}

/* Begin DATE:10.09.2026 *********************************/
/* Sum row */
.statistics-group .styled-table .total-row td:first-child {
    width: 90%;
    box-sizing: border-box;
    white-space: nowrap;
}

.statistics-group .styled-table .total-row td:last-child {
    width: 10%;
    box-sizing: border-box;

    text-align: right;
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* END DATE: 10.09.2026 ***************************/

/* Keep text inside its own column */

.statistics-group .styled-table td {
    padding: 3px 5px;
	
	text-align: left;

    white-space: normal;
    /*overflow-wrap: anywhere; Changed it to normal. to avoid the word split in two lines e.g: Hav*/
    overflow-wrap: break-word;
	word-break: normal;
	/*word-break: keep-all;*/

    vertical-align: top;

    font-size: 11px;
    line-height: 1.15;
}


/* Dekar values */

.statistics-group .styled-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    overflow-wrap: normal;
}

/* Date: 04.09.2026 - Prevent the Sum number from splitting */
/* The sum value should always remain on one line */
.statistics-group .total-row td:last-child {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-align: right;
}

/* Header row */

.group-columns {
    display: grid;

    grid-template-columns: 40% 50% 10%;

    width: 100%;
    margin: 0;
    padding: 0;
}

.group-columns div {
    padding: 0;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.1;
}

.group-columns div:nth-child(3) {
    text-align: right;
}



/* ---------------------------------------------------------
   SUM ROW
   --------------------------------------------------------- */

.total-row td {
    padding-top: 4px;
    padding-bottom: 4px;

    border-top: 1px solid #aaa;
    border-bottom: 0;

    background-color: white;

    font-weight: 700;
}

.total-row td:last-child {
    text-align: right;
}


/* ---------------------------------------------------------
   TOTAL AREA AT BOTTOM
   --------------------------------------------------------- */

.statistics-group + div[align="right"],
div[align="right"] {
    margin-top: 5px;

    padding: 0;

    font-size: 11px;
    line-height: 1.2;

    text-align: right;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

a {
    color: rgb(23, 87, 77);
}

a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   REMOVE EXCESSIVE DEFAULT SPACING
   --------------------------------------------------------- */

p {
    margin-top: 0;
    margin-bottom: 8px;
}


/* ---------------------------------------------------------
   SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .container {
        width: 100%;
        max-width: 500px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .toolbar {
        display: block;
    }

    .action-links {
        margin-top: 8px;
        margin-left: 0;
    }

}

/* ************************************************************** */
/* ***************************** iframe start 31-08-2026 *************************************************** */
.result-button,
.action-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 114px;
    height: 34px;

    box-sizing: border-box;
    padding: 0 14px;

    background-color: rgb(23, 87, 77);
    color: white;

    border: none;
    border-radius: 4px;

    font-weight: 600;
    font-size: 14px;

    text-decoration: none;
    white-space: nowrap;
}

/* *************************************************************************** */
/* =========================================================
   MAIN PAGE - TWO COLUMNS
   ========================================================= */

.main-two-column {
    display: grid;

    grid-template-columns: 300px 760px;

    gap: 30px;

    max-width: 1090px;

    margin: 30px auto;

    align-items: start;
}


/* LEFT COLUMN */

.left-column {
    padding: 20px;
}


/* RIGHT COLUMN */

.right-column {
    width: 760px;
}


/* =========================================================
   AR5 IFRAME
   ========================================================= */

.statistics-iframe {
    display: block;

    width: 580px; /* 760px */

    height: 1200px;

    border: 1px solid #d0d0d0;

    border-radius: 4px;

    background: white;
}

/* ***************************************************************/

/* ******************Details.html *******************************/
/* =========================================================
   DETAILS PAGE
   ========================================================= */

.details-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;

    font-size: 11px;
}

.details-table th {
    padding: 5px 5px;

    background-color: rgb(203, 203, 203);

    border: 1px solid #c8c8c8;

    color: #111;

    font-size: 10px;
    font-weight: 700;

    text-align: left;
}

.details-table td {
    padding: 4px 5px;

    border: 1px solid #d5d5d5;

    background-color: white;

    font-size: 11px;
    vertical-align: middle;
}


.details-table tbody tr:hover td {
     background-color: rgb(190,190,190) !important;
     color: #222 !important;
}



.details-table .number {
    text-align: right;
}


/* Back button */

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 34px;

    padding: 0 12px;

    background-color: rgb(23, 87, 77);
    color: white;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.back-button:hover {
    background-color: rgb(18, 70, 62);
}

/* *************************Date: 10.09.2026 *********************************/
/* FIX: in the statistics1 page the sum rows are not static. the numbers 
expand outside the table length */

.statistics-group .total-row {
    width: 100%;
    table-layout: fixed;
}

.statistics-group .total-row td {
    box-sizing: border-box;
}

.statistics-group .total-row td:last-child {
    width: 8%;
    max-width: 8%;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ***************************************************************/
/* ********* Begin Date: 11.09.2026 ******************************/
/* Match Groovy typography */
.statistics-group,
.statistics-group .group-title,
.statistics-group .group-columns,
.statistics-group .styled-table {
    font-family: Arial, Helvetica, sans-serif;
}

.statistics-group .group-title {
    font-size: 13px !important;
    font-weight: 700 !important;
}

.statistics-group .group-columns {
    font-size: 12px !important;
    font-weight: 700 !important;
}

.statistics-group .styled-table {
    font-size: 12px !important;
}

.statistics-group .styled-table td {
    font-size: 12px !important;
    font-weight: 400;
}

.statistics-group .total-row td {
    font-size: 12px !important;
    font-weight: 700;
}

/* **********END Date:11.09.2026 **************************************/

h3 {
    font-size: 20px !important;
}

h4 {
    font-size: 14px !important;
	color: rgb(35, 87, 77) !important;
}

/* ******************Date .02.10.2026 *********************************/
/* 
The final Mouse hover rule to override the previous hover rules.
*/

/* Row hover - Statistics, Details and Analysis selection */

.statistics-group .styled-table tbody tr:hover td,
.details-table tbody tr:hover td,
.analysis-table tbody tr:hover td {
    background-color: rgb(190, 190, 190) !important;
}

/* ******************** END Hover rule 02.10.2026 *********************/

/*
Date:05.10.2026
The following css codes are to make the arrow larger.
Just change the font-size to make it larger or smaller.
*/

.statistics1-arrow {
    color: #16425b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}


/************************************************************************/
/*
Date: 06.10.2026
CSS for the arrow to control its size
*/
.statistics1-arrow {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
}

/*Keep it centered in the “Se tabell” cell */
.statistics1-view-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.statistics1-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/*************************************************************************************/
/* Date:07.10.2026 - All text in the table on the left side of Detaljer 
and kart buttons have exactly the same font and size, 
The gap has increased by th padding-right
fix for label line break: border-collapse */

.summary-table {
    border-collapse: collapse !important;
    border: none !important;
}

.summary-table tr,
.summary-table th,
.summary-table td {
    border: none !important;
}

.summary-table,
.summary-table th,
.summary-table td {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.summary-table th {
    font-weight: 700 !important;
    padding-right: 15px !important;
    white-space: nowrap !important;
}

.summary-table td {
    font-weight: 400 !important;
}

.summary-table th,
.summary-table td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/*************************************************************************************/














