
/**
 * #FF0084 - Active elements, active links, active buttons
 * #0073EA - Links, buttons
 * #E1E1E1 - Borders
 *
 */

/* ------------------------------- Base layout ------------------------------ */

html { overflow-y: scroll; }
html * {
    margin: 0;
    padding: 0;   
}
li { list-style: none; }


body {
    width: 980px;
    margin: 0 auto;
}
body, table {
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #222;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

#toolbar {
    margin: 5px 0 30px 0;
    padding: 5px 10px;
    border: 2px solid #e1e1e1;
}
#toolbar > table {
    width: 100%;
    font-size: 14px;
}
#toolbar > table:first-child {
    border-bottom: 1px solid #e1e1e1;
}
#toolbar > table td {
    padding: 4px 5px;
    white-space: nowrap;
}
#toolbar > table td:last-child {
    text-align: right;
    width: 110px;
}

#toolbar td.user { border-right: 2px solid #eee; padding-right: 10px; }
#toolbar td.nr-pog { font-weight: bold; padding-left: 30px; }
#toolbar td.daty { color: #666; text-align: right; }
#toolbar td.data-pog { color: #666; }
#toolbar td.admin { text-align: right; }

/* ------------------------------- Base elements ---------------------------- */

h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #FF0084;
}

h2 {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

/* ------------------------------- Base classes ----------------------------- */

a {
    color: #0073EA;
    text-decoration: none;
}
a:hover {
    color: #FF0084;
}
a.remove {
    font-size: 20px;
    color: #dc3030 !important;
}

.hidden {
    display: none;
}
.clear { clear: both; }

.curr {
    font-size: 0.7em;
    text-transform: uppercase;
    font-style: normal;
    font-weight: bold;
}

div.box {
    margin-bottom: 20px;
    border: 2px solid #e1e1e1;
}
div.box > h2:first-child {
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    background: #f9f9f9;
}
div.box > div {
    padding: 10px 15px;
}

table.base td,
table.base th {
    padding: 0.6em 0.8em 0.6em 0;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}
table.base th { color: #444; }
table.base tr:last-child td {
    border-bottom: none;
}

table.base.form {
    margin: 15px 15px 15px 40px;
}
table.base.form td {
    border-bottom: none;
    font-size: 14px;
}
table.base.form th {
    text-align: left;
}

ul.menu li {
    margin: 0.6em 0;
}

div.box.light {
    border: none;
}
div.box.light > h2:first-child {
    background: none;
    margin: 0 15px;
    padding-right: 0;
    padding-left: 0;
    border-bottom:  2px solid #e1e1e1;
    
}

#p.no-border {
    margin: 0 15px;
}

p.yes-no { margin-top: 20px; }
p.yes-no > button.go { width: 100px; margin-right: 20px; }
p.yes-no > button.cancel { width: 70px; }

.text p {
    margin-bottom: 1.5em;
}

/* ------------------------------- Base form -------------------------------- */

form {
    font-size: 13px;
    color: #444;
}

form fieldset {
    padding: 5px;
    border: 2px #eee solid;
    margin-bottom: 20px;
}
form fieldset > ul,
form fieldset > p {
    padding-left: 40px;
    margin: 15px 0;
}
fieldset > legend {
    padding: 0 5px;
    font-size: 18px;
}

form ul > li {
    list-style: none;
    padding: 7px 0;
}
form ul > li > * {
    margin-right: 10px;
}
form ul > li.header {
    border-top: 1px solid #E1E1E1;
    border-bottom: 1px solid #E1E1E1;
    margin: 30px 0 10px 0;
    font-size: 14px !important;
}
form ul > li.header > span {
    display: inline-block;
    font-weight: bold;
}

form label {
    display: inline-block;
    font-size: 14px !important;
}


input, textarea {
    border: 2px solid #E1E1E1;
    font-size: 13px;
    padding: 5px;
}
textarea {
    line-height: 1.4 !important;
}
input:focus, textarea:focus {
    border: 2px solid #FF0084;
}
input:disabled, textarea:disabled {
    background: #eee;
}

form label.error {
    color: #dc3030;
    font-size: 0.8em;
    margin-left: 10px;
}
input.error, textarea.error {
    border-color: #dc3030;
}

button {
    padding: 7px 13px;
    background: #fafafa;
    font-size: 14px !important;
    font-weight: bold;
    vertical-align: bottom;

    border: 2px #E1E1E1 solid;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

    color: #0073EA;
    cursor: pointer;
}
button:hover {
    border-color: #0073EA;
}
button.go {
    color: #FF0084;
}
button.cancel {
    font-size: 13px !important;
    padding: 4px 8px;
    font-weight: normal;
}

/* ------------------------------ Pogrzeb Form ------------------------------ */

#mform {
    width: 980px;
}
#mform label {
    width: 180px;
}
#mform label.identity {
    width: 40px;
    margin: 0 20px;
}
#mform label.error {
    width: auto !important;
    margin: auto;
    font-size: 0.9em !important;
}

