@charset "UTF-8";

/* CSS Document */

/*****************************************/
/* RESET */
/*****************************************/

* {
    box-sizing: border-box;
    outline: none;
}

input,
button {
    border: 0;
    background: transparent;
    -webkit-appearance: none;
}

input[type=radio] {
    float: none !important;
    -webkit-appearance: radio;
}

input[type=checkbox] {
    float: left;
    margin-right: 10px;
    display: inline-block;
    -webkit-appearance: checkbox;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
    /* for IE 6 and 7 */
}


/*****************************************/
/* COMMON */
/*****************************************/

html,
body {
    margin: 0px;
    padding: 0px;
    -webkit-text-size-adjust: none;
}

body {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    background-color: #fff;
    
}

body.dark-mode {
    color: #718096;
    background-color: #293145;
    
}

body#login:before,
body#password-page:before {
    content: "";
    margin-left: -48%;
    background-image: url(images/bg-login-page.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

body#login.dark-mode:before,
body#password-page.dark-mode:before {
    background-image: url(images/bg-login-page-dark.svg);
    
}

body#debts {
    background-color: #58D6D1;
}

body#debts.dark-mode {
    background-color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #718096;
}

h2 {
    clear: both;
}

p {
    color: #2d3748;
    color: ;
}

body.dark-mode p {
    color:  #e2e8f0;
}

img {
    border: 0px;
}

.error,
.error a {
    color: #f00;
    font-weight: 500;
}

body#login.dark-mode .error,
body#password-page.dark-mode .error,
body#login.dark-mode .error a,
body#password-page.dark-mode .error a {
    color: #f00;
    font-weight: 500;
}

a {
    color: #000;
}

body#login.dark-mode a,
body#password-page.dark-mode a,
body#debts.dark-mode a {
    color: #fff;
}

body#debts .highlight {
    background: #ff0;
}

body#debts.dark-mode .highlight {
    background: #00f;
}

/*****************************************/
/* LOGIN */
/*****************************************/

body#login #container,
body#password-page #container {
    position: absolute;
    float: left;
    top: 50%;
    margin: -250px 0 0 0;
    width: 100%;
    height: 500px;
}

.left,
.right {
    float: left;
    width: 50%;
    min-height: 100px;
}

.right {
    padding: 100px 0 0 100px;
}

.left .logo,
.left .illustration {
    margin: 0 auto;
    width: 300px;
    height: auto;
    display: block;
}

.left .illustration {
    margin: 50px auto 0 auto;
    width: 400px;
}

.left h2 {
    margin: 50px auto 0 auto;
    width: 450px;
    font-size: 36px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    display: block;
}

input[type=email],
input[type=text],
input[type=password] {
    min-width: 350px;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e9f1;
}

body.dark-mode input[type=email],
body.dark-mode input[type=text],
body.dark-mode input[type=password] {
    color: #718096;
    background: #232A3B;
    border: 1px solid #232A3B;
}

input[type=submit] {
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    background: #702774;
    cursor: pointer;
}

::placeholder {
  color: #a4b1c2;
}

.forgot-password {
    font-size: 14px;
    color: #2d3748;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

body#login.dark-mode .forgot-password {
    color: #718096;
}

/*****************************************/
/* DEBTS */
/*****************************************/

#header {
    float: left;
    width: 100%;
    padding: 40px;
}

#client-info {
    clear: both;
    float: left;
    margin: 10px 0 0 70px;
    font-size: 12px;
}

p.welcome-user {
    clear: both;
    float: left;
    margin: 10px 0 0 0;
    font-size: 36px;
    width: 100%;
    text-align: center;
}

body#debts #header .logo {
    float: left;
    width: 300px;
    height: auto;
}

body#debts #nav {
    margin: -40px 0 0 0;
    float: right;
}

body#debts #header a {
    font-size: 24px;
    text-decoration: none;
    color: #000 !important;
    display: inline-block;
}

body#debts #header a.logout {
    margin: 0 0 0 20px;
}

