
/* STYLE STAŁE (UKŁAD STRONY default/views/logowanie/loguj.tpl, ITP.) */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Trebuchet MS, Helvetica, sans-serif;
    width: 100%;
}

.login-main-container {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: center;
    padding-bottom: 80px;
}

.login-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-basis: 100%;
}

.login-section.with-ogloszenia {
    flex-basis: 50%;
}

.ogloszenia-section {
    flex-basis: 50%;
    padding: 20px;
    border-left: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

.login-section .napis {
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    opacity: 0.75;
    color: #616161;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 -1px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.info_environment {
    background: #558b2f;/*#558b2f url(new/background-top.png) top repeat-x;*/
    color: #fff;
    margin:0 auto;
    text-align:center;
    padding:8px;
    margin-top:-5px;
    margin-right:-5px;
    margin-left:-5px;
    margin-bottom:5px;
    font-weight:bold;
}
* {
    margin: 0;
    padding: 0;
    cursor: default;
}

body {
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
}

ul, ul li {
    display: inline-block;
    list-style: none;
}

input[type=text]:hover, input[type=password]:hover, textarea:hover {
    cursor: text;
}

#top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
}

#top .left-panel {
    position: relative;
    float: left;
}

#left {
    clear: left;
    position: absolute;
    left: 0;
    z-index: 200;
}

#right {
    position: absolute;
    right: 0;
    z-index: 200;
}

#content {
    position: absolute;
    left: 0;
    overflow: hidden;
    z-index: 100;
}

.main-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
}

.button.mini {
    display: inline-block;
    overflow: hidden;
    text-indent: 0;
    white-space: nowrap;
}

.button.mini .icon {
    width: auto;
    text-align: center;
}

/* STYLE KONFIGUROWALNE */
* {
    font-family: Trebuchet MS, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 12px;
}

.modal-back {
    float: left;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(assets/images/background-modal.png);
    z-index: 1000;
}

.dialog {
    position: relative;
    width: 500px;
    max-width: 100%;
    margin: 20px 0;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 0;
    background: white;
    padding-bottom: 50px;
}