#tabs > ul li a.errors {
    color: #dc3030;
}

#mform #podstawowe input { width: 150px; }
#mform #harmonogram input { width: 550px; }
#mform #rachunki input { width: 220px; }
#mform #zlecajacy input { width: 220px; }
#mform #zmarly input { width: 220px; }
#mform #usc input { width: 220px; }

/* ------------ USC ------------ */

#mform #usc-akt input:last-of-type { width: 100px; }
#mform #usc-akt input + label { width: auto; margin: 0 20px; }
#mform #usc li.long input { vertical-align: top; }


/* ------------ Kosztorys ------------ */

#mform #t-koszty li > * {
    vertical-align: middle;
}
#mform #t-koszty li.header > span:first-child { width: 200px; }
#mform #t-koszty li.header > span.il { width: 75px; }
#mform #t-koszty li.header > span.h-net { width: 86px; }
#mform #t-koszty li.header > span.h-gross { width: 120px; }


#mform #t-koszty label {
    width: 200px;
}

#mform #t-koszty input.qty {
    width: 30px;
    text-align: center;
}
#mform #t-koszty input.price {
    width: 65px;
    margin-left: 90px;
    text-align: right;
}
#mform #t-koszty input.name { width: 244px; }
#mform #t-koszty input.name + input.price { margin-left: 32px; }
#mform #t-koszty input.text { width: 155px; }

#mform #kosztorys span.price {
    display: inline-block;
    width: 81px;
    font-size: 14px;
    text-align: right;
}
#mform #kosztorys span.net {
    margin-left: 22px;
    padding-right: 7px;
    
}
#mform #kosztorys span.gross {
    margin-left: 15px;
}
#mform #sobota_cbox { margin-right: 40px; }

#t-koszty #sel_miasto { width: 315px; }
#t-koszty #trumna input { width: 300px; }

/* ------------ Dodatkowe op³aty ----------- */

#mform #t-koszty fieldset.dop li > span.gross {
    display: inline-block;
    width: 80px;
    margin-left: 10px;
    text-align: right;
}
#mform #t-koszty fieldset.dop li.header > span:first-child { width: 290px; }
#mform #t-koszty fieldset.dop li.header > span.net { width: 85px; }
#mform #t-koszty fieldset.dop li.header > span.gross { width: 120px; margin-left: 0; text-align: left; }


/* ------------ Kwiaty ----------- */

#mform #t-kwiaty li.header > span { }
#mform #t-kwiaty li.header > span:first-child { width: 347px; }
#mform #t-kwiaty li.header > span.net { width: 61px; padding-right: 13px; text-align: right; }
#mform #t-kwiaty li.header > span.gross { width: 81px; text-align: right; padding-top: 0; margin-right: 23px; }
#mform #t-kwiaty li > span.gross {
    display: inline-block;
    padding-top: 5px;
    width: 85px;
    text-align: right;
}

#mform #t-kwiaty li > * {
    vertical-align: top;
}
#mform #t-kwiaty textarea {
    width: 320px;
    height: 45px;
}
#mform #t-kwiaty input.price {
    width: 65px;
    text-align: right;
}
#mform #t-kwiaty span.gross.price {
    display: inline-block;
    width: 81px;
    padding: 7px 5px;
    font-size: 14px !important;
    text-align: right;
    margin-right: 20px;
}
#mform #t-kwiaty input.info {
    width: 250px;
}


/* ------------ Uwagi ----------- */

#mform #t-uwagi li > * { vertical-align: top; }
#mform #t-uwagi textarea {
    width: 500px;
}
#mform #t-uwagi textarea[name="info_dochowanie_do"] { height: 100px; }
#mform #t-uwagi textarea[name="info_notatki"] { height: 300px; }
#mform #t-uwagi textarea[name="info_uwagi_dla_rodziny"] { height: 150px; }

#mform > #tabs > div > p.buttons {
    margin: 5px 0;
    text-align: right;
}
#mform > #tabs > div > p.buttons > * { margin-left: 10px; vertical-align: bottom; }


/* ------------ Suma kosztów ----------- */

#mform #t-koszty {
    position: relative;
}
#mform #koszty-suma {
    position: absolute;
    right: 40px;
    top: 270px;
    width: 335px;
    font-size: 14px;
    background: #fafafa;
    padding: 10px;
}

