/*
	Theme Name: CWM-Main
	Author: Paweł Dynarowski
	
	nazwy zaczynaj�ce sie od cwm - oznaczaj� elemnty dodane a 
	bez tego prefixu nadpisywane w�a�ciwo�ci macierzystego styli main.css
*/

@import url('main.css');

/* =Sekcja nagłówka
-------------------------------------------------------------- */

/* AlpineJS */
[x-cloak] {
    display: none !important;
}

body {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#4987ab+0,7baac4+50,7baac4+51,4987ab+100 */
    background: #314f64; /* Old browsers */
    background: -moz-linear-gradient(top, #314f64 0%, #548199 50%, #548199 51%, #314f64 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #314f64 0%, #548199 50%, #548199 51%, #314f64 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #314f64 0%, #548199 50%, #548199 51%, #314f64 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4987ab', endColorstr='#4987ab', GradientType=0); /* IE6-9 */
}

.grid-view table.items tr.odd {
    background: #cdd9dc !important;
}

.grid-view table.items th {
    background: #4987ab !important;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: Adaggio;
}

div.container {
    box-shadow: 5px 5px 5px #4e4d4d;
    background: #FFF url('../images/background.jpg') no-repeat top left !important;
    border-radius: 5px;
}

#logon-info {
    display: block;
    width: 100%;
    text-align: right;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 0 5px 0;
}

div.breadcrumbs {
    margin-top: 0;
}

.grid-view {
    padding: 0 !important;
}


/* CGridView */

.grid-view table.items tr td {
    /* cursor: pointer  */
}

td.button-column a.view img,
td.button-column > a.update > img {
    width: 24px;
    height: 24px;
}

.button-column {
    width: 20px !important;
}

div.grid-view td.id {
    width: 30px !important;
    text-align: right;
}

div.grid-view td.center {
    text-align: center;
}

div.grid-view td.right {
    text-align: right;
}

div.grid-view .dziennik-status-Z a,
div.grid-view .dziennik-status-N a,
div.grid-view .dziennik-status-R a {
    width: 100%;
    display: block;
    text-decoration: none;
}

div.grid-view .dziennik-status-Z a:hover,
div.grid-view .dziennik-status-N a:hover,
div.grid-view .dziennik-status-R a:hover {
    text-decoration: underline;
}

div.grid-view .dziennik-status-Z {
    background-color: #E6EFC2;
}

div.grid-view .dziennik-status-N {
    background-color: #FBE3E4;
}

div.grid-view .dziennik-status-R {
    background-color: #fff6bf;
}


/* paginacja */

.paginacja {
    text-align: center;
    height: 25px;
    width: 60px;
    display: block;
    float: left;
    clear: both;
}


/* YiiTab */

.yiiTab div.view {
    border: none !important;
}

.yiiTab ul.tabs {
    border-bottom: 1px solid #888 !important;
}

div.form fieldset {
    border: 1px solid #888 !important;
}

div #header {
    border: none;
}

#footer {
    border-top: 1px solid #888 !important;
}

div#page {
    background: none;
    margin-top: 15px;
}

#header {
    height: 45px
}

#header ul li {
    display: inline;
    margin: 0 10px 0 0;
    padding: 0 10px 0 0;
    font-weight: bold;
    border-right: 1px solid #ccc;
    float: right;
}

#logo {
    float: left;
    padding-top: 0;
    color: #2D3843;
    font-family: Adaggio;
    font-size: 140%;
}

#header ul li:first-child {
    margin: 0;
    padding: 0;
    border: none;
}

.cwm_flagi {
    float: right;
    display: block;
}

.cwm_flagi a {
    text-decoration: none;
}

.cwm_flagi img {
    margin-top: 10px;
    margin-right: 12px;
    border: 1px solid #aaa;
}

img.cwm_alfa {
    filter: alpha(opacity=50);
    -moz-opacity: .50;
    opacity: .50;
}

img:hover.cwm_alfa {
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    opacity: 1;
}


/* =Cz�� g��wna
-------------------------------------------------------------- */

#content {
    min-height: 480px;
}