body#debts.dark-mode #header a.change-password,
body#debts.dark-mode #header a.logout {
    color: #fff !important;
}

body#debts #header a.logout:hover {
    text-decoration: underline;
}

body#debts #tabs {
    float: left;
    margin: 40px 0 0 80px;
}

body#debts #tabs a {
    padding: 20px 20px 10px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #d5d3d3;
    text-decoration: none;
    display: inline-block;
}

body#debts #tabs a.active {
    background: #efefef !important;
    text-decoration: none;
}

body#debts #search {
    float: right;
    margin: 30px 80px 0 0;
}

body#debts.dark-mode #tabs a {
    background: #1c212e;
}

body#debts.dark-mode #tabs a.active {
    background: #2d3748 !important;
}

body#debts #content {
    float: left;
    margin: 0 40px 40px 40px;
    width: calc(100% - 80px);
    padding: 40px;
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    border-radius: 40px;
    background: #efefef;
}

body#debts.dark-mode #content {
    background: #293145;
}

.debt-count {
    font-weight: bold;
    text-align: center;
}

.page-numbers {
    float: left;
    padding: 20px 0;
}

.page-numbers a {
    font-size: 14px;
    padding: 0 20px 0 0;
    color: #2d3748;
    text-decoration: none;
}

.page-numbers a:hover {
    font-weight: bold;
    color: #000;
}

a.page-number-on {
    font-weight: bold;
    color: #000;
}

body.dark-mode .page-numbers a {
    color:  #e2e8f0;
}

body.dark-mode .page-numbers a:hover,
body.dark-mode a.page-number-on {
    color: #fff;
}

#show-per-page {
    float: right;
    padding: 20px 0;
}

body#debts.dark-mode #show-per-page {
    color:  #e2e8f0 !important;
}

#show-per-page-form {
    display: inline-block;
}

body#debts #content table {
    margin: 20px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #2d3748;
    background: #fff;
}

body#debts #content table th {
    padding: 15px;
    text-align: left;
}

body#debts #content table th.customer-number {
    width: 8%;
}

body#debts #content table th.debt-number {
    width: 8%;
}

body#debts #content table th.debt-date {
    width: 8%;
}

body#debts #content table th.debt-type {
    width: 8%;
}

body#debts #content table th.debtor-name {
    width: 16%;
}

body#debts #content table th.address {
    width: 34%;
}

body#debts #content table th.amount-owed,
body#debts #content table td.amount-owed {
    text-align: right;
    width: 12%;
}

body#debts #content table th a {
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
}

body#debts #content table td {
    padding: 15px;
    font-weight: 400;
    color: #2d3748;
}

body#debts #content table tr:hover {
    background: #ffb;
}

body#debts.dark-mode #content table,
body#debts.dark-mode #content table th,
body#debts.dark-mode #content table tr,
body#debts.dark-mode #content table th a {
    color: #e2e8f0 !important;
    background: #313A55;
}

body#debts.dark-mode #content table td {
    color: #e2e8f0 !important;
}

body#debts.dark-mode #content table tr:hover {
    background: #374a85;
}

/*****************************************/
/* DARK MODE SWITCH */
/*****************************************/

#dark-mode-switch {
    position: absolute;
    padding: 10px;
    background: #fff;
    border-radius: 34px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body#login #dark-mode-switch,
body#password-page #dark-mode-switch {
    margin: 0 40px 40px 0;
    right: 0;
    bottom: 0;
}

body#debts #dark-mode-switch {
    position: fixed;
    margin: 100px 40px 0 0;
    top: 0;
    right: 0;
    bottom: auto;
}

body.dark-mode #dark-mode-switch {
    background: #232A3B;
}

#dark-mode-switch div {
    float: left;
    margin: 8px 10px 0 0;
    font-size: 14px;
    font-weight: 300; 
}

.switch {
  position: relative;
  float: left;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #f26222;
}