#mform #koszty-suma > table {
    width: 100%;
    border-top: 2px solid #c5c5c5;
}
#mform #koszty-suma > table:first-child { border-top: none; }

#mform #koszty-suma td,
#mform #koszty-suma th { padding: 8px 10px; }
#mform #koszty-suma th:first-child { text-align: left; }
#mform #koszty-suma td { border-top: 1px solid #e1e1e1; }
#mform #koszty-suma tr:first-child > td { border-top: none; }

#mform #koszty-suma tr.calkowity { font-weight: bold; }
#mform #koszty-suma tr.cmentarz,
#mform #koszty-suma tr.kwiaty { color: #666; }
#mform #koszty-suma td.netto,
#mform #koszty-suma td.brutto { text-align: right; white-space: nowrap; }

#mform #koszty-suma input.price {
    width: 60px;
    margin: 0;
    text-align: right;
}



/* ------------------------------- Main page -------------------------------- */

#main-menu {
    padding-bottom: 30px;
}

#p.main #act-pog {
    float: right;
    width: 550px;
    height: 316px;
}
#p.main #tasks,
#p.main #pog-tasks {
    margin-right: 580px;
}

#p.main #act-pog table { width: 100%; }
#p.main #act-pog td:first-child {
    width: 190px;
}

#p.main #show-all {
    float: right;
    width: 554px;
}
#p.main #status-change {
    margin: 15px 0;
}

/* ------------- Wszystkie dane / Wydruk "wszystkie informacje" ------------- */

div.layout div.box {
    margin-bottom: 20px;
}
div.layout .long-text {
    line-height: 1.5;
}
div.layout #kwiaty tr.sum { font-weight: bold; }


#layout-dane table.base {
    width: 100%;
}

#layout-dane #harmonogram td:first-child,
#layout-dane #zleceniodawca td:first-child,
#layout-dane #rachunki_na td:first-child {
    width: 160px;
}

#layout-dane #telefony {
    float: right;
    width: 250px;
    height: 678px;
}
#layout-dane #telefony td { line-height: 1.9; }

#layout-dane #zlec-rach div.zlec,
#layout-dane #zlec-rach div.rach { margin-right: 270px; }

#layout-dane #na-tabliczke table {
    float: left;
    width: 50%;
}
#layout-dane #na-tabliczke table td:first-child { width: 160px; }

#layout-dane #dane-dla-usc td:first-child { width: 250px; }

#layout-dane #suma-info {
    float: right;
    width: 540px;
}
#layout-dane #koszty-suma > table {
    width: 300px;
    
}
#layout-dane #koszty-suma td:last-child {
    text-align: right;
    white-space: nowrap;
}
#layout-dane #koszty-suma tr.lineout td {
    border-bottom: 2px solid #e1e1e1;
}

#layout-dane #koszty { 
    margin-right: 580px;
}
#layout-dane #koszty td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* ------------------------- Lista pogrzebów -------------------------------- */

table.base.list td {
    padding: 0.5em 0.8em 0.5em 0;
}

#p.list #nav {
    width: 100%;
    margin: 0 0 10px 0;
}
#p.list #nav td:last-child { text-align: right; }
#p.list #nav select { width: 80px; }

#p.list #nav td.paging { white-space: nowrap; }
#p.list #nav td.paging > * { margin-right: 10px; }

#p.has-list #list {
    width: 100%
}
#p.has-list #list th { text-align: left; }
#p.has-list #list th:last-child { text-align: right; }
#p.has-list #list td:last-child { text-align: right; white-space: nowrap; }

/* ---------------------- Wyszukiwanie pogrzebów ---------------------------- */

#p.search form {
    width: 100%;
    margin: 0 0 20px 0;
}

#p.search  fieldset {
    float: left;
    width: 47%;
}
#p.search  fieldset:first-child {
    margin-right: 3%;
}
#p.search #zm input { width: 200px; }
#p.search #zm td:first-child { width: 150px; }
#p.search #zlec td:first-child { width: 170px; }

#p.search #submit { margin: 10px 0 15px 40px; width: 375px; }
#p.search #submit td:last-child { text-align: right; }
#p.search #submit select { width: 80px; }

/* ----------------------------- Terminarz ---------------------------------- */

#p.sched #nav {
    width: 100%;
    margin: 0 0 10px 0;
}
#p.sched #nav td:first-child > * { margin-right: 10px;  }
#p.sched #nav td:last-child { text-align: right; }
#p.sched #nav select {
    width: 100px;
}

