/* ModarentaTime — ortak saat seçici */

.mr-time {
  position: relative;
  width: 100%;
}

.mr-time.is-locked .mr-time__display {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.mr-time.is-ready .mr-time__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mr-time__display {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1.5px solid var(--color-border-default, #dde3ea);
  border-radius: 10px;
  background: var(--color-surface, #fff);
  color: var(--color-text-main, #18181b);
  font-size: 14px;
  font-family: var(--font-family-sans, var(--font-sans, inherit));
  font-weight: 600;
  text-align: left;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mr-time__display:hover {
  border-color: var(--color-border-strong, #c8d0da);
}

.mr-time__display:focus,
.mr-time.is-open .mr-time__display {
  border-color: var(--color-zinc-400, #a1a1aa);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.mr-time__display.is-empty {
  color: var(--color-text-muted, #9ca3af);
  font-weight: 500;
}

.mr-time__panel {
  position: fixed;
  z-index: 10070;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid var(--color-border-default, #e4e4e7);
  border-radius: 14px;
  background: var(--color-surface, #fff);
  box-shadow: 0 12px 36px rgba(24, 24, 27, 0.14);
  font-family: var(--font-family-sans, var(--font-sans, inherit));
  box-sizing: border-box;
}

.mr-time__panel[hidden] {
  display: none !important;
}

.mr-time__panel-inner {
  padding: 12px 12px 10px;
}

.mr-time__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-bg-muted, #f4f4f5);
}

.mr-time__bar.is-empty .mr-time__bar-value {
  color: var(--color-text-muted, #9ca3af);
  font-weight: 600;
}

.mr-time__bar-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text-main, #18181b);
  line-height: 1;
}

.mr-time__bar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #9ca3af);
}

.mr-time__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mr-time__preset {
  padding: 5px 10px;
  border: 1px solid var(--color-border-soft, #e5e7eb);
  border-radius: 999px;
  background: var(--color-surface, #fff);
  color: var(--color-text-main, #374151);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.mr-time__preset:hover {
  border-color: var(--color-border-strong, #d1d5db);
  background: var(--color-bg-muted, #f9fafb);
}

.mr-time__preset.is-active {
  border-color: rgba(var(--adm-brand-rgb, 184, 139, 57), 0.35);
  background: rgba(var(--adm-brand-rgb, 184, 139, 57), 0.1);
  color: var(--color-brand, #b88b39);
}

.mr-time__picker-shell {
  position: relative;
  height: 188px;
  overflow: hidden;
  border: 1px solid var(--color-border-default, #e5e7eb);
  border-radius: 12px;
  background: var(--color-bg-muted, #f8fafc);
  user-select: none;
}

.mr-time__picker-slot {
  position: absolute;
  top: 74px;
  right: 8px;
  left: 8px;
  z-index: 1;
  height: 40px;
  border-top: 1.5px solid var(--color-border-default, #e5e7eb);
  border-bottom: 1.5px solid var(--color-border-default, #e5e7eb);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.mr-time__mask {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 74px;
  pointer-events: none;
}

.mr-time__mask--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.96) 12%, rgba(248, 250, 252, 0) 100%);
}

.mr-time__mask--bot {
  bottom: 0;
  background: linear-gradient(to top, rgba(248, 250, 252, 0.96) 12%, rgba(248, 250, 252, 0) 100%);
}

.mr-time__cols {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.mr-time__drum {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  padding-top: 74px;
  padding-bottom: 74px;
  box-sizing: border-box;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.mr-time__drum::-webkit-scrollbar {
  display: none;
}

.mr-time__drum.is-dragging {
  cursor: grabbing;
}

.mr-time__drum-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.45;
  scroll-snap-align: center;
  transition: color 0.1s, font-size 0.1s, opacity 0.1s;
}

.mr-time__drum-item.is-sel {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  opacity: 1;
}

.mr-time__colon {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex-shrink: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.mr-time__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-soft, #f1f5f9);
}

.mr-time__action {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border-soft, #e5e7eb);
  border-radius: 10px;
  background: var(--color-surface, #fff);
  color: var(--color-text-main, #374151);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.mr-time__action:hover {
  background: var(--color-bg-muted, #f9fafb);
  border-color: var(--color-border-default, #d1d5db);
}

.mr-time__action--primary {
  border-color: rgba(var(--adm-brand-rgb, 184, 139, 57), 0.35);
  background: rgba(var(--adm-brand-rgb, 184, 139, 57), 0.1);
  color: var(--color-brand, #b88b39);
}

.mr-time--compact .mr-time__display {
  min-height: 36px;
  font-size: 13px;
}

.mr-time--compact .mr-time__picker-shell {
  height: 168px;
}