input:focus + .slider {
  box-shadow: 0 0 1px #f26222;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*****************************************/
/* MEDIA QUERIES */
/*****************************************/

@media all and (max-width: 960px) {

    body#debts #content table th {
        display: none;
    }

    body#debts #content table tr,
    body#debts #content table td {
        width: 100%;
        display: block;
    }

    body#debts #content table tr,
    body#debts #content table td {
        width: 100% !important;
        display: block;
    }

    body#debts #content table tr td.customer-number {
        padding-top: 20px;
    }

    body#debts #content table tr td.amount-owed {
        padding-bottom: 20px;
    }

    body#debts #content table td {
        padding: 5px;
    }

    body#debts #content table td.amount-owed {
        text-align: left;
    }

    body#debts #content table tr:nth-child(odd) {
        background: #ededed;
    }

    body#debts.dark-mode #content table tr:nth-child(odd),
    body#debts.dark-mode #content table tr:nth-child(odd) td {
        background: #3b4565 !important;
    }

    body#debts #content table td.customer-number:before {
        content: "Customer Number: ";
        font-weight: bold;
    }

    body#debts #content table td.debt-number:before {
        content: "Debt Number: ";
        font-weight: bold;
    }

    body#debts #content table td.debt-date:before {
        content: "Debt Date: ";
        font-weight: bold;
    }

    body#debts #content table td.debt-type:before {
        content: "Debt Type: ";
        font-weight: bold;
    }

    body#debts #content table td.debtor-name:before {
        content: "Debtor Name: ";
        font-weight: bold;
    }

    body#debts #content table td.debtor-name:before {
        content: "Debtor Name: ";
        font-weight: bold;
    }

    body#debts #content table td.address:before {
        content: "Address: ";
        font-weight: bold;
    }

    body#debts #content table td.amount-owed:before {
        content: "Amount Owed: ";
        font-weight: bold;
    }

    body#debts #search {
        clear: both;
        float: none;
        margin: 0 auto;
        text-align: center;
    }
    
}

@media all and (max-width: 820px) {

    body#debts #nav {
        clear: both;
        float: left;
        margin: 20px 0 20px 70px;
    }

}

@media all and (max-width: 767px) {
  
    body#debts #dark-mode-switch {
        position: fixed;
        margin: 10px 10px 0 0;
        top: 0;
        right: 0;
        bottom: auto;
    }

    body#login #dark-mode-switch,
    body#password-page #dark-mode-switch {
        position: fixed;
        margin: 0 10px 10px 0;
    }

    body#login #container, 
    body#password-page #container {
        position: static;
        top: auto;
        margin: 0;
    }

    body#login:before, 
    body#password-page:before {
        width: 0;
        height: 0;
        background: none;
    }

    .left,
    .right {
        float: none;
    }

    .left {
        width: 100%;
        padding: 40px 0;
        background-color: #58d8d1;
    }

    .left .illustration {
        display: none;
    }

    .left h2 {
        width: auto;
    }

    .right {
        margin: 0 auto;
        padding: 0;
        min-width: 300px;
    }

    input[type=email],
    input[type=text],
    input[type=password] {
        min-width: 100%;
    }

    input#keyword {
        width: 200px !important;
        min-width: auto;
    }

    #header {
        float: left;
        width: 100%;
        padding: 80px 40px 40px 40px;
        text-align: center;
    }

    body#debts #header .logo {
        float: none;
        display: inline-block;
    }

    body#debts #header #client-info {
        float: none;
        margin-bottom: 40px;
        display: block;
    }

    body#debts #nav {
        float: none;
        margin: 0;
    }

    body#debts #header a {
        font-size: 18px;
        display: inline-block;
    }

    body#debts #content {
        margin: 0 5px 20px 5px;
        padding: 20px;
        width: calc(100% - 10px);
    }

    #show-per-page {
        clear: both;
        padding: 0;
        float: none;
        text-align: center;
    }

    .page-numbers {
        float: none;
        padding: 0;
        margin: 0 auto;
        margin-bottom: 10px;
        text-align: center !important;
    }

    a.page-number {
        display: none;
    }
    
}