#p.sched #schedule    { width: 100%; }
#p.sched #schedule th { text-align: left; }
#p.sched #schedule td { padding: 0.3em 0.8em 0.3em 0; }
#p.sched #schedule td:first-child {
    width: 25px;
}
#p.sched #schedule td:nth-child(2) {
    width: 30px;
    color: #555;
}
#p.sched #schedule tr:nth-child(7n+1) td {
    padding-bottom: 0.9em;
    border-bottom: 2px solid #d5d5d5;
}
#p.sched #schedule tr:nth-child(7n+2) td {
    padding-top: 0.9em;
}

/* ---------------------------------- Remove -------------------------------- */

#p.remove form { margin: 30px 0; }

/* ---------------------------------- Print --------------------------------- */

#p.print table.main { width: 100%; }

#p.print #menu {
    float: left;
    width: 270px;
}
#p.print #menu li {
    padding-bottom: 0.6em;
    border-bottom: 1px solid #eee;
}
#p.print #menu li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
#p.print #menu li > span {
    float: right;
}

#p.print #preview {
    position: relative;
    margin-left: 300px;
}
#p.print #preview > img {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}


/* ---------------------------------- Bills --------------------------------- */

#p.bills > table {
    width: 50%;
}

#p.bills > table th:nth-child(1) { text-align: left; }
#p.bills > table td:nth-child(2) { text-align: center; }
#p.bills > table td:last-child { text-align: center; }
#p.bills > table td:last-child a { margin-right: 10px; }


/* ---------------------------------- Admin --------------------------------- */

#p.admin > div.box:first-child {
    float: left;
    width: 450px;
}
#p.admin > div.box:last-child {
    margin-left: 480px;
}


/* ---------------------------------- Users --------------------------------- */

#p.users > p:first-child {
    margin-bottom: 20px;
}
#p.users > table {
    width: 50%;
}
#p.users > table th:first-child { text-align: left; }
#p.users > table td:nth-child(2) { text-align: center; }
#p.users > table td:last-child { text-align: center; }


/* ---------------------------------- User- --------------------------------- */

#p.user label { width: 160px; }
#p.user > form > p.yes-no { margin-bottom: 20px; }

/* ----------------------------- Access denied - ---------------------------- */

#p.access-denied { margin-top: 30px; }

/* ----------------------------- Definiuj ceny - ---------------------------- */

#p.define #city-change { padding-left: 40px; }
#p.define #city-change h2 { display: inline-block; }
#p.define #city-change p { margin-top: 0; float: right; }
#p.define #city-change select { width: 105px; }

#p.define table {
    float: left;
    width: 35%;
}
#p.define table td:first-child { width: 170px; }

#p.define input { width: 100px; text-align: right; }

/* ----------------------------- Definiuj vat ------------------------------- */

#p.definevat p { margin-bottom: 20px; }
#p.definevat input { width: 60px; }

/* -------------------------------- Faktura --------------------------------- */

#p.bill > table { width: 100%; }
#p.bill > form > table { width: 100%; }


#p.bill #odbiorca { width: 360px; }
#p.bill #odbiorca td { padding: 3px 0; }

#p.bill #daty { width: 100%; }
#p.bill #daty td { padding: 3px 0; }

#p.bill #buttons-top {
    padding-bottom: 30px;
}

#p.bill button.go { margin-right: 10px; }

#p.bill #items { margin: 30px 0 10px 0; }
#p.bill #items th,
#p.bill #suma th {
    text-align: center;
    color: #444;
    padding: 5px;
}
#p.bill #items td {
    padding: 3px 5px;
    text-align: center;
}
#p.bill #suma th {
    border-bottom: 1px solid #eee;
    text-align: right;
}
#p.bill #suma td {
    padding: 3px 5px;
    text-align: right;
    border-bottom: 1px solid #eee;
}
#p.bill #suma td[rowspan="3"] { border-bottom: none; }
#p.bill #suma tr:last-child td { border-bottom: none; }
#p.bill #slownie h2 { margin: 5px 0; }

#p.bill #items td.netto,
#p.bill #items td.kwota-vat,
#p.bill #items td.wartosc-brutto {
    text-align: right;
}
#p.bill #items td.brutto input { text-align: right; }
#p.bill #items td.vat input { text-align: center; }

#p.bill #add-item { padding-left: 10px; margin-bottom: 30px; }

#p.bill form label.error { margin: 0; }


/* -------------------------------- Index ----------------------------------- */


#p.index {
    width: 500px;
    margin: 40px auto 0 auto;
}
#p.index > h1 {
    padding-left: 40px;
    margin-bottom: 40px;
}
#p.index form { text-align: left; }
#p.index form fieldset {
    border: none;
}
#p.index form label {
    width: 150px;
}
#p.index form > p {
    padding-left: 210px;
}

/* -------------------------------- Logon failure --------------------------- */

#p.logon-failure {
    margin-top: 40px;
}

#p.logon-failure a {
    text-decoration: underline;
}