/* assets/css/structure_style.css (Papildināts ar saliekamā bloka stiliem) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* --- Galvenes un meklēšanas stili --- */
.header { /* ... paliek nemainīgs ... */ }
#chart-container { /* ... paliek nemainīgs ... */ }
/* ... (pārējie header un search stili) ... */

/* === SĀKUMS: SALIEKAMĀ PAZIŅOJUMA STILI === */
/* Pārdefinējam .data-source-notice, lai tas varētu saturēt pogu */
.data-source-notice {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Svarīgi, lai poga būtu augšā */
}

/* Konteineris tekstam */
.notice-text {
    flex-grow: 1; /* Teksts aizņem visu pieejamo vietu */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* Stāvoklis, kad bloks ir atvērts (tam ir klase 'expanded') */
.data-source-notice.expanded .notice-text {
    max-height: 200px; /* Pietiekami liels augstums, lai viss teksts ietilptu */
}

/* Stāvoklis, kad bloks ir aizvērts (tam NAV klases 'expanded') */
.data-source-notice:not(.expanded) .notice-text {
    max-height: 1.6em; /* Aptuveni vienas teksta rindas augstums */
}

/* +/- pogas stils */
.notice-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin-left: 15px;
    padding: 0 5px;
    color: #a18a25;
}
.notice-toggle:hover {
    color: #493e11;
}
/* === BEIGAS: SALIEKAMĀ PAZIŅOJUMA STILI === */


/* Statistkas bloka stili... */
#stats-box { /* ... paliek nemainīgs ... */ }
/* ... (pārējie statistikas un grafa stili) ... */
.header {
    background-color: #fff;
    padding: 10px 25px;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title { text-align: left; }
.header h1 { margin: 0; font-size: 1.5em; color: #343a40; }
.header p { margin: 5px 0 0; color: #6c757d; font-size: 0.9em; }
.search-container form { display: flex; align-items: center; }
#search-input { font-size: 14px; padding: 8px 12px; border-radius: 5px 0 0 5px; border: 1px solid #ced4da; border-right: none; width: 220px; }
#search-input:focus { outline: none; border-color: #80bdff; }
#search-form button { font-size: 14px; padding: 8px 15px; border-radius: 0 5px 5px 0; border: 1px solid #007bff; background-color: #007bff; color: white; cursor: pointer; transition: background-color 0.2s; }
#search-form button:hover { background-color: #0056b3; }
#chart-container { width: 100%; height: calc(100vh - 90px); position: relative; }
svg { width: 100%; height: 100%; }
#stats-box { position: absolute; top: 105px; right: 20px; width: 450px; max-height: calc(100vh - 125px); background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 15px 20px; font-size: 14px; color: #343a40; transition: opacity 0.3s ease; display: flex; flex-direction: column; }
#stats-box.hidden { display: none; opacity: 0; }
#stats-box h3 { margin: 0 0 10px 0; font-size: 18px; border-bottom: 1px solid #e9ecef; padding-bottom: 8px; }
#stats-box p { margin: 4px 0; }
#stats-toggle-button { margin-top: 15px; padding: 8px 12px; border: 1px solid #007bff; background-color: #007bff; color: white; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
#stats-toggle-button:hover { background-color: #0056b3; }
#stats-table-container { margin-top: 15px; overflow-y: auto; }
#stats-table-container.hidden { display: none; }
#stats-box table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
#stats-box th, #stats-box td { border-bottom: 1px solid #e9ecef; padding: 8px 5px; text-align: left; word-wrap: break-word; }
#stats-box tr:last-child td { border-bottom: none; }
#stats-box td a { color: #007bff; text-decoration: none; }
#stats-box td a:hover { text-decoration: underline; }
#stats-box th.profit-cell, #stats-box td.profit-cell { width: 150px; text-align: right; font-weight: 500; }
.links line { stroke: #ccc; stroke-opacity: 0.5; transition: all 0.3s ease; }
.node-group:hover circle { stroke: #000; stroke-width: 2.5px; }
.nodes .label { font-size: 11px; fill: #333; pointer-events: none; text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff; }
.nodes .label .name { font-weight: bold; }
.nodes .label .profit { font-weight: 500; }
.nodes .label .regcode { pointer-events: all; cursor: pointer; text-decoration: underline; fill: #007bff; }
.nodes .label .regcode:hover { fill: #0056b3; }
.node-group circle { stroke: #fff; stroke-width: 1.5px; transition: all 0.2s ease-in-out; cursor: pointer; }
.node-group.muted circle { opacity: 0.15; }
.links line.muted { stroke-opacity: 0.4; }
.node-group.highlighted circle { opacity: 1; r: 12; stroke-width: 2px; stroke: #000; }
.links line.highlighted { stroke-opacity: 1; stroke: #343a40; stroke-width: 2px; }