/*
Theme Name: UATOM
Theme URI: https://www.uatom.org/
Author: Derevianko
Author URI: https://webpilot.team/
Description: -
Tags: -
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
  color: #000;
  background: #F9FAFB;
  min-width: 360px;
}
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
}

.wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 48px 0 35px;
  line-height: 105%;
}

h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 48px 0 30px;
  line-height: 105%;
}

h4 {
  color: #6A6A6A;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

small {
  color: #6A6A6A;
  font-size: 16px;
  margin: 28px 0;
}

header {
  background: #FFF;
  border-bottom: 1px solid #E1E8F3;
}

.header {
  height: 82px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.header-left img {
  width: 38px;
}
.header-right {
  font-size: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 50px;
}
@media (max-width: 767px) {
  .header-right-accounting {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
  }
}
.header-right-accounting a {
  color: #000;
  text-decoration: none;
}
@media (max-width: 767px) {
  .header-right-accounting small {
    display: block;
    width: 100%;
    margin: 0 0 5px;
    text-align: center;
  }
}
.header-right-messengers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 21px;
  position: relative;
}
.header-right-messengers:before, .header-right-messengers:after {
  content: "";
  display: block;
  height: 40px;
  width: 1px;
  background-color: #E1E8F3;
  position: absolute;
}
.header-right-messengers:before {
  left: -24px;
  top: -5px;
}
.header-right-messengers:after {
  right: -24px;
  top: -5px;
}
@media (max-width: 767px) {
  .header-right-messengers {
    display: none;
  }
}
.header-right-exit a {
  display: block;
  border-radius: 8px;
  border: 1px solid #E1E8F3;
  color: #000;
  padding: 10px 24px;
  text-decoration: none;
}
@media (max-width: 767px) {
  .header-right-exit a {
    padding: 8px 10px;
  }
}
.header-right-exit img {
  display: none;
}
@media (max-width: 767px) {
  .header-right-exit img {
    display: block;
  }
}
@media (max-width: 767px) {
  .header-right-exit span {
    display: none;
  }
}

.dashboard {
  margin: 35px 0;
  display: grid;
  grid-template-columns: minmax(177px, 1fr) minmax(0, 2.7fr) minmax(0, 2.7fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}
.dashboard-card {
  background: #FFF;
  border-radius: 16px;
  border: 1px solid #E1E8F3;
  padding: 18px 24px 20px;
}
.dashboard h4 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #E1E8F3;
}
.dashboard h4 img {
  margin-right: 10px;
}
.dashboard .balance {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 82%;
  color: #5EB17E;
  font-size: 20px;
  font-weight: 700;
}
/* Єдиний блок: напис + сума. Блок центрується у картці (через flex батька),
   а текст усередині вирівняний вліво — тож початок напису й суми збігаються. */
.dashboard .balance .balance-box {
  text-align: left;
}
.dashboard .balance .balance-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* ≤767px: напис в один рядок перед сумою (а не зверху) */
@media (max-width: 767px) {
  .dashboard .balance .balance-br {
    display: none;
  }
  .dashboard .balance .balance-label {
    margin-bottom: 0;
    margin-right: 8px;
  }
}
@media (max-width: 799px) {
  .dashboard .balance {
    height: auto;
    margin: 36px 0 20px;
  }
}
.dashboard .summary {
  margin-top: 36px;
}
.dashboard .summary div {
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .dashboard .summary div {
    margin-bottom: 15px;
    line-height: 140%;
  }
}
.dashboard .summary small {
  font-size: 18px;
}
.dashboard .summary b {
  white-space: nowrap;
}
.dashboard .summary .name {
  white-space: wrap;
}
@media (max-width: 539px) {
  .dashboard .summary .name {
    white-space: nowrap;
  }
}

.payment {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
  margin: 30px 0 50px;
}
@media (max-width: 767px) {
  .payment {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}
.payment a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 16px;
  background: #FFF;
  height: 65px;
  width: 277px;
}

.login {
  background: #111;
  max-width: 545px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .login {
    padding: 0 20px;
  }
}
.login header {
  background: #111;
  border-bottom: none;
  margin: 60px 0 50px;
  text-align: center;
}
@media (max-width: 767px) {
  .login header img {
    width: 70px;
  }
}
.login .popup {
  background: #FFF;
  border-radius: 16px;
  -webkit-box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.05);
          box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.05);
  width: 545px;
  padding: 42px 48px 48px;
  text-align: center;
}
@media (max-width: 767px) {
  .login .popup {
    padding: 30px 20px 36px;
    width: auto;
  }
}
.login h1 {
  color: #111;
  font-size: 24px;
  font-weight: 700;
  line-height: 114%;
  margin: 0 0 38px;
  left: 100%;
}
.login .form {
  font-size: 17px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 24px;
}
.login .form input {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #DDDDDC;
  padding: 0 20px;
  outline: none;
}
.login .form input::-webkit-input-placeholder {
  color: #ACACAC;
}
.login .form input::-moz-placeholder {
  color: #ACACAC;
}
.login .form input:-ms-input-placeholder {
  color: #ACACAC;
}
.login .form input::-ms-input-placeholder {
  color: #ACACAC;
}
.login .form input::placeholder {
  color: #ACACAC;
}
.login .form button {
  border-radius: 8px;
  background: #FFE100;
  width: 200px;
  height: 50px;
  padding: 0 20px;
  color: #1B1B1B;
  font-weight: 700;
  border: none;
  outline: none;
}

footer {
  color: #FFF;
  background: #141414;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}
@media (max-width: 1024px) {
  footer {
    position: relative;
  }
}
footer .wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
footer .footer {
  font-size: 17px;
  height: 82px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 48px;
}
@media (max-width: 799px) {
  footer .footer {
    gap: 24px;
  }
}
@media (max-width: 767px) {
  footer .footer {
    height: auto;
    padding: 48px 20px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    gap: 36px;
  }
}
@media (max-width: 767px) {
  footer .footer .copyright {
    width: 100%;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }
}
footer small {
  color: #6A6A6A;
}
footer a {
  color: #FFF;
  text-decoration: none;
}
/* ── Доповнення для Laravel-шаблону ── */

/* Кнопка виходу — стилізована як посилання */
.exit-btn {
  display: block;
  border-radius: 8px;
  border: 1px solid #E1E8F3;
  color: #000;
  padding: 10px 24px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
}
.exit-btn img {
  display: none;
}
@media (max-width: 767px) {
  .exit-btn {
    padding: 8px 10px;
  }
  .exit-btn span {
    display: none;
  }
  .exit-btn img {
    display: block;
  }
}

/* Борг — червоний колір балансу.
   Селектор навмисно специфічніший за `.dashboard .balance` (0,2,0),
   інакше зелений колір балансу за специфічністю переб'є червоний. */
.dashboard .balance.balance--debt {
  color: #E53935;
}

/* Помилка у формі логіну */
.form-error {
  width: 100%;
  color: #E53935;
  font-size: 14px;
  text-align: center;
  margin-top: -12px;
}

/* Нативний <dialog> — у top layer, центрується автоматично */
.modal {
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* flex активний лише коли діалог відкритий (має [open]) */
}
.modal[open] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.modal h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal label {
  font-size: 13px;
  color: #555;
}
.modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #C8D5E8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.modal-input:focus {
  border-color: #1565C0;
}
.modal-submit {
  background: #1565C0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-submit:hover {
  background: #0D47A1;
}
.modal-submit:disabled {
  background: #B0BEC5;
  cursor: not-allowed;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: #333;
}