/* =Formularze
-------------------------------------------------------------- */

.form h3,
h3.detail-view {
    margin-top: 45px;
    border-bottom: 1px solid #aaa;
    padding-bottom: 10px;
    font-family: Adaggio, Verdana;
    font-size: 16px;
}

.form h3,
h3.detail-view:first-child {
    margin-top: 0;
}

div.search-form {
    background: rgba(0, 0, 0, 0.1);
}

.portlet-content {
    background: rgba(0, 0, 0, 0.1);
}

.portlet-title {
    color: #fff;
}

.portlet-decoration {
    background: rgba(0, 0, 0, 0.5);
    border-left: 5px solid #555;
}

.operations li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.operations li.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* =Main menu
-------------------------------------------------------------- */
div#topline {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

div#mainmenu {
    width: 100%;
    height: 27px;
    font-size: 1.1em;
    position: relative;
    background-color: #4987ab;
}

div#mainmenu ul {
    margin: 0;
    padding: 0;
}

div#mainmenu ul li {
    float: left;
    list-style-type: none;
}

div#mainmenu li span,
div#mainmenu li a {
    display: block;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

div#mainmenu li span {
    color: #ffffff;
    background-color: transparent;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 8px;
}

div#mainmenu li span:hover {
    cursor: default;
}

div#mainmenu li li {
    margin: 0;
    padding: 0;
}

div#mainmenu li li a {
    padding-left: 25px;
    padding-right: 25px;
    text-align: left;
    background-color: black;
    color: #fff;
}

div#mainmenu li li a:hover {
    background-color: #444;
    color: #fff;
}

div#mainmenu li ul {
    overflow: hidden;
    display: none;
    margin: 0;
    padding: 0;
}

div#mainmenu li:hover ul {
    position: absolute;
    display: block;
}

div#mainmenu > ul > li:last-child {
    float: right;
}

#mainmenu ul li.active span {
    color: #6399cd;
    background-color: #EFF4FA;
    text-decoration: none;
}

/* =Kandydat->Aplikacja
-------------------------------------------------------------- */
table.application {
    width: 100%;
}

table.application > caption {
    text-align: center;
    color: white;
    background-color: #333;
    font-size: 18px;
}

table.application th {
    color: #fff;
    background-color: #333;
}

table.application th.title {
    font-size: 16px;
}

table.application th,
table.application td {
    border: 1px solid #333;
    padding: 5px;
}

table.application tr.DONE {
    background-color: #E6EFC2;
}

table.application tr.UNDONE,
table.application tr.PENDING {
    background-color: #FFF6BF;
}

table.application td.DONE-STATUS,
table.application td.PENDING-STATUS {
    color: green;
    font-weight: bold;
}

table.application td.UNDONE-STATUS {
    color: red;
    font-weight: bold;
}

table.application th.center,
table.application td.center {
    text-align: center;
}

/* N - niezweryfikowany, A - zaakceptowany, O- odrzucony, B - blokada*/
table.application tr.O {
    background-color: #FBE3E4;
}

table.application tr.N {
    background-color: #d5edf8;
}

table.application tr.A {
    background-color: #E6EFC2;
}

table.application tr.B {
    background-color: #fff6bf;
}

table.application tr.P {
    background-color: #fff6bf;
}

span.O {
    background-color: #FBE3E4;
}

span.N {
    background-color: #d5edf8;
}

span.A {
    background-color: #E6EFC2;
}

span.B {
    background-color: #fff6bf;
}

table.application tr.S2 {
    background-color: #FBE3E4;
}

table.application tr.S0 {
    background-color: #d5edf8;
}

table.application tr.S3 {
    background-color: #E6EFC2;
}

table.application tr.S1 {
    background-color: #fff6bf;
}

/* Table bordered */
.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd !important;
}

.table-bordered caption {
    background-color: #4987ab;
    color: #fff;
}

.table-hovered tr:hover {
    background-color: #cee7f5;
}

a.button,
a.button-green {
    font-size: 12px;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    display: block;
    float: left;
    color: white;
    text-decoration: none;
}

a.button {
    background-color: #888;
    border: 1px solid #aaa;
}

