/* CarRating.eu - 2005. aasta stiilis kujundus */

:root {
  --teal: #2FA4D7;      /* põhitoon */
  --teal-l: #7cc8ea;
  --teal-d: #1c7fae;
  --navy: #00478f;      /* vana carrating.org sinine */
  --navy-d: #003366;
  --sky: #a5d0ff;       /* vana lehe helesinine riba */
  --ink: #003366;       /* tume tekst heledal taustal */
  --link: #00478f;
  --yel: #FFD84A;       /* kollane */
  --yel-l: #ffeca6;
  --yel-d: #c79f12;
  --cream: #FFF6DE;     /* mahe toon */
  --line: #6c7889;
  --dot: #b5bcc8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 10px 8px 20px;
  font: 11px Verdana, Tahoma, Arial, sans-serif;
  color: #222;
  background: #1f3438 repeating-linear-gradient(135deg, #1f3438 0, #1f3438 3px, #24393d 3px, #24393d 6px);
}

a { color: var(--link); }
a:hover { color: #b00000; }
img { border: 0; max-width: 100%; }
h1 { font: bold 17px Tahoma, Verdana, sans-serif; color: var(--ink); margin: 0 0 8px; }
h2 {
  font: bold 12px Tahoma, Verdana, sans-serif; color: var(--ink); margin: 14px 0 8px; padding: 4px 8px;
  background: linear-gradient(var(--teal-l), var(--teal)); border: 1px solid var(--teal-d);
}
p { margin: 0 0 8px; line-height: 1.5; }
.small { font-size: 10px; color: #666; }
.muted { color: #777; }

#wrap {
  width: 100%; max-width: 980px; margin: 0 auto;
  background: var(--cream); border: 1px solid #000; outline: 3px solid #4d6165;
}

/* --- päis --- */
#header {
  padding: 16px 18px 14px;
  background: linear-gradient(var(--teal-l) 0%, var(--teal) 48%, #2493c4 52%, #2b9fd2 100%);
  border-bottom: 3px solid var(--yel);
}
#logo {
  font: italic bold 38px "Arial Black", Impact, Arial, sans-serif; color: #fff; text-decoration: none;
  letter-spacing: -1px; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
#logo span { color: var(--yel); }
#logo small { font-size: 18px; color: #fff; letter-spacing: 0; }
#logo { display: inline-block; line-height: 0; }
#logo img { display: block; height: 46px; width: auto; }
#tagline { color: var(--ink); font-size: 11px; margin-top: 3px; font-weight: bold; }

#topnav {
  display: flex; flex-wrap: wrap; gap: 0; padding: 0 8px;
  background: linear-gradient(#0a5bb0, var(--navy)); border-bottom: 1px solid var(--navy-d);
}
#topnav a {
  padding: 6px 11px; color: #fff; font: bold 11px Tahoma, Verdana, sans-serif; text-decoration: none;
  border-right: 1px solid #2a6fbf;
}
#topnav a::before { content: "\25AA\00a0"; color: var(--yel); }
#topnav a:hover { background: var(--yel); color: var(--ink); }
#topnav a.off { opacity: .55; font-style: italic; }
#topnav a:hover::before { color: var(--ink); }
#topnav form { margin-left: auto; padding: 3px 0; display: flex; gap: 3px; align-items: center; }
#topnav input[type=text] { width: 120px; }

#topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 5px 10px; font-size: 10px; color: #333;
  background: linear-gradient(#fff, var(--cream)); border-bottom: 1px solid var(--yel-d);
}

/* --- veerud --- */
#layout { display: flex; align-items: flex-start; }
#left { width: 178px; flex: none; padding: 8px 0 8px 8px; }
#main { flex: 1; min-width: 0; padding: 10px 12px 14px; }
.withright { display: flex; gap: 10px; align-items: flex-start; }
.withright > .col { flex: 1; min-width: 0; }
.withright > .rightcol { width: 170px; flex: none; }

.box { background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.box h3, .block-wide h3 {
  margin: 0; padding: 4px 7px; font: bold 11px Tahoma, Verdana, sans-serif; color: #4a3b00;
  background: linear-gradient(var(--yel-l), var(--yel)); border-bottom: 1px solid var(--yel-d);
}
.boxpad { padding: 7px; margin: 0; }
.blockbody { line-height: 1.5; overflow: hidden; }
.block-wide { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.block-wide .blockbody { padding: 8px; }
.slot-top .blockbody, .slot-right .blockbody { text-align: center; }

/* tühi reklaamipind (näeb ainult admin) */
.adph {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  width: 100%; margin: 0 auto 10px; padding: 4px 6px; text-align: center; text-decoration: none; line-height: 1.4;
  color: #666; background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f3f3f3 6px, #f3f3f3 12px);
  border: 1px dashed #999;
}
.adph b { color: #444; }
.adph span { font-size: 10px; }
.adbanner { margin: 0 auto 10px; text-align: center; line-height: 0; }
.adbanner img { max-width: 100%; height: auto; display: inline-block; border: 0; }
#left .adbanner { margin-bottom: 8px; }

ul.menu { list-style: none; margin: 0; padding: 0; }
ul.menu li { border-bottom: 1px dotted var(--dot); }
ul.menu li:last-child { border-bottom: 0; }
ul.menu a {
  display: flex; justify-content: space-between; gap: 6px; padding: 4px 7px 4px 18px; text-decoration: none;
  font-weight: bold; color: var(--ink);
  background: linear-gradient(90deg, transparent 7px, var(--navy) 7px, var(--navy) 11px, transparent 11px) no-repeat 0 50% / 100% 4px;
}
ul.menu a:hover, ul.menu a.on { background-color: var(--cream); color: #b00000; }
ul.menu a i { font-style: normal; font-weight: normal; color: #888; }
ul.menu li.special a { background-color: var(--yel-l); }
ul.menu li.subhead { padding: 6px 7px 2px; font-size: 10px; font-weight: bold; text-transform: uppercase; color: #777; background: #f4f6f9; }
ul.menu li.adminedit a { font-weight: normal; font-style: italic; color: #777; }
.about { background: #fff; border: 1px solid var(--line); padding: 14px 16px; line-height: 1.7; font-size: 12px; max-width: 760px; }
.about p { margin: 0 0 12px; }
.about h2 { margin-top: 18px; }
.makepick { width: 100%; }

.loginform label { display: block; margin-bottom: 5px; }
.loginform input[type=text], .loginform input[type=password] { width: 100%; }

table.stats { width: 100%; border-collapse: collapse; }
table.stats td { padding: 3px 7px; border-bottom: 1px dotted var(--dot); }
table.stats td:last-child { text-align: right; font-weight: bold; }

/* --- vormid --- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
  font: 11px Verdana, Tahoma, sans-serif; padding: 3px 4px; max-width: 100%;
  border: 1px solid; border-color: var(--line) #c5ccd6 #c5ccd6 var(--line); background: #fff;
}
textarea { width: 100%; }
.btn, button.btn {
  font: bold 11px Tahoma, Verdana, sans-serif; padding: 3px 10px; cursor: pointer; color: #111;
  background: linear-gradient(#fff, #cdd3db); border: 1px solid; border-color: #fff #5b6573 #5b6573 #fff;
  outline: 1px solid #5b6573; text-decoration: none; display: inline-block;
}
.btn:hover { background: linear-gradient(var(--cream), var(--yel)); color: #111; }
.btn.danger { color: #a00000; }
table.form { border-collapse: collapse; }
table.form td { padding: 4px 8px 4px 0; vertical-align: top; }
table.form td:first-child { font-weight: bold; white-space: nowrap; padding-top: 7px; }
form.inline { display: inline; }
.filterbar {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; padding: 7px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line);
}
.filterbar label { display: block; font-weight: bold; }
.filterbar label select, .filterbar label input { display: block; margin-top: 2px; font-weight: normal; }

.flash { padding: 7px 10px; margin-bottom: 10px; border: 1px solid; font-weight: bold; }
.flash.ok { background: #e4f6dc; border-color: #5c9a3c; color: #2c5a14; }
.flash.err { background: #fde3e0; border-color: #c0392b; color: #8e1b10; }
.flash.warn { background: var(--yel-l); border-color: var(--yel-d); color: #5a4700; font-weight: normal; }

/* --- tabelid --- */
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
table.list th {
  text-align: left; padding: 4px 7px; color: var(--ink); font: bold 11px Tahoma, sans-serif;
  background: linear-gradient(var(--teal-l), var(--teal)); border: 1px solid var(--teal-d);
}
table.list td { padding: 5px 7px; border: 1px solid #cfd5dd; vertical-align: top; }
table.list tr:nth-child(odd) td { background: #f4f6f9; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
table.list tr.total td { background: var(--cream); font-weight: bold; }
.tablewrap { overflow-x: auto; }

/* --- autode ruudustik --- */
.cargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px; }
.carcard { background: #fff; border: 1px solid var(--line); padding: 4px; text-align: center; }
.carcard:hover { border-color: var(--yel-d); background: var(--cream); }
.pic { display: block; aspect-ratio: 4 / 3; background: #1b1e23; border: 1px solid #000; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nopic { display: flex; align-items: center; justify-content: center; height: 100%; color: #8a94a3; font-size: 10px; }
.carcard .name { display: block; font-weight: bold; margin: 5px 0 2px; }
.meta { font-size: 10px; color: #666; }
.scorebadge {
  display: inline-block; min-width: 34px; padding: 1px 5px; margin-top: 3px; font: bold 12px Tahoma, sans-serif;
  color: #4a3b00; background: linear-gradient(var(--yel-l), var(--yel)); border: 1px solid var(--yel-d);
}
.scorebadge.none { background: #e3e6ea; border-color: #aab2be; color: #777; }
.score { color: #c00000; font-size: 12px; }
.pager { margin-top: 10px; text-align: center; }
.pager a, .pager b { padding: 2px 6px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.pager b { background: var(--yel); color: #4a3b00; }

/* --- autode nimekiri ridadena --- */
.carrows { background: #fff; border: 1px solid var(--line); }
.carrow { display: flex; align-items: center; gap: 12px; padding: 8px; border-bottom: 1px dotted var(--dot); }
.carrow:last-child { border-bottom: 0; }
.carrow:hover { background: var(--cream); }
.carrow .rank { width: 28px; flex: none; font: bold 16px Tahoma, sans-serif; color: var(--teal-d); text-align: right; }
.carrow .pic { width: 96px; flex: none; }
.carrow .facts { flex: 1; min-width: 0; border-collapse: collapse; }
.carrow .facts td { padding: 1px 10px 1px 0; vertical-align: top; }
.carrow .facts td:first-child { color: #666; white-space: nowrap; width: 100px; }
.carrow .side { width: 120px; flex: none; align-self: stretch; padding: 6px 8px; background: #f4f6f9; line-height: 1.7; }
.more::before { content: "\25AA\00a0"; color: var(--navy); }

/* --- avaleht --- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.feature { background: #fff; border: 1px solid var(--line); }
.feature h3 {
  margin: 0; padding: 6px 8px 4px; font: bold 15px "Arial Narrow", Arial, sans-serif; color: #9aa3ad;
  text-transform: uppercase; text-align: center; letter-spacing: .5px;
}
.feature .band { background: var(--sky); height: 18px; text-align: center; }
.feature .band .pic { width: 260px; max-width: 92%; display: inline-block; }
.feature .body { padding: 10px; line-height: 1.5; text-align: center; }
.feature .band { height: auto; padding: 0 0 0; background: linear-gradient(var(--sky) 0, var(--sky) 18px, transparent 18px); }
.feature .body b { display: block; margin-bottom: 6px; }
.feature .empty { padding: 14px 10px; color: #777; text-align: center; }
.minilists { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.minilists > div { border-right: 1px dotted var(--dot); min-width: 0; }
.minilists > div:last-child { border-right: 0; }
.minilists h4 { margin: 0; padding: 8px 6px; font: normal 11px Verdana, sans-serif; color: #9aa3ad; text-align: center; }
.mini { display: flex; gap: 7px; padding: 6px; align-items: center; }
.mini:nth-child(even) { background: #f4f6f9; }
.mini .pic { width: 44px; flex: none; }
.mini .t { min-width: 0; line-height: 1.4; }
.mini .t a { font-weight: bold; text-decoration: none; }
.mini .t span { color: #c00000; }
.minilists .none { padding: 6px; color: #999; text-align: center; }

/* --- auto leht --- */
.cartop { display: flex; gap: 12px; align-items: flex-start; }
.gallery { flex: 1; min-width: 0; }
.gallery .mainpic { background: #111; border: 1px solid #000; padding: 3px; }
.gallery .mainpic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #111; }
.strip { display: flex; align-items: stretch; margin-top: 4px; background: #c5ccd6; border: 1px solid var(--line); }
.strip .arrow {
  flex: none; width: 22px; border: 0; cursor: pointer; font: bold 12px Tahoma, sans-serif; color: var(--ink);
  background: linear-gradient(#fff, #cdd3db); border-inline: 1px solid var(--line);
}
.strip .arrow:hover { background: linear-gradient(var(--cream), var(--yel)); }
.strip .thumbs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.strip .thumbs::-webkit-scrollbar { display: none; }
.strip .thumbs a { flex: none; width: 92px; height: 69px; border: 2px solid #fff; outline: 1px solid var(--line); opacity: .75; }
.strip .thumbs a:hover { opacity: 1; }
.strip .thumbs a.on { border-color: var(--yel); outline-color: var(--yel-d); opacity: 1; }
.strip .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nophoto { padding: 60px 10px; text-align: center; background: #1b1e23; color: #8a94a3; border: 1px solid #000; }

.carside { width: 250px; flex: none; }
.bigscore { text-align: center; padding: 8px 8px 6px; }
.bigscore .line { display: flex; justify-content: center; align-items: baseline; gap: 4px; line-height: 1.2; }
.bigscore .n { font: bold 26px Tahoma, Verdana, sans-serif; color: #c00000; }
.bigscore .of { color: #666; }
.bigscore .small { display: block; margin-top: 3px; }
.bar { height: 10px; background: #eef0f3; border: 1px solid #8a94a3; }
.bar i { display: block; height: 100%; background: linear-gradient(var(--teal-l), var(--teal)); }
table.scores { width: 100%; border-collapse: collapse; }
table.scores td { padding: 3px 7px; }
table.scores td:nth-child(2) { width: 45%; }
table.scores td:last-child { text-align: right; font-weight: bold; }
.rateform label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.legendtag {
  display: inline-block; padding: 1px 6px; font: bold 10px Tahoma, sans-serif; color: #4a3b00;
  background: var(--yel); border: 1px solid var(--yel-d); vertical-align: middle;
}

.intro { display: flex; background: #fff; border: 1px solid var(--line); }
.intro .facts { width: 210px; flex: none; padding: 8px; background: #f4f6f9; border-right: 1px dotted var(--dot); line-height: 1.7; }
.intro .facts b { color: #555; }
.intro .text { flex: 1; min-width: 0; padding: 8px 10px; line-height: 1.6; overflow-wrap: anywhere; }
.intro .text p { margin-bottom: 12px; }
.intro .text p:last-child { margin-bottom: 0; }
.intro .text p b { color: #555; }

.textblock { background: #fff; border: 1px solid var(--line); padding: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.photoedit { display: flex; flex-wrap: wrap; gap: 8px; }
.photoedit .item { position: relative; width: 140px; background: #fff; border: 1px solid var(--line); padding: 4px; text-align: center; }
.photoedit .item .pos { position: absolute; left: 6px; top: 6px; padding: 0 4px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: bold; }
.photoedit .item .tools { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; min-height: 22px; }
.photoedit .item button.btn { min-width: 30px; }
.photoedit .item.main { border-color: var(--yel-d); background: var(--cream); }
.photoedit img { width: 100%; height: 90px; object-fit: cover; display: block; margin-bottom: 4px; }

.tabs { margin-bottom: 10px; border-bottom: 2px solid var(--teal); }
.tabs a {
  display: inline-block; padding: 4px 12px; margin-right: 2px; text-decoration: none; font-weight: bold;
  background: #fff; border: 1px solid var(--line); border-bottom: 0; color: var(--ink);
}
.tabs a.on { background: var(--teal); border-color: var(--teal-d); }

#footer {
  padding: 8px; text-align: center; font-size: 10px; color: var(--ink);
  background: linear-gradient(var(--teal), #2493c4); border-top: 3px solid var(--yel);
}

/* --- kommentaarid --- */
.comments { background: #fff; border: 1px solid var(--line); }
.comment { padding: 8px 10px; border-bottom: 1px solid #cfd5dd; }
.comment:last-child { border-bottom: 0; }
.comment .body { line-height: 1.5; overflow-wrap: anywhere; }
.comment .body::before { content: "\25AA\00a0"; color: var(--navy); }
.comment .by { margin-top: 5px; font-size: 10px; color: #666; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.comment .by .when { color: var(--navy); }
.commentform { margin-top: 8px; }

/* --- keel, küpsised, sotsiaalne sisselogimine, õigustekstid --- */
.langs a, .langs b { padding: 0 3px; }
.langs b { color: var(--navy); }
#cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 8px 12px; text-align: center;
  background: var(--yel-l); border-top: 2px solid var(--yel-d); color: #222;
}
#cookiebar .btn { margin-left: 8px; }
#footer a { color: var(--ink); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.social a {
  display: inline-block; padding: 6px 14px; font: bold 11px Tahoma, sans-serif; text-decoration: none; color: #fff;
  border: 1px solid #000;
}
.social a.google { background: #fff; color: #333; border-color: #888; }
.social a.facebook { background: #1877f2; border-color: #0d5bc4; }
.social a:hover { filter: brightness(.93); }
.legal { background: #fff; border: 1px solid var(--line); padding: 12px 14px; line-height: 1.6; }
.legal h2 { margin-top: 16px; }
.legal ul { margin: 0 0 8px; padding-left: 20px; }
.notice { background: var(--yel-l); border: 1px solid var(--yel-d); padding: 7px 10px; margin-bottom: 10px; }
.orderbtns form { display: inline; }
.orderbtns .btn { padding: 1px 6px; }

/* --- klaviatuur ja ligipääsetavus --- */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 30; padding: 8px 12px;
  background: var(--yel); color: #000; font-weight: bold; border: 2px solid #000;
}
.skip:focus { top: 8px; }
#main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #000 !important; outline-offset: 2px; box-shadow: 0 0 0 5px var(--yel) !important;
}
#topnav a:focus-visible { background: var(--yel); color: var(--ink); }
.strip .thumbs a:focus-visible { opacity: 1; }

/* --- valikuväli (mark, mudel) --- */
.combo { position: relative; display: inline-block; max-width: 100%; }
.combo ul {
  position: absolute; left: 0; top: 100%; z-index: 20; min-width: 100%; max-height: 240px; overflow-y: auto;
  margin: 1px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, .25);
}
.combo li { padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.combo li:hover, .combo li[aria-selected="true"] { background: var(--yel-l); }

/* --- lehe suurus arvutis (valik üleval paremal) ---
   2 = tavaline (vaikimisi, umbes 70% suure ekraani laiusest), 3 = suur (umbes 90%). */
html.size-2 #wrap, html.size-3 #wrap { max-width: 1200px; }
@media (min-width: 1500px) { html.size-2 body { zoom: 1.08; } html.size-3 body { zoom: 1.15; } }
@media (min-width: 1700px) { html.size-2 body { zoom: 1.15; } html.size-3 body { zoom: 1.3; } }
@media (min-width: 1900px) { html.size-2 body { zoom: 1.25; } html.size-3 body { zoom: 1.45; } }
@media (min-width: 2200px) { html.size-2 body { zoom: 1.35; } html.size-3 body { zoom: 1.65; } }
@media (min-width: 2500px) { html.size-2 body { zoom: 1.5; } html.size-3 body { zoom: 1.9; } }
@media (min-width: 3000px) { html.size-2 body { zoom: 1.75; } html.size-3 body { zoom: 2.25; } }
@media (min-width: 3600px) { html.size-2 body { zoom: 2.05; } html.size-3 body { zoom: 2.7; } }
.sizes { margin-right: 8px; white-space: nowrap; }
.sizes .sz { display: inline-block; padding: 0 3px; font-family: Georgia, serif; font-weight: bold; text-decoration: none; line-height: 1; }
.sizes b.sz { color: var(--navy); border-bottom: 2px solid var(--yel-d); }
.sizes .sz2 { font-size: 13px; }
.sizes .sz3 { font-size: 16px; }

/* --- tahvelarvuti --- */
@media (max-width: 1024px) {
  .sizes { display: none; }
  .cartop { flex-direction: column; align-items: stretch; }
  .gallery { width: 100%; max-width: 100%; }
  .carside { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .withright { flex-direction: column; }
  .withright > .rightcol { width: 100%; }
  ul.menu a, .menu li a { padding-top: 6px; padding-bottom: 6px; }
}

/* --- teated --- */
.reportlink { color: #a00000; font-size: 10px; }
.badge {
  display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px; border-radius: 8px; text-align: center;
  background: #c00000; color: #fff; font-size: 10px; font-weight: bold; line-height: 16px;
}
.reportcar { display: flex; gap: 10px; padding: 8px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); }
.reportcar .pic { width: 120px; flex: none; }
.reportcar .info { flex: 1; min-width: 0; }
.reportcar ul { margin: 6px 0 8px; padding-left: 18px; }
fieldset.reasons { border: 1px solid var(--line); background: #fff; padding: 6px 10px; margin: 0 0 8px; }
fieldset.reasons legend { font-weight: bold; padding: 0 4px; }
fieldset.reasons label { display: block; padding: 3px 0; }

/* --- oma hinne --- */
table.myscore { width: 100%; border-collapse: collapse; }
table.myscore td { padding: 2px 0; }
table.myscore td:last-child { text-align: right; font-weight: bold; }
.ratenote { margin-top: 6px; font-size: 10px; color: #555; }
.ratenote.new { color: #2c5a14; font-weight: bold; }

/* --- varasem auto --- */
.pasttag {
  display: inline-block; padding: 1px 6px; font: bold 10px Tahoma, sans-serif; color: #fff;
  background: #6c7889; border: 1px solid #4d5866; vertical-align: middle;
}

/* --- pildi osa peitmine --- */
.redactor { position: relative; display: inline-block; max-width: 100%; touch-action: none; cursor: crosshair; user-select: none; border: 1px solid #000; line-height: 0; }
.redactor img { display: block; max-width: 100%; height: auto; pointer-events: none; }
.rbox {
  position: absolute; box-sizing: border-box; cursor: pointer;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.55) 0 6px, rgba(255,255,255,.35) 6px 12px);
  border: 2px dashed #fff; outline: 2px solid #000;
}
.rbox.sel { border-color: var(--yel); outline-color: #c00000; }
.redact-tools { margin: 8px 0; }
.tip { margin-top: 3px; color: #2c5a14; }
.tip::before { content: "9 a0"; }

/* --- päeviku pildid ja jagamine --- */
.logphotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.logphotos .lp { width: 110px; text-align: center; }
.logphotos img { width: 110px; height: 82px; object-fit: cover; display: block; border: 1px solid #000; margin-bottom: 3px; }
.logadd { margin-top: 6px; }
.logadd input[type=file] { max-width: 220px; }
.share { margin: -2px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share .share-msg { color: #2c5a14; font-weight: bold; }

/* --- halduse statistika --- */
.periods { margin: 6px 0 10px; }
.periods a, .periods b { margin-right: 8px; }
.statsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.statsum div { background: #fff; border: 1px solid var(--line); padding: 10px; text-align: center; color: #555; }
.statsum b { display: block; font: bold 24px Tahoma, Verdana, sans-serif; color: var(--ink); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.statbox { min-width: 0; }
table.stat { width: 100%; margin-bottom: 10px; }
table.stat td:first-child { position: relative; }
table.stat .bar { position: absolute; left: 0; top: 2px; bottom: 2px; background: #d6eef8; z-index: 0; }
table.stat .lbl { position: relative; z-index: 1; }
table.funnel { max-width: 520px; }

/* --- kitsas ekraan --- */
@media (max-width: 720px) {
  body { padding: 0; }
  #wrap { outline: 0; border: 0; }
  #layout { flex-direction: column; }
  #left { width: 100%; padding: 8px 8px 0; order: 2; }
  #main { width: 100%; }
  #logo img { height: 34px; }
  #topnav form { margin-left: 0; width: 100%; padding: 4px 0; }
  .cartop, .withright, .intro { flex-direction: column; }
  .carside, .withright > .rightcol, .intro .facts { width: 100%; }
  .carside { display: block; }
  input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea { font-size: 16px; }
  .combo, .combo input { width: 100%; }
  table.form, table.form tbody, table.form tr, table.form td { display: block; width: 100%; }
  table.form td:first-child { padding-bottom: 0; }
  .intro .facts { border-right: 0; border-bottom: 1px dotted var(--dot); }
  .features, .minilists { grid-template-columns: 1fr; }
  .minilists > div { border-right: 0; border-bottom: 1px dotted var(--dot); }
  .cargrid { grid-template-columns: repeat(2, 1fr); }
  .carrow { flex-wrap: wrap; }
  .carrow .side { width: 100%; }
  .statsum { grid-template-columns: 1fr 1fr; }
  .statgrid { grid-template-columns: 1fr; }
}