.dialog-title {
    padding: 3px;
    font-weight: bold;
    text-align: center;
    min-height: 34px;
    color: #616161;
    text-shadow: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.close-button {
    width: 24px;
    height: 24px;
    background: url(assets/images/delete-white.png) 4px 4px no-repeat;
    position: absolute;
    top: 4px;
    right: 4px;
    cursor: pointer;
}

.help-button {
    width: 24px;
    height: 24px;
    padding: 0;
    background: url(assets/images/help-white.png) 4px 4px no-repeat;
    position: absolute;
    top: 4px;
    right: 28px;
    cursor: pointer;
    color: silver;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.edit-help-button {
    width: 24px;
    height: 24px;
    padding: 0;
    background: url(assets/images/edit-help.png) 4px 4px no-repeat;
    position: absolute;
    top: 4px;
    right: 56px;
    cursor: pointer;
    color: silver;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.help-add {
    width: 24px;
    height: 24px;
    padding: 0;
    background: url(assets/images/help-add.png) 4px 4px no-repeat;
    position: absolute;
    top: 4px;
    right: 28px;
    cursor: pointer;
    color: silver;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.dialog-title h1 {
    font-size: 13px;
    display: inline-block;
    padding-top: 6px;
    height: 16px;
    line-height: 24px;
}

.dialog-content {
    overflow-y: auto;
    padding: 5px;
}

.main-content .dialog-button {
    display: none;
}

.dialog-button.left {
    left: 5px;
    border-radius: 3px;
}

.dialog-button.right {
    right: 5px;
    border-radius: 3px;
}

.dialog-button {
    position: absolute;
    bottom: 10px;
    padding: 0 20px 1px;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    height: 26px;
    font-weight: bold;
    box-shadow: 0 1px 1px #303030;
}

.dialog-button.blue {
    background: #558B2F;
    border: 1px solid #558B2F;
}

.dialog-button.blue:active {
    box-shadow: inset 0 2px 4px #000000;
    background: #558B2F;
    border: 1px solid #558B2F;
}

.dialog-content form > table, .dialog-content form span table, .dialog-content form div table {
    float: left;
    width: 100%;
    white-space: nowrap;
    border-spacing: 0px;
    border-collapse: collapse;
    border: 1px solid #B4BBC4;
}

.dialog-content form > table thead td, .dialog-content form span table thead td, .dialog-content form div table thead td, .dialog-content table thead th {
    background: #D0D9E4 url(assets/images/background-h3-blue.png) 0 0 repeat-x;;
    color: #747D84;
    border: none;
    padding: 5px 3px 4px;
    font-weight: bold;
    text-shadow: white 0 1px 0;
}

.dialog-content form > table td, .dialog-content form div table td, .dialog-content form span table td {
    padding: 5px 3px 4px;
    border-top: 1px solid #B4BBC4;
    vertical-align: top;
}

.dialog-content .target {
    text-align: center;
    /*    font-size: 20px;*/
    /*    min-height: 30px;*/
    font-weight: bold;
    line-height: 20px;
    background: #D0E0FF;
    margin: 0 -5px;
    border-top: 1px solid #90B0E0;
    border-bottom: 1px solid #90B0E0;
    color: #3050A0;
    text-shadow: 0 1px 0 #F0F7FF;
    padding: 5px 0;
}

.dialog-content .target-error {
    margin: 2px;
    padding: 5px;
    color: #ff2e2e;
    background-color: #FFD5D5;
    border: 1px solid #A93434;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
}

.wrap {
    white-space: normal;
}

.loading {
    display: block;
    width: 100%;
    height: 32px;
    margin-bottom: 20px;
    background: url(assets/images/loading.gif) center no-repeat;
}

.loading-big {
    display: block;
    width: 100%;
    height: 50px;
    margin: 40px 0;
    padding-top: 50px;
    background: url(assets/images/loading2.gif) center 0 no-repeat;
    text-align: center;
    color: #747D84;
    font-weight: bold;
    text-shadow: white 0 1px 0;
}

.input {
    width: 100%;
    float: right;
    text-align: right;
    padding: 3px;
}

.input.textarea {
    padding-bottom: 1px;
}

.dialog-content .input label {
    float: right;
    margin-bottom: -28px;
    margin-right: 295px;
}

.dialog-content label {
    float: right;
    text-align: right;
    font-size: 11px;
    display: inline-block;
    padding: 5px 0 0 5px;
    color: #444444;
}

.input.inline label input[type=radio] {
    display: inline-block;
    float: left;
    margin: 0 4px;
}

.input.inline label {
    display: inline-block;
    float: none;
    margin: 0 5px;
}

.input.inline input {
    display: inline-block;
    float: none;
    margin: 0;
}

.dialog-content .input input[type=checkbox] {
    margin: 4px 275px 6px 5px;
}

.input button.stick, button.stick {
    border: 1px solid #999999;
    display: inline-block;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    width: 30px;
    height: 24px;
    float: right;
    padding: 2px;
    position: relative;
    margin-left: -30px;
    background: url(assets/images/background-h3-gray.png) 0 0 repeat-x;
}

.input button.stick:hover, button.stick:hover {
    background: white none;
}

button.stick .icon {
    opacity: 0.8;
    width: 16px;
    height: 16px;
    display: block;
    margin: 0 auto;
}

button.stick:hover .icon {
    opacity: 1;
}

button.stick:focus {
    box-shadow: 0 0 5px #2ba6cc;
    -webkit-box-shadow: 0 0 5px #2ba6cc;
    -moz-box-shadow: 0 0 5px #2ba6cc;
    -o-box-shadow: 0 0 5px #2ba6cc;
    outline: none;
    border: 1px solid #2BA6CC;
}

div.error {
    width: 100%;
    text-align: center;
    padding: 10px 5px;
    margin: 0 -5px 5px;
    color: red;
    font-weight: bold;
    clear: both;
    background: #ffe0e0;
    border-width: 1px 0;
    border-color: #ffa0a0;
    border-style: solid;
}

div.error-message {
    float: right;
    width: 280px;
    text-align: left;
    padding: 3px 0;
    color: red;
}

input[type=text].error, input[type=password].error, textarea.error, select.error, table.error, .pseudo-input.error {
    border-color: red !important;
    box-shadow: 0 0 5px red !important;
    -webkit-box-shadow: 0 0 5px red !important;
    -moz-box-shadow: 0 0 5px red !important;
    -o-box-shadow: 0 0 5px red !important;
}

.dialog-content input[type=text], .dialog-content input[type=password], .pseudo-input {
    width: 280px;
    height: 14px;
    border: 1px solid #999999;
    display: inline-block;
    padding: 4px 3px;
    font-size: 12px;
    background: white;
    box-shadow: inset 0 3px 3px #e0e0e0;
    -webkit-box-shadow: inset 0 3px 3px #e0e0e0;
    -moz-box-shadow: inset 0 3px 3px #e0e0e0;
    -o-box-shadow: inset 0 3px 3px #e0e0e0;
    vertical-align: top;
}

.dialog-content textarea {
    width: 280px;
    height: 40px;
    border: 1px solid #999999;
    display: inline-block;
    padding: 4px 3px;
    font-size: 12px;
    line-height: 14px;
    box-shadow: inset 0 3px 3px #e0e0e0;
    -webkit-box-shadow: inset 0 3px 3px #e0e0e0;
    -moz-box-shadow: inset 0 3px 3px #e0e0e0;
    -o-box-shadow: inset 0 3px 3px #e0e0e0;
    background: white;
    resize: none;
    vertical-align: top;
}

.dialog-content select {
    width: 290px;
    height: 24px;
    border: 1px solid #999999;
    display: inline-block;
    padding: 2px;
    font-size: 12px;
    box-shadow: 0 1px 2px #e0e0e0;
    -webkit-box-shadow: 0 1px 2px #e0e0e0;
    -moz-box-shadow: 0 1px 2px #e0e0e0;
    -o-box-shadow: 0 1px 2px #e0e0e0;
    -webkit-appearance: none;
    border-radius: 0;
    background: url(assets/images/arrow-down-select.png) right top no-repeat, white url(assets/images/background-lightgray.png) 0 -6px repeat-x;
    vertical-align: top;
}

.dialog-content select:hover, .dialog-content select:focus {
    background: url(assets/images/arrow-down-select.png) right top no-repeat, white url(assets/images/background-lightgray.png) 0 12px repeat-x;
}

.dialog-content input[type=text]:focus, .dialog-content input[type=password]:focus, .dialog-content textarea:focus, .komentarze textarea:focus {
    border: 1px solid #C5E1A5;
    box-shadow: 0 0 5px #C5E1A5;
    background: #FFFFFF;
    outline: none;
}

.pseudo-input {
    width: 284px !important;
    padding: 1px 1px 1px 1px !important;
    min-height: 20px;
    margin: 0 0 0 0 !important;
    text-align: left;
    height: auto;
}

.pseudo-input.error {
    background: white !important;
    text-align: left !important;
    font-weight: normal !important;
}

.dialog-content select:focus {
    border: 1px solid #C5E1A5;
    box-shadow: 0 0 5px #C5E1A5;
    -webkit-box-shadow: 0 0 5px #C5E1A5;
    -moz-box-shadow: 0 0 5px #C5E1A5;
    -o-box-shadow: 0 0 5px #C5E1A5;
    outline: none;
}

.dialog-content input[type=text]:disabled, .dialog-content textarea:disabled {
    background: #efefef;
    border-color: #c7c7c7;
}

.dialog-content select:disabled, .dialog-content select[disabled] {
    background: #efefef;
    border-color: #c7c7c7;
}

span {
    font-size: 45px;
    font-weight: bold;
    text-align: center;
}

.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #e7e7e7;
    z-index: 999;
    box-sizing: border-box;
}

.version-info { /* dane o wersji (z prawej strony) */
    text-align: right;
    font-size: 11px;
    color: #616161;
}

.stopka { /* dane z licencji (z lewej strony) */
    font-size: 12px;
    color: gray;
}

.ogloszenia-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

.ogloszenie-item {
    display: flex;
    align-items: center;
    border: 1px solid #f0f0f0;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background-color: #fff;
}

.ogloszenie-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ogloszenie-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #eee;
    color: #888;
    width: 60px;
    flex-shrink: 0;
}

.ogloszenie-data .dzien {
    font-size: 15px;
    font-weight: bold;
}

.ogloszenie-data .rok {
    font-size: 14px;
}

.ogloszenie-data .dzien-miesiac {
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 5px;
}

.ogloszenie-tresc-wrapper {
    flex-grow: 1;
}

.ogloszenie-tytul {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.ogloszenie-skrot {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.ogloszenie-autor {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
    font-style: italic;
}

.ogloszenie-kategoria {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #e9e9e9;
    color: #555;
    margin-left: auto;
    white-space: nowrap;
}

#ogloszenia-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 95%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: normal;
}

#ogloszenia-close-modal {
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

#ogloszenia-close-modal:hover {
    color: #333;
}

#ogloszenia-close-modal * {
    cursor: pointer;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.7;
    color: #444;
    font-size: 18px;
}

.modal-body * {
    font-size: inherit;
    line-height: inherit;
}

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

.login-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.login-prompt {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 8px;
}

.save-button {
    background-color: #558B2F;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.save-button:hover {
    background-color: #437023;
}

.save-button:active {
    box-shadow: inset 0 2px 4px #000000;
}

#ogloszenie-zalaczniki-modal {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

#ogloszenie-zalaczniki-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

#lista-zalacznikow {
    list-style: none;
    padding: 0;
    margin: 0;
}

#lista-zalacznikow li {
    margin-bottom: 12px;
    font-size: 15px;
    display: block;
}

#lista-zalacznikow li:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.modal-footer span {
    font-size: inherit;
    font-weight: normal;
    text-align: left;
}

@media screen and (max-width: 820px) {
    .c4 {
        display: block !important;
        padding-top: 30px !important;
    }
}

@media screen and (max-width: 655px) {
    .c4, .c3 {
        display: block !important;
        padding-top: 30px !important;
    }
    .napis {
        margin-top: 180px !important;
    }
}

@media screen and (max-width: 600px) {
    .stopka {
        bottom: 15px !important;
    }
}

@media screen and (max-width: 355px) {
    .c4, .c3, .c2 {
        display: block !important;
        padding-top: 30px !important;
    }
    .napis {
        margin-top: 140px !important;
    }
}