/*
 * Additions for the server-rendered version. The original look lives in main.css and
 * changestyles.css, which are unchanged; this file only covers what the AngularJS
 * application used to do with scripts (dialogs, messages) and a few small helpers.
 */

/* Elements that were clickable <span>s are now real links/buttons: keep their look. */
header .account a.master, header .account a.master:hover { color: inherit; text-decoration: none; }
header .account .inline-form { display: inline; margin: 0; }
header .account button.linklike { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
header .lang ul li a { display: block; color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Dialogs */
.dialog-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.55); overflow: auto; }
body.dialog-open { overflow: hidden; }
.dialog-backdrop .loginvyskakovaci { z-index: 1001; max-height: 92vh; }
.dialog-box { position: relative; background: #fff; max-width: 640px; margin: 6vh auto; padding: 30px; border-radius: 6px; box-shadow: 0 0 50px rgba(0, 0, 0, 0.6); }
.dialog-box.wide { max-width: 1100px; }
.dialog-box .dialog-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #666; }
.dialog-box h2 { margin-top: 0; }

/* Sign-in box shown as a normal page (/xx/login) instead of a pop-up */
.loginvyskakovaci.loginstatic { position: static; max-height: none; margin: 40px auto; box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); overflow: hidden; }

/* Messages at the top of the page */
#notification_bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; pointer-events: none; }
#notification_bar .globalMessage { max-width: 600px; margin: 6px auto 0; padding: 10px 16px; text-align: center; border: 3px solid #fff; border-radius: 8px; pointer-events: auto; transition: opacity 0.4s; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
#notification_bar .flash-success { background-color: #3c8d2f; }
#notification_bar .flash-error { background-color: #c0392b; }
#notification_bar .flash-warning { background-color: #d98c0a; }
#notification_bar .flash-hide { opacity: 0; }

/* Form validation messages */
.form-errors { background: #fdecea; border: 1px solid #f5c2bd; color: #a12b21; padding: 10px 15px; border-radius: 4px; margin: 0 0 20px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.field-error { color: #c0392b; font-size: 12px; margin: -8px 0 10px; }
/* Honeypot field for spam bots: must stay invisible to people. */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Error pages */
.error-page { text-align: center; padding: 80px 20px 100px; }
.error-page .error-code { font-size: 96px; font-weight: 700; color: #ff4e1b; line-height: 1; }
.error-page h1 { font-size: 28px; margin: 15px 0 30px; color: #004165; }
.error-page .error-trace { text-align: left; white-space: pre-wrap; font-size: 12px; background: #f6f6f6; padding: 15px; border: 1px solid #ddd; max-width: 1000px; margin: 0 auto 30px; }
.btn-orange { display: inline-block; background: #ff4e1b; color: #fff; text-transform: uppercase; font-weight: 700; padding: 10px 25px; border-radius: 5px; border: 0; border-bottom: 2px solid #d44117; text-decoration: none; cursor: pointer; }
.btn-orange:hover, .btn-orange:focus { color: #fff; background: #ff6233; text-decoration: none; }

/* Paging */
.pager-nav { text-align: center; margin: 25px 0; }
.pager-nav a, .pager-nav span { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; padding: 0 8px; margin: 0 2px; border: 1px solid #dcdcdc; border-radius: 4px; color: #304045; text-decoration: none; }
.pager-nav a:hover { border-color: #ff4e1b; color: #ff4e1b; }
.pager-nav .current { background: #ff4e1b; border-color: #ff4e1b; color: #fff; font-weight: 700; }
.pager-nav .gap { border: 0; min-width: 16px; padding: 0; }
