/* Our additions to the Cloud Admin theme. */
#header .logout-form { display: inline; }
#header .username { color: #fff; margin-right: 10px; line-height: 50px; }
.login-box { max-width: 360px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 4px; }
.table-actions form { display: inline; }
.live-cell { white-space: nowrap; }
/* the theme paints text white on its login page (it expects a dark picture behind): our box is white */
body.login .login-box, body.login .login-box h2, body.login .login-box h3, body.login .login-box label, body.login .login-box p { color: #333; }
body.login .login-box h2 { margin-top: 0; text-align: center; }
/* the truck card: parts folded until opened, one line per billing action */
details.card-section { margin: 10px 0; border-top: 1px solid #e5e5e5; }
details.card-section > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details.card-section > summary:hover { color: #337ab7; }
.card-section-body { padding: 4px 0 6px; }
.billing-act-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.billing-act-title { flex: 0 0 170px; font-weight: 600; }
.billing-act-row form { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; }
.billing-act-row .form-control { width: auto; display: inline-block; }
.billing-act-row input[type=text] { width: 120px; }
.billing-act-row input[type=date] { width: 150px; }
.billing-act-row .billing-input-money { width: 90px; }
/* the list of trucks: the filter on the left and the mass buttons on the right, one line */
.truck-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.truck-filter .form-control { display: inline-block; width: 200px; }
.truck-filter .truck-filter-description { width: 300px; }
.truck-filter-actions { margin-left: auto; display: flex; gap: 6px; }
/* the list of payments: the dates, the plate and "show" on the left, "add a payment" on the right, one line */
.payment-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.payment-filter .form-control { display: inline-block; width: 200px; }
.payment-filter input[type=date] { width: 160px; }
.payment-filter-actions { margin-left: auto; }

/* The payments import: the window on «Платежи» and «Не разнесённые» (views/import) */
.import-dialog { width: 96%; max-width: 1200px; }
.import-upload { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.import-upload input[type=file] { width: auto; }
.import-summary { margin-bottom: 10px; }
.import-row { border-top: 1px solid #ddd; padding: 8px 0; }
.import-row.import-duplicate { background: #fcf8e3; }
.import-row.import-saved .import-message.text-success { font-weight: bold; }
.import-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.import-when { color: #777; white-space: nowrap; }
.import-purpose { color: #555; }
.import-plate { display: inline-flex; align-items: center; gap: 6px; }
.import-plate .form-control { width: 130px; }
.import-amount { margin-left: auto; white-space: nowrap; }
.import-note, .import-message, .import-last { margin-top: 4px; }
.import-last { color: #555; font-size: 12px; }
.import-all { margin: 4px 0 0; font-size: 12px; }
.import-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.import-fields label { font-weight: normal; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.import-fields .form-control { width: 90px; }
.import-fields .import-comment { width: 220px; }
.import-buttons { margin-left: auto; display: inline-flex; gap: 6px; }