a.button:hover {
    background-color: #aaa;
}

a.button-green {
    background-color: #007C48;
    border: 1px solid #008E55;
}

a.button-green:hover {
    background-color: #008E55;
}

.N {
    background-color: #FBE3E4;
}

.T {
    background-color: #E6EFC2;
}

.PAID {
    background-color: #E6EFC2;
}

.UNPAID {
    background-color: #FFF6BF;
}

.biuro-btn,
.pd_findbutton,
.pd_detailbutton,
.pd_savebutton,
.pd_button {
    border-top: 1px solid #96d1f8;
    background: #65a9d7;
    background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#65a9d7));
    background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
    background: -moz-linear-gradient(top, #3e779d, #65a9d7);
    background: -ms-linear-gradient(top, #3e779d, #65a9d7);
    background: -o-linear-gradient(top, #3e779d, #65a9d7);
    padding: 5px 10px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 1) 0 1px 0;
    -moz-box-shadow: rgba(0, 0, 0, 1) 0 1px 0;
    box-shadow: rgba(0, 0, 0, 1) 0 1px 0;
    text-shadow: rgba(0, 0, 0, .4) 0 1px 0;
    color: white;
    font-size: 12px;
    font-family: Adaggio, Georgia, serif;
    text-decoration: none;
    vertical-align: middle;
    margin: 15px 15px 0 0;
    display: inline-block;
}

.biuro-btn,
.search-button:hover,
.pd_findbutton:hover,
.pd_detailbutton:hover,
.pd_button:hover {
    border-top-color: #28597a;
    background: #28597a;
    color: #ccc;
}

.biuro-btn,
.search-button:active,
.pd_findbutton:active,
.pd_detailbutton:active,
.pd_button:active {
    border-top-color: #1b435e;
    background: #1b435e;
}

/* Aktualnosc */
.aktualnosc-stopka {
    padding: 15px 0 0 0;
    font-size: 10px;
    border-top: 1px solid #ddd;
}

.aktualnosc-stopka ul li:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.aktualnosc-stopka ul li {
    display: inline;
    margin: 0 10px 0 0;
    padding: 0 10px 0 0;
    font-weight: bold;
    border-right: 1px solid #ccc;
    color: #888;
}

.opcja-0 {
    background-color: #fff6bf;
}

/* Not ready yet */
.opcja-1 {
    background-color: #d5edf8;
}

/* Waiting for the decision from Faculty */
.opcja-2 {
    background-color: #fbe3e4;
}

/* Not accepted */
.opcja-3 {
    background-color: #e6efc2;
}

/* Not accepted */
.opcja-7 {
    background-color: #ff8989;
}

/* Accepted */

/* detail views */
table.detail-view tr.odd {
    background: rgba(0, 0, 0, 0.1) !important;
}

table.detail-view tr.even {
    background: rgba(0, 0, 0, 0.02) !important;
}

table.detail-view {
    background: none !important;
}

/* zdjecie */
img.zdjecie {
    box-shadow: 2px 2px 15px #555;
    border-radius: 4px;
    width: 150px;
}

/* drukowanie */
@media print {
    #header,
    #mainmenu,
    #footer {
        display: none;
    }

    table {
        width: 100%;
    }
}

div.dane_personalne {
    background-color: rgba(0, 0, 0, 0.1);
    min-height: 168px;
}

div.dane_personalne div {
    padding: 5px;
    font-size: 12px;
}

div.dane_personalne div h5 {
    margin-bottom: 15px;
}

div.dane_personalne div .tags {
    padding-right: 0px;
}

div.dane_personalne div .tags:hover {
    padding-right: 0px;
    text-decoration: underline;
}

#sidebar {
    padding: 0;
}

/* Modal window */
/* The Modal (background) */
.modal {
    /*display: none; !* Hidden by default *!*/
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    visible: false !important;
}

/* Modal Content/Box */
.modal-content {
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 2% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 35%; /* Could be more or less, depending on screen size */
    min-height: 70px;
    visible: false;
}

.tox-statusbar__branding {
    display: none;
    visibility: hidden;
}