
fieldset { height: 135px; border:1px solid #3366CC; margin: 0; padding:5px; display: inline-block; vertical-align: top; font-size: 11px; margin-left: 10px; background-color: #FFF;}
legend   { margin: 0 10px; padding: 0 5px; }

fieldset#select_publication { min-width: 360px; }
#select_publication select { width: 240px; }

fieldset#select_setings { min-width: 900px; }

ul.pushbutton { margin: 5px 0; padding: 0; }
ul.pushbutton label {
    margin: 0px;
    cursor: default; 
    display: inline-block; 
    width: 100%; 
    font-weight: 600;
    line-height: 25px;
    letter-spacing: .1rem;
    text-transform: uppercase;
}

/**[REBUILD]**************************************************************/


fieldset ul { list-style: none; margin-bottom: none;}
fieldset li { margin: 5px; }
fieldset span.label { display: inline-block; padding: 2px; margin: 0 5px; line-height: 25px; text-align: right; width: 75px; font-weight: 600; padding-right: 10px; background-color: #EEE; border: 1px solid #DDD;}

fieldset select {margin: 0; height:  30px;}

fieldset#stats { min-width: 850px; }
fieldset#stats ul { text-align: center; }

ul.buttons { margin: 5px 0; padding: 0;}
ul.buttons li { display: inline-block;  margin: 0px; width: 225px; line-height: 25px; text-align: center;  border: 1px solid #888;  }
ul.buttons .button { cursor: pointer; }
ul.buttons .button input.inputText {border: none;}
ul.buttons label { 
    margin: 0px;
    cursor: default; 
    display: inline-block; 
    width: 100%; 
    font-weight: 600;
    line-height: 28px;
    letter-spacing: .1rem;
    text-transform: uppercase;
}
ul.buttons input { margin: 0; height: 25px; }

ul.buttons input[type='checkbox'] { display: none; visibility: hidden; }

ul.buttons li.markings div { background-color: #bada55; margin: 1px; display: inline-block; line-height: 25px; border: 1px solid #888; cursor: pointer; }
ul.buttons li.markings div.disabled { color: #888; background-color: #EEE; margin: 1px; display: inline-block; border: 1px solid #888; cursor: pointer; }
ul.buttons li.markings label { display: inline-block; width: 25px; line-height: 25px; }
ul.buttons li.markings+input:checked { background: #bada55; color: #000; }
ul.buttons li.markings div:hover { background-color: #FF0; border: 1px solid #000;}

ul.buttons li.maturity div { background-color: #bada55; margin: 1px; display: inline-block; line-height: 25px; border: 1px solid #888; cursor: pointer; }
ul.buttons li.maturity div.disabled { color: #888; background-color: #EEE; margin: 1px; display: inline-block; border: 1px solid #888; cursor: pointer; }
ul.buttons li.maturity label { display: inline-block; width: 35px; line-height: 25px; }
ul.buttons li.maturity+input:checked { background: #bada55; color: #000; }
ul.buttons li.maturity div:hover { background-color: #FF0; border: 1px solid #000;}


ul.buttons li.export div { margin: 1px; width: 65px; display: inline-block; line-height: 25px; border: 1px solid #888; cursor: pointer; }
ul.buttons li.export div:hover { background-color: #FF0; border: 1px solid #000;}


/*
ul.buttons li.exportlist { display: inline-block; }
ul.buttons li.exportlist button { display: inline-block; margin: 1px; padding: 0 5px; height: 28px; line-height: 28px;}
*/

/*ul.buttons li.filter { width: 385px; text-transform: uppercase; background-color: #F8F8F8;}*/
ul.buttons li.filter { width: 640px; text-transform: uppercase; background-color: #F8F8F8;}


/* Tooltip */
.tooltip {position: relative; display: inline-block;}
.tooltip>span { 
    position: absolute; visibility: hidden; z-index: 1; min-width: 250px; bottom: 120%; left: 50%; margin-left: -130px; padding: 5px;
    font-size: 0.9em; color: #FFF; text-align: center; line-height: 15px; 
    background-color: #888; border: 1px solid #072B4F; border-radius: 6px;  
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.19);
}
/* Arrow under  tooltip */
.tooltip>span::after { content: " "; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #072B4F transparent transparent transparent; }
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover>span { visibility: visible; }


/* Highlight content search */
span.h { background-color: #FF0; padding: 0 1px; }
/*
div.added div, div.original div, div.nochange div, div.updated div, div.removed div {display: block;}
*/

.added               { background-color: #DFD; }
div.added span.status   { color: #080; }
div.added div.new       { display: block; }
div.added div.old       { display: none; }

.original            { background-color: #DFF; }
div.original span.status{ color: #088; }
div.original div.new    { display: block; }
div.original div.old    { display: none; }

.nochange            { background-color: #EEE; }
div.nochange span.status{ color: #888; }
div.nochange div.new    { display: block; }
div.nochange div.old    { display: none; }

.updated             { background-color: #FFD; }
div.updated span.status { color: #880; }
div.updated div.new     { display: block; }
div.updated div.old     { display: block; }

.removed             { background-color: #FDD; }
div.removed span.status { color: #800; }
div.removed div.new     { display: none; }
div.removed div.old     { display: block; }


/*
    ISM Control Formatting
*/

div.control { 
    position: relative; 
    page-break-inside:avoid; 
    border: 1px solid #DDD; 
    border-left: 30px solid #EEE;
    margin: 5px 0px; 
    padding: 0px 5px; 
    cursor: pointer; 
}
div.control .new, div.control .old { position: relative; }

div.control>div>i { font-weight: 600; }

div.control:hover { border-color: #888; }

div.control span.index, div.control span.status {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

div.control>span.index {
    position: absolute; left: -30px; top: 15px;
    display: inline-block; width: 30px; text-align: center;
    font-size: 0.75em;
}

div.control span.status {
    position: absolute; right: 5px; top: 2.5px; 
    display: inline-block; text-align: right; 
    font-size: 0.8em; font-weight: 600;
}

div.control label.strategy {
    position: absolute; right: 175px; top: 2.5px; user-select: none; z-index: 10; width: 200px;
    display: block; text-align: left; font-size: 0.9em; font-weight: 600;
}

div.control h5, div.control h6 { font-weight: 600; margin: 0px; margin-top: 5px; }
div.control h5 { color:#000000; font-size: 0.80em; font-style: oblique; } /* Control Metadata Title block 10pt */
div.control h6 { color:#000000; font-size: 1.00em; }    /* list header */

div.visible {display: block;}
div.compare span.prev {
    position: absolute; left: -35px; top: 15px;
    display: inline-block; width: 30px; text-align: center;
    user-select: none; 
    font-size: 0.70em;
} 


/* CONTROL DETAIL SYSTEM */
ul.classification-list {
    list-style: none;
    margin: 0px;
}
ul.classification-list li {
    font-size: 0.75rem;
}
ul.classification-list li span {
    font-weight:bold;
    display: inline-block;
    width: 25px;
    margin: 0px;
    border-radius: 2px;
    text-align: center;
    line-height: 25px;
}


.sliding-timeline-wrapper {
    margin: 30px 0;
    font-family: sans-serif;
}

/* Scrollable container specifically protects mobile and tablet screens */
.timeline-track-container {
    width: 100%;
    overflow-x: auto;
    padding: 15px 0;
    margin-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

/* Horizontal Timeline Track Line */
ul.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 80px;
    min-width: 900px; /* Guarantees timeline doesn't compress or overlap points */
}

/* The Connecting Line - Positioned Dead-Center Vertically */
ul.timeline-track::before {
    content: '';
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 2px;
    background-color: #AAB;
    z-index: 1;
}

/* Timeline Nodes */
li.timeline-node {
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-point {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 3px solid #888;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.node-label {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

/* Alternating Logic applied seamlessly across the 14 arrays */
li.timeline-node:nth-child(odd) .node-label {
    bottom: calc(50% + 15px); 
}

li.timeline-node:nth-child(even) .node-label {
    top: calc(50% + 15px); 
}

/* Active State Styles */
li.timeline-node.active .node-point {
    border-color: #072B4F;
    background-color: #072B4F;
    transform: scale(1.2);
}
li.timeline-node.active .node-label {
    color: #072B4F;
}

/* --- Sliding Window Framework --- */
.slider-window {
    width: 100%;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slider-pane {
    flex: 0 0 100%; 
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(#FFF, #EEF);
}

.pane-content {
    padding: 25px;
}

.pane-content h3 {
    margin-bottom: 20px;
    color: #072B4F;
    font-size: 1.4rem;
    border-bottom: 2px solid #072B4F;
    padding-bottom: 8px;
}

/* --- Internal Publication Grid Layout --- */
.publications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Cards wrap cleanly. Single item sets scale wide, massive arrays tile nicely */
.pub-card {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.pub-badge {
    background-color: #072B4F;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 8px;
}

.pub-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.35em;
